/* Law Connect — clean legal-services landing page */

:root {
  /* Professional palette: warm paper neutrals + slate blue + restrained bronze */
  --ink: #161b22;
  --ink-muted: #57606a;
  --bg: #f5f3ef;
  --bg-card: #ffffff;
  --line: #e0dbd3;
  --accent: #243952;
  --accent-hover: #314e6e;
  --accent-muted: #5a6b7e;
  --highlight: #6b5e4f;
  --gold: var(--highlight);
  --rgb-accent: 36, 57, 82;
  --radius: 10px;
  --shadow: 0 1px 2px rgba(22, 27, 34, 0.05), 0 10px 28px rgba(22, 27, 34, 0.07);
  --font: "Source Sans 3", system-ui, -apple-system, sans-serif;
  --serif: "DM Serif Display", Georgia, serif;
  --max: 1120px;
  --header-h: 4.25rem;
  /* Builder / callout surfaces */
  --surface-muted: #f0ece6;
  --surface-success-bg: #e9ebe5;
  --surface-success-border: #c5c9c0;
  --surface-success-text: #2f342c;
  --surface-warn-bg: #ebe6dd;
  --surface-warn-text: #4a4238;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font);
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  font-feature-settings: "kern" 1, "liga" 1;
}

h1, h2, h3 {
  font-family: var(--serif);
  font-weight: 400;
  line-height: 1.2;
  margin: 0 0 0.5em;
}

h1 { font-size: clamp(2rem, 4.2vw, 2.85rem); letter-spacing: -0.02em; }
h2 { font-size: clamp(1.45rem, 2.4vw, 1.95rem); letter-spacing: -0.015em; }
h3 { font-size: 1.125rem; font-family: var(--font); font-weight: 650; letter-spacing: -0.01em; }

p { margin: 0 0 1em; color: var(--ink-muted); }
a { color: var(--accent); }
a:hover { color: var(--accent-hover); }

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0.5rem;
  z-index: 100;
  padding: 0.5rem 1rem;
  background: var(--ink);
  color: #fff;
  border-radius: 4px;
}
.skip-link:focus { left: 0.5rem; }

.container {
  width: min(100% - 2rem, var(--max));
  margin-inline: auto;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.97);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
  box-shadow: 0 1px 0 rgba(var(--rgb-accent), 0.06);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: var(--header-h);
  gap: 1rem;
}

.logo {
  font-family: var(--serif);
  font-size: 1.28rem;
  font-weight: 400;
  text-decoration: none;
  color: var(--ink);
  letter-spacing: -0.02em;
}
.logo span { color: var(--highlight); font-weight: 400; }

.nav {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.nav a {
  text-decoration: none;
  font-weight: 600;
  font-size: 0.9375rem;
  color: var(--ink-muted);
}
.nav a:hover { color: var(--accent); }

.nav-cta {
  padding: 0.5rem 1.1rem;
  background: var(--accent);
  color: #fff !important;
  border-radius: 8px;
  font-size: 0.9375rem;
}
.nav-cta:hover {
  background: var(--accent-hover);
  color: #fff !important;
}

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--bg-card);
  cursor: pointer;
  align-items: center;
  justify-content: center;
  padding: 0;
}
.nav-toggle-bars,
.nav-toggle-bars::before,
.nav-toggle-bars::after {
  display: block;
  width: 20px;
  height: 2px;
  background: var(--ink);
  border-radius: 1px;
  position: relative;
  transition: transform 0.2s, opacity 0.2s;
}
.nav-toggle-bars::before,
.nav-toggle-bars::after {
  content: "";
  position: absolute;
  left: 0;
}
.nav-toggle-bars::before { top: -6px; }
.nav-toggle-bars::after { top: 6px; }

.nav-toggle[aria-expanded="true"] .nav-toggle-bars {
  background: transparent;
}
.nav-toggle[aria-expanded="true"] .nav-toggle-bars::before {
  top: 0;
  transform: rotate(45deg);
}
.nav-toggle[aria-expanded="true"] .nav-toggle-bars::after {
  top: 0;
  transform: rotate(-45deg);
}

@media (max-width: 720px) {
  .nav-toggle { display: flex; }
  .nav {
    position: fixed;
    inset: var(--header-h) 0 0 0;
    background: var(--bg);
    flex-direction: column;
    padding: 1.5rem;
    align-items: stretch;
    border-bottom: 1px solid var(--line);
    transform: translateY(-100vh);
    opacity: 0;
    pointer-events: none;
    transition: transform 0.25s, opacity 0.25s;
  }
  .nav.is-open {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
  }
  .nav a { font-size: 1.1rem; padding: 0.5rem 0; }
  .nav-cta { text-align: center; }
}

/* Hero */
.hero {
  padding: clamp(2.75rem, 6vw, 5rem) 0;
  background: linear-gradient(180deg, #ffffff 0%, #f9f7f3 55%, var(--bg) 100%);
  border-bottom: 1px solid var(--line);
}

.hero-grid {
  display: grid;
  gap: clamp(2rem, 4vw, 3rem);
  align-items: center;
  grid-template-columns: 1fr minmax(280px, 380px);
}

@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; }
}

.hero-aside {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  min-width: 0;
}

.hero-figure {
  margin: 0;
  border-radius: var(--radius);
  overflow: hidden;
  max-height: min(42vh, 340px);
  box-shadow: var(--shadow);
  border: 1px solid var(--line);
  background: #1c222b;
}

.hero-img {
  display: block;
  width: 100%;
  height: min(42vh, 340px);
  min-height: 220px;
  object-fit: cover;
  object-position: center 35%;
}
@media (min-width: 901px) {
  .hero-img {
    min-height: 0;
  }
}

.hero-caption {
  margin: 0;
  padding: 0.7rem 1rem 0.9rem;
  font-size: 0.8125rem;
  line-height: 1.45;
  color: #d6d3d1;
  background: var(--ink);
  font-style: normal;
  font-weight: 500;
  font-family: var(--font);
}

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-size: 0.6875rem;
  font-weight: 700;
  color: var(--accent-muted);
  margin: 0 0 0.85rem;
  font-family: var(--font);
}

.lead {
  font-size: 1.0625rem;
  max-width: 38em;
  line-height: 1.65;
  margin: 0 0 0.25rem;
  color: var(--ink-muted);
}

.lead strong { color: var(--ink); font-weight: 600; }

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  margin: 1.65rem 0 1.35rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.65rem 1.25rem;
  font-family: var(--font);
  font-size: 0.9375rem;
  font-weight: 600;
  text-decoration: none;
  border-radius: 8px;
  border: 2px solid transparent;
  cursor: pointer;
  transition: background 0.2s, color 0.2s, border-color 0.2s, box-shadow 0.2s;
}
.btn-primary { box-shadow: 0 1px 2px rgba(var(--rgb-accent), 0.12); }
.btn-primary:hover { box-shadow: 0 4px 14px rgba(var(--rgb-accent), 0.22); }
.btn-primary {
  background: var(--accent);
  color: #fff;
}
.btn-primary:hover { background: var(--accent-hover); color: #fff; }
.btn-secondary {
  background: transparent;
  color: var(--accent);
  border-color: var(--accent);
}
.btn-secondary:hover { background: rgba(var(--rgb-accent), 0.07); }
.btn-light {
  background: #fff;
  color: var(--accent);
  border-color: #fff;
}
.btn-light:hover { background: var(--surface-muted); }
.btn-block { width: 100%; }

.trust-line {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 1.5rem;
  font-size: 0.875rem;
  color: var(--ink-muted);
  font-weight: 500;
}
.trust-line li {
  position: relative;
  padding-left: 1rem;
}
.trust-line li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--accent);
  opacity: 0.75;
}

.hero-network-stat {
  margin: 1.35rem 0 0;
  padding: 0.85rem 1rem;
  max-width: 36rem;
  font-size: 0.9375rem;
  line-height: 1.5;
  color: var(--ink-muted);
  background: rgba(var(--rgb-accent), 0.05);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  border-left: 3px solid var(--accent);
}
.hero-network-stat strong {
  color: var(--ink);
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}
.hero-network-stat__geo {
  white-space: nowrap;
}

.hero-aside .hero-card {
  margin-top: 0;
}

.hero-card {
  background: var(--bg-card);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  border: 1px solid var(--line);
  overflow: hidden;
  border-left: 3px solid var(--accent);
}
.hero-card-inner { padding: 1.35rem 1.5rem 1.5rem; }
.hero-card-title {
  font-weight: 700;
  color: var(--ink);
  margin: 0 0 0.65rem;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-family: var(--font);
}
.hero-steps {
  margin: 0;
  padding-left: 1.2rem;
  color: var(--ink-muted);
  font-size: 0.9375rem;
  line-height: 1.55;
}
.hero-steps li { margin-bottom: 0.45rem; }

/* Sections */
.section { padding: clamp(2.5rem, 5vw, 4rem) 0; }
.section-alt { background: #fff; border-block: 1px solid var(--line); }
.section-split {
  background: #fff;
  border-bottom: 1px solid var(--line);
}

.section-head {
  text-align: center;
  max-width: 38rem;
  margin: 0 auto 2.75rem;
}
.section-head p { margin: 0; color: var(--ink-muted); line-height: 1.6; }

.section-kicker {
  font-family: var(--font);
  font-size: 0.6875rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--accent-muted);
  margin: 0 0 0.5rem;
}
.section-kicker--left {
  text-align: left;
}

.seo-faq {
  max-width: 40rem;
  margin: 0 auto;
}
.seo-faq-heading {
  font-family: var(--font);
  font-size: 1.125rem;
  font-weight: 600;
  margin: 0 0 1rem;
  color: var(--ink);
}
.seo-faq-list {
  margin: 0;
}
.seo-faq-list dt {
  font-weight: 600;
  margin-top: 1.25rem;
  color: var(--ink);
  font-size: 0.9375rem;
}
.seo-faq-list dt:first-child {
  margin-top: 0;
}
.seo-faq-list dd {
  margin: 0.35rem 0 0;
  color: var(--ink-muted);
  line-height: 1.6;
  font-size: 0.9375rem;
}

.section-head--left {
  text-align: left;
  margin-left: 0;
  margin-bottom: 2rem;
  max-width: 34rem;
}

/* Approach: content-led, one image */
.approach-split {
  display: grid;
  gap: 2.5rem;
  align-items: start;
  grid-template-columns: 1.15fr 0.85fr;
}
@media (max-width: 900px) {
  .approach-split {
    grid-template-columns: 1fr;
  }
  .approach-figure { order: -1; }
}

.approach-content h2 {
  margin-bottom: 0.5em;
  font-size: clamp(1.4rem, 2.2vw, 1.9rem);
}
.approach-lead {
  font-size: 1.05rem;
  max-width: 40rem;
  margin-bottom: 1.75rem;
  color: var(--ink-muted);
}
.approach-lead strong { color: var(--ink); }

.approach-pillars {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 1.1rem;
}
.approach-pillars li {
  margin: 0;
  padding: 0 0 0 0.9rem;
  border-left: 3px solid var(--accent);
  background: linear-gradient(90deg, rgba(var(--rgb-accent), 0.06) 0%, transparent 100%);
  border-radius: 0 8px 8px 0;
  padding-top: 0.35rem;
  padding-bottom: 0.35rem;
  padding-right: 0.5rem;
}
.pillar-label {
  margin: 0 0 0.2em;
  font-weight: 700;
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--ink);
  font-family: var(--font);
}
.pillar-text {
  margin: 0;
  font-size: 0.95rem;
  color: var(--ink-muted);
  line-height: 1.55;
}

.approach-figure {
  margin: 0;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--line);
  background: #e5e2dc;
  box-shadow: var(--shadow);
}
.approach-figure__img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 800 / 534;
  object-fit: cover;
  object-position: center 40%;
}
.approach-figure__cap {
  margin: 0;
  padding: 0.6rem 0.9rem 0.75rem;
  font-size: 0.78rem;
  line-height: 1.4;
  color: var(--ink-muted);
  background: var(--surface-muted);
  font-weight: 500;
}

.cards {
  display: grid;
  gap: 1.25rem;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
}

.card {
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 0;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  transition: box-shadow 0.2s, border-color 0.2s;
}
.card:hover {
  box-shadow: var(--shadow);
  border-color: #c9c4bc;
}
.card-media {
  aspect-ratio: 2.8 / 1;
  max-height: 112px;
  background: #e8e5df;
  overflow: hidden;
  border-bottom: 1px solid var(--line);
}
.card-media img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 40%;
  filter: saturate(0.75) contrast(1.02);
  transition: transform 0.35s ease, filter 0.25s ease;
}
.card:hover .card-media img {
  transform: scale(1.015);
  filter: saturate(0.88) contrast(1.03);
}
.card-body {
  padding: 1.35rem 1.5rem 1.5rem;
  display: flex;
  flex-direction: column;
  flex: 1;
}
.card h3 { margin-bottom: 0.45em; color: var(--ink); }
.card p { flex: 1; font-size: 0.9375rem; margin-bottom: 1em; line-height: 1.58; }
.card-accent {
  display: block;
  width: 2rem;
  height: 2px;
  background: var(--accent);
  border-radius: 1px;
  margin-bottom: 0.65rem;
  opacity: 0.85;
}
.card-link {
  font-weight: 600;
  text-decoration: none;
  margin-top: auto;
}
.card-link:hover { text-decoration: underline; }

/* Steps */
.steps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 1.5rem;
  grid-template-columns: repeat(3, 1fr);
}
@media (max-width: 768px) {
  .steps { grid-template-columns: 1fr; }
}
.steps li {
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.5rem 1.5rem 1.5rem 1.25rem;
  position: relative;
  padding-top: 3.25rem;
}
.step-num {
  position: absolute;
  top: 1rem;
  left: 1.25rem;
  width: 2rem;
  height: 2rem;
  background: var(--accent);
  color: #fff;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.9rem;
}
.steps h3 { font-size: 1.1rem; margin-bottom: 0.35em; }
.steps p { font-size: 0.95rem; margin: 0; }

/* CTA band */
.cta-band {
  background: var(--accent);
  color: #cbd5e1;
  border-block: 1px solid rgba(255, 255, 255, 0.08);
}
.cta-band h2 { color: #fff; }
.cta-band p { color: rgba(255, 255, 255, 0.72); margin: 0; }
.cta-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}
.cta-phones {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}
.cta-inner .btn-light { color: var(--accent); }
.btn-outline-light {
  background: transparent;
  color: #fff;
  border: 2px solid rgba(255, 255, 255, 0.7);
}
.btn-outline-light:hover {
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
}

/* Contact */
.contact-wrap {
  display: grid;
  gap: 2.5rem;
  grid-template-columns: 1fr 1fr;
  align-items: start;
}
@media (max-width: 800px) {
  .contact-wrap { grid-template-columns: 1fr; }
}
.contact-copy h2 { margin-bottom: 0.5em; }
.fine-print {
  font-size: 0.8rem;
  color: var(--ink-muted);
  margin-top: 1.5rem;
  line-height: 1.5;
}

.contact-call-fee-note {
  font-size: 0.9rem;
  line-height: 1.55;
  color: var(--ink-muted);
  margin: 1rem 0 0;
  padding: 0.85rem 1rem;
  background: var(--surface-muted);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  border-left: 3px solid var(--accent);
}
.contact-call-fee-note strong {
  color: var(--ink);
}

.contact-form {
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.5rem;
  box-shadow: var(--shadow);
}
.contact-form label {
  display: block;
  font-weight: 600;
  font-size: 0.85rem;
  color: var(--ink);
  margin-bottom: 0.35rem;
  margin-top: 1rem;
}
.contact-form label:first-of-type { margin-top: 0; }
.contact-form input,
.contact-form select,
.contact-form textarea {
  width: 100%;
  padding: 0.65rem 0.75rem;
  font-family: var(--font);
  font-size: 1rem;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}
.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus {
  outline: 2px solid var(--accent);
  outline-offset: 1px;
  border-color: var(--accent);
}
.form-note {
  margin: 0.75rem 0 0;
  font-size: 0.9rem;
  min-height: 1.3em;
}

/* Footer */
.site-footer {
  background: var(--ink);
  color: #a8a29e;
  padding: 2rem 0 1.5rem;
  font-size: 0.9rem;
}
.footer-inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 1.5rem;
  align-items: start;
  margin-bottom: 1.5rem;
}
.footer-brand {
  flex: 1 1 16rem;
  min-width: 12rem;
}
.footer-aside {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 1rem;
  flex: 1 1 14rem;
}
.footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1rem;
  justify-content: flex-end;
}
.footer-nav a {
  color: #d6d3cd;
  text-decoration: none;
  font-size: 0.8125rem;
}
.footer-nav a:hover {
  color: #fff;
  text-decoration: underline;
}
@media (max-width: 640px) {
  .footer-aside {
    align-items: flex-start;
    width: 100%;
  }
  .footer-nav {
    justify-content: flex-start;
  }
}
.footer-logo { color: #fff; margin: 0 0 0.5rem; }
.footer-tag { max-width: 28rem; margin: 0; }
.footer-links {
  display: flex;
  gap: 1.25rem;
  flex-wrap: wrap;
}
.footer-links a { color: #d6d3d1; text-decoration: none; }
.footer-links a:hover { color: #fff; }
.footer-legal {
  text-align: center;
  font-size: 0.75rem;
  color: #78716c;
  margin: 0;
  padding-top: 1rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  max-width: 42rem;
  margin-inline: auto;
  line-height: 1.55;
}

/* Legal pages (privacy, terms) */
.legal-doc h2 {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  font-weight: 600;
  margin: 2rem 0 0.75rem;
  color: var(--ink);
}
.legal-doc h2:first-of-type {
  margin-top: 1.25rem;
}
.legal-doc ul {
  margin: 0.5rem 0 0;
  padding-left: 1.25rem;
  color: var(--ink-muted);
  line-height: 1.6;
}
.legal-doc li {
  margin-bottom: 0.35rem;
}
.legal-doc__updated {
  font-size: 0.875rem;
  color: var(--ink-muted);
  margin: 0 0 1.25rem;
}

/* SEO internal links block */
.seo-internal {
  padding-top: 2rem;
  padding-bottom: 2rem;
}
.seo-internal__h {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  margin: 0 0 0.75rem;
  color: var(--ink);
}
.seo-internal p {
  margin: 0 0 1rem;
  color: var(--ink-muted);
  line-height: 1.65;
  font-size: 0.9375rem;
}
.seo-internal__list {
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}
.seo-internal__list a {
  font-weight: 600;
  color: var(--accent);
  text-decoration: none;
}
.seo-internal__list a:hover {
  text-decoration: underline;
}

@media (prefers-reduced-motion: reduce) {
  .card-media img,
  .approach-figure__img,
  .hero-img {
    transition: none;
  }
  .card:hover .card-media img {
    transform: none;
  }
}
