:root {
  --preview-ink: #16191d;
  --preview-muted: #59616c;
  --preview-paper: #f7f4ef;
  --preview-panel: #ffffff;
  --preview-line: #d8d1c7;
  --preview-focus: #7359c8;
  --preview-shadow: 0 18px 50px rgba(18, 23, 30, 0.12);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--preview-ink);
  background: var(--preview-paper);
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 16px;
  line-height: 1.55;
}

img,
svg {
  max-width: 100%;
}

a {
  color: inherit;
  text-underline-offset: 0.18em;
}

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

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

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

h1,
h2,
h3,
h4 {
  line-height: 1.08;
}

.skip-link {
  position: absolute;
  top: 12px;
  left: 12px;
  z-index: 100;
  transform: translateY(-160%);
  padding: 10px 14px;
  color: var(--preview-ink);
  background: var(--preview-panel);
  border: 2px solid var(--preview-focus);
}

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

.preview-header {
  position: sticky;
  top: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  min-height: 70px;
  padding: 14px clamp(16px, 4vw, 44px);
  background: rgba(247, 244, 239, 0.94);
  border-bottom: 1px solid var(--preview-line);
  backdrop-filter: blur(12px);
  transition: box-shadow 180ms ease, background 180ms ease;
}

.is-scrolled .preview-header {
  background: rgba(247, 244, 239, 0.98);
  box-shadow: 0 10px 30px rgba(18, 23, 30, 0.08);
}

.preview-brand,
.preview-nav {
  display: flex;
  align-items: center;
}

.preview-brand {
  gap: 10px;
  color: var(--preview-ink);
  font-weight: 800;
  text-decoration: none;
  white-space: nowrap;
}

.preview-mark {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  color: #fff;
  background: #222f2b;
}

.preview-nav {
  gap: 16px;
  overflow-x: auto;
  font-size: 0.92rem;
}

.preview-nav a {
  color: var(--preview-muted);
  text-decoration: none;
  white-space: nowrap;
}

.preview-nav a:hover {
  color: var(--preview-ink);
  text-decoration: underline;
}

.preview-contact {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  padding: 8px 13px;
  color: #fff;
  background: #222f2b;
  border: 1px solid #222f2b;
  font-size: 0.9rem;
  font-weight: 800;
  text-decoration: none;
  white-space: nowrap;
  transition: background 160ms ease, border-color 160ms ease, transform 160ms ease;
}

.preview-contact:hover {
  background: #5a1f31;
  border-color: #5a1f31;
  transform: translateY(-1px);
}

.preview-wrap {
  width: min(1180px, calc(100% - 36px));
  margin: 0 auto;
}

.preview-hero {
  padding: clamp(52px, 8vw, 92px) 0;
  border-bottom: 1px solid var(--preview-line);
}

.preview-hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 0.44fr);
  gap: clamp(28px, 5vw, 68px);
  align-items: end;
}

.preview-kicker,
.site-kicker {
  margin-bottom: 12px;
  color: inherit;
  font-size: 0.82rem;
  font-weight: 800;
  text-transform: uppercase;
}

.preview-hero h1 {
  max-width: 920px;
  margin-bottom: 22px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(2.45rem, 6vw, 5rem);
}

.preview-hero p {
  max-width: 760px;
  color: var(--preview-muted);
  font-size: clamp(1.05rem, 2vw, 1.35rem);
}

.preview-principles {
  padding: 26px;
  background: #ffffff;
  border: 1px solid var(--preview-line);
  box-shadow: var(--preview-shadow);
}

.preview-principles h2 {
  margin-bottom: 16px;
  font-size: 1.35rem;
}

.preview-principles ul {
  display: grid;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.preview-principles li {
  padding-top: 10px;
  border-top: 1px solid var(--preview-line);
}

.variant-block {
  padding: clamp(34px, 5vw, 58px) 0 clamp(54px, 8vw, 104px);
  border-bottom: 1px solid var(--preview-line);
}

.variant-label {
  display: grid;
  grid-template-columns: minmax(180px, 0.34fr) minmax(0, 1fr);
  gap: clamp(22px, 5vw, 62px);
  align-items: end;
  margin-bottom: 22px;
}

.variant-label span {
  display: block;
  margin-bottom: 4px;
  color: var(--preview-muted);
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
}

.variant-label h2 {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.8rem, 4vw, 3rem);
}

.variant-label p {
  max-width: 640px;
  margin: 0;
  color: var(--preview-muted);
  font-size: 1.05rem;
}

.site-canvas {
  width: min(1180px, calc(100% - 36px));
  margin: 0 auto;
  overflow: clip;
  background: #fff;
  border: 1px solid rgba(0, 0, 0, 0.13);
  box-shadow: var(--preview-shadow);
}

.site-canvas a {
  text-decoration-thickness: 0.08em;
}

.site-canvas h3 {
  margin-bottom: 16px;
  font-size: clamp(2rem, 4.2vw, 4.35rem);
}

.site-canvas h4 {
  margin-bottom: 8px;
  font-size: 1.15rem;
}

.site-canvas p {
  color: inherit;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 12px 18px;
  border: 1px solid currentColor;
  color: inherit;
  cursor: pointer;
  font-weight: 800;
  line-height: 1.2;
  text-decoration: none;
  transition: transform 160ms ease, background 160ms ease, color 160ms ease, border-color 160ms ease;
}

.button:hover {
  transform: translateY(-1px);
}

.button-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
  margin-top: 26px;
}

.text-link {
  font-weight: 800;
}

.site-form {
  display: grid;
  gap: 13px;
}

.site-form label {
  display: grid;
  gap: 6px;
  font-weight: 800;
}

.site-form input,
.site-form select,
.site-form textarea {
  width: 100%;
  min-height: 45px;
  padding: 10px 12px;
  color: inherit;
  background: #fff;
  border: 1px solid rgba(0, 0, 0, 0.2);
}

.site-form textarea {
  resize: vertical;
}

.site-note {
  font-size: 0.92rem;
}

/* Variant 1: Personal Local Counsel */

.variant-personal {
  background: #f1eef0;
}

.personal-site {
  color: #191923;
  background: #fbfaf8;
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.personal-site h3,
.personal-site h4 {
  font-family: Georgia, "Times New Roman", serif;
  font-weight: 600;
}

.personal-header {
  display: grid;
  grid-template-columns: minmax(200px, 0.65fr) minmax(0, 1fr) auto;
  gap: 22px;
  align-items: center;
  padding: 20px clamp(18px, 4vw, 48px);
  border-bottom: 1px solid #ddd7dc;
}

.personal-logo {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}

.personal-logo span {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  color: #fff;
  background: #5a1f31;
  font-family: Georgia, "Times New Roman", serif;
  font-weight: 700;
}

.personal-logo strong {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.15rem;
}

.personal-header nav {
  display: flex;
  justify-content: center;
  gap: 20px;
}

.personal-header nav a,
.personal-phone {
  color: #555667;
  font-weight: 800;
  text-decoration: none;
}

.personal-header nav a:hover,
.personal-phone:hover {
  color: #202f55;
  text-decoration: underline;
}

.personal-hero {
  display: grid;
  grid-template-columns: minmax(250px, 0.42fr) minmax(0, 1fr);
  gap: clamp(28px, 5vw, 72px);
  align-items: center;
  padding: clamp(34px, 6vw, 78px) clamp(18px, 4vw, 48px);
}

.personal-portrait {
  align-self: stretch;
  display: block;
  min-height: 520px;
  background: #f1eef0;
  border: 1px solid #ddd7dc;
}

.personal-portrait img {
  width: 100%;
  height: 100%;
  min-height: 430px;
  object-fit: cover;
  object-position: center 22%;
}

.personal-copy {
  max-width: 760px;
  padding: clamp(10px, 3vw, 34px) 0;
}

.personal-copy .site-kicker,
.personal-services .site-kicker,
.personal-bio .site-kicker {
  color: #5a1f31;
}

.personal-copy p {
  max-width: 670px;
  color: #555667;
  font-size: clamp(1.04rem, 1.8vw, 1.2rem);
}

.personal-primary {
  color: #fff;
  background: #202f55;
  border-color: #202f55;
}

.personal-primary:hover {
  background: #15203c;
  border-color: #15203c;
}

.personal-trust {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 30px 0 0;
  padding: 0;
  list-style: none;
}

.personal-trust li {
  padding: 9px 11px;
  color: #202f55;
  background: #f5ebd7;
  border-left: 3px solid #9b7627;
}

.personal-services,
.personal-bio,
.personal-contact {
  display: grid;
  grid-template-columns: minmax(240px, 0.42fr) minmax(0, 1fr);
  gap: clamp(24px, 5vw, 62px);
  padding: clamp(34px, 6vw, 70px) clamp(18px, 4vw, 48px);
  border-top: 1px solid #ddd7dc;
}

.personal-services h3,
.personal-bio h3,
.personal-contact h3 {
  font-size: clamp(1.8rem, 3vw, 3rem);
}

.personal-service-list {
  display: grid;
  gap: 0;
  border-top: 1px solid #ddd7dc;
}

.personal-service-list a {
  display: grid;
  grid-template-columns: minmax(160px, 0.34fr) minmax(0, 1fr);
  gap: 16px;
  padding: 20px 0;
  color: #191923;
  border-bottom: 1px solid #ddd7dc;
  text-decoration: none;
  transition: padding-left 160ms ease, color 160ms ease;
}

.personal-service-list a:hover {
  padding-left: 8px;
  color: #202f55;
}

.personal-service-list span {
  font-weight: 900;
}

.personal-service-list small {
  color: #555667;
  font-size: 1rem;
}

.personal-bio {
  background: #f1eef0;
}

.personal-bio p {
  max-width: 720px;
  color: #555667;
  font-size: 1.12rem;
}

.personal-contact {
  align-items: start;
  color: #fff;
  background: #141d35;
}

.personal-contact h3 {
  color: #fff;
}

.personal-contact address,
.personal-contact p,
.personal-contact a {
  color: rgba(255, 255, 255, 0.86);
}

.personal-contact .site-form {
  padding: 22px;
  color: #191923;
  background: #fbfaf8;
}

/* Variant 2: Calm Estate Office */

.variant-estate {
  background: #edf1e7;
}

.estate-site {
  color: #203027;
  background: #fbfbf4;
  font-family: "Trebuchet MS", Arial, sans-serif;
}

.estate-site h3,
.estate-site h4 {
  font-family: Georgia, "Times New Roman", serif;
  font-weight: 500;
}

.estate-header {
  display: grid;
  justify-items: center;
  gap: 14px;
  padding: 26px clamp(18px, 4vw, 48px);
  color: #203027;
  background: #f3f6ec;
  border-bottom: 1px solid #cfdbc5;
}

.estate-logo {
  text-align: center;
  text-decoration: none;
}

.estate-logo strong,
.estate-logo span {
  display: block;
}

.estate-logo strong {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.6rem;
}

.estate-logo span {
  color: #607469;
}

.estate-header nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 24px;
}

.estate-header nav a {
  color: #607469;
  font-weight: 800;
  text-decoration: none;
}

.estate-header nav a:hover {
  color: #203027;
  text-decoration: underline;
}

.estate-hero {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(320px, 0.65fr);
  gap: clamp(30px, 5vw, 74px);
  align-items: center;
  padding: clamp(48px, 8vw, 94px) clamp(18px, 4vw, 56px);
}

.estate-hero-copy {
  max-width: 760px;
}

.estate-hero-copy .site-kicker {
  color: #6d7b56;
}

.estate-hero-copy p {
  max-width: 670px;
  color: #607469;
  font-size: clamp(1.04rem, 2vw, 1.22rem);
}

.estate-primary {
  margin-top: 14px;
  color: #fbfbf4;
  background: #4d684d;
  border-color: #4d684d;
}

.estate-primary:hover {
  background: #344b38;
  border-color: #344b38;
}

.estate-desk {
  position: relative;
  min-height: 430px;
  padding: 34px;
  background:
    linear-gradient(90deg, rgba(98, 122, 104, 0.12) 1px, transparent 1px),
    linear-gradient(0deg, rgba(98, 122, 104, 0.1) 1px, transparent 1px),
    #e8eee0;
  background-size: 42px 42px;
  border: 1px solid #cfdbc5;
}

.estate-document,
.estate-calendar {
  position: absolute;
  display: grid;
  gap: 8px;
  width: min(280px, 76%);
  padding: 24px;
  background: #fffef8;
  border: 1px solid #c9d6c0;
  box-shadow: 0 16px 36px rgba(48, 66, 52, 0.12);
}

.estate-document {
  top: 36px;
  left: 30px;
}

.estate-calendar {
  right: 28px;
  bottom: 34px;
}

.estate-document span,
.estate-calendar span {
  color: #6d7b56;
  font-weight: 800;
}

.estate-document strong,
.estate-calendar strong {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.45rem;
}

.estate-document small,
.estate-calendar small {
  color: #607469;
  font-size: 0.95rem;
}

.estate-services,
.estate-process,
.estate-faq,
.estate-contact {
  padding: clamp(42px, 7vw, 78px) clamp(18px, 4vw, 56px);
  border-top: 1px solid #cfdbc5;
}

.estate-heading {
  max-width: 780px;
  margin-bottom: 30px;
}

.estate-heading h3,
.estate-process h3,
.estate-contact h3 {
  font-size: clamp(1.9rem, 3.4vw, 3.25rem);
}

.estate-service-track {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0;
  border-top: 1px solid #cfdbc5;
  border-left: 1px solid #cfdbc5;
}

.estate-service-track article {
  min-height: 230px;
  padding: 24px;
  background: #fbfbf4;
  border-right: 1px solid #cfdbc5;
  border-bottom: 1px solid #cfdbc5;
  transition: background 160ms ease, transform 160ms ease;
}

.estate-service-track article:hover {
  background: #f3f6ec;
  transform: translateY(-2px);
}

.estate-service-track span {
  display: block;
  margin-bottom: 30px;
  color: #7a8d86;
  font-weight: 900;
}

.estate-service-track p {
  color: #607469;
}

.estate-process {
  display: grid;
  grid-template-columns: minmax(240px, 0.36fr) minmax(0, 1fr);
  gap: clamp(24px, 5vw, 64px);
  background: #f3f6ec;
}

.estate-process ol {
  display: grid;
  gap: 18px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.estate-process li {
  display: grid;
  grid-template-columns: 150px minmax(0, 1fr);
  gap: 18px;
  padding-bottom: 18px;
  border-bottom: 1px solid #cfdbc5;
}

.estate-process strong {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.2rem;
}

.estate-process span {
  color: #607469;
}

.estate-faq {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.estate-faq details {
  padding: 20px;
  background: #fffef8;
  border: 1px solid #cfdbc5;
}

.estate-faq summary {
  cursor: pointer;
  font-weight: 900;
}

.estate-faq p {
  margin: 12px 0 0;
  color: #607469;
}

.estate-contact {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(280px, 0.5fr);
  gap: clamp(24px, 5vw, 60px);
  align-items: center;
}

.estate-contact-panel {
  display: grid;
  gap: 8px;
  padding: 24px;
  color: #203027;
  background: #e8eee0;
  border-left: 5px solid #4d684d;
}

.estate-contact-panel a {
  font-weight: 900;
}

.estate-contact-panel address {
  color: #607469;
  font-style: normal;
}

/* Variant 3: Urgent Defense */

.variant-urgent {
  background: #e7e4dc;
}

.urgent-site {
  position: relative;
  color: #f9f5ed;
  background: #141414;
  font-family: Arial, Helvetica, sans-serif;
}

.urgent-site h3,
.urgent-site h4 {
  font-family: Arial, Helvetica, sans-serif;
  font-weight: 900;
}

.urgent-header {
  display: grid;
  grid-template-columns: minmax(190px, 0.7fr) minmax(0, 1fr) auto;
  gap: 18px;
  align-items: center;
  padding: 16px clamp(16px, 4vw, 44px);
  color: #f9f5ed;
  background: #0e0e0e;
  border-bottom: 1px solid #34302c;
}

.urgent-logo {
  color: #fff;
  font-size: 1.25rem;
  font-weight: 900;
  text-decoration: none;
}

.urgent-header nav {
  display: flex;
  justify-content: center;
  gap: 18px;
}

.urgent-header nav a {
  color: #d5cec2;
  font-weight: 800;
  text-decoration: none;
}

.urgent-header nav a:hover {
  color: #fff;
  text-decoration: underline;
}

.urgent-call {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 10px 15px;
  color: #111;
  background: #f2c36b;
  font-weight: 900;
  text-decoration: none;
}

.urgent-call:hover {
  background: #ffd47c;
}

.urgent-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(290px, 0.42fr);
  gap: clamp(28px, 5vw, 70px);
  align-items: stretch;
  padding: clamp(44px, 7vw, 86px) clamp(16px, 4vw, 44px);
  background:
    linear-gradient(135deg, rgba(190, 51, 45, 0.22), transparent 42%),
    #141414;
}

.urgent-hero .site-kicker {
  color: #f2c36b;
}

.urgent-hero h3 {
  max-width: 800px;
  color: #fff;
}

.urgent-hero p {
  max-width: 680px;
  color: #d5cec2;
  font-size: clamp(1.04rem, 1.9vw, 1.22rem);
}

.urgent-primary {
  color: #fff;
  background: #bd332d;
  border-color: #bd332d;
}

.urgent-primary:hover {
  color: #fff;
  background: #982621;
  border-color: #982621;
  transform: translateY(0) scale(0.99);
}

.urgent-secondary {
  display: inline-flex;
  align-items: center;
  min-height: 46px;
  color: #f9f5ed;
  font-weight: 900;
}

.urgent-action-box {
  display: grid;
  align-content: space-between;
  gap: 24px;
  min-height: 340px;
  padding: 26px;
  background: #f9f5ed;
  color: #181818;
  border-top: 6px solid #bd332d;
}

.urgent-action-box strong {
  display: block;
  font-size: clamp(1.85rem, 4vw, 3rem);
  line-height: 1;
}

.urgent-action-box span {
  color: #5a5149;
  font-weight: 900;
}

.urgent-action-box p {
  margin: 0;
  padding: 14px;
  color: #352a26;
  background: #f4dfbd;
}

.urgent-issues,
.urgent-next,
.urgent-profile,
.urgent-contact {
  padding: clamp(38px, 7vw, 72px) clamp(16px, 4vw, 44px);
}

.urgent-issues {
  color: #181818;
  background: #f9f5ed;
}

.urgent-issues h3,
.urgent-next h3,
.urgent-profile h3,
.urgent-contact h3 {
  font-size: clamp(1.9rem, 3.4vw, 3.2rem);
}

.urgent-issue-list {
  display: grid;
  gap: 0;
  margin-top: 28px;
  border-top: 1px solid #d4c8b8;
}

.urgent-issue-list a {
  display: grid;
  grid-template-columns: minmax(190px, 0.36fr) minmax(0, 1fr);
  gap: 18px;
  padding: 21px 0;
  color: #181818;
  border-bottom: 1px solid #d4c8b8;
  text-decoration: none;
  transition: background 160ms ease, padding-left 160ms ease;
}

.urgent-issue-list a:hover {
  padding-left: 10px;
  background: #f3ebdf;
}

.urgent-issue-list span {
  font-weight: 900;
}

.urgent-issue-list small {
  color: #665d55;
  font-size: 1rem;
}

.urgent-next {
  color: #fff;
  background: #1e1d1c;
}

.urgent-next ol {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin: 22px 0 0;
  padding: 0;
  list-style: none;
}

.urgent-next li {
  min-height: 170px;
  padding: 18px;
  background: #2c2926;
  border-left: 5px solid #bd332d;
}

.urgent-next strong,
.urgent-next span {
  display: block;
}

.urgent-next strong {
  margin-bottom: 10px;
}

.urgent-next span {
  color: #d5cec2;
}

.urgent-profile {
  display: grid;
  grid-template-columns: minmax(0, 0.82fr) minmax(260px, 0.45fr);
  gap: clamp(22px, 5vw, 62px);
  color: #181818;
  background: #fff;
}

.urgent-profile p {
  color: #5a5149;
}

.urgent-profile ul {
  display: grid;
  gap: 12px;
  align-content: start;
  margin: 0;
  padding: 0;
  list-style: none;
}

.urgent-profile li {
  padding: 14px;
  background: #f9f5ed;
  border-left: 4px solid #f2c36b;
  font-weight: 800;
}

.urgent-contact {
  display: grid;
  grid-template-columns: minmax(0, 0.82fr) minmax(280px, 0.52fr);
  gap: clamp(22px, 5vw, 62px);
  color: #f9f5ed;
  background: #141414;
  border-top: 1px solid #34302c;
}

.urgent-contact address,
.urgent-contact p,
.urgent-contact a {
  color: #d5cec2;
  font-style: normal;
}

.urgent-form {
  padding: 22px;
  color: #181818;
  background: #f9f5ed;
}

.urgent-mobile-call {
  display: none;
}

/* Variant 4: Small-Town General Practice */

.variant-mainstreet {
  background: #eee9df;
}

.mainstreet-site {
  color: #212521;
  background: #fffaf0;
  font-family: Verdana, Geneva, sans-serif;
}

.mainstreet-site h3,
.mainstreet-site h4 {
  font-family: Georgia, "Times New Roman", serif;
  font-weight: 700;
}

.mainstreet-header {
  border-bottom: 2px solid #2e5b48;
}

.mainstreet-office-line {
  padding: 9px clamp(16px, 4vw, 44px);
  color: #fffaf0;
  background: #7b3d2e;
  font-size: 0.9rem;
  font-weight: 800;
  text-align: center;
}

.mainstreet-nav-row {
  display: grid;
  grid-template-columns: minmax(230px, 0.7fr) minmax(0, 1fr) auto;
  gap: 18px;
  align-items: center;
  padding: 18px clamp(16px, 4vw, 44px);
  background: #fffaf0;
}

.mainstreet-logo {
  color: #1d342d;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.5rem;
  font-weight: 800;
  text-decoration: none;
}

.mainstreet-nav-row nav {
  display: flex;
  justify-content: center;
  gap: 18px;
}

.mainstreet-nav-row a {
  color: #334f4a;
  font-weight: 800;
}

.mainstreet-nav-row nav a {
  text-decoration: none;
}

.mainstreet-nav-row nav a:hover {
  text-decoration: underline;
}

.mainstreet-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(290px, 0.42fr);
  gap: clamp(24px, 5vw, 58px);
  align-items: start;
  padding: clamp(36px, 7vw, 78px) clamp(16px, 4vw, 44px);
  background:
    linear-gradient(0deg, rgba(46, 91, 72, 0.08), rgba(46, 91, 72, 0.08)),
    #fffaf0;
}

.mainstreet-title-card {
  max-width: 760px;
}

.mainstreet-title-card .site-kicker,
.mainstreet-services .site-kicker,
.mainstreet-contact .site-kicker {
  color: #7b3d2e;
}

.mainstreet-title-card p {
  max-width: 680px;
  color: #53625c;
  font-size: clamp(1.03rem, 1.8vw, 1.2rem);
}

.mainstreet-primary {
  margin-top: 12px;
  color: #fffaf0;
  background: #2e5b48;
  border-color: #2e5b48;
}

.mainstreet-primary:hover {
  background: #1d4234;
  border-color: #1d4234;
}

.mainstreet-hours {
  padding: 22px;
  background: #fff;
  border: 1px solid #d9cbb7;
  border-top: 6px solid #7b3d2e;
}

.mainstreet-hours h4 {
  font-size: 1.35rem;
}

.mainstreet-hours dl {
  display: grid;
  gap: 14px;
  margin: 0;
}

.mainstreet-hours div {
  padding-top: 12px;
  border-top: 1px solid #d9cbb7;
}

.mainstreet-hours dt {
  color: #7b3d2e;
  font-weight: 900;
}

.mainstreet-hours dd {
  margin: 0;
  color: #53625c;
}

.mainstreet-services,
.mainstreet-office,
.mainstreet-contact {
  padding: clamp(38px, 7vw, 74px) clamp(16px, 4vw, 44px);
  border-top: 1px solid #d9cbb7;
}

.mainstreet-services {
  display: grid;
  grid-template-columns: minmax(230px, 0.38fr) minmax(0, 1fr);
  gap: clamp(22px, 5vw, 60px);
}

.mainstreet-services h3,
.mainstreet-office h3,
.mainstreet-contact h3 {
  font-size: clamp(1.85rem, 3.2vw, 3.1rem);
}

.service-board {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0;
  background: #fff;
  border-top: 1px solid #d9cbb7;
  border-left: 1px solid #d9cbb7;
}

.service-board a {
  min-height: 86px;
  padding: 20px;
  color: #212521;
  background: #fff;
  border-right: 1px solid #d9cbb7;
  border-bottom: 1px solid #d9cbb7;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.2rem;
  font-weight: 800;
  text-decoration: none;
}

.service-board a:hover {
  color: #fffaf0;
  background: #2e5b48;
}

.mainstreet-office {
  display: grid;
  grid-template-columns: minmax(0, 0.78fr) minmax(300px, 0.5fr);
  gap: clamp(24px, 5vw, 60px);
  background: #f5eddf;
}

.mainstreet-office p,
.mainstreet-office li {
  color: #53625c;
}

.mainstreet-map {
  position: relative;
  display: grid;
  align-content: center;
  min-height: 330px;
  padding: 28px;
  background:
    linear-gradient(90deg, transparent 0 47%, rgba(52, 79, 74, 0.18) 47% 48%, transparent 48%),
    linear-gradient(0deg, transparent 0 52%, rgba(52, 79, 74, 0.18) 52% 53%, transparent 53%),
    #dfe8e4;
  border: 1px solid #b9ccc3;
}

.mainstreet-map::before {
  content: "";
  position: absolute;
  top: 45%;
  left: 48%;
  width: 18px;
  height: 18px;
  background: #7b3d2e;
  border: 4px solid #fffaf0;
  box-shadow: 0 0 0 7px rgba(123, 61, 46, 0.16);
}

.mainstreet-map span {
  position: relative;
  z-index: 1;
  width: max-content;
  padding: 9px 12px;
  color: #1d342d;
  background: #fffaf0;
  border: 1px solid #d9cbb7;
  font-family: Georgia, "Times New Roman", serif;
  font-weight: 800;
}

.mainstreet-map small {
  position: relative;
  z-index: 1;
  max-width: 260px;
  margin-top: 12px;
  color: #53625c;
}

.mainstreet-contact {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(280px, 0.5fr);
  gap: clamp(24px, 5vw, 60px);
}

.mainstreet-contact p {
  color: #53625c;
}

.mainstreet-contact-grid {
  display: grid;
  gap: 12px;
  align-content: start;
  padding: 22px;
  color: #fffaf0;
  background: #2e5b48;
}

.mainstreet-contact-grid a,
.mainstreet-contact-grid address {
  color: #fffaf0;
  font-style: normal;
  font-weight: 800;
}

/* Variant 5: Modern Boutique Firm */

.variant-boutique {
  background: #e7e9ea;
}

.boutique-site {
  color: #171b1f;
  background: #f8f7f4;
  font-family: "Avenir Next", Avenir, ui-sans-serif, system-ui, sans-serif;
}

.boutique-site h3,
.boutique-site h4 {
  font-family: Georgia, "Times New Roman", serif;
  font-weight: 500;
}

.boutique-header {
  display: grid;
  grid-template-columns: minmax(160px, 0.45fr) minmax(0, 1fr) auto;
  gap: 18px;
  align-items: center;
  padding: 24px clamp(18px, 4vw, 54px);
  background: #171b1f;
  color: #f8f7f4;
}

.boutique-logo {
  text-decoration: none;
}

.boutique-logo span,
.boutique-logo strong {
  display: block;
}

.boutique-logo span {
  color: #a7c2bf;
}

.boutique-logo strong {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.35rem;
  font-weight: 500;
}

.boutique-header nav {
  display: flex;
  justify-content: center;
  gap: 22px;
}

.boutique-header nav a,
.boutique-contact-link {
  color: #e8e4dd;
  font-weight: 800;
  text-decoration: none;
}

.boutique-header nav a:hover,
.boutique-contact-link:hover {
  color: #a7c2bf;
  text-decoration: underline;
}

.boutique-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(310px, 0.42fr);
  gap: clamp(26px, 6vw, 84px);
  align-items: end;
  padding: clamp(52px, 8vw, 96px) clamp(18px, 4vw, 54px);
  color: #171b1f;
  background:
    linear-gradient(90deg, transparent 0 68%, #e6eeec 68%),
    #f8f7f4;
}

.boutique-hero-copy {
  max-width: 840px;
}

.boutique-hero-copy .site-kicker,
.boutique-practices .site-kicker,
.boutique-team .site-kicker,
.boutique-contact .site-kicker {
  color: #7a4761;
}

.boutique-hero-copy h3 {
  max-width: 820px;
  font-size: clamp(2.35rem, 5.4vw, 5.4rem);
}

.boutique-hero-copy p {
  max-width: 690px;
  color: #596266;
  font-size: clamp(1.05rem, 1.9vw, 1.24rem);
}

.boutique-proof {
  display: grid;
  gap: 0;
  border-top: 1px solid #cfd7d5;
}

.boutique-proof div {
  display: grid;
  grid-template-columns: 92px 1fr;
  gap: 16px;
  align-items: center;
  padding: 22px 0;
  border-bottom: 1px solid #cfd7d5;
}

.boutique-proof span {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 2.6rem;
}

.boutique-proof small {
  color: #596266;
  font-size: 1rem;
  font-weight: 800;
}

.boutique-practices,
.boutique-team,
.boutique-firm-note,
.boutique-contact {
  padding: clamp(42px, 7vw, 82px) clamp(18px, 4vw, 54px);
  border-top: 1px solid #d7d3cc;
}

.boutique-practices {
  display: grid;
  grid-template-columns: minmax(250px, 0.4fr) minmax(0, 1fr);
  gap: clamp(24px, 5vw, 70px);
}

.boutique-practices h3,
.boutique-section-title h3,
.boutique-contact h3 {
  font-size: clamp(1.9rem, 3.5vw, 3.3rem);
}

.boutique-index {
  display: grid;
  gap: 0;
}

.boutique-index a {
  display: grid;
  grid-template-columns: 66px minmax(150px, 0.34fr) minmax(0, 1fr);
  gap: 18px;
  align-items: start;
  padding: 24px 0;
  color: #171b1f;
  border-top: 1px solid #d7d3cc;
  text-decoration: none;
}

.boutique-index a:last-child {
  border-bottom: 1px solid #d7d3cc;
}

.boutique-index a:hover strong {
  color: #0c6661;
  text-decoration: underline;
}

.boutique-index span {
  color: #7a4761;
  font-weight: 900;
}

.boutique-index strong {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.25rem;
  font-weight: 500;
}

.boutique-index small {
  color: #596266;
  font-size: 1rem;
}

.boutique-team {
  background: #171b1f;
  color: #f8f7f4;
}

.boutique-team .site-kicker,
.boutique-team h3 {
  color: #f8f7f4;
}

.boutique-section-title {
  max-width: 680px;
  margin-bottom: 28px;
}

.boutique-roster {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.boutique-roster article {
  min-height: 210px;
  padding: 24px;
  color: #f8f7f4;
  background: #22282d;
  border: 1px solid #3b444a;
  transition: transform 160ms ease, border-color 160ms ease;
}

.boutique-roster article:hover {
  transform: translateY(-3px);
  border-color: #a7c2bf;
}

.boutique-roster span {
  display: grid;
  place-items: center;
  width: 54px;
  height: 54px;
  margin-bottom: 26px;
  color: #171b1f;
  background: #a7c2bf;
  font-weight: 900;
}

.boutique-roster p {
  color: #c8d2d0;
}

.boutique-roster a {
  color: #a7c2bf;
  font-weight: 900;
}

.boutique-firm-note {
  background: #e6eeec;
}

.boutique-firm-note p {
  max-width: 920px;
  margin-bottom: 0;
  color: #325451;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.35rem, 2.6vw, 2rem);
  line-height: 1.3;
}

.boutique-contact {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(300px, 0.56fr);
  gap: clamp(24px, 5vw, 70px);
}

.boutique-contact p {
  color: #596266;
}

.boutique-form {
  padding: 24px;
  background: #fff;
  border-top: 5px solid #0c6661;
}

.boutique-primary {
  color: #fff;
  background: #0c6661;
  border-color: #0c6661;
}

.boutique-primary:hover {
  background: #084d49;
  border-color: #084d49;
}

.preview-footer {
  padding: 34px 0;
  color: #d9d6cf;
  background: #16191d;
}

.preview-footer p {
  max-width: 900px;
  margin-bottom: 8px;
}

.preview-footer-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-top: 18px;
  padding-top: 18px;
  border-top: 1px solid rgba(255, 255, 255, 0.18);
}

.preview-footer-row p {
  margin: 0;
}

.preview-footer-row a {
  color: #fff;
  font-weight: 800;
}

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

@media (max-width: 1060px) {
  .preview-header,
  .personal-header,
  .urgent-header,
  .mainstreet-nav-row,
  .boutique-header {
    grid-template-columns: 1fr;
    justify-items: start;
  }

  .preview-header {
    align-items: flex-start;
    flex-wrap: wrap;
  }

  .preview-nav,
  .personal-header nav,
  .urgent-header nav,
  .mainstreet-nav-row nav,
  .boutique-header nav {
    justify-content: flex-start;
    max-width: 100%;
    overflow-x: auto;
    padding-bottom: 3px;
  }

  .preview-hero-grid,
  .personal-hero,
  .personal-services,
  .personal-bio,
  .personal-contact,
  .estate-hero,
  .estate-process,
  .estate-contact,
  .urgent-hero,
  .urgent-profile,
  .urgent-contact,
  .mainstreet-hero,
  .mainstreet-services,
  .mainstreet-office,
  .mainstreet-contact,
  .boutique-hero,
  .boutique-practices,
  .boutique-contact {
    grid-template-columns: 1fr;
  }

  .estate-service-track,
  .urgent-next ol,
  .boutique-roster {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .personal-portrait {
    min-height: 0;
  }

  .personal-portrait img {
    max-height: 620px;
  }
}

@media (max-width: 720px) {
  body {
    font-size: 15.5px;
  }

  .preview-header {
    min-height: auto;
  }

  .preview-contact {
    width: 100%;
  }

  .preview-wrap,
  .site-canvas {
    width: min(100% - 24px, 1180px);
  }

  .variant-label,
  .estate-service-track,
  .estate-faq,
  .urgent-next ol,
  .service-board,
  .boutique-roster {
    grid-template-columns: 1fr;
  }

  .site-canvas h3 {
    font-size: clamp(1.8rem, 10vw, 2.7rem);
  }

  .button,
  .button-row .button,
  .button-row .text-link,
  .urgent-secondary {
    width: 100%;
  }

  .personal-header,
  .estate-header,
  .urgent-header,
  .mainstreet-nav-row,
  .boutique-header {
    padding-inline: 14px;
  }

  .personal-hero,
  .personal-services,
  .personal-bio,
  .personal-contact,
  .estate-hero,
  .estate-services,
  .estate-process,
  .estate-faq,
  .estate-contact,
  .urgent-hero,
  .urgent-issues,
  .urgent-next,
  .urgent-profile,
  .urgent-contact,
  .mainstreet-hero,
  .mainstreet-services,
  .mainstreet-office,
  .mainstreet-contact,
  .boutique-hero,
  .boutique-practices,
  .boutique-team,
  .boutique-firm-note,
  .boutique-contact {
    padding-inline: 16px;
  }

  .personal-service-list a,
  .urgent-issue-list a,
  .estate-process li,
  .boutique-index a {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .estate-desk {
    min-height: 390px;
    padding: 18px;
  }

  .estate-document,
  .estate-calendar {
    width: min(250px, 84%);
    padding: 18px;
  }

  .estate-document {
    left: 16px;
  }

  .estate-calendar {
    right: 16px;
  }

  .urgent-action-box {
    min-height: auto;
  }

  .urgent-mobile-call {
    position: sticky;
    bottom: 0;
    z-index: 5;
    display: flex;
    justify-content: center;
    padding: 14px 18px;
    color: #fff;
    background: #bd332d;
    font-weight: 900;
    text-decoration: none;
  }

  .mainstreet-map {
    min-height: 260px;
  }

  .boutique-proof div {
    grid-template-columns: 76px 1fr;
  }
}

@media (max-width: 460px) {
  .preview-hero h1 {
    font-size: 2.28rem;
  }

  .preview-principles,
  .personal-contact .site-form,
  .urgent-form,
  .boutique-form {
    padding: 16px;
  }

  .personal-portrait img {
    min-height: 340px;
  }

  .estate-desk {
    min-height: 430px;
  }

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