@import url('https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;600&family=Manrope:wght@300;400;500;600&display=swap');

:root {
  /* Core palette drawn from the Curro Law logo */
  --ivory: #faf9f6;
  --stone: #edeae4;
  --surface: #e6ecef;
  --charcoal: #2b2e31;
  --charcoal-card: #393d42;
  --navy: #2f475e;
  --navy-dark: #23374a;
  --salmon: #c24139;
  --salmon-dark: #a9352e;
  --red: #c24139;
  --ink: #26292c;
  --muted: #525a61;
  --line: #d6d9dc;
  --line-slate: #c3ccd3;

  /* ClosingsIQ accents */
  --ciq-blue: #1c9fd4;
  --ciq-teal: #1d8f86;
  --ciq-green: #4c9a3b;
  --ciq-grad: linear-gradient(90deg, #3d5b9a, #1c9fd4 30%, #22a39a 62%, #5aad47);

  /* Typography & shape */
  --display: 'Manrope', 'DM Sans', Arial, sans-serif;
  --sans: 'DM Sans', Arial, sans-serif;
  --radius: 4px;
  --header-h: 84px;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 16px);
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--ivory);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

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

button {
  font: inherit;
  cursor: pointer;
}

button, a {
  -webkit-tap-highlight-color: transparent;
}

a:focus-visible,
button:focus-visible,
.carousel:focus-visible {
  outline: 2px solid var(--red);
  outline-offset: 4px;
}

::selection {
  background: #f4d9d7;
  color: var(--ink);
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

.skip {
  position: fixed;
  left: 16px;
  top: -100px;
  background: var(--navy);
  color: #fff;
  padding: 12px 16px;
  border-radius: var(--radius);
  font-size: 14px;
  z-index: 100;
}

.skip:focus {
  top: 16px;
}

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

h1, h2, h3 {
  font-family: var(--display);
  font-weight: 500;
}

h2 {
  font-size: clamp(32px, 3.6vw, 52px);
  line-height: 1.1;
  letter-spacing: -0.03em;
  margin-bottom: 22px;
}

h3 {
  font-size: 28px;
  line-height: 1.2;
  letter-spacing: -0.02em;
  margin-bottom: 12px;
}

p {
  line-height: 1.75;
}

.eyebrow {
  font-size: 11px;
  letter-spacing: 0.14em;
  font-weight: 600;
  line-height: 1.5;
  margin: 0 0 22px;
  text-transform: uppercase;
}

.tiny-line,
.brand-rule {
  width: 26px;
  height: 2px;
  background: var(--red);
  flex-shrink: 0;
}

/* ==========================================================================
   Sticky Header & Streamlined Navigation
   ========================================================================== */

.header {
  position: sticky;
  top: 0;
  z-index: 40;
  height: var(--header-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 0 5%;
  background: rgba(250, 249, 246, 0.96);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
  transition: box-shadow 0.2s ease, border-color 0.2s ease;
}

.header.is-scrolled {
  box-shadow: 0 8px 28px -16px rgba(24, 34, 46, 0.22);
  border-bottom-color: #c9cfd4;
}

.brand {
  display: block;
  flex-shrink: 0;
  line-height: 0;
}

.brand img {
  display: block;
  width: 118px;
  height: auto;
  max-width: 100%;
}

nav {
  display: flex;
  align-items: center;
  gap: 28px;
  font-size: 14px;
  font-weight: 500;
}

nav > a:not(.nav-contact) {
  color: var(--ink);
  padding: 6px 0;
  transition: color 0.16s ease;
}

nav > a:not(.nav-contact):hover {
  color: var(--navy);
  text-decoration: underline;
  text-underline-offset: 6px;
  text-decoration-thickness: 1.5px;
}

nav a[aria-current="page"] {
  color: var(--navy);
  text-decoration: underline;
  text-underline-offset: 6px;
  text-decoration-thickness: 2px;
  text-decoration-color: var(--red);
}

.nav-phone {
  color: var(--muted);
  font-size: 13.5px;
  padding-left: 16px;
  border-left: 1px solid var(--line);
  white-space: nowrap;
}

.nav-contact {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 11px 18px;
  border: 1px solid var(--salmon);
  border-radius: var(--radius);
  background: var(--salmon);
  color: #fff;
  font-size: 13.5px;
  font-weight: 600;
  white-space: nowrap;
  box-shadow: 0 6px 18px -10px rgba(194, 65, 57, 0.65);
  transition: background 0.18s ease, border-color 0.18s ease, transform 0.18s ease, box-shadow 0.18s ease;
}

.nav-contact span {
  font-size: 15px;
  line-height: 1;
}

.nav-contact:hover {
  background: var(--salmon-dark);
  border-color: var(--salmon-dark);
  transform: translateY(-1px);
  box-shadow: 0 10px 22px -12px rgba(169, 53, 46, 0.75);
}

.nav-contact:focus-visible {
  outline-color: var(--navy);
}

.menu-toggle {
  display: none;
}

/* ==========================================================================
   Unified Button System
   ========================================================================== */

.button-primary,
.button-ghost,
.contact-note.consultation-trigger,
.engage-button,
.form-next {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  padding: 14px 22px;
  border-radius: var(--radius);
  font-size: 14px;
  font-weight: 600;
  line-height: 1.2;
  transition: background 0.18s ease, border-color 0.18s ease, color 0.18s ease, transform 0.18s ease, box-shadow 0.18s ease;
}

.button-primary,
.contact-note.consultation-trigger {
  background: var(--salmon);
  border: 1px solid var(--salmon);
  color: #fff;
  box-shadow: 0 10px 24px -12px rgba(0, 0, 0, 0.45);
}

.button-primary:hover,
.contact-note.consultation-trigger:hover {
  background: var(--salmon-dark);
  border-color: var(--salmon-dark);
  transform: translateY(-1px);
}

.button-primary:focus-visible,
.contact-note.consultation-trigger:focus-visible {
  outline-color: #fff;
}

.button-ghost {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.34);
  color: #f3f1ec;
  font-weight: 500;
}

.button-ghost:hover {
  background: rgba(255, 255, 255, 0.11);
  border-color: rgba(255, 255, 255, 0.65);
}

.button-ghost:focus-visible {
  outline-color: #fff;
}

/* ==========================================================================
   Hero & Carousel
   ========================================================================== */

.hero {
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 620px;
  background: var(--charcoal);
  color: #fff;
}

.hero-copy {
  padding: 68px 6.5% 42px 9%;
  display: flex;
  align-items: flex-start;
  flex-direction: column;
}

.hero .eyebrow {
  display: flex;
  align-items: center;
  gap: 12px;
  color: #d6dbe0;
  margin-bottom: 24px;
}

.hero h1 {
  font-family: var(--display);
  font-weight: 500;
  font-size: clamp(38px, 3.85vw, 66px);
  line-height: 1.07;
  letter-spacing: -0.038em;
  margin-bottom: 24px;
}

.hero h1 em {
  font-style: normal;
  font-weight: 300;
  color: #dce1e6;
}

.hero-description {
  font-size: 15.5px;
  color: #d5dade;
  line-height: 1.75;
  max-width: 470px;
  margin-bottom: 30px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px;
}

.hero-footnote {
  margin-top: auto;
  padding-top: 44px;
  display: flex;
  align-items: center;
  gap: 14px;
  font-size: 12.5px;
  line-height: 1.65;
  color: #c8cfd6;
}

.footnote-link {
  color: #fff;
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-color: rgba(255, 255, 255, 0.55);
}

.footnote-link:hover {
  text-decoration-color: #fff;
}

.carousel {
  position: relative;
  min-height: 620px;
  background: #3d4043;
  overflow: hidden;
}

.slides,
.slide {
  position: absolute;
  inset: 0;
  margin: 0;
}

.slide {
  opacity: 0;
  transition: opacity 1.1s ease;
  pointer-events: none;
}

.slide.active {
  opacity: 1;
}

.slide::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(16, 20, 24, 0.1) 0%,
    rgba(16, 20, 24, 0.22) 46%,
    rgba(16, 20, 24, 0.8) 100%
  );
}

.slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.slide:nth-child(2) img {
  object-position: center 42%;
}

.slide figcaption {
  position: absolute;
  bottom: 94px;
  left: 8%;
  right: 8%;
  z-index: 1;
  color: #fff;
  text-shadow: 0 2px 16px rgba(0, 0, 0, 0.45);
}

.slide figcaption span {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.16em;
  display: block;
  margin-bottom: 10px;
  color: rgba(255, 255, 255, 0.9);
}

.slide figcaption strong {
  font-family: var(--display);
  font-size: clamp(28px, 2.5vw, 36px);
  font-weight: 500;
  letter-spacing: -0.025em;
}

.carousel-controls {
  position: absolute;
  bottom: 30px;
  left: 8%;
  right: 8%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  z-index: 2;
}

.dots {
  display: flex;
  gap: 10px;
}

.dot {
  width: 28px;
  height: 32px;
  padding: 0;
  border: 0;
  background: transparent;
  position: relative;
}

.dot::after {
  content: '';
  position: absolute;
  left: 0;
  top: 15px;
  width: 28px;
  height: 2.5px;
  border-radius: 2px;
  background: rgba(255, 255, 255, 0.48);
  transition: background 0.2s ease;
}

.dot.active::after {
  background: #fff;
}

.arrows {
  display: flex;
  align-items: center;
  gap: 8px;
}

.arrows button {
  border: 1px solid rgba(255, 255, 255, 0.55);
  border-radius: 50%;
  background: rgba(16, 20, 24, 0.28);
  color: #fff;
  width: 38px;
  height: 38px;
  font-size: 16px;
  display: grid;
  place-items: center;
  transition: background 0.16s ease, border-color 0.16s ease;
}

.arrows button:hover {
  background: rgba(255, 255, 255, 0.2);
  border-color: #fff;
}

.arrows .pause {
  border: 0;
  background: transparent;
  font-size: 12px;
  margin-right: 4px;
}

/* ==========================================================================
   Intro Strip & Shared Section Wrapper
   ========================================================================== */

.intro-strip {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 5%;
  background: var(--stone);
  border-bottom: 1px solid #d5d0c7;
  color: var(--navy);
  gap: 20px;
}

.intro-strip > span {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.13em;
}

.intro-strip a {
  font-size: 13.5px;
  font-weight: 500;
  display: inline-flex;
  align-items: center;
  gap: 14px;
  color: var(--navy);
}

.intro-strip a:hover {
  text-decoration: underline;
  text-underline-offset: 4px;
}

.section {
  padding: 88px 8%;
}

/* ==========================================================================
   01 — Our Practice
   ========================================================================== */

.practice {
  background: var(--charcoal);
  color: #f3f1ec;
}

.practice.section {
  padding-top: 76px;
  padding-bottom: 84px;
}

.practice-heading {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  column-gap: 36px;
  row-gap: 16px;
  align-items: center;
}

.practice-heading .eyebrow {
  grid-column: 1 / -1;
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 0;
  color: #cbd6e0;
}

.practice-heading .eyebrow::before {
  content: '';
  width: 28px;
  height: 2px;
  background: var(--red);
}

.practice-heading h2 {
  font-size: clamp(34px, 3.2vw, 52px);
  margin: 0;
  line-height: 1.12;
}

.practice-heading h2 span {
  color: #e4c6bc;
  display: inline-block;
}

.practice-intro {
  border-left: 2px solid var(--red);
  padding-left: 22px;
  margin: 0;
  font-size: 15.5px;
  line-height: 1.75;
  color: #cfd5da;
}

.services {
  margin: 40px 0 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
  align-items: stretch;
}

.service {
  display: grid;
  grid-template-columns: 1fr auto;
  grid-template-areas:
    "num icon"
    "body body";
  padding: 36px 38px 36px;
  background: var(--navy);
  border-top: 4px solid var(--red);
  border-radius: 0 0 var(--radius) var(--radius);
  color: #fff;
  box-shadow: 0 22px 44px -26px rgba(0, 0, 0, 0.65);
}

.service:last-child {
  background: var(--charcoal-card);
}

.service-number {
  grid-area: num;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.1em;
  color: #f4a49f;
}

.service svg {
  grid-area: icon;
  width: 52px;
  height: 52px;
  color: rgba(255, 255, 255, 0.85);
}

.service > div {
  grid-area: body;
  padding-top: 18px;
  display: flex;
  flex-direction: column;
}

.service h3 {
  font-size: 28px;
  margin-bottom: 12px;
  color: #fff;
}

.service p {
  color: #dce3ea;
  font-size: 15px;
  line-height: 1.7;
  margin-bottom: 22px;
}

.service-tags {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 26px;
}

.service-tags span {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.08em;
  border: 1px solid rgba(255, 255, 255, 0.32);
  border-radius: 3px;
  padding: 6px 11px;
  color: #f3f5f7;
}

.service-actions {
  margin-top: auto;
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.16);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.service-link {
  background: transparent;
  border: 0;
  padding: 4px 0;
  color: #fff;
  font-size: 14px;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.service-link span {
  color: #f4a49f;
}

.service-link:hover {
  text-decoration: underline;
  text-underline-offset: 5px;
}

.service-link-muted {
  color: #d0d8e0;
  font-size: 13.5px;
  font-weight: 500;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.service-link-muted:hover {
  color: #fff;
  text-decoration: underline;
  text-underline-offset: 5px;
}

.service-link:focus-visible,
.service-link-muted:focus-visible {
  outline-color: #fff;
}

/* ==========================================================================
   02 — The Curro Law Approach
   ========================================================================== */

.approach {
  background: var(--surface);
  display: grid;
  grid-template-columns: 1fr 1.15fr;
  gap: 10%;
  align-items: start;
}

.approach .eyebrow {
  color: var(--navy);
}

.approach-intro {
  font-size: 15.5px;
  max-width: 390px;
  color: var(--muted);
  margin-bottom: 0;
}

.principles article {
  display: grid;
  grid-template-columns: 32px 1fr;
  gap: 18px;
  padding: 24px 0;
  border-top: 1px solid var(--line-slate);
}

.principles article:last-child {
  border-bottom: 1px solid var(--line-slate);
}

.principles article > span {
  font-size: 12px;
  font-weight: 600;
  padding-top: 3px;
  color: var(--red);
}

.principles h3 {
  font-family: var(--sans);
  font-size: 17px;
  font-weight: 600;
  letter-spacing: 0;
  margin-bottom: 8px;
  color: var(--ink);
}

.principles p {
  font-size: 14.5px;
  color: #464e55;
  margin: 0;
}

/* ==========================================================================
   03 — ClosingsIQ
   ========================================================================== */

.ciq {
  background: var(--ivory);
  position: relative;
  border-top: 1px solid var(--line);
}

.ciq::before {
  content: '';
  position: absolute;
  top: -1px;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--ciq-grad);
}

.ciq .eyebrow {
  color: var(--navy);
}

.ciq-top {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: 8%;
  align-items: center;
}

.ciq-logo {
  display: block;
  width: min(290px, 100%);
  height: auto;
  margin: 0 0 32px;
}

.ciq-lead {
  font-size: 15.5px;
  line-height: 1.8;
  color: #434a50;
  max-width: 520px;
  margin: 0;
}

.ciq-portal {
  margin: 0;
  background: #fff;
  border: 1px solid #d5dde4;
  border-radius: 6px;
  overflow: hidden;
  box-shadow: 0 28px 54px -30px rgba(47, 71, 94, 0.28);
}

.portal-bar {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 13px 18px;
  border-bottom: 1px solid #e1e7ec;
  font-size: 12px;
  font-weight: 500;
  color: #4b5863;
  background: #f2f5f8;
}

.portal-dots {
  display: flex;
  gap: 6px;
}

.portal-dots i {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #c7d1da;
}

.portal-body {
  padding: 24px 26px 22px;
}

.portal-label {
  font-size: 11px;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  font-weight: 600;
  color: var(--muted);
  margin: 0 0 18px;
}

.portal-steps {
  list-style: none;
  margin: 0;
  padding: 0;
}

.portal-steps li {
  position: relative;
  padding: 0 0 18px 30px;
}

.portal-steps li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 4px;
  width: 13px;
  height: 13px;
  border-radius: 50%;
  border: 1.5px solid #bfc9d3;
  background: #fff;
  z-index: 1;
}

.portal-steps li::after {
  content: '';
  position: absolute;
  left: 6px;
  top: 17px;
  bottom: -2px;
  width: 1.5px;
  background: #dce2e8;
}

.portal-steps li:last-child {
  padding-bottom: 0;
}

.portal-steps li:last-child::after {
  display: none;
}

.portal-steps li.done::before {
  background: var(--ciq-teal);
  border-color: var(--ciq-teal);
}

.portal-steps li.done::after {
  background: var(--ciq-teal);
}

.portal-steps li.current::before {
  border-color: var(--ciq-blue);
  box-shadow: 0 0 0 4px rgba(28, 159, 212, 0.2);
  background: var(--ciq-blue);
}

.portal-steps strong {
  display: block;
  font-size: 14.5px;
  font-weight: 600;
  line-height: 1.4;
  color: var(--ink);
}

.portal-steps li:not(.done):not(.current) strong {
  color: #6b7680;
}

.portal-steps span {
  display: block;
  font-size: 13px;
  color: var(--muted);
  line-height: 1.55;
}

.portal-steps li.current span {
  color: #156d8c;
  font-weight: 500;
}

.portal-msg {
  margin: 22px 0 0;
  padding: 14px 16px;
  background: #f2f7f4;
  border-left: 3px solid var(--ciq-green);
  border-radius: 0 4px 4px 0;
  font-size: 13px;
  line-height: 1.65;
  color: #364047;
}

.portal-msg span {
  color: var(--ciq-green);
  font-size: 9px;
  margin-right: 6px;
  vertical-align: 2px;
}

.ciq-portal figcaption {
  font-size: 11px;
  color: #6b7680;
  padding: 0 26px 14px;
  text-align: right;
}

.ciq-pillars {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 3.5%;
  margin-top: 68px;
}

.ciq-pillars article {
  border-top: 1.5px solid #c5cdd4;
  padding-top: 20px;
}

.ciq-pillars span {
  font-size: 11.5px;
  color: var(--ciq-teal);
  font-weight: 600;
}

.ciq-pillars h3 {
  font-family: var(--sans);
  font-size: 16.5px;
  font-weight: 600;
  letter-spacing: 0;
  margin: 12px 0 8px;
  color: var(--ink);
}

.ciq-pillars p {
  font-size: 14px;
  line-height: 1.7;
  color: var(--muted);
  margin: 0;
}

.ciq-note {
  margin: 52px 0 0;
  padding-top: 22px;
  border-top: 1px solid var(--line);
  font-size: 13px;
  line-height: 1.75;
  color: var(--muted);
  max-width: 760px;
}

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

/* ==========================================================================
   04 — Locations
   ========================================================================== */

.locations {
  background: var(--stone);
  border-top: 1px solid #d9d4cb;
  padding-top: 84px;
  padding-bottom: 84px;
}

.locations .eyebrow {
  color: var(--navy);
}

.locations h2 {
  font-size: clamp(34px, 4vw, 58px);
}

.location-bottom {
  display: flex;
  justify-content: space-between;
  gap: 48px;
  align-items: flex-end;
  margin-top: 32px;
}

.location-bottom > p {
  font-size: 15.5px;
  color: var(--muted);
  margin-bottom: 0;
  max-width: 300px;
}

.states {
  display: grid;
  grid-template-columns: repeat(2, minmax(230px, 1fr));
  gap: 32px;
  flex: 1;
  max-width: 680px;
}

.state-item {
  border-bottom: 1.5px solid #beb8ae;
  padding-bottom: 18px;
}

.state-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 20px;
  margin-bottom: 8px;
}

.state-head span {
  font-family: var(--display);
  font-size: 28px;
  font-weight: 500;
  letter-spacing: -0.02em;
  color: var(--ink);
  white-space: nowrap;
}

.state-head small {
  font-family: var(--sans);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.08em;
  color: var(--navy);
}

.state-office {
  margin: 0;
  font-size: 13.5px;
  line-height: 1.55;
  color: var(--muted);
}

/* ==========================================================================
   Contact Banner
   ========================================================================== */

.contact {
  background: var(--navy);
  color: #fff;
  padding-top: 84px;
  padding-bottom: 80px;
  text-align: center;
}

.contact .eyebrow {
  color: #d0dce7;
  margin-bottom: 20px;
}

.contact h2 {
  font-size: clamp(34px, 4.2vw, 58px);
  color: #fff;
  margin-bottom: 16px;
}

.contact > p:not(.eyebrow):not(.engage-hint) {
  font-size: 14.5px;
  color: #d0dce7;
  margin-bottom: 28px;
}

.contact-actions {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
}

.engage-button {
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.36);
  background: rgba(255, 255, 255, 0.04);
  font-weight: 500;
}

.engage-button:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: #fff;
}

.engage-button span {
  color: #f4a49f;
}

.engage-button:focus-visible {
  outline-color: #fff;
}

.contact .engage-hint {
  font-size: 13px;
  color: #c2d0dd;
  margin: 20px auto 0;
  max-width: 480px;
  line-height: 1.65;
}

/* ==========================================================================
   Structured Footer
   ========================================================================== */

.site-footer {
  background: var(--ivory);
  border-top: 1px solid var(--line);
  padding: 56px 5% 32px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.35fr 0.85fr 1.3fr 0.9fr;
  gap: 36px;
  padding-bottom: 40px;
  border-bottom: 1px solid var(--line);
}

.footer-brand .brand img {
  width: 144px;
}

.footer-tagline {
  font-family: var(--display);
  font-size: 17px;
  font-weight: 400;
  letter-spacing: -0.015em;
  color: var(--muted);
  margin: 16px 0 0;
}

.footer-col h3 {
  font-family: var(--sans);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--red);
  margin: 0 0 14px;
}

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

.footer-col li {
  font-size: 14px;
  line-height: 1.55;
  color: var(--ink);
}

.footer-col a,
.footer-cta-link {
  color: var(--ink);
  transition: color 0.16s ease;
}

.footer-cta-link {
  background: transparent;
  border: 0;
  padding: 0;
  text-align: left;
  font-weight: 600;
  color: var(--navy);
}

.footer-col a:hover,
.footer-cta-link:hover {
  color: var(--navy);
  text-decoration: underline;
  text-underline-offset: 4px;
}

.footer-offices li {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.footer-offices strong {
  font-size: 13.5px;
  font-weight: 600;
  color: var(--ink);
}

.footer-offices span {
  font-size: 13px;
  color: var(--muted);
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 28px;
  padding-top: 22px;
}

.footer-disclaimer {
  margin: 0;
  font-size: 11.5px;
  line-height: 1.7;
  color: var(--muted);
  max-width: 860px;
}

.footer-copy {
  font-size: 12px;
  color: var(--muted);
  white-space: nowrap;
}

/* ==========================================================================
   Inner Pages Shared (Pricing & About)
   ========================================================================== */

.page-hero {
  background: var(--charcoal);
  color: #fff;
  padding: 76px 8% 68px;
}

.page-hero .eyebrow {
  display: flex;
  align-items: center;
  gap: 12px;
  color: #d6dbe0;
  margin-bottom: 22px;
}

.page-hero h1 {
  font-family: var(--display);
  font-weight: 500;
  font-size: clamp(36px, 4.4vw, 64px);
  line-height: 1.08;
  letter-spacing: -0.038em;
  margin-bottom: 22px;
}

.page-hero h1 em {
  font-style: normal;
  font-weight: 300;
  color: #dce1e6;
}

.page-hero .lead {
  font-size: 16px;
  line-height: 1.75;
  color: #d5dade;
  max-width: 580px;
  margin: 0;
}

/* Pricing Matrix */
.pricing {
  background: var(--ivory);
}

.pricing-head {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 8%;
  align-items: end;
  margin-bottom: 48px;
}

.pricing-head .eyebrow {
  color: var(--navy);
}

.pricing-head h2 {
  margin-bottom: 0;
}

.pricing-head > p {
  font-size: 15px;
  color: var(--muted);
  margin: 0 0 6px;
  max-width: 400px;
}

.price-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
}

.price-table th,
.price-table td {
  vertical-align: top;
}

.price-table thead th {
  font-family: var(--display);
  font-weight: 500;
  font-size: 26px;
  letter-spacing: -0.02em;
  padding: 0 0 18px;
  border-bottom: 1.5px solid var(--ink);
  width: 26%;
}

.price-table thead .col-label {
  font-family: var(--sans);
  font-size: 11px;
  letter-spacing: 0.14em;
  font-weight: 600;
  vertical-align: bottom;
  width: auto;
}

.price-table thead small {
  font-family: var(--sans);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.05em;
  color: var(--navy);
  margin-left: 8px;
}

.price-table .group th {
  font-size: 11px;
  letter-spacing: 0.14em;
  font-weight: 600;
  text-transform: uppercase;
  color: var(--red);
  padding: 36px 0 12px;
}

.price-table tbody tr:not(.group) th {
  font-size: 16.5px;
  font-weight: 600;
  padding: 22px 24px 22px 0;
  border-top: 1px solid var(--line);
}

.price-table tbody th span {
  display: block;
  font-size: 13.5px;
  font-weight: 400;
  color: var(--muted);
  margin-top: 4px;
  line-height: 1.55;
}

.price-table td {
  padding: 20px 0 22px;
  border-top: 1px solid var(--line);
}

.price-table tbody tr:last-child th,
.price-table tbody tr:last-child td {
  border-bottom: 1px solid var(--line);
}

.price {
  display: block;
  font-family: var(--display);
  font-size: 26px;
  font-weight: 500;
  letter-spacing: -0.02em;
  color: var(--navy);
  line-height: 1.2;
}

.price.tbd {
  color: #8f9ca8;
}

.price-table td small {
  display: block;
  font-size: 12px;
  color: var(--muted);
  margin-top: 4px;
}

.pricing-note {
  font-size: 13.5px;
  color: var(--muted);
  margin: 28px 0 0;
}

.pricing-ciq {
  position: relative;
  display: flex;
  align-items: center;
  gap: 28px;
  margin-top: 42px;
  padding: 28px 30px;
  background: var(--surface);
  border: 1px solid var(--line-slate);
  border-radius: 0 0 var(--radius) var(--radius);
}

.pricing-ciq::before {
  content: '';
  position: absolute;
  top: -1px;
  left: -1px;
  right: -1px;
  height: 3px;
  background: var(--ciq-grad);
}

.pricing-ciq img {
  width: 170px;
  height: auto;
  flex-shrink: 0;
}

.pricing-ciq p {
  font-size: 14.5px;
  line-height: 1.75;
  color: #3d454c;
  margin: 0;
}

.inline-link {
  color: var(--navy);
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 3px;
  white-space: nowrap;
}

/* Attorney Profile & Bio */
.profile-hero {
  display: grid;
  grid-template-columns: 1fr minmax(240px, 340px);
  gap: 8%;
  align-items: center;
  padding-top: 64px;
  padding-bottom: 68px;
}

.profile-badges {
  list-style: none;
  margin: 24px 0 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.profile-badges li {
  font-size: 12px;
  font-weight: 500;
  color: #e4e8ec;
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 3px;
  padding: 6px 12px;
  line-height: 1.3;
}

.profile-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px;
  margin-top: 28px;
}

.profile-photo {
  margin: 0;
  position: relative;
}

.profile-photo::before {
  content: '';
  position: absolute;
  inset: 16px -16px -16px 16px;
  border: 1.5px solid var(--salmon);
  border-radius: var(--radius);
  z-index: 0;
}

.profile-photo img {
  position: relative;
  z-index: 1;
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 853 / 1280;
  object-fit: cover;
  border-radius: var(--radius);
  box-shadow: 0 28px 56px -28px rgba(0, 0, 0, 0.72);
}

.bio {
  background: var(--ivory);
  display: grid;
  grid-template-columns: 1.35fr 0.85fr;
  gap: 8%;
  align-items: start;
}

.bio-body .eyebrow {
  color: var(--navy);
}

.bio-body h2 {
  margin-bottom: 28px;
}

.bio-body > p:not(.eyebrow) {
  font-size: 15.5px;
  line-height: 1.85;
  color: #3f464d;
  margin-bottom: 22px;
  max-width: 650px;
}

.bio-bridge {
  margin-top: 38px;
  padding: 30px 32px;
  background: var(--surface);
  border: 1px solid var(--line-slate);
  border-top: 3px solid var(--navy);
  border-radius: 0 0 var(--radius) var(--radius);
}

.bio-bridge .eyebrow {
  color: var(--red);
  margin-bottom: 10px;
}

.bio-bridge h3 {
  font-size: 24px;
  margin-bottom: 22px;
  color: var(--ink);
}

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

.bridge-grid strong {
  display: block;
  font-size: 14.5px;
  font-weight: 600;
  color: var(--navy);
  margin-bottom: 6px;
}

.bridge-grid p {
  font-size: 13.5px;
  line-height: 1.65;
  color: #464e55;
  margin: 0;
}

.bio-aside {
  border-top: 1.5px solid var(--ink);
  position: sticky;
  top: calc(var(--header-h) + 24px);
}

.fact {
  padding: 24px 0;
  border-bottom: 1px solid var(--line);
}

.fact h3 {
  font-family: var(--sans);
  font-size: 11px;
  letter-spacing: 0.14em;
  font-weight: 600;
  color: var(--red);
  margin: 0 0 12px;
}

.fact ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.fact li {
  font-size: 14.5px;
  line-height: 1.6;
  margin-bottom: 9px;
}

.fact li:last-child {
  margin-bottom: 0;
}

.fact li span {
  display: block;
  font-size: 13px;
  color: var(--muted);
}

.fact a {
  border-bottom: 1px solid #bfc9d2;
}

.fact a:hover {
  border-color: var(--navy);
  color: var(--navy);
}

.experience {
  background: var(--surface);
  padding-top: 84px;
  padding-bottom: 84px;
}

.experience .eyebrow {
  color: var(--navy);
}

.experience-head {
  display: grid;
  grid-template-columns: 1fr 1.15fr;
  gap: 7%;
  align-items: end;
  margin-bottom: 12px;
}

.experience-head h2 {
  margin-bottom: 0;
}

.experience-head h2 sup {
  font-size: 0.42em;
  color: var(--red);
  margin-left: 4px;
}

.experience-intro {
  font-size: 15px;
  line-height: 1.75;
  color: var(--muted);
  margin: 0 0 6px;
}

.matters {
  list-style: none;
  margin: 24px 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  column-gap: 7%;
  counter-reset: matter;
}

.matters li {
  counter-increment: matter;
  display: grid;
  grid-template-columns: 28px 1fr;
  gap: 18px;
  padding: 22px 0;
  border-top: 1px solid var(--line-slate);
  font-size: 14.5px;
  line-height: 1.7;
  color: #3c434a;
}

.matters li::before {
  content: counter(matter, decimal-leading-zero);
  font-size: 11.5px;
  font-weight: 600;
  padding-top: 3px;
  color: var(--red);
}

.footnote {
  font-size: 12px;
  line-height: 1.75;
  color: var(--muted);
  max-width: 680px;
  margin: 30px 0 0;
  padding-top: 18px;
  border-top: 1px solid var(--line-slate);
}

/* ==========================================================================
   Consultation Dialog (Two-Step Intake + Calendly)
   ========================================================================== */

.dialog-open {
  overflow: hidden;
}

.consultation-dialog {
  padding: 0;
  border: 0;
  border-radius: 6px;
  width: min(560px, calc(100% - 32px));
  max-height: calc(100dvh - 40px);
  margin: auto;
  background: var(--ivory);
  color: var(--ink);
  box-shadow: 0 28px 80px rgba(15, 22, 30, 0.35);
  overflow: auto;
}

.consultation-dialog.is-booking {
  width: min(740px, calc(100% - 32px));
}

.consultation-dialog::backdrop {
  background: rgba(20, 25, 31, 0.72);
  backdrop-filter: blur(5px);
}

.consultation-dialog [hidden] {
  display: none !important;
}

.consultation-shell {
  position: relative;
  padding: 34px 40px 30px;
  border-top: 4px solid var(--red);
}

.dialog-close {
  position: absolute;
  right: 16px;
  top: 14px;
  border: 0;
  border-radius: var(--radius);
  background: transparent;
  color: var(--muted);
  font-size: 26px;
  width: 38px;
  height: 38px;
  line-height: 1;
  display: grid;
  place-items: center;
}

.dialog-close:hover {
  color: var(--red);
  background: #eceae4;
}

.consultation-shell h2 {
  font-size: 28px;
  line-height: 1.2;
  letter-spacing: -0.025em;
  margin: 0 44px 24px 0;
  outline: none;
}

.form-field {
  margin-bottom: 16px;
}

.form-field > label,
.transaction-field legend {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 7px;
}

.form-field input {
  font-family: var(--sans);
  font-size: 15px;
  width: 100%;
  padding: 12px 14px;
  border: 1px solid #c9cfd5;
  border-radius: var(--radius);
  background: #fff;
  color: var(--ink);
  min-height: 46px;
}

.form-field input::placeholder {
  color: #7d868e;
}

.form-field input:focus-visible {
  outline: 2px solid var(--navy);
  outline-offset: 2px;
}

.transaction-field {
  padding: 0;
  border: 0;
  margin: 20px 0 24px;
  min-width: 0;
}

.transaction-options {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}

.transaction-options > label {
  position: relative;
  cursor: pointer;
}

.transaction-options input {
  position: absolute;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
  margin: 0;
  accent-color: var(--navy);
  width: 15px;
  height: 15px;
}

.transaction-options label > span {
  display: flex;
  align-items: center;
  padding: 13px 12px 13px 34px;
  background: #fff;
  border: 1px solid #c9cfd5;
  border-radius: var(--radius);
  font-size: 13.5px;
  font-weight: 500;
  line-height: 1.25;
  min-height: 46px;
  transition: background 0.15s ease, border-color 0.15s ease;
}

.transaction-options input:checked + span {
  background: var(--surface);
  border-color: var(--navy);
  color: var(--navy);
  font-weight: 600;
}

.transaction-options input:focus-visible + span {
  outline: 2px solid var(--red);
  outline-offset: 2px;
}

.form-next {
  width: 100%;
  justify-content: space-between;
  background: var(--navy);
  color: #fff;
  border: 1px solid var(--navy);
  padding: 15px 20px;
}

.form-next:hover {
  background: var(--navy-dark);
  border-color: var(--navy-dark);
}

.form-engage {
  font-size: 13px;
  color: var(--muted);
  text-align: center;
  margin: 16px 0 0;
}

.form-engage a {
  color: var(--navy);
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.form-engage a:hover {
  color: var(--red);
}

.calendly-embed {
  height: 640px;
  min-width: 280px;
  background: #fff;
  border: 1px solid #d5d9dd;
  border-radius: var(--radius);
  overflow: hidden;
}

.calendly-embed iframe {
  display: block;
  width: 100%;
  height: 100%;
  border: 0;
}

.booking-status {
  font-size: 13px;
  line-height: 1.65;
  color: var(--navy);
  font-weight: 500;
  text-align: center;
  margin: 14px 0 0;
}

.booking-status:empty {
  display: none;
}

.booking-fallback {
  font-size: 12.5px;
  color: var(--muted);
  text-align: center;
  margin: 12px 0 16px;
}

.booking-fallback a {
  color: var(--navy);
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.form-back {
  border: 0;
  background: transparent;
  color: var(--navy);
  font-size: 13.5px;
  font-weight: 600;
  padding: 8px 0;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.form-back:hover {
  text-decoration: underline;
  text-underline-offset: 4px;
}

/* ==========================================================================
   Responsive Breakpoints
   ========================================================================== */

@media (min-width: 1600px) {
  .hero,
  .carousel {
    min-height: 700px;
  }

  .hero-copy {
    padding-top: 92px;
  }
}

@media (max-width: 1180px) {
  .nav-phone {
    display: none;
  }

  nav {
    gap: 20px;
  }
}

@media (max-width: 1060px) {
  :root {
    --header-h: 78px;
  }

  .brand img {
    width: 120px;
  }

  nav {
    gap: 16px;
    font-size: 13.5px;
  }

  .nav-contact {
    padding: 10px 14px;
    font-size: 13px;
  }

  .hero,
  .carousel {
    min-height: 560px;
  }

  .hero-copy {
    padding: 52px 6% 36px;
  }

  .section {
    padding: 72px 6%;
  }

  .approach {
    gap: 7%;
  }

  .ciq-top {
    gap: 6%;
  }

  .ciq-pillars {
    grid-template-columns: 1fr 1fr;
    gap: 36px 7%;
    margin-top: 56px;
  }

  .bridge-grid {
    grid-template-columns: 1fr;
    gap: 18px;
  }

  .footer-grid {
    grid-template-columns: 1.2fr 0.8fr 1.2fr 0.9fr;
    gap: 24px;
  }
}

@media (max-width: 860px) {
  .header {
    padding: 0 5%;
  }

  .menu-toggle {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: #fff;
    padding: 9px 14px;
    font-size: 14px;
    font-weight: 500;
    color: var(--ink);
  }

  nav {
    display: none;
    position: absolute;
    top: var(--header-h);
    left: 0;
    right: 0;
    padding: 20px 6% 24px;
    background: var(--ivory);
    z-index: 39;
    border-bottom: 1px solid var(--line);
    box-shadow: 0 18px 34px -18px rgba(15, 22, 30, 0.22);
    align-items: stretch;
    gap: 4px;
  }

  nav.open {
    display: flex;
    flex-direction: column;
  }

  nav > a:not(.nav-contact) {
    padding: 11px 0;
    font-size: 16px;
    border-bottom: 1px solid #eceae4;
  }

  .nav-phone {
    display: block;
    border-left: 0;
    padding: 11px 0;
    font-size: 15px;
    font-weight: 600;
    color: var(--navy);
  }

  .nav-contact {
    margin-top: 12px;
    justify-content: space-between;
    padding: 14px 18px;
    font-size: 14.5px;
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 32px;
  }
}

@media (max-width: 760px) {
  :root {
    --header-h: 74px;
  }

  .brand img {
    width: 102px;
  }

  .hero {
    grid-template-columns: 1fr;
    min-height: 0;
  }

  .hero-copy {
    padding: 40px 6% 36px;
  }

  .hero h1 {
    font-size: clamp(32px, 8.6vw, 48px);
    margin-bottom: 18px;
  }

  .hero-description {
    font-size: 15px;
    margin-bottom: 24px;
  }

  .hero-actions {
    width: 100%;
    flex-direction: column;
    align-items: stretch;
  }

  .hero-actions > * {
    justify-content: space-between;
  }

  .hero-footnote {
    padding-top: 28px;
    font-size: 12.5px;
  }

  .carousel {
    min-height: 400px;
  }

  .slide figcaption {
    bottom: 84px;
    left: 6%;
    right: 6%;
  }

  .slide figcaption strong {
    font-size: 28px;
  }

  .carousel-controls {
    left: 6%;
    right: 6%;
    bottom: 22px;
  }

  .intro-strip {
    padding: 18px 6%;
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }

  .section {
    padding: 56px 6%;
  }

  .practice.section {
    padding-top: 52px;
    padding-bottom: 56px;
  }

  .practice-heading {
    grid-template-columns: 1fr;
    row-gap: 16px;
  }

  .practice-intro {
    padding-left: 16px;
    font-size: 14.5px;
  }

  .services {
    grid-template-columns: 1fr;
    gap: 20px;
    margin-top: 28px;
  }

  .service {
    padding: 28px 24px 28px;
  }

  .service svg {
    width: 44px;
    height: 44px;
  }

  .service h3 {
    font-size: 25px;
  }

  .approach {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .ciq-top {
    grid-template-columns: 1fr;
    gap: 36px;
  }

  .ciq-logo {
    width: 220px;
    margin-bottom: 24px;
  }

  .portal-body {
    padding: 20px 18px 18px;
  }

  .ciq-pillars {
    grid-template-columns: 1fr;
    gap: 24px;
    margin-top: 44px;
  }

  .ciq-note {
    margin-top: 36px;
  }

  .locations {
    padding-top: 56px;
    padding-bottom: 56px;
  }

  .location-bottom {
    flex-direction: column;
    align-items: stretch;
    gap: 28px;
    margin-top: 24px;
  }

  .states {
    grid-template-columns: 1fr;
    gap: 22px;
  }

  .contact-actions {
    flex-direction: column;
    align-items: stretch;
    max-width: 340px;
    margin: 0 auto;
  }

  .contact-actions > * {
    justify-content: space-between;
  }

  .page-hero {
    padding: 48px 6% 44px;
  }

  .profile-hero {
    grid-template-columns: 1fr;
    gap: 36px;
    padding-bottom: 52px;
  }

  .profile-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .profile-actions > * {
    justify-content: space-between;
  }

  .profile-photo {
    width: min(250px, 72%);
    order: -1;
  }

  .profile-photo::before {
    inset: 12px -12px -12px 12px;
  }

  .bridge-grid {
    grid-template-columns: 1fr;
    gap: 18px;
  }

  .bio-bridge {
    padding: 24px 22px;
  }

  .bio-aside {
    position: static;
  }

  .experience-head {
    grid-template-columns: 1fr;
    gap: 14px;
    margin-bottom: 16px;
  }

  .pricing-head {
    grid-template-columns: 1fr;
    gap: 14px;
    margin-bottom: 32px;
  }

  .price-table thead th {
    font-size: 17px;
    width: 28%;
    padding-bottom: 14px;
  }

  .price-table thead small {
    display: none;
  }

  .price-table tbody tr:not(.group) th {
    font-size: 14.5px;
    padding: 18px 12px 18px 0;
  }

  .price-table tbody th span {
    font-size: 12px;
  }

  .price {
    font-size: 20px;
  }

  .pricing-ciq {
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
    padding: 22px 20px;
  }

  .bio {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .experience {
    padding-top: 56px;
    padding-bottom: 56px;
  }

  .matters {
    grid-template-columns: 1fr;
    margin-top: 12px;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .footer-bottom {
    flex-direction: column;
    gap: 14px;
  }

  .consultation-dialog {
    width: calc(100% - 24px);
    max-height: calc(100dvh - 24px);
  }

  .consultation-dialog.is-booking {
    width: calc(100% - 16px);
  }

  .consultation-shell {
    padding: 28px 22px 24px;
  }

  .consultation-dialog.is-booking .consultation-shell {
    padding-left: 12px;
    padding-right: 12px;
  }

  .consultation-shell h2 {
    font-size: 24px;
    margin-bottom: 20px;
  }

  .form-field input {
    font-size: 16px;
  }

  .transaction-options {
    grid-template-columns: 1fr;
  }

  .calendly-embed {
    height: 600px;
  }
}

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

  .slide,
  .header,
  .nav-contact,
  .button-primary,
  .button-ghost,
  .contact-note.consultation-trigger,
  .engage-button,
  .form-next {
    transition: none;
  }
}
