:root {
  --navy: #082a5e;
  --navy-deep: #04182f;
  --blue: #183f8c;
  --orange: #f28a24;
  --orange-dark: #c76010;
  --ink: #10243b;
  --muted: #5e6c7b;
  --paper: #f4f1eb;
  --soft-blue: #eaf0f8;
  --white: #ffffff;
  --line: rgba(16, 36, 59, 0.15);
  --light-line: rgba(255, 255, 255, 0.18);
  --content: 1240px;
  --header-height: 86px;
  --serif: Georgia, "Times New Roman", serif;
  --sans: Georgia, "Times New Roman", serif;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  padding-top: var(--header-height);
  background: var(--white);
  color: var(--ink);
  font-family: var(--sans);
  -webkit-font-smoothing: antialiased;
}

body.menu-open {
  overflow: hidden;
}

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

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

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

button {
  cursor: pointer;
}

h1,
h2,
h3,
p,
figure,
ol,
ul,
dl,
dd {
  margin: 0;
}

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

:focus-visible {
  outline: 3px solid var(--orange);
  outline-offset: 4px;
}

.skip-link {
  position: fixed;
  top: 10px;
  left: 12px;
  z-index: 2000;
  padding: 12px 18px;
  transform: translateY(-150%);
  background: var(--orange);
  color: var(--navy-deep);
  font-weight: 800;
}

.skip-link:focus {
  transform: translateY(0);
}

.eyebrow {
  display: flex;
  gap: 11px;
  align-items: center;
  color: var(--blue);
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.eyebrow > span {
  width: 34px;
  height: 2px;
  background: var(--orange);
}

.eyebrow.light {
  color: rgba(255, 255, 255, 0.78);
}

/* Header and navigation */
.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 1000;
  display: grid;
  grid-template-columns: minmax(235px, 1fr) auto auto auto;
  gap: clamp(18px, 2.1vw, 36px);
  align-items: center;
  height: var(--header-height);
  padding: 0 max(24px, calc((100vw - 1440px) / 2));
  border-bottom: 1px solid rgba(8, 42, 94, 0.11);
  background: rgba(255, 255, 255, 0.98);
  transition: box-shadow 180ms ease;
}

.site-header.is-scrolled {
  box-shadow: 0 10px 28px rgba(4, 24, 47, 0.09);
}

.brand,
.footer-brand {
  display: inline-flex;
  gap: 12px;
  align-items: center;
  width: max-content;
}

.brand img,
.footer-brand img {
  flex: 0 0 auto;
  object-fit: contain;
}

.brand span,
.footer-brand span {
  display: grid;
  gap: 3px;
}

.brand strong,
.footer-brand strong {
  color: var(--navy);
  font-family: var(--serif);
  font-size: 18px;
  letter-spacing: 0.04em;
}

.brand small,
.footer-brand small {
  color: var(--muted);
  font-size: 8px;
  font-weight: 850;
  letter-spacing: 0.11em;
}

.desktop-nav {
  display: flex;
  gap: clamp(18px, 2vw, 34px);
  align-items: center;
  height: 100%;
}

.desktop-nav > a,
.nav-dropdown > button {
  position: relative;
  display: inline-flex;
  gap: 7px;
  align-items: center;
  height: 100%;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--navy-deep);
  font-size: 13px;
  font-weight: 800;
  white-space: nowrap;
}

.desktop-nav > a::after,
.nav-dropdown > button::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  height: 3px;
  transform: scaleX(0);
  background: var(--orange);
  transition: transform 160ms ease;
}

.desktop-nav > a:hover::after,
.desktop-nav > a[aria-current="page"]::after,
.nav-dropdown > button:hover::after,
.nav-dropdown.is-open > button::after {
  transform: scaleX(1);
}

.nav-dropdown {
  position: relative;
  height: 100%;
}

.nav-dropdown > button > span {
  color: var(--orange-dark);
  font-size: 16px;
  transition: transform 150ms ease;
}

.nav-dropdown.is-open > button > span {
  transform: rotate(180deg);
}

.nav-dropdown-panel {
  position: absolute;
  top: calc(100% - 1px);
  left: -24px;
  display: grid;
  visibility: hidden;
  width: 330px;
  padding: 12px;
  transform: translateY(10px);
  border-top: 3px solid var(--orange);
  background: var(--white);
  box-shadow: 0 24px 60px rgba(4, 24, 47, 0.17);
  opacity: 0;
  transition: opacity 150ms ease, transform 150ms ease, visibility 150ms;
}

.nav-dropdown-panel a {
  padding: 14px 15px;
  border-bottom: 1px solid var(--line);
  color: var(--ink);
  font-size: 13px;
  font-weight: 750;
  line-height: 1.35;
}

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

.nav-dropdown-panel a:hover {
  background: var(--soft-blue);
  color: var(--blue);
}

.nav-dropdown.is-open .nav-dropdown-panel,
.nav-dropdown:focus-within .nav-dropdown-panel {
  visibility: visible;
  transform: translateY(0);
  opacity: 1;
}

.header-phone {
  display: inline-flex;
  gap: 8px;
  align-items: center;
  padding-left: 20px;
  border-left: 1px solid var(--line);
  color: var(--navy);
  font-size: 13px;
  white-space: nowrap;
}

.header-phone span {
  color: var(--orange-dark);
}

.language-switcher {
  display: flex;
  gap: 7px;
  align-items: center;
  color: #8490a0;
  font-size: 1.125rem;
  font-weight: 900;
}

.language-switcher a {
  color: #8490a0;
}

.language-switcher a:hover,
.language-switcher a[aria-current="page"] {
  color: var(--navy);
}

.mobile-toggle,
.mobile-panel {
  display: none;
}

/* Home hero */
.hero-clean {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(350px, 430px);
  gap: clamp(50px, 7vw, 110px);
  align-items: center;
  min-height: calc(100svh - var(--header-height));
  padding: clamp(70px, 10vh, 120px) max(28px, calc((100vw - var(--content)) / 2));
  overflow: hidden;
  background: var(--navy-deep);
}

.hero-clean-image,
.hero-clean-shade {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.hero-clean-image {
  object-fit: cover;
  object-position: center;
}

.hero-clean-shade {
  background: linear-gradient(90deg, rgba(4, 24, 47, 0.96) 0%, rgba(4, 24, 47, 0.83) 42%, rgba(4, 24, 47, 0.35) 100%);
}

.hero-clean-copy,
.hero-contact {
  position: relative;
  z-index: 1;
}

.hero-clean-copy {
  max-width: 720px;
  color: var(--white);
}

.hero-clean h1 {
  margin: 23px 0 28px;
  font-size: clamp(56px, 6vw, 92px);
  line-height: 0.96;
  letter-spacing: -0.045em;
}

.hero-clean h1 em {
  color: var(--orange);
  font-weight: 500;
}

.hero-clean-copy > p:last-child {
  max-width: 590px;
  color: rgba(255, 255, 255, 0.76);
  font-size: clamp(16px, 1.4vw, 19px);
  line-height: 1.7;
}

.hero-contact {
  padding: clamp(28px, 4vw, 44px);
  border-top: 5px solid var(--orange);
  background: rgba(255, 255, 255, 0.97);
  box-shadow: 0 28px 70px rgba(0, 0, 0, 0.28);
}

.hero-contact > p {
  color: var(--blue);
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.hero-contact h2 {
  margin: 10px 0 26px;
  color: var(--navy-deep);
  font-size: clamp(28px, 3vw, 38px);
  line-height: 1.08;
}

.hero-contact > a {
  display: grid;
  grid-template-columns: 30px 1fr auto;
  gap: 14px;
  align-items: center;
  padding: 18px 0;
  border-top: 1px solid var(--line);
}

.hero-contact > a > span {
  color: var(--orange-dark);
  font-family: var(--serif);
  font-size: 14px;
}

.hero-contact a div {
  display: grid;
  gap: 4px;
}

.hero-contact small {
  color: var(--muted);
  font-size: 9px;
  font-weight: 900;
  letter-spacing: 0.12em;
}

.hero-contact strong {
  color: var(--navy);
  font-size: 15px;
}

.hero-contact b {
  color: var(--orange-dark);
}

.hero-contact > a:hover strong {
  color: var(--orange-dark);
}

/* Home content */
.practice-intro {
  display: grid;
  grid-template-columns: 0.42fr 1fr;
  gap: clamp(40px, 8vw, 130px);
  padding: clamp(80px, 10vw, 135px) max(28px, calc((100vw - var(--content)) / 2)) clamp(56px, 7vw, 86px);
  background: var(--white);
}

.practice-intro h2,
.about-preview h2,
.bio-section h2,
.values-section h2,
.contact-directory h2 {
  font-size: clamp(42px, 5vw, 68px);
  line-height: 1.02;
  letter-spacing: -0.035em;
}

.practice-intro div > p:last-child {
  max-width: 660px;
  margin-top: 24px;
  color: var(--muted);
  font-size: 17px;
  line-height: 1.75;
}

.practice-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  max-width: var(--content);
  margin: 0 auto clamp(90px, 11vw, 150px);
  padding: 0 28px;
}

.practice-card {
  min-height: 650px;
}

.accidents-card {
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  padding: clamp(38px, 5vw, 68px);
  background: var(--navy);
  color: var(--white);
}

.practice-card-heading {
  display: flex;
  gap: 14px;
  align-items: center;
  color: var(--orange);
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.practice-card-heading span {
  font-family: var(--serif);
  font-size: 20px;
}

.practice-card h2 {
  margin: 18px 0 32px;
  font-size: clamp(48px, 5vw, 70px);
}

.practice-card-intro {
  margin-bottom: 28px;
}

.practice-card-message {
  font-size: clamp(22px, 2vw, 26px);
  line-height: 1.35;
}

.practice-card-description {
  margin-top: 16px;
  font-size: 18px;
  line-height: 1.65;
}

.practice-card ul {
  display: grid;
  gap: 0;
  padding: 0;
  list-style: none;
}

.practice-card li {
  padding: 17px 0;
  border-top: 1px solid var(--light-line);
  font-size: 15px;
  font-weight: 700;
  line-height: 1.35;
}

.practice-card li::before {
  content: "—";
  margin-right: 12px;
  color: var(--orange);
}

.inline-link,
.button-outline {
  display: inline-flex;
  gap: 14px;
  align-items: center;
  width: max-content;
  margin-top: 34px;
  padding-bottom: 7px;
  border-bottom: 2px solid var(--orange);
  font-size: 12px;
  font-weight: 900;
}

.immigration-card {
  display: grid;
  grid-template-columns: 1fr;
  background: var(--paper);
}

.immigration-card > img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.immigration-card-content {
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  padding: clamp(38px, 5vw, 68px);
}

.immigration-card li {
  border-color: var(--line);
}

.simple-process {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: clamp(50px, 8vw, 120px);
  padding: clamp(80px, 10vw, 130px) max(28px, calc((100vw - var(--content)) / 2));
  background: var(--navy-deep);
  color: var(--white);
}

.simple-process > div h2 {
  max-width: 560px;
  margin-top: 24px;
  font-size: clamp(40px, 4.7vw, 64px);
  line-height: 1.03;
}

.simple-process ol {
  display: grid;
  padding: 0;
  list-style: none;
}

.simple-process li {
  display: grid;
  grid-template-columns: 54px 1fr;
  gap: 22px;
  padding: 27px 0;
  border-top: 1px solid var(--light-line);
}

.simple-process li > span {
  color: var(--orange);
  font-family: var(--serif);
  font-size: 22px;
}

.simple-process h3 {
  margin-bottom: 8px;
  font-size: 25px;
}

.simple-process li p {
  color: rgba(255, 255, 255, 0.68);
  line-height: 1.65;
}

.founder-feature {
  position: relative;
  isolation: isolate;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(380px, 0.82fr);
  gap: clamp(42px, 6vw, 88px);
  min-height: 0;
  align-items: center;
  overflow: hidden;
  padding: clamp(72px, 8vw, 108px) max(28px, calc((100vw - var(--content)) / 2));
  background: var(--navy-deep);
  color: var(--white);
}

.founder-feature::after {
  display: none;
}

.founder-feature-image {
  position: relative;
  z-index: 0;
  grid-column: 2;
  grid-row: 1;
  width: min(100%, 590px);
  height: clamp(360px, 35vw, 480px);
  justify-self: end;
  border: 7px solid rgba(255, 255, 255, 0.12);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.28);
  object-fit: cover;
  object-position: 70% center;
}

.founder-feature-copy {
  grid-column: 1;
  grid-row: 1;
  width: auto;
  max-width: 610px;
  margin: 0;
  padding: 0;
}

.founder-feature-copy h2 {
  max-width: 600px;
  margin-top: 24px;
  font-size: clamp(44px, 5vw, 72px);
  line-height: 1.02;
}

.founder-feature-copy > p:not(.eyebrow) {
  max-width: 570px;
  margin-top: 28px;
  color: rgba(255, 255, 255, 0.84);
  font-size: clamp(18px, 1.45vw, 22px);
  line-height: 1.65;
}

.founder-feature-link {
  display: inline-block;
  margin-top: 32px;
  border-bottom: 3px solid var(--orange);
  color: var(--white);
  font-weight: 800;
  line-height: 1.8;
  text-decoration: none;
}

.founder-feature-link:hover,
.founder-feature-link:focus-visible {
  color: var(--orange);
}

@media (max-width: 900px) {
  .founder-feature {
    grid-template-columns: 1fr;
    gap: 38px;
    padding: 64px 28px 72px;
  }

  .founder-feature-copy {
    grid-column: 1;
    grid-row: 1;
    max-width: 700px;
  }

  .founder-feature-image {
    grid-column: 1;
    grid-row: 2;
    width: min(100%, 640px);
    height: auto;
    aspect-ratio: 8 / 5;
    justify-self: start;
  }
}

.about-preview {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  min-height: 630px;
  background: var(--white);
}

.about-preview figure {
  min-height: 560px;
}

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

.about-preview > div {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(55px, 8vw, 120px);
}

.about-preview h2 {
  margin: 25px 0;
}

.about-preview div > p:last-of-type {
  color: var(--muted);
  font-size: 17px;
  line-height: 1.75;
}

.button-outline {
  color: var(--navy);
}

.contact-band {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 50px;
  align-items: center;
  padding: clamp(60px, 8vw, 95px) max(28px, calc((100vw - var(--content)) / 2));
  background: var(--orange);
  color: var(--navy-deep);
}

.contact-band h2 {
  margin-top: 13px;
  font-size: clamp(38px, 4.4vw, 60px);
}

.contact-band .eyebrow.light {
  color: var(--navy);
}

.contact-band .eyebrow > span {
  background: var(--navy);
}

.contact-band > a {
  display: inline-flex;
  gap: 30px;
  align-items: center;
  justify-content: center;
  min-height: 58px;
  padding: 0 24px;
  background: var(--navy-deep);
  color: var(--white);
  font-size: 12px;
  font-weight: 900;
}

/* Persistent text access */
.text-us-rail {
  position: fixed;
  top: 53%;
  right: 0;
  z-index: 900;
  display: flex;
  gap: 9px;
  align-items: center;
  padding: 15px 13px;
  border-radius: 5px 0 0 5px;
  background: var(--orange);
  box-shadow: 0 12px 30px rgba(4, 24, 47, 0.24);
  color: var(--navy-deep);
  writing-mode: vertical-rl;
  transform: translateY(-50%) rotate(180deg);
  font-size: 13px;
}

.text-us-rail span {
  transform: rotate(90deg);
}

/* About page */
.about-hero {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(320px, 0.65fr);
  align-items: center;
  min-height: 710px;
  padding: 70px max(28px, calc((100vw - var(--content)) / 2));
  overflow: hidden;
  background: var(--navy-deep);
  color: var(--white);
}

.about-hero::after {
  content: "";
  position: absolute;
  right: max(0px, calc((100vw - var(--content)) / 2 - 80px));
  bottom: -180px;
  width: 560px;
  height: 560px;
  border: 110px solid var(--orange);
  border-radius: 50%;
  opacity: 0.92;
}

.about-hero-copy,
.about-hero figure,
.about-name {
  position: relative;
  z-index: 1;
}

.about-hero-copy {
  max-width: 730px;
  align-self: center;
}

.about-hero h1 {
  margin: 24px 0 28px;
  font-size: clamp(56px, 6.4vw, 92px);
  line-height: 0.96;
  letter-spacing: -0.045em;
}

.about-hero-copy > p:last-child {
  max-width: 610px;
  color: rgba(255, 255, 255, 0.72);
  font-size: 18px;
  line-height: 1.75;
}

.about-hero figure {
  align-self: end;
  height: 650px;
}

.about-hero figure img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: bottom center;
}

.about-hero figure.about-portrait-frame {
  width: min(100%, 440px);
  height: auto;
  aspect-ratio: 2 / 3;
  align-self: center;
  justify-self: end;
  overflow: hidden;
  border: 7px solid rgba(255, 255, 255, 0.12);
  background: #e8e9e7;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.3);
}

.about-hero figure.about-portrait-frame img {
  object-fit: cover;
  object-position: center center;
}

.about-name {
  position: absolute;
  right: max(28px, calc((100vw - var(--content)) / 2));
  bottom: 45px;
  display: grid;
  gap: 7px;
  padding: 18px 22px;
  background: var(--white);
  color: var(--navy);
}

.about-name span {
  color: var(--orange-dark);
  font-size: 9px;
  font-weight: 900;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.about-name strong {
  font-family: var(--serif);
  font-size: 25px;
  font-weight: 500;
  line-height: 1;
}

.bio-section,
.values-section {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: clamp(60px, 9vw, 140px);
  padding: clamp(85px, 11vw, 145px) max(28px, calc((100vw - var(--content)) / 2));
}

.bio-section h2,
.values-section h2 {
  margin-top: 24px;
}

.bio-copy,
.about-biography-copy {
  display: grid;
  gap: 24px;
  align-content: center;
}

.bio-copy p,
.about-biography-copy p {
  color: var(--muted);
  font-size: 17px;
  line-height: 1.8;
}

.about-biography-continuation {
  display: grid;
  grid-template-columns: minmax(0, 0.42fr) minmax(0, 1fr);
  gap: clamp(40px, 8vw, 130px);
  align-items: start;
  padding: clamp(64px, 7vw, 100px) max(28px, calc((100vw - var(--content)) / 2));
  border-bottom: 1px solid var(--line);
  background: var(--soft-blue);
}

.about-biography-heading {
  min-width: 0;
  max-width: 360px;
}

.about-biography-heading h2 {
  margin-top: 22px;
  color: var(--navy);
  font-size: clamp(36px, 3.4vw, 48px);
  line-height: 1.1;
  letter-spacing: -0.03em;
}

.about-biography-copy {
  min-width: 0;
}

.about-biography-copy p {
  font-size: clamp(1.25rem, 1.55vw, 1.375rem);
}

.bio-copy p:first-child::first-letter {
  float: left;
  margin: 4px 9px 0 0;
  color: var(--orange-dark);
  font-family: var(--serif);
  font-size: 64px;
  line-height: 0.78;
}

.service-history {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  min-height: 650px;
  background: var(--navy);
  color: var(--white);
}

.service-history figure {
  min-height: 560px;
}

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

.service-history > div {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(55px, 7vw, 100px);
}

.service-history h2 {
  margin: 22px 0 38px;
  font-size: clamp(40px, 4.5vw, 62px);
  line-height: 1.04;
}

.service-history dl {
  display: grid;
}

.service-history dl > div {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  padding: 17px 0;
  border-top: 1px solid var(--light-line);
}

.service-history dt {
  color: var(--orange);
  font-size: 20px;
  font-weight: 900;
  line-height: 1.45;
}

.service-history dd {
  color: rgba(255, 255, 255, 0.72);
  font-size: 20px;
  line-height: 1.5;
}

.values-section {
  background: var(--paper);
}

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

.value-grid article {
  min-height: 260px;
  padding: 30px;
  border-top: 4px solid var(--orange);
  background: var(--white);
}

.value-grid article > span {
  color: var(--orange-dark);
  font-family: var(--serif);
}

.value-grid h3 {
  margin: 40px 0 13px;
  font-size: 25px;
}

.value-grid p {
  color: var(--muted);
  font-size: 14px;
  line-height: 1.65;
}

.firm-advocacy {
  padding: clamp(56px, 7vw, 96px) 28px;
  background: var(--white);
  color: var(--ink);
}
.firm-advocacy-inner {
  max-width: var(--content);
  margin: 0 auto;
}
.firm-advocacy-heading {
  max-width: 820px;
  margin-bottom: 44px;
}
.firm-advocacy-heading h2 {
  margin: 22px 0;
  color: var(--navy);
  font-size: clamp(36px, 4vw, 54px);
  line-height: 1.1;
}
.firm-advocacy p:not(.eyebrow) {
  color: var(--muted);
  font-size: 20px;
  line-height: 1.65;
}
.firm-advocacy-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 36px;
}
.firm-advocacy-grid article {
  border-top: 2px solid var(--orange);
  padding-top: 22px;
}
.firm-advocacy-grid h3 {
  margin-bottom: 12px;
  color: var(--navy);
  font-size: 27px;
  line-height: 1.2;
}
@media (max-width: 1000px) {
  .firm-advocacy-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 600px) {
  .firm-advocacy { padding: 48px 22px; }
  .firm-advocacy-grid { grid-template-columns: 1fr; gap: 28px; }
}

/* Contact page */
.contact-hero {
  display: grid;
  grid-template-columns: 1fr minmax(340px, 0.7fr);
  gap: clamp(60px, 9vw, 140px);
  align-items: end;
  min-height: 540px;
  padding: clamp(75px, 9vw, 115px) max(28px, calc((100vw - var(--content)) / 2));
  background: var(--navy-deep);
  color: var(--white);
}

.contact-hero h1 {
  max-width: 780px;
  margin: 24px 0 25px;
  font-size: clamp(56px, 6.4vw, 88px);
  line-height: 0.96;
  letter-spacing: -0.04em;
}

.contact-hero > div:first-child > p:last-child {
  max-width: 610px;
  color: rgba(255, 255, 255, 0.72);
  font-size: 18px;
  line-height: 1.7;
}

.contact-hero-actions {
  display: grid;
  border-top: 4px solid var(--orange);
  background: var(--white);
}

.contact-hero-actions a {
  display: grid;
  gap: 5px;
  padding: 20px 25px;
  border-bottom: 1px solid var(--line);
  color: var(--navy);
}

.contact-hero-actions a:last-child {
  border-bottom: 0;
}

.contact-hero-actions span {
  color: var(--orange-dark);
  font-size: 9px;
  font-weight: 900;
  letter-spacing: 0.13em;
}

.contact-hero-actions strong {
  font-size: 15px;
}

.contact-directory {
  padding: clamp(85px, 11vw, 140px) max(28px, calc((100vw - var(--content)) / 2));
}

.contact-directory-heading {
  display: grid;
  grid-template-columns: 0.7fr 1.2fr 0.8fr;
  gap: clamp(30px, 6vw, 90px);
  align-items: end;
  margin-bottom: 60px;
}

.contact-directory-heading > p:last-child {
  color: var(--muted);
  line-height: 1.7;
}

.email-card-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid var(--line);
  border-left: 1px solid var(--line);
}

.email-card-grid article {
  min-width: 0;
  padding: clamp(28px, 3vw, 42px);
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.email-card-grid article > span {
  color: var(--orange-dark);
  font-family: var(--serif);
  font-size: 18px;
}

.email-card-grid h3 {
  margin: 44px 0 12px;
  font-size: 27px;
}

.email-card-grid article > a {
  display: inline-block;
  max-width: 100%;
  margin-bottom: 23px;
  color: var(--blue);
  font-size: clamp(14px, 1.25vw, 17px);
  font-weight: 900;
  overflow-wrap: anywhere;
  text-decoration: underline;
  text-underline-offset: 4px;
}

.email-card-grid p {
  color: var(--muted);
  font-size: 14px;
  line-height: 1.7;
}

.email-note {
  display: block;
  margin-top: 20px;
  padding-top: 18px;
  border-top: 2px solid var(--orange);
  color: var(--navy);
  font-size: 12px;
  line-height: 1.5;
}

.contact-form-section {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  align-items: center;
  gap: clamp(55px, 9vw, 130px);
  padding: clamp(85px, 10vw, 130px) max(28px, calc((100vw - var(--content)) / 2));
  scroll-margin-top: calc(var(--header-height) + 20px);
  background: var(--navy);
  color: var(--white);
}

.contact-form-copy h2 {
  margin: 24px 0;
  font-size: clamp(44px, 5vw, 68px);
  line-height: 1.02;
}

.contact-form-copy > p:last-of-type {
  color: rgba(255, 255, 255, 0.7);
  font-size: 16px;
  line-height: 1.7;
}

.contact-form-copy address {
  display: grid;
  gap: 12px;
  margin-top: 42px;
  padding-top: 28px;
  border-top: 1px solid var(--light-line);
  font-style: normal;
}

.contact-form-copy address a {
  color: rgba(255, 255, 255, 0.72);
  line-height: 1.55;
}

.contact-form {
  display: grid;
  gap: 22px;
  padding: clamp(30px, 4vw, 50px);
  background: var(--white);
  color: var(--ink);
}

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

.contact-form label:not(.consent):not(.honeypot-field) {
  display: grid;
  gap: 9px;
  color: var(--navy);
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.contact-form input,
.contact-form select,
.contact-form textarea {
  width: 100%;
  border: 1px solid #c9d0d8;
  border-radius: 0;
  background: #fbfcfd;
  color: var(--ink);
}

.contact-form input,
.contact-form select {
  min-height: 50px;
  padding: 0 14px;
}

.contact-form textarea {
  min-height: 145px;
  padding: 14px;
  resize: vertical;
}

.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus {
  border-color: var(--blue);
  outline: 2px solid rgba(24, 63, 140, 0.16);
}

.consent {
  display: grid;
  grid-template-columns: 20px 1fr;
  gap: 10px;
  align-items: start;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.55;
}

.consent input {
  min-height: 18px;
  width: 18px;
  margin: 1px 0 0;
}

.sms-consent-block {
  display: grid;
  gap: 6px;
}

.sms-consent-block > p,
.chatbot-sms-terms {
  margin: 0 0 0 30px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.5;
}

.sms-consent-block a,
.chatbot-sms-terms a {
  color: inherit;
  font-weight: 800;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.honeypot-field {
  position: absolute !important;
  left: -10000px !important;
  width: 1px !important;
  height: 1px !important;
  overflow: hidden !important;
}

.form-status {
  min-height: 20px;
  color: var(--orange-dark);
  font-size: 13px;
  font-weight: 800;
}

.contact-form button {
  display: inline-flex;
  gap: 28px;
  align-items: center;
  justify-content: center;
  min-height: 55px;
  padding: 0 24px;
  border: 0;
  background: var(--orange);
  color: var(--navy-deep);
  font-size: 11px;
  font-weight: 900;
}

.contact-form > small {
  color: var(--muted);
  font-size: 11px;
  line-height: 1.5;
  text-align: center;
}

/* Legal pages */
.legal-simple-hero {
  padding: clamp(80px, 10vw, 125px) max(28px, calc((100vw - 960px) / 2));
  background: var(--navy-deep);
  color: var(--white);
}

.legal-simple-hero h1 {
  margin: 22px 0;
  font-size: clamp(52px, 7vw, 84px);
  line-height: 0.98;
}

.legal-simple-hero > p:last-child {
  max-width: 760px;
  color: rgba(255, 255, 255, 0.72);
  font-size: 18px;
  line-height: 1.7;
}

.legal-content {
  max-width: 960px;
  margin: 0 auto;
  padding: clamp(75px, 9vw, 115px) 28px;
}

.legal-content section {
  padding: 0 0 48px;
  scroll-margin-top: calc(var(--header-height) + 25px);
}

.legal-content section + section {
  padding-top: 48px;
  border-top: 1px solid var(--line);
}

.legal-content h2 {
  margin-bottom: 20px;
  font-size: clamp(31px, 4vw, 44px);
}

.legal-content h3 {
  margin: 28px 0 10px;
  font-size: 24px;
}

.legal-content p,
.legal-content li {
  color: var(--muted);
  font-size: 16px;
  line-height: 1.78;
}

.legal-content ul {
  display: grid;
  gap: 8px;
  margin: 16px 0 0;
  padding-left: 22px;
}

.legal-content a {
  color: var(--blue);
  font-weight: 800;
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* Footer */
.site-footer {
  padding: 58px max(28px, calc((100vw - var(--content)) / 2)) 28px;
  background: #f8f9fb;
}

.footer-main {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 50px;
  align-items: start;
  padding-bottom: 42px;
}

.footer-main address {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 28px;
  justify-content: flex-end;
  font-style: normal;
}

.footer-main address a {
  color: var(--muted);
  font-size: 12px;
  font-weight: 750;
}

.footer-main address a:hover {
  color: var(--blue);
}

.footer-bottom {
  display: flex;
  gap: 30px;
  align-items: center;
  justify-content: space-between;
  padding-top: 25px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 11px;
}

.footer-bottom nav {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  align-items: center;
}

.footer-bottom a {
  font-weight: 800;
}

.footer-bottom a:hover {
  color: var(--blue);
}

@media (max-width: 1180px) {
  .site-header {
    grid-template-columns: minmax(210px, 1fr) auto auto;
  }

  .desktop-nav {
    gap: 18px;
  }

  .desktop-nav > a,
  .nav-dropdown > button {
    font-size: 12px;
  }

  .header-phone {
    display: none;
  }

  .immigration-card {
    grid-template-columns: 1fr;
  }

  .immigration-card > img {
    height: 250px;
  }

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

  .value-grid article {
    min-height: 0;
  }

  .value-grid h3 {
    margin-top: 24px;
  }
}

@media (max-width: 900px) {
  :root {
    --header-height: 74px;
  }

  .site-header {
    grid-template-columns: 1fr auto;
    gap: 16px;
    padding: 0 20px;
  }

  .brand img {
    width: 47px;
    height: 46px;
  }

  .brand strong {
    font-size: 16px;
  }

  .brand small {
    font-size: 7px;
  }

  .desktop-nav,
  .language-switcher,
  .header-phone,
  .header-cta {
    display: none;
  }

  .mobile-toggle {
    display: grid;
    gap: 5px;
    width: 42px;
    height: 42px;
    place-content: center;
    border: 0;
    background: transparent;
  }

  .mobile-toggle span {
    width: 23px;
    height: 2px;
    background: var(--navy);
    transition: transform 150ms ease, opacity 150ms ease;
  }

  .mobile-toggle[aria-expanded="true"] span:first-child {
    transform: translateY(7px) rotate(45deg);
  }

  .mobile-toggle[aria-expanded="true"] span:nth-child(2) {
    opacity: 0;
  }

  .mobile-toggle[aria-expanded="true"] span:last-child {
    transform: translateY(-7px) rotate(-45deg);
  }

  .mobile-panel {
    position: fixed;
    inset: var(--header-height) 0 0;
    z-index: 990;
    display: block;
    visibility: hidden;
    padding: 25px 22px 50px;
    transform: translateX(100%);
    overflow-y: auto;
    background: var(--white);
    opacity: 0;
    transition: transform 200ms ease, opacity 200ms ease, visibility 200ms;
  }

  .mobile-panel.is-open {
    visibility: visible;
    transform: translateX(0);
    opacity: 1;
  }

  .mobile-panel > a,
  .mobile-panel summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 18px 4px;
    border-bottom: 1px solid var(--line);
    color: var(--navy);
    font-size: 18px;
    font-weight: 800;
    list-style: none;
  }

  .mobile-panel summary::-webkit-details-marker {
    display: none;
  }

  .mobile-panel details > a {
    display: block;
    padding: 13px 15px;
    border-bottom: 1px solid rgba(16, 36, 59, 0.08);
    color: var(--muted);
    font-size: 14px;
    font-weight: 700;
  }

  .mobile-language {
    display: flex;
    gap: 14px;
    margin-top: 26px;
    color: var(--muted);
    font-size: 1.125rem;
    font-weight: 900;
  }

  .mobile-language a[aria-current="page"] {
    color: var(--orange-dark);
  }

  .hero-clean {
    grid-template-columns: 1fr;
    gap: 50px;
    min-height: auto;
    padding-top: 80px;
    padding-bottom: 70px;
  }

  .hero-clean-shade {
    background: linear-gradient(180deg, rgba(4, 24, 47, 0.92), rgba(4, 24, 47, 0.72));
  }

  .hero-clean-copy,
  .hero-contact {
    max-width: 650px;
  }

  .about-biography-continuation,
  .practice-intro,
  .simple-process,
  .bio-section,
  .values-section,
  .contact-form-section,
  .contact-hero {
    grid-template-columns: 1fr;
  }

  .about-biography-continuation {
    gap: 32px;
  }

  .about-biography-heading {
    max-width: 640px;
  }

  .practice-grid {
    grid-template-columns: 1fr;
    padding: 0 22px;
  }

  .practice-card {
    min-height: 0;
  }

  .accidents-card {
    padding: 55px 36px;
  }

  .immigration-card > img {
    height: min(62vw, 430px);
  }

  .simple-process {
    gap: 45px;
  }

  .about-preview,
  .service-history {
    grid-template-columns: 1fr;
  }

  .about-preview figure,
  .service-history figure {
    min-height: 430px;
  }

  .contact-band {
    grid-template-columns: 1fr;
  }

  .contact-band > a {
    width: max-content;
  }

  .about-hero {
    grid-template-columns: 1fr;
    min-height: 780px;
    padding-top: 65px;
    padding-bottom: 0;
  }

  .about-hero-copy {
    z-index: 2;
  }

  .about-hero figure {
    height: 440px;
  }

  .about-hero::after {
    right: -200px;
    bottom: -250px;
  }

  .about-name {
    right: 24px;
    bottom: 24px;
  }

  .contact-directory-heading {
    grid-template-columns: 1fr;
    align-items: start;
  }

  .email-card-grid {
    grid-template-columns: 1fr;
  }

  .contact-form-section {
    gap: 50px;
  }

  .footer-main {
    grid-template-columns: 1fr;
  }

  .footer-main address {
    display: grid;
    justify-content: start;
  }
}

@media (max-width: 600px) {
  .brand small {
    max-width: 190px;
    letter-spacing: 0.07em;
  }

  .hero-clean {
    padding: 64px 20px 55px;
  }

  .hero-clean h1,
  .about-hero h1,
  .contact-hero h1 {
    font-size: 49px;
  }

  .hero-contact {
    padding: 28px 24px;
  }

  .about-biography-continuation,
  .practice-intro,
  .simple-process,
  .bio-section,
  .values-section,
  .contact-directory,
  .contact-form-section,
  .contact-hero {
    padding-right: 20px;
    padding-left: 20px;
  }

  .practice-intro {
    gap: 30px;
  }

  .practice-intro h2,
  .about-preview h2,
  .bio-section h2,
  .values-section h2,
  .contact-directory h2 {
    font-size: 40px;
  }

  .practice-grid {
    padding: 0;
  }

  .immigration-card-content,
  .about-preview > div,
  .service-history > div {
    padding: 45px 25px;
  }

  .simple-process li {
    grid-template-columns: 40px 1fr;
  }

  .about-preview figure,
  .service-history figure {
    min-height: 330px;
  }

  .contact-band {
    padding-right: 20px;
    padding-left: 20px;
  }

  .text-us-rail {
    top: auto;
    right: 14px;
    bottom: 14px;
    gap: 8px;
    padding: 12px 16px;
    border-radius: 999px;
    writing-mode: horizontal-tb;
    transform: none;
  }

  .text-us-rail span {
    transform: none;
  }

  .about-hero {
    min-height: 730px;
    padding-right: 20px;
    padding-left: 20px;
  }

  .about-hero figure {
    height: 400px;
  }

  .about-name {
    right: 16px;
    bottom: 16px;
  }

  .service-history dl > div {
    grid-template-columns: 1fr;
    gap: 6px;
  }

  .form-row {
    grid-template-columns: 1fr;
  }

  .contact-form {
    padding: 28px 20px;
  }

  .footer-main {
    gap: 34px;
  }

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

/* Simple hero text links; no button or repeated phone CTA. */
.hero-slide-link {
  padding: 2px 0;
  border-bottom: 2px solid var(--orange);
  color: #fff;
  font-size: clamp(1.5rem, 2.1vw, 1.875rem);
  line-height: 1.3;
  font-weight: 850;
}

.hero-slide-link:hover {
  color: var(--orange);
}

/* Explicit visitor consent before AI processing. */
.chatbot-ai-consent {
  display: flex;
  flex: 0 0 auto;
  gap: 9px;
  align-items: flex-start;
  padding: 12px 20px;
  border-top: 1px solid #e0e5ec;
  background: #fff8ed;
  color: #334155;
  font-size: 11px;
  line-height: 1.4;
}

.chatbot-ai-consent input {
  width: 17px;
  height: 17px;
  flex: 0 0 17px;
  margin-top: 1px;
  accent-color: var(--navy);
}

.chatbot-quick-action:disabled,
.chatbot-send:disabled {
  cursor: not-allowed;
  opacity: 0.42;
}

@media (max-width: 600px) {
  .chatbot-ai-consent {
    padding: 10px 14px;
    font-size: 10px;
  }
}

/* López Firm conversational contact panel — August 27, 2026 */
.chatbot-panel {
  display: flex;
  width: min(500px, calc(100vw - 32px));
  height: min(760px, calc(100svh - 118px));
  max-height: none;
  flex-direction: column;
  border: 1px solid rgba(4, 24, 47, 0.12);
  border-radius: 22px;
  background: #f8fafc;
  box-shadow: 0 28px 80px rgba(4, 24, 47, 0.3);
}

.chatbot-header {
  flex: 0 0 auto;
  min-height: 128px;
  padding: 26px 28px;
  background: linear-gradient(135deg, #03162d 0%, #072f62 100%);
}

.chatbot-header div {
  gap: 5px;
}

.chatbot-header strong {
  font-size: clamp(29px, 3vw, 36px);
  line-height: 1;
}

.chatbot-header span {
  color: rgba(255, 255, 255, 0.82);
  font-size: 16px;
}

.chatbot-close {
  width: 56px;
  height: 56px;
  flex: 0 0 56px;
  border: 2px solid rgba(255, 255, 255, 0.45);
  font-size: 38px;
  font-weight: 300;
  line-height: 1;
}

.chatbot-messages {
  display: flex;
  min-height: 0;
  max-height: none;
  flex: 1 1 auto;
  flex-direction: column;
  gap: 14px;
  justify-content: flex-end;
  padding: 28px 28px 20px;
  background: linear-gradient(180deg, #fbfcfe 0%, #f6f8fb 100%);
}

.chatbot-message-row {
  display: flex;
  max-width: 94%;
  gap: 14px;
  align-items: flex-end;
}

.chatbot-message-row.user {
  align-self: flex-end;
}

.chatbot-avatar {
  display: grid;
  width: 44px;
  height: 44px;
  flex: 0 0 44px;
  place-items: center;
  margin-bottom: 25px;
  border-radius: 50%;
  background: linear-gradient(135deg, #03162d, #06458b);
  color: #fff;
  font-family: var(--serif);
  font-size: 20px;
  font-weight: 800;
}

.chatbot-message-content {
  display: grid;
  gap: 7px;
}

.chatbot-message {
  max-width: 100%;
  padding: 16px 18px;
  border-radius: 16px;
  box-shadow: 0 8px 24px rgba(4, 24, 47, 0.08);
  font-size: 16px;
  line-height: 1.45;
}

.chatbot-message-row.user .chatbot-message {
  border-radius: 16px 16px 4px 16px;
  background: var(--navy);
  color: #fff;
}

.chatbot-time {
  color: #667085;
  font-size: 12px;
}

.chatbot-message-row.user .chatbot-time {
  justify-self: end;
}

.chatbot-message-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.chatbot-message-link {
  padding: 8px 11px;
  border: 1px solid rgba(4, 24, 47, 0.16);
  border-radius: 999px;
  color: var(--navy);
  font-size: 12px;
  font-weight: 850;
}

.chatbot-service-options {
  display: flex;
  flex: 0 0 auto;
  flex-wrap: wrap;
  gap: 8px;
  padding: 10px 20px 14px;
  border-top: 1px solid #e4e8ee;
  background: #f8fafc;
}

.chatbot-service-options[hidden] {
  display: none;
}

.chatbot-service-option {
  min-height: 34px;
  padding: 7px 11px;
  border: 1px solid rgba(4, 24, 47, 0.18);
  border-radius: 999px;
  background: #fff;
  color: var(--navy);
  font-size: 12px;
  font-weight: 800;
  line-height: 1.2;
}

.chatbot-service-option:hover,
.chatbot-service-option:focus-visible {
  border-color: var(--orange);
  background: #fff7ee;
  color: var(--orange-dark);
}

.chatbot-service-option:disabled {
  cursor: wait;
  opacity: 0.58;
}

.chatbot-quick-actions {
  display: flex;
  flex: 0 0 auto;
  gap: 0;
  padding: 7px 20px 12px;
  overflow-x: auto;
  background: #f8fafc;
  scrollbar-width: thin;
}

.chatbot-quick-action {
  flex: 0 0 auto;
  padding: 7px 16px;
  border: 0;
  border-right: 1px solid #d0d5dd;
  background: transparent;
  color: var(--navy);
  font-size: 13px;
  font-weight: 850;
  white-space: nowrap;
}

.chatbot-quick-action:last-child {
  border-right: 0;
}

.chatbot-quick-action:hover,
.chatbot-quick-action:focus-visible {
  color: var(--orange);
}

.chatbot-composer {
  display: flex;
  min-height: 74px;
  flex: 0 0 auto;
  gap: 10px;
  align-items: center;
  margin: 0 20px 20px;
  padding: 7px 8px 7px 20px;
  border: 1px solid #d6dce5;
  border-radius: 999px;
  background: #fff;
}

.chatbot-composer[hidden] {
  display: none;
}

.chatbot-input {
  width: 100%;
  min-width: 0;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--ink);
  font: inherit;
  font-size: 16px;
}

.chatbot-input::placeholder {
  color: #7d8490;
}

.chatbot-send {
  display: grid;
  width: 56px;
  height: 56px;
  flex: 0 0 56px;
  place-items: center;
  border: 0;
  border-radius: 50%;
  background: linear-gradient(135deg, #03162d, #06458b);
  color: #fff;
}

.chatbot-send svg {
  width: 25px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.8;
}

.chatbot-send:disabled,
.chatbot-input:disabled {
  opacity: 0.58;
}

@media (max-width: 600px) {
  .chatbot.is-open {
    inset: 0;
    z-index: 1001;
  }

  .chatbot.is-open .chatbot-launcher {
    display: none;
  }

  .chatbot-panel {
    position: fixed;
    inset: 8px;
    width: auto;
    height: calc(100svh - 16px);
    border-radius: 20px;
  }

  .chatbot-header {
    min-height: 112px;
    padding: 22px 20px;
  }

  .chatbot-header strong {
    font-size: 29px;
  }

  .chatbot-header span {
    font-size: 14px;
  }

  .chatbot-close {
    width: 50px;
    height: 50px;
    flex-basis: 50px;
  }

  .chatbot-messages {
    padding: 20px 18px 14px;
  }

  .chatbot-message {
    font-size: 15px;
  }

  .chatbot-quick-actions {
    padding-right: 8px;
    padding-left: 8px;
  }

  .chatbot-composer {
    min-height: 64px;
    margin: 0 14px 14px;
    padding-left: 17px;
  }

  .chatbot-send {
    width: 48px;
    height: 48px;
    flex-basis: 48px;
  }
}

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

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

/* Header, hero form, and guided contact assistant — August 26, 2026 */
.site-header {
  grid-template-columns: auto minmax(0, 1fr) auto auto;
  gap: clamp(20px, 2.2vw, 38px);
  padding-right: max(28px, calc((100vw - 1440px) / 2));
  padding-left: max(28px, calc((100vw - 1440px) / 2));
  border-bottom-color: rgba(255, 255, 255, 0.12);
  background: var(--navy-deep);
}

.site-header.is-scrolled {
  box-shadow: 0 12px 34px rgba(0, 13, 34, 0.28);
}

.site-header .brand {
  min-width: 218px;
}

.site-header .brand img {
  width: 52px;
  height: 51px;
  padding: 4px;
  border-radius: 4px;
  background: var(--white);
}

.site-header .brand strong {
  color: var(--white);
  font-size: 20px;
}

.site-header .brand small {
  display: none;
}

.site-header .desktop-nav {
  justify-self: start;
  gap: clamp(19px, 1.8vw, 32px);
}

.site-header .desktop-nav > a,
.site-header .nav-dropdown > button {
  color: var(--white);
  font-size: 14px;
}

.site-header .nav-dropdown > button > span {
  color: var(--orange);
}

.site-header .header-phone {
  display: inline-flex;
  padding-left: 0;
  border-left: 0;
  color: var(--orange);
  font-family: var(--serif);
  font-size: clamp(24px, 2.2vw, 34px);
  font-weight: 800;
  letter-spacing: -0.02em;
}

.site-header .header-phone span {
  color: var(--orange);
  font-size: 18px;
}

.site-header .language-switcher,
.site-header .language-switcher a {
  color: rgba(255, 255, 255, 0.68);
}

.site-header .language-switcher a:hover,
.site-header .language-switcher a[aria-current="page"] {
  color: var(--white);
}

.hero-clean {
  grid-template-columns: minmax(0, 1fr) minmax(440px, 500px);
  gap: clamp(55px, 7vw, 115px);
  min-height: max(720px, calc(100svh - var(--header-height)));
  padding-top: clamp(60px, 8vh, 90px);
  padding-bottom: clamp(60px, 8vh, 90px);
  background: var(--navy-deep);
}

.hero-clean-image {
  opacity: 0.36;
  object-position: 64% center;
}

.hero-clean-shade {
  background: linear-gradient(90deg, rgba(4, 24, 47, 0.98) 0%, rgba(6, 35, 73, 0.93) 48%, rgba(6, 35, 73, 0.78) 100%);
}

.hero-clean-copy {
  max-width: 780px;
}

.hero-clean h1 {
  max-width: 760px;
  font-size: clamp(66px, 7.3vw, 112px);
  line-height: 0.9;
}

.hero-clean-copy > p:last-child {
  max-width: 640px;
  font-size: clamp(18px, 1.55vw, 22px);
}

.hero-intake-form {
  position: relative;
  z-index: 2;
  align-self: center;
  gap: 14px;
  padding: clamp(26px, 3vw, 38px);
  border: 1px solid rgba(255, 255, 255, 0.35);
  border-radius: 14px;
  background: rgba(7, 39, 79, 0.9);
  box-shadow: 0 28px 75px rgba(0, 9, 26, 0.34);
  backdrop-filter: blur(8px);
  color: var(--white);
}

.hero-form-heading > p:first-child {
  margin-bottom: 7px;
  color: var(--orange);
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.hero-form-heading h2 {
  color: var(--white);
  font-family: var(--sans);
  font-size: clamp(26px, 2.4vw, 34px);
  font-weight: 850;
  line-height: 1.12;
}

.hero-form-heading .hero-form-note {
  margin: 10px 0 0;
  max-width: 54ch;
  color: rgba(255, 255, 255, 0.76);
  font-size: 12px;
  line-height: 1.5;
}

.hero-intake-form label:not(.consent):not(.honeypot-field) {
  gap: 6px;
  color: rgba(255, 255, 255, 0.78);
  font-size: 9px;
}

.hero-intake-form input,
.hero-intake-form select {
  min-height: 47px;
  border: 0;
  border-radius: 5px;
  background: var(--white);
}

.hero-intake-form textarea {
  min-height: 90px;
  border: 0;
  border-radius: 5px;
  background: var(--white);
}

.hero-intake-form .consent {
  color: rgba(255, 255, 255, 0.72);
  font-size: 10px;
  line-height: 1.45;
}

.consent-copy {
  display: grid;
  gap: 10px;
}

.consent-copy a {
  color: inherit;
  font-weight: 850;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.hero-intake-form .form-status {
  min-height: 14px;
  color: var(--orange);
  font-size: 11px;
}

.hero-intake-form button {
  min-height: 54px;
  border-radius: 5px;
  background: var(--orange);
  font-size: 12px;
}

.hero-intake-form > small,
.hero-intake-form .form-disclaimer {
  color: rgba(255, 255, 255, 0.6);
  font-size: 9px;
  line-height: 1.45;
}

.form-disclaimer {
  color: var(--muted);
  font-size: 11px;
  line-height: 1.55;
}

.chatbot {
  position: fixed;
  right: 0;
  bottom: 25px;
  z-index: 1200;
}

.chatbot-launcher {
  display: inline-flex;
  gap: 10px;
  align-items: center;
  min-height: 62px;
  padding: 0 24px;
  border: 2px solid var(--white);
  border-right: 0;
  border-radius: 999px 0 0 999px;
  background: var(--orange);
  box-shadow: 0 16px 38px rgba(4, 24, 47, 0.32);
  color: var(--navy-deep);
  font-size: 17px;
  font-weight: 900;
}

.chatbot-launcher span {
  display: grid;
  width: 36px;
  height: 36px;
  flex: 0 0 36px;
  place-items: center;
  border-radius: 50%;
  background: var(--navy);
  box-shadow: 0 5px 12px rgba(4, 24, 47, 0.22);
  color: var(--white);
}

.chatbot-launcher-icon svg {
  display: block;
  overflow: visible;
  width: 21px;
  height: 21px;
  fill: none;
  stroke: #fff;
  stroke-width: 1.9;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.chatbot-launcher-icon svg path {
  fill: none;
  stroke: #fff;
}

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

.chatbot-panel {
  position: absolute;
  right: 18px;
  bottom: 76px;
  display: grid;
  visibility: hidden;
  width: min(390px, calc(100vw - 32px));
  max-height: min(650px, calc(100svh - 125px));
  overflow: hidden;
  transform: translateY(12px) scale(0.98);
  transform-origin: bottom right;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 12px;
  background: var(--white);
  box-shadow: 0 28px 70px rgba(4, 24, 47, 0.34);
  opacity: 0;
  transition: opacity 170ms ease, transform 170ms ease, visibility 170ms;
}

.chatbot.is-open .chatbot-panel {
  visibility: visible;
  transform: translateY(0) scale(1);
  opacity: 1;
}

.chatbot-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 19px 20px;
  background: var(--navy);
  color: var(--white);
}

.chatbot-header div {
  display: grid;
  gap: 3px;
}

.chatbot-header strong {
  font-family: var(--serif);
  font-size: 21px;
}

.chatbot-header span {
  color: rgba(255, 255, 255, 0.66);
  font-size: 10px;
}

.chatbot-close {
  width: 38px;
  height: 38px;
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 50%;
  background: transparent;
  color: var(--white);
  font-size: 23px;
}

.chatbot-messages {
  display: grid;
  gap: 10px;
  max-height: 230px;
  padding: 20px 20px 10px;
  overflow-y: auto;
  background: var(--paper);
}

.chatbot-message {
  width: fit-content;
  max-width: 90%;
  padding: 12px 14px;
  border-radius: 4px 13px 13px 13px;
  background: var(--white);
  color: var(--ink);
  font-size: 13px;
  line-height: 1.5;
}

.chatbot-message.user {
  justify-self: end;
  border-radius: 13px 4px 13px 13px;
  background: var(--navy);
  color: var(--white);
}

.chatbot-options {
  display: grid;
  gap: 9px;
  padding: 16px 20px 20px;
  overflow-y: auto;
  background: var(--white);
}

.chatbot-option {
  min-height: 44px;
  padding: 10px 13px;
  border: 1px solid var(--line);
  border-radius: 4px;
  background: var(--white);
  color: var(--navy);
  font-size: 12px;
  font-weight: 800;
  text-align: left;
}

.chatbot-option:hover,
.chatbot-option.primary {
  border-color: var(--orange);
  background: #fff4e6;
}

@media (max-width: 1180px) {
  .site-header {
    grid-template-columns: auto minmax(0, 1fr) auto;
    gap: 18px;
  }

  .site-header .language-switcher {
    display: none;
  }

  .site-header .brand {
    min-width: 196px;
  }

  .site-header .desktop-nav {
    gap: 16px;
  }

  .site-header .desktop-nav > a,
  .site-header .nav-dropdown > button {
    font-size: 12px;
  }

  .site-header .header-phone {
    font-size: 21px;
  }
}

@media (max-width: 900px) {
  .site-header {
    grid-template-columns: 1fr auto;
    padding-right: 20px;
    padding-left: 20px;
  }

  .site-header .desktop-nav,
  .site-header .language-switcher {
    display: none !important;
  }

  .site-header .mobile-toggle span {
    background: var(--white);
  }

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

  .hero-clean h1 {
    font-size: clamp(60px, 12vw, 88px);
  }

  .hero-intake-form {
    width: min(100%, 650px);
  }

  .chatbot {
    bottom: 18px;
  }

  .chatbot-launcher {
    gap: 9px;
    min-height: 58px;
    padding: 0 20px 0 14px;
    font-size: 16px;
  }

  .chatbot-launcher span {
    width: 34px;
    height: 34px;
    flex-basis: 34px;
  }

  .chatbot-launcher-icon svg {
    width: 20px;
    height: 20px;
  }
}

@media (max-width: 600px) {
  .site-header .brand {
    min-width: 0;
  }

  .site-header .brand img {
    width: 46px;
    height: 45px;
  }

  .site-header .brand strong {
    font-size: 17px;
  }

  .hero-clean h1 {
    font-size: 54px;
  }

  .hero-intake-form {
    padding: 24px 20px;
  }

  .chatbot {
    right: 0;
    bottom: 12px;
  }

  .chatbot-launcher {
    gap: 8px;
    min-height: 52px;
    max-width: calc(100vw - 12px);
    padding: 0 14px 0 10px;
    font-size: 14px;
  }

  .chatbot-launcher span {
    width: 30px;
    height: 30px;
    flex-basis: 30px;
  }

  .chatbot-launcher-icon svg {
    width: 18px;
    height: 18px;
  }

  .chatbot-panel {
    right: 14px;
    bottom: 68px;
    width: calc(100vw - 28px);
  }
}

.about-preview-clean {
  grid-template-columns: 1fr;
  min-height: 470px;
  text-align: center;
}

.about-preview-clean > div {
  align-items: center;
  width: 100%;
  max-width: 1240px;
  margin: 0 auto;
}

.about-preview-clean .eyebrow {
  justify-content: center;
}

.about-preview-clean .about-preview-bio {
  width: 100%;
  max-width: none;
  text-align: left;
}

.about-preview-clean .about-preview-layout {
  display: grid;
  grid-template-columns: minmax(300px, 0.8fr) minmax(0, 1.2fr);
  gap: clamp(38px, 5vw, 76px);
  align-items: start;
  width: 100%;
  margin-top: 18px;
}

.about-preview-clean .about-preview-portrait {
  min-height: 0;
  aspect-ratio: 4 / 5;
  overflow: hidden;
}

.about-preview-clean .about-preview-portrait img {
  object-position: 62% center;
}

@media (max-width: 900px) {
  .about-preview-clean .about-preview-layout {
    grid-template-columns: 1fr;
  }

  .about-preview-clean .about-preview-portrait {
    width: min(100%, 560px);
    aspect-ratio: 4 / 3;
    justify-self: center;
  }
}

/* Transparent stacked brand and animated navigation moon — August 27, 2026 */
.site-header .brand {
  flex-direction: column;
  gap: 2px;
  align-items: center;
  justify-content: center;
  min-width: 96px;
}

.site-header .brand img {
  width: 48px;
  height: 45px;
  padding: 0;
  border-radius: 0;
  background: transparent;
  filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.18));
}

.site-header .brand strong {
  color: var(--white);
  font-family: var(--serif);
  font-size: 13px;
  font-weight: 700;
  line-height: 1;
  letter-spacing: 0.05em;
  text-transform: none;
  white-space: nowrap;
}

.site-header .desktop-nav {
  justify-self: start;
}

.site-header .header-phone {
  justify-self: center;
}

.site-header .language-switcher {
  justify-self: end;
}

@media (min-width: 1181px) {
  .site-header {
    grid-template-columns: auto auto minmax(220px, 1fr) auto;
  }
}

@media (min-width: 901px) and (max-width: 1180px) {
  .site-header {
    grid-template-columns: auto auto minmax(170px, 1fr);
  }
}

@media (max-width: 900px) {
  .site-header .brand {
    min-width: 90px;
  }
}

/* Clean header without divider or active-menu underline */
.site-header,
.site-header.is-scrolled {
  border-bottom: 0;
  background: #04182f;
}

.site-header .desktop-nav > a::after {
  display: none;
}

/* Interactive bilingual hero messages — August 27, 2026 */
.hero-message-slider {
  width: min(100%, 650px);
  margin-top: clamp(26px, 4vh, 42px);
}

.hero-message-stage {
  display: grid;
  min-height: 96px;
  align-items: center;
  padding: 12px 0 12px 22px;
  border-left: 3px solid var(--orange);
}

.hero-message {
  color: rgba(255, 255, 255, 0.76);
  font-size: clamp(18px, 1.55vw, 22px);
  line-height: 1.55;
}

.hero-message[hidden] {
  display: none;
}

.hero-message.is-active {
  animation: hero-message-in 520ms ease both;
}

.hero-message strong {
  color: var(--white);
  font-weight: 850;
}

.hero-message-controls {
  display: flex;
  gap: 12px;
  align-items: center;
  margin-top: 10px;
  padding-left: 17px;
}

.hero-message-arrow {
  display: grid;
  width: 34px;
  height: 34px;
  padding: 0;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 50%;
  background: transparent;
  color: var(--white);
  font-size: 15px;
  transition: border-color 160ms ease, background 160ms ease, color 160ms ease;
}

.hero-message-arrow:hover {
  border-color: var(--orange);
  background: var(--orange);
  color: var(--navy-deep);
}

.hero-message-dots {
  display: flex;
  gap: 7px;
  align-items: center;
}

.hero-message-dots button {
  width: 8px;
  height: 8px;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.35);
  transition: width 180ms ease, background 180ms ease;
}

.hero-message-dots button.is-active {
  width: 25px;
  background: var(--orange);
}

@keyframes hero-message-in {
  from {
    transform: translateX(16px);
    opacity: 0;
  }

  to {
    transform: translateX(0);
    opacity: 1;
  }
}

@media (max-width: 600px) {
  .hero-message-slider {
    margin-top: 28px;
  }

  .hero-message-stage {
    min-height: 125px;
    padding-left: 16px;
  }

  .hero-message {
    font-size: 18px;
  }
}

/* Interactive site search — August 27, 2026 */
body.search-open {
  overflow: hidden;
}

.site-search-trigger {
  display: inline-grid;
  width: 40px;
  height: 40px;
  flex: 0 0 auto;
  padding: 0;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 50%;
  background: transparent;
  color: var(--white);
  transition: border-color 170ms ease, background 170ms ease, transform 170ms ease;
}

.site-search-trigger:hover,
.site-search-trigger:focus-visible {
  border-color: var(--orange);
  background: rgba(242, 138, 36, 0.12);
  transform: translateY(-2px);
}

.site-search-glyph {
  position: relative;
  display: block;
  width: 16px;
  height: 16px;
  border: 2px solid currentColor;
  border-radius: 50%;
}

.site-search-glyph::after {
  content: "";
  position: absolute;
  right: -6px;
  bottom: -3px;
  width: 7px;
  height: 2px;
  border-radius: 2px;
  background: currentColor;
  transform: rotate(45deg);
  transform-origin: left center;
}

.site-search-trigger .site-search-label {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
}

.site-search {
  position: fixed;
  inset: 0;
  z-index: 2200;
  display: grid;
  align-items: start;
  justify-items: center;
  padding: clamp(85px, 11vh, 130px) 20px 30px;
  visibility: hidden;
  opacity: 0;
  transition: visibility 180ms ease, opacity 180ms ease;
}

.site-search[hidden] {
  display: none;
}

.site-search.is-open {
  visibility: visible;
  opacity: 1;
}

.site-search-backdrop {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  padding: 0;
  border: 0;
  background: rgba(4, 24, 47, 0.78);
  backdrop-filter: blur(8px);
}

.site-search-dialog {
  position: relative;
  display: grid;
  width: min(720px, 100%);
  max-height: calc(100svh - 150px);
  overflow: hidden;
  transform: translateY(-14px) scale(0.985);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 15px;
  background: var(--white);
  box-shadow: 0 35px 90px rgba(0, 10, 30, 0.42);
  opacity: 0;
  transition: transform 180ms ease, opacity 180ms ease;
}

.site-search.is-open .site-search-dialog {
  transform: translateY(0) scale(1);
  opacity: 1;
}

.site-search-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 24px 27px;
  background: var(--navy);
  color: var(--white);
}

.site-search-header > div {
  display: grid;
  gap: 5px;
}

.site-search-kicker {
  color: var(--orange);
  font-size: 9px;
  font-weight: 900;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.site-search-header h2 {
  color: var(--white);
  font-size: clamp(27px, 3vw, 38px);
}

.site-search-close {
  display: grid;
  width: 42px;
  height: 42px;
  padding: 0;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 50%;
  background: transparent;
  color: var(--white);
  font-size: 25px;
}

.site-search-body {
  display: grid;
  min-height: 0;
  padding: 25px 27px 28px;
  overflow: hidden;
}

.site-search-input-wrap {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 14px;
  align-items: center;
  min-height: 58px;
  padding: 0 18px;
  border: 2px solid var(--orange);
  border-radius: 7px;
  color: var(--navy);
}

.site-search-input {
  width: 100%;
  min-width: 0;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--ink);
  font-size: 16px;
}

.site-search-input::placeholder {
  color: #788593;
}

.site-search-hint {
  margin-top: 9px;
  color: var(--muted);
  font-size: 11px;
}

.site-search-status {
  margin: 22px 0 10px;
  color: var(--navy);
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.site-search-results {
  display: grid;
  min-height: 0;
  max-height: min(390px, 46svh);
  overflow-y: auto;
  border-top: 1px solid var(--line);
}

.site-search-result {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 20px;
  align-items: center;
  padding: 17px 8px;
  border-bottom: 1px solid var(--line);
  transition: padding 160ms ease, background 160ms ease;
}

.site-search-result:hover,
.site-search-result:focus-visible {
  padding-right: 14px;
  padding-left: 14px;
  background: var(--soft-blue);
}

.site-search-result > span {
  display: grid;
  gap: 5px;
}

.site-search-result strong {
  color: var(--navy);
  font-family: var(--serif);
  font-size: 18px;
}

.site-search-result small {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.45;
}

.site-search-result b {
  color: var(--orange-dark);
}

.site-search-empty {
  padding: 30px 8px;
  color: var(--muted);
  font-size: 14px;
}

@media (max-width: 900px) {
  .mobile-panel > .site-search-trigger {
    display: flex;
    width: 100%;
    height: auto;
    min-height: 52px;
    gap: 15px;
    justify-content: flex-start;
    padding: 13px 15px;
    border: 0;
    border-bottom: 1px solid rgba(16, 36, 59, 0.08);
    border-radius: 0;
    color: var(--navy);
    font-size: 14px;
    font-weight: 800;
  }

  .mobile-panel .site-search-trigger .site-search-label {
    position: static;
    width: auto;
    height: auto;
    overflow: visible;
    clip: auto;
  }
}

@media (max-width: 600px) {
  .site-search {
    padding: 76px 12px 12px;
  }

  .site-search-dialog {
    max-height: calc(100svh - 88px);
    border-radius: 11px;
  }

  .site-search-header {
    padding: 20px;
  }

  .site-search-body {
    padding: 20px;
  }

  .site-search-input-wrap {
    min-height: 54px;
    padding: 0 15px;
  }

  .site-search-results {
    max-height: 48svh;
  }
}

/* Keep the reference-chat layout above earlier legacy chatbot declarations. */
.chatbot .chatbot-panel {
  display: flex;
  width: min(500px, calc(100vw - 32px));
  height: min(760px, calc(100svh - 118px));
  max-height: none;
  flex-direction: column;
  border-radius: 22px;
  background: #f8fafc;
}

.chatbot .chatbot-header {
  min-height: 128px;
  padding: 26px 28px;
  background: linear-gradient(135deg, #03162d 0%, #072f62 100%);
}

.chatbot .chatbot-header strong { font-size: clamp(29px, 3vw, 36px); }
.chatbot .chatbot-header span { color: rgba(255,255,255,.82); font-size: 16px; }
.chatbot .chatbot-close { width: 56px; height: 56px; border-width: 2px; font-size: 38px; }
.chatbot .chatbot-messages {
  display: flex;
  min-height: 0;
  max-height: none;
  flex: 1 1 auto;
  flex-direction: column;
  justify-content: flex-end;
  padding: 28px 28px 20px;
}
.chatbot .chatbot-message { max-width: 100%; padding: 16px 18px; border-radius: 16px; font-size: 16px; }

@media (max-width: 600px) {
  .chatbot .chatbot-panel {
    position: fixed;
    inset: 8px;
    width: auto;
    height: calc(100svh - 16px);
  }
  .chatbot .chatbot-header { min-height: 112px; padding: 22px 20px; }
  .chatbot .chatbot-header span { font-size: 14px; }
  .chatbot .chatbot-messages { padding: 20px 18px 14px; }
}

/* Raise the closed Text Us launcher for stronger visibility. */
.chatbot:not(.is-open) {
  bottom: 110px;
}

@media (max-width: 600px) {
  .chatbot:not(.is-open) {
    bottom: 90px;
  }
}

/* Conversion-focused accident hero slides — August 27, 2026 */
.hero-message-stage {
  min-height: 245px;
  align-items: start;
}

.hero-message {
  width: 100%;
}

.hero-message h2 {
  max-width: 620px;
  margin: 0 0 12px;
  color: #fff;
  font-family: var(--sans);
  font-size: clamp(25px, 2.4vw, 36px);
  line-height: 1.12;
  letter-spacing: -0.025em;
}

.hero-message > p {
  max-width: 620px;
  margin: 0;
}

.hero-slide-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 22px;
  align-items: center;
  margin-top: 22px;
}

.hero-slide-cta {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  padding: 0 20px;
  border-radius: 3px;
  background: var(--orange);
  color: var(--navy-deep);
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 0.045em;
  text-transform: uppercase;
}

.hero-slide-cta:hover {
  background: #fff;
  color: var(--navy-deep);
}

.hero-slide-phone {
  color: #fff;
  font-size: clamp(18px, 1.6vw, 23px);
  font-weight: 900;
}

.hero-slide-services {
  margin-top: 18px !important;
  color: rgba(255, 255, 255, 0.65);
  font-size: 12px;
  font-weight: 750;
  letter-spacing: 0.025em;
}

#hero-contact-form {
  scroll-margin-top: calc(var(--header-height) + 22px);
}

@media (max-width: 600px) {
  .hero-clean h1 {
    font-size: clamp(52px, 15vw, 68px);
  }

  .hero-message-stage {
    min-height: 300px;
  }

  .hero-message h2 {
    font-size: 25px;
  }

  .hero-slide-actions {
    align-items: flex-start;
    flex-direction: column;
  }

  .hero-slide-services {
    line-height: 1.55;
  }
}

/* September 2, 2026: refreshed brand, contact intake, and simplified numbering. */
.site-header .brand img,
.footer-brand img {
  box-sizing: border-box;
  padding: 4px;
  border-radius: 10px;
  background: #fff;
  object-fit: contain;
}

.hero-clean-image {
  opacity: 0.58;
}

.hero-clean-shade {
  background: linear-gradient(90deg, rgba(4, 24, 47, 0.96) 0%, rgba(6, 35, 73, 0.82) 48%, rgba(6, 35, 73, 0.48) 100%);
}

.hero-office-address {
  display: inline-flex;
  gap: 10px;
  align-items: center;
  margin-top: 20px;
  color: rgba(255, 255, 255, 0.88);
  font-size: 14px;
  font-weight: 750;
  line-height: 1.45;
}

.hero-office-address span {
  color: var(--orange);
  font-size: 9px;
}

.hero-office-address:hover {
  color: var(--orange);
}

.simple-process li {
  grid-template-columns: 1fr;
}

.chatbot .chatbot-panel {
  height: min(820px, calc(100svh - 118px));
}

.chatbot-lead-form {
  display: grid;
  grid-template-columns: 1fr 1fr;
  flex: 0 0 auto;
  gap: 10px;
  padding: 16px 20px;
  border-top: 1px solid #e0e5ec;
  background: #fff;
}

.chatbot-lead-form[hidden] {
  display: none;
}

.chatbot-lead-heading,
.chatbot-lead-field:nth-of-type(3),
.chatbot-lead-consent,
.chatbot-lead-status,
.chatbot-lead-submit {
  grid-column: 1 / -1;
}

.chatbot-lead-heading {
  display: grid;
  gap: 4px;
}

.chatbot-lead-heading strong {
  color: var(--navy-deep);
  font-size: 15px;
}

.chatbot-lead-heading p {
  color: #536071;
  font-size: 11px;
  line-height: 1.4;
}

.chatbot-lead-field {
  display: grid;
  gap: 4px;
}

.chatbot-lead-field > span {
  color: #334155;
  font-size: 10px;
  font-weight: 850;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.chatbot-lead-field input,
.chatbot-lead-field select {
  width: 100%;
  min-width: 0;
  height: 40px;
  padding: 0 11px;
  border: 1px solid #cbd5e1;
  border-radius: 7px;
  background: #fff;
  color: var(--ink);
  font: inherit;
  font-size: 13px;
}

.chatbot-lead-consent {
  display: flex;
  gap: 8px;
  align-items: flex-start;
  color: #536071;
  font-size: 10px;
  line-height: 1.35;
}

.chatbot-lead-consent input {
  width: 16px;
  height: 16px;
  flex: 0 0 16px;
  margin-top: 1px;
  accent-color: var(--navy);
}

.chatbot-lead-status {
  min-height: 0;
  color: #a12b1f;
  font-size: 11px;
  line-height: 1.35;
}

.chatbot-lead-status:empty {
  display: none;
}

.chatbot-lead-submit {
  min-height: 42px;
  border: 0;
  border-radius: 7px;
  background: var(--orange);
  color: var(--navy-deep);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.chatbot-lead-submit:disabled {
  cursor: wait;
  opacity: 0.65;
}

@media (max-width: 600px) {
  .founder-feature {
    display: grid;
    gap: 30px;
    padding: 48px 24px 58px;
  }

  .founder-feature-image {
    grid-column: 1;
    grid-row: 2;
    width: 100%;
    height: auto;
    aspect-ratio: 4 / 3;
    border-width: 5px;
    object-fit: cover;
    object-position: 72% center;
  }

  .founder-feature-copy {
    grid-column: 1;
    grid-row: 1;
    width: 100%;
    margin: 0;
    padding: 0;
    background: transparent;
  }

  .founder-feature-copy h2 {
    font-size: clamp(38px, 11vw, 52px);
  }

  .founder-feature-copy > p:not(.eyebrow) {
    font-size: 17px;
  }

  .hero-clean-image {
    opacity: 0.5;
  }

  .hero-clean-shade {
    background: linear-gradient(180deg, rgba(4, 24, 47, 0.86), rgba(4, 24, 47, 0.62));
  }

  .chatbot-lead-form {
    grid-template-columns: 1fr;
    padding: 14px;
  }

  .chatbot-lead-heading,
  .chatbot-lead-field:nth-of-type(3),
  .chatbot-lead-consent,
  .chatbot-lead-status,
  .chatbot-lead-submit {
    grid-column: auto;
  }
}

@media (max-width: 900px) {
  .about-hero figure.about-portrait-frame {
    width: min(100%, 430px);
    height: auto;
    justify-self: center;
    margin-top: 30px;
  }
}

@media (max-width: 600px) {
  .about-hero figure.about-portrait-frame {
    width: min(100%, 360px);
    height: auto;
    margin-top: 24px;
    border-width: 5px;
  }
}

body.captcha-open {
  overflow: hidden;
}

.captcha-overlay {
  position: fixed;
  inset: 0;
  z-index: 10000;
  display: grid;
  place-items: center;
  padding: 20px;
  background: rgba(3, 18, 38, 0.78);
}

.captcha-dialog {
  width: min(100%, 470px);
  padding: clamp(24px, 5vw, 36px);
  border: 1px solid rgba(8, 42, 94, 0.15);
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.32);
  color: #14243b;
}

.captcha-dialog h2 {
  margin: 0 0 8px;
  color: #082a5e;
  font-size: clamp(24px, 5vw, 30px);
  line-height: 1.15;
}

.captcha-dialog > p {
  margin: 0 0 20px;
  line-height: 1.55;
}

.captcha-image-row {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 20px;
}

.captcha-image {
  width: 220px;
  max-width: 100%;
  height: 72px;
  border: 1px solid #c9d2df;
  border-radius: 8px;
  background: #f6f8fb;
}

.captcha-refresh,
.captcha-cancel,
.captcha-verify {
  min-height: 44px;
  border-radius: 7px;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}

.captcha-refresh {
  border: 1px solid #b7c3d1;
  padding: 9px 12px;
  background: #fff;
  color: #082a5e;
  font-size: 13px;
}

.captcha-form label {
  display: grid;
  gap: 8px;
  color: #14243b;
  font-weight: 700;
}

.captcha-form input {
  width: 100%;
  min-height: 52px;
  border: 1px solid #aebaca;
  border-radius: 7px;
  padding: 10px 14px;
  background: #fff;
  color: #082a5e;
  font: inherit;
  font-size: 19px;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
}

.captcha-form input:focus,
.captcha-refresh:focus-visible,
.captcha-cancel:focus-visible,
.captcha-verify:focus-visible {
  outline: 3px solid rgba(205, 109, 47, 0.4);
  outline-offset: 2px;
}

.captcha-status {
  min-height: 24px;
  margin: 8px 0 4px;
  color: #9b2c2c;
  font-size: 14px;
  line-height: 1.4;
}

.captcha-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 12px;
}

.captcha-cancel,
.captcha-verify {
  border: 1px solid #082a5e;
  padding: 10px 18px;
}

.captcha-cancel {
  background: #fff;
  color: #082a5e;
}

.captcha-verify {
  background: #082a5e;
  color: #fff;
}

.captcha-refresh:disabled,
.captcha-cancel:disabled,
.captcha-verify:disabled {
  cursor: wait;
  opacity: 0.62;
}

@media (max-width: 520px) {
  .captcha-image-row {
    align-items: stretch;
    flex-direction: column;
  }

  .captcha-image {
    width: 100%;
    object-fit: fill;
  }

  .captcha-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
  }
}

/* Home biography anchor clears the fixed navigation. */
#about { scroll-margin-top: calc(var(--header-height) + 24px); }
#about .about-preview-portrait img { object-position: 62% center; }

/* Service rows keep their anchor IDs for existing links to the homepage. */
.practice-card li.service-item { padding: 0; }
.practice-card li.service-item::before { content: none; }
.service-page-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 48px;
  padding: 18px 0;
  scroll-margin-top: calc(var(--header-height) + 24px);
}
.service-page-link > span:first-child { min-width: 0; }
.service-page-link > span[aria-hidden] { flex-shrink: 0; color: var(--orange); font-size: 24px; }
.service-page-link:hover > span:first-child { text-decoration: underline; text-underline-offset: 4px; }
.service-page-link:focus-visible { outline: 2px solid var(--orange); outline-offset: 4px; }
.service-details { scroll-margin-top: calc(var(--header-height) + 24px); }
.service-details summary { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 18px 0; cursor: pointer; list-style: none; min-height: 48px; }
.service-details summary::-webkit-details-marker { display: none; }
.service-details summary::after { content: "+"; color: var(--orange); font-size: 24px; flex-shrink: 0; }
.service-details[open] summary::after { content: "−"; }
.service-details summary:focus-visible { outline: 2px solid var(--orange); outline-offset: 4px; }
.service-description { padding: 0 0 20px; font-size: 15px; font-weight: 400; line-height: 1.65; }
.service-description p { margin: 0 0 14px; }
.service-description a { text-decoration: underline; text-underline-offset: 4px; font-weight: 700; }

/* Search feedback and a brief highlight at the selected service. */
@media (prefers-reduced-motion: no-preference) {
  .site-search.is-open .site-search-result { animation: search-result-in 240ms ease-out both; }
  .site-search-result { transition: background-color 180ms ease, transform 180ms ease; }
  .site-search-result:hover { transform: translateX(3px); }
  .service-details:target > summary,
  .service-page-link:target { animation: service-arrival 1400ms ease-out; }
}
@keyframes search-result-in { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: translateY(0); } }
@keyframes service-arrival { from { background-color: rgba(242,138,36,.3); } to { background-color: transparent; } }
@media (prefers-reduced-motion: reduce) {
  .site-search, .site-search-dialog { transition: none; }
}

/* Compact mobile navigation shared by all pages. */
@media (max-width: 900px) {
  :root { --header-height: 60px; }
  .site-header { grid-template-columns: auto minmax(0, 1fr) auto; height: var(--header-height); padding: 0 16px; gap: 12px; }
  .site-header .brand { flex-direction: column; align-items: center; justify-content: center; gap: 2px; min-width: 0; }
  .site-header .brand img { width: 36px; height: 36px; padding: 3px; }
  .site-header .brand strong { font-size: 12px; line-height: 1; }
  .site-header .brand > span { line-height: 1; }
  .site-header .header-phone {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    font-size: clamp(1.125rem, 4.8vw, 1.375rem);
    line-height: 1.2;
  }
  .site-header .mobile-toggle { width: 44px; height: 44px; margin: 0; }
}

/* Compact experience section with a full, smaller portrait. */
.service-history {
  grid-template-columns: minmax(0, 500px) minmax(0, 1fr);
  align-items: center;
  gap: clamp(32px, 5vw, 72px);
  min-height: 0;
  padding: 56px max(28px, calc((100vw - var(--content)) / 2));
}
.service-history figure {
  width: 100%;
  max-width: 500px;
  min-height: 0;
  justify-self: center;
}
.service-history img {
  display: block;
  height: auto;
  object-fit: contain;
}
.service-history > div {
  min-width: 0;
  padding: 0;
}
@media (max-width: 900px) {
  .service-history {
    grid-template-columns: 1fr;
    padding: 40px 25px;
    gap: 32px;
  }
  .service-history figure { max-width: 360px; }
}
