* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--nav-height) + 16px);
}

body {
  font-family: var(--font-sans);
  color: var(--col-text);
  background:
    radial-gradient(circle at 8% -12%, rgba(74, 149, 221, 0.2) 0%, transparent 36%),
    radial-gradient(circle at 94% 6%, rgba(32, 95, 160, 0.15) 0%, transparent 32%),
    linear-gradient(180deg, #fbfdff 0%, var(--col-bg) 48%, #f3f8ff 100%);
  line-height: 1.68;
  -webkit-font-smoothing: antialiased;
}

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

  *,
  *::before,
  *::after {
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
  }
}

.skip-link {
  position: absolute;
  left: 0;
  top: -56px;
  z-index: 9999;
  background: var(--col-brand);
  color: var(--white);
  padding: 12px 18px;
  border-radius: 0 0 var(--radius) 0;
  text-decoration: none;
  font-weight: 600;
}

.skip-link:focus {
  top: 0;
}

:focus-visible {
  outline: 3px solid var(--col-brand);
  outline-offset: 2px;
  border-radius: 4px;
}

h1,
h2,
h3,
h4 {
  font-family: var(--font-serif);
  color: var(--col-heading);
  line-height: 1.18;
  font-weight: 700;
}

h1 {
  font-size: clamp(2.2rem, 4.4vw, 3.3rem);
  letter-spacing: -0.015em;
}

h2 {
  font-size: clamp(1.7rem, 3.5vw, 2.45rem);
  letter-spacing: -0.012em;
  margin-bottom: 1.25rem;
}

h3 {
  font-size: 1.12rem;
  letter-spacing: -0.004em;
  font-weight: 650;
  margin-bottom: 0.7rem;
}

p {
  color: var(--col-text-muted);
  margin-bottom: 1.25rem;
  max-width: 72ch;
}

a {
  color: var(--col-brand);
}

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

.section-padding {
  padding: var(--space-section) 0;
  position: relative;
  isolation: isolate;
}

.bg-light {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.88) 0%, rgba(236, 244, 255, 0.92) 100%),
    var(--col-bg-alt);
  border-top: 1px solid var(--col-border);
  border-bottom: 1px solid var(--col-border);
}

.bg-light::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: var(--texture-grid);
  background-size: 44px 44px;
  opacity: 0.08;
  pointer-events: none;
  z-index: -1;
}

.text-center {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.subtitle {
  display: block;
  margin-bottom: 0.95rem;
  color: var(--blue-700);
  text-transform: uppercase;
  letter-spacing: 1.4px;
  font-size: 0.74rem;
  font-weight: 650;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 2px solid var(--blue-900);
  background: var(--blue-900);
  color: var(--white);
  padding: 11px 24px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 600;
  letter-spacing: 0.2px;
  cursor: pointer;
  transition: background-color 0.2s ease, border-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

.btn:hover {
  background: var(--col-brand);
  border-color: var(--col-brand);
  transform: translateY(-1px);
  box-shadow: var(--shadow-soft);
}

.btn-outline {
  background: transparent;
  color: var(--blue-900);
}

.btn-outline:hover {
  color: var(--white);
  background: var(--blue-900);
  border-color: var(--blue-900);
}

.btn-sm {
  padding: 8px 14px;
  font-size: 0.84rem;
}

.btn:disabled {
  opacity: 0.45;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

header {
  position: sticky;
  top: 0;
  z-index: 1100;
  height: var(--nav-height);
  background: rgba(255, 255, 255, 0.96);
  border-bottom: 1px solid var(--col-border);
  backdrop-filter: blur(10px);
  display: flex;
  align-items: center;
}

.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  gap: 16px;
}

.brand-logo {
  font-family: var(--font-sans);
  font-size: 1.55rem;
  font-weight: 700;
  color: var(--blue-950);
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 9px;
}

.logo-diamond {
  width: 12px;
  height: 12px;
  transform: rotate(45deg);
  background: linear-gradient(135deg, var(--blue-700) 0%, var(--blue-500) 100%);
  box-shadow: 0 2px 6px rgba(32, 95, 160, 0.35);
}

.brand-logo span {
  color: var(--blue-700);
}

.nav-links {
  list-style: none;
  display: flex;
  align-items: center;
  gap: 18px;
}

.nav-item {
  position: relative;
}

.nav-link-row {
  display: flex;
  align-items: center;
  gap: 6px;
}

.nav-link {
  text-decoration: none;
  color: var(--blue-900);
  font-weight: 600;
  font-size: 0.9rem;
  display: block;
  padding: 10px 0;
}

.nav-link:hover,
.nav-link[aria-current="page"] {
  color: var(--col-brand);
}

.nav-submenu-toggle {
  border: none;
  background: transparent;
  color: var(--blue-900);
  cursor: pointer;
  padding: 6px 4px;
  border-radius: 6px;
  font-size: 0.85rem;
  line-height: 1;
}

.nav-submenu-toggle:hover,
.nav-submenu-toggle[aria-expanded="true"] {
  color: var(--col-brand);
}

.dropdown-menu {
  list-style: none;
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%) translateY(10px);
  opacity: 0;
  visibility: hidden;
  min-width: 240px;
  border: 1px solid var(--col-border);
  border-top: 3px solid var(--col-brand);
  border-radius: 6px;
  background: var(--white);
  box-shadow: var(--shadow-soft);
  transition: all 0.2s ease;
  padding: 8px 0;
}

.nav-item:hover .dropdown-menu,
.nav-item:focus-within .dropdown-menu,
.nav-item.is-open .dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
}

.dropdown-menu a {
  display: block;
  padding: 9px 16px;
  color: var(--blue-900);
  font-size: 0.85rem;
  text-decoration: none;
  border-bottom: 1px solid var(--col-border);
}

.dropdown-menu li:last-child a {
  border-bottom: none;
}

.dropdown-menu a:hover {
  background: var(--blue-050);
  color: var(--blue-800);
}

.menu-toggle {
  display: none;
  border: none;
  background: transparent;
  color: var(--blue-900);
  cursor: pointer;
}

.nav-phone {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  text-decoration: none;
  line-height: 1.2;
}

.phone-digits {
  color: var(--neutral-600);
  font-size: 0.83rem;
}

.phone-mnemonic {
  color: var(--blue-900);
  font-size: 1.05rem;
  font-weight: 700;
}

.nav-phone:hover .phone-mnemonic {
  color: var(--blue-700);
}

.hero {
  background:
    radial-gradient(ellipse at 84% 14%, rgba(45, 120, 196, 0.24) 0%, transparent 54%),
    radial-gradient(ellipse at 13% 88%, rgba(74, 149, 221, 0.2) 0%, transparent 46%),
    linear-gradient(168deg, #ffffff 0%, #f4f8ff 48%, var(--col-bg-deep) 100%);
  padding: 118px 0 92px;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  opacity: 0.038;
  background-image: var(--texture-grain);
  mix-blend-mode: multiply;
  pointer-events: none;
}

.hero::after {
  content: "";
  position: absolute;
  right: clamp(-140px, -8vw, -64px);
  top: clamp(40px, 9vw, 92px);
  width: clamp(220px, 30vw, 420px);
  aspect-ratio: 1 / 1;
  border-radius: 24% 76% 61% 39% / 36% 31% 69% 64%;
  background: linear-gradient(140deg, rgba(32, 95, 160, 0.18), rgba(74, 149, 221, 0.08));
  border: 1px solid rgba(18, 48, 90, 0.14);
  box-shadow: inset 0 0 50px rgba(255, 255, 255, 0.35);
  pointer-events: none;
}

.hero p {
  max-width: 66ch;
}

.fade-up {
  opacity: 1;
  transform: translateY(0);
  transition: opacity 0.5s ease, transform 0.5s ease;
}

body.js-animate .fade-up {
  transform: translateY(24px);
}

body.js-animate .fade-up.visible {
  transform: translateY(0);
}

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

.feature-card {
  background: linear-gradient(180deg, #ffffff 0%, #f7fbff 62%, #eef5ff 100%);
  border: 1px solid var(--col-border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-soft);
  padding: clamp(1.4rem, 2.2vw, 2.05rem);
  height: 100%;
  position: relative;
  overflow: hidden;
}

.feature-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 22px;
  right: 22px;
  height: 3px;
  border-radius: 0 0 4px 4px;
  background: linear-gradient(90deg, var(--blue-700) 0%, var(--blue-500) 100%);
  opacity: 0;
  transition: opacity 0.2s ease;
}

.feature-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-hover);
}

.feature-card:hover::before {
  opacity: 1;
}

.icon-minimal {
  width: 36px;
  height: 36px;
  stroke: var(--blue-700);
  stroke-width: 1.5;
  fill: none;
  margin-bottom: 1rem;
}

.img-frame-portrait {
  width: 100%;
  aspect-ratio: 3 / 4;
  background: linear-gradient(180deg, #f8fbff 0%, #edf4ff 100%);
  border-bottom: 1px solid var(--col-border);
  padding: 10px;
}

.img-frame-landscape {
  width: 100%;
  aspect-ratio: 4 / 3;
  background: linear-gradient(180deg, #f8fbff 0%, #edf4ff 100%);
  border-radius: var(--radius-lg);
  border: 1px solid var(--col-border);
  padding: 10px;
}

.img-natural {
  width: 100%;
  height: auto;
  object-fit: contain;
  object-position: center top;
  image-rendering: auto;
  display: block;
}

.img-frame-landscape.img-natural {
  object-position: center center;
}

.attorney-spotlight-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 20px;
  width: 100%;
}

.attorney-spotlight-card {
  border: 1px solid var(--col-border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: linear-gradient(180deg, #ffffff 0%, #f8fbff 100%);
  box-shadow: var(--shadow-soft);
}

.attorney-spotlight-card img {
  width: 100%;
  display: block;
}

.attorney-spotlight-card .content {
  padding: 14px 16px 16px;
}

.role-chip {
  display: inline-flex;
  font-size: 0.77rem;
  letter-spacing: 0.9px;
  text-transform: uppercase;
  font-weight: 700;
  color: var(--blue-800);
  background: var(--blue-100);
  border: 1px solid #bfd8f7;
  border-radius: 999px;
  padding: 5px 10px;
  margin-bottom: 0.8rem;
}

.attorney-card-grid {
  margin-top: 24px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 20px;
}

.attorney-card {
  border: 1px solid var(--col-border);
  border-radius: var(--radius-lg);
  background: #fff;
  box-shadow: var(--shadow-soft);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.attorney-card img {
  width: 100%;
  display: block;
}

.attorney-card .content {
  padding: 16px;
}

.bio-layout {
  display: grid;
  grid-template-columns: minmax(240px, 300px) 1fr;
  gap: 36px;
  align-items: start;
}

.bio-sidebar {
  position: sticky;
  top: calc(var(--nav-height) + 24px);
}

.bio-portrait {
  width: 100%;
  max-height: 430px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--col-border);
  box-shadow: var(--shadow-soft);
  object-fit: contain;
  background: linear-gradient(180deg, #f8fbff 0%, #edf4ff 100%);
  padding: 12px;
}

.photo-caption {
  margin-top: 8px;
  font-size: 0.8rem;
  color: var(--neutral-600);
}

.bio-content {
  background: linear-gradient(180deg, #ffffff 0%, #f8fbff 100%);
  border: 1px solid var(--col-border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-soft);
  padding: 24px;
}

.bio-content p {
  color: var(--neutral-800);
}

.culture-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 46px;
  align-items: center;
  margin-top: 42px;
}

.culture-split p {
  color: var(--neutral-900);
}

.culture-img {
  width: 100%;
  max-height: 460px;
  object-fit: contain;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-soft);
  background: linear-gradient(180deg, #f8fbff 0%, #edf4ff 100%);
  border: 1px solid var(--col-border);
  padding: 8px;
}

.perks-list {
  list-style: none;
  margin: 1.5rem 0;
  display: grid;
  gap: 12px;
}

.perks-list li {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--blue-950);
  font-weight: 600;
}

.perks-icon {
  width: 18px;
  height: 18px;
  stroke: var(--blue-700);
  flex-shrink: 0;
}

.mini-process {
  background: #fff;
  border: 1px solid var(--col-border);
  border-radius: var(--radius);
  padding: 14px;
  font-size: 0.92rem;
  color: var(--neutral-700);
}

.page-cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 8px;
}

.page-cta-row.center {
  justify-content: center;
}

.page-cta-row.top-tight {
  margin-top: 12px;
}

.page-cta-row.top-md {
  margin-top: 18px;
}

.page-cta-row.top-lg {
  margin-top: 20px;
}

.services-grid {
  margin-top: 30px;
}

.services-grid .feature-card[id] {
  scroll-margin-top: calc(var(--nav-height) + 24px);
}

.services-grid .feature-card h2 {
  margin-bottom: 0.8rem;
}

.services-grid .feature-card h3 {
  margin-top: 0.85rem;
  margin-bottom: 0.35rem;
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  color: var(--blue-800);
}

.services-grid .feature-card p {
  margin-bottom: 0.7rem;
}

.services-jump {
  margin-top: 8px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.services-chip {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  border: 1px solid #bfd8f7;
  background: #f3f8ff;
  color: var(--blue-900);
  text-decoration: none;
  font-size: 0.82rem;
  font-weight: 600;
  padding: 7px 12px;
}

.services-chip:hover {
  background: #e6f0ff;
  color: var(--blue-800);
}

.policy-wrap {
  max-width: 980px;
}

.policy-card {
  background: #fff;
  border: 1px solid var(--col-border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-soft);
  padding: clamp(1.2rem, 2.5vw, 2rem);
}

.policy-card > h2 {
  margin-top: 1.5rem;
  margin-bottom: 0.7rem;
  font-size: clamp(1.2rem, 2.4vw, 1.55rem);
}

.policy-card > h3 {
  margin-top: 1rem;
  margin-bottom: 0.45rem;
  font-size: 0.92rem;
  letter-spacing: 0.7px;
  text-transform: uppercase;
  color: var(--blue-800);
}

.policy-card > p,
.policy-card > ul {
  max-width: none;
  margin-bottom: 0.8rem;
  color: var(--neutral-800);
}

.policy-card > ul {
  padding-left: 1.2rem;
}

.policy-meta-line {
  margin-bottom: 0.35rem;
  color: var(--neutral-700);
}

.attorney-grid-offset {
  margin-top: 26px;
}

footer {
  background: var(--blue-950);
  color: #c0d4f0;
  padding: 62px 0 24px;
}

footer h3,
footer h4 {
  color: var(--white);
  margin-bottom: 1rem;
  font-family: var(--font-sans);
}

footer a {
  color: #dbeafe;
  text-decoration: none;
}

footer a:hover {
  color: #ffffff;
}

.footer-list a {
  text-decoration: underline;
  text-underline-offset: 2px;
  text-decoration-thickness: 1.5px;
}

.footer-list a:hover {
  text-decoration-thickness: 2px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 30px;
  margin-bottom: 42px;
}

.footer-brand {
  color: #ffffff;
  margin-bottom: 0.7rem;
}

.footer-brand .footer-brand-accent {
  color: #dbeafe;
}

.footer-tagline {
  color: #c7daf5;
  margin-bottom: 0;
}

.footer-license {
  font-weight: 600;
  color: #dbeafe;
}

.footer-social {
  margin-top: 14px;
}

.footer-social-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.9rem;
}

.footer-social-link svg {
  width: 16px;
  height: 16px;
  fill: currentColor;
}

.footer-list {
  list-style: none;
  line-height: 1.8;
  font-size: 0.9rem;
}

.footer-phone-cta {
  display: inline-block;
  border: 1px solid #365c91;
  background: rgba(45, 120, 196, 0.18);
  border-radius: 6px;
  padding: 10px 14px;
  margin-top: 8px;
}

.footer-note {
  border-top: 1px solid #264875;
  padding-top: 20px;
  text-align: center;
  font-size: 0.82rem;
  color: #9bb6dc;
}

.calc-inline-alert {
  margin-top: 10px;
  font-size: 0.86rem;
  background: var(--info-bg);
  border: 1px dashed var(--info-border);
  color: var(--neutral-700);
  border-radius: var(--radius);
  padding: 8px 12px;
}

.calc-status {
  margin-top: 10px;
  padding: 10px 12px;
  border-radius: var(--radius);
  border: 1px solid var(--info-border);
  background: var(--info-bg);
  color: var(--info-text);
}

.calc-status.warn {
  border-color: var(--warn-border);
  background: var(--warn-bg);
  color: var(--warn-text);
}

.calc-status.error {
  border-color: var(--error-border);
  background: var(--error-bg);
  color: var(--error-text);
}

.calc-status.ok {
  border-color: #86efac;
  background: var(--success-bg);
  color: var(--success-text);
}

.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;
}

@media (max-width: 1024px) {
  :root {
    --space-section: 68px;
  }

  .menu-toggle {
    display: block;
  }

  .nav-links {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    display: none;
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    background: #fff;
    border-bottom: 1px solid var(--col-border);
    box-shadow: var(--shadow-soft);
    padding: 12px 20px 20px;
  }

  .nav-links.active {
    display: flex;
  }

  .nav-item {
    width: 100%;
  }

  .nav-link-row {
    width: 100%;
    justify-content: space-between;
  }

  .nav-link {
    width: auto;
    padding: 11px 0;
  }

  .nav-submenu-toggle {
    padding: 10px 4px;
    font-size: 1rem;
  }

  .dropdown-menu {
    position: static;
    opacity: 1;
    visibility: visible;
    transform: none;
    width: 100%;
    border-top: 1px solid var(--col-border);
    box-shadow: none;
    margin: 6px 0 10px;
    display: none;
  }

  .nav-item:hover .dropdown-menu,
  .nav-item:focus-within .dropdown-menu,
  .nav-item.is-open .dropdown-menu {
    display: block;
  }

  .nav-phone {
    align-items: flex-start;
    margin-top: 8px;
  }

  .hero {
    padding: 102px 0 78px;
  }

  .culture-split,
  .bio-layout {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .bio-sidebar {
    position: static;
  }

  .culture-img {
    max-height: 360px;
    padding: 6px;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    text-align: center;
  }
}

@media (max-width: 768px) {
  .container {
    padding: 0 22px;
  }

  .hero {
    padding: 94px 0 70px;
  }

  .services-jump {
    justify-content: flex-start;
  }
}

@media (max-width: 640px) {
  .container {
    padding: 0 18px;
  }

  .hero {
    padding: 86px 0 58px;
  }

  h1 {
    font-size: clamp(1.95rem, 8.6vw, 2.35rem);
  }

  h2 {
    font-size: clamp(1.45rem, 6.8vw, 1.95rem);
  }

  .feature-card {
    padding: 1.2rem;
  }

  .services-chip {
    font-size: 0.79rem;
    padding: 6px 10px;
  }

  .page-cta-row {
    flex-direction: column;
    align-items: stretch;
  }

  .page-cta-row .btn {
    width: 100%;
  }

  .policy-card {
    padding: 1rem;
  }
}
