:root {
  --forest-950: #08213f;
  --forest-900: #0f355e;
  --forest-800: #18578c;
  --pine-700: #1f6fb2;
  --moss-600: #2f86d6;
  --leaf-700: #155c9d;
  --leaf-500: #4aa3f0;
  --mint-200: #d8ecff;
  --sage-100: #f5f9ff;
  --sage-200: #e5f0fb;
  --stone-100: #f7fbff;
  --stone-300: #d7e4f2;
  --ink: #0e2438;
  --muted: #597187;
  --brass: #7aa7d9;
  --shadow: 0 24px 70px rgba(13, 51, 89, 0.16);
}

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

html {
  min-height: 100%;
  scroll-behavior: smooth;
  background: var(--forest-950);
}

body {
  min-height: 100%;
  margin: 0;
  color: var(--ink);
  background: var(--stone-100);
  font-family: "Avenir Next", "Segoe UI", Arial, sans-serif;
}

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

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

p,
figure,
dl,
dd {
  margin: 0;
}

h1,
h2,
h3 {
  margin: 0;
  font-family: "Gill Sans", "Segoe UI", Arial, sans-serif;
  font-weight: 700;
  letter-spacing: 0;
}

h1 {
  max-width: 58rem;
  color: #ffffff;
  font-size: 4.9rem;
  line-height: 0.96;
}

h2 {
  font-size: 3.05rem;
  line-height: 1.03;
}

h3 {
  font-size: 1.35rem;
  line-height: 1.15;
}

.home-page {
  overflow: hidden;
  background: var(--stone-100);
}

.auth-page,
.portal-page {
  min-height: 100vh;
  padding: 2rem;
}

.auth-page {
  color: var(--ink);
  background:
    linear-gradient(135deg, rgba(239, 247, 255, 0.95), rgba(255, 255, 255, 0.84)),
    url("/images/ushp-gallery/4119CalvertCove77386-10952--MLS--_0030.jpg") center / cover no-repeat;
}

.portal-page {
  color: var(--ink);
  background:
    radial-gradient(circle at top left, rgba(216, 236, 255, 0.7), rgba(216, 236, 255, 0) 34rem),
    linear-gradient(180deg, #f8fbff 0%, #eef6ff 100%);
}

.auth-panel,
.portal-shell,
.portal-header {
  width: min(100%, 1120px);
  margin-inline: auto;
}

.auth-panel {
  max-width: 520px;
  margin-top: min(9vh, 6rem);
  padding: 1.4rem;
  border: 1px solid rgba(31, 111, 178, 0.16);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.9);
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px);
}

.auth-panel--wide {
  max-width: 760px;
}

.auth-brand {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  color: var(--forest-900);
}

.auth-brand img {
  width: 56px;
  height: 56px;
  object-fit: contain;
}

.auth-brand span {
  display: grid;
  gap: 0.12rem;
}

.auth-brand strong {
  font-family: "Gill Sans", "Segoe UI", Arial, sans-serif;
  font-size: 1.1rem;
  font-weight: 800;
}

.auth-brand small {
  color: var(--moss-600);
  font-size: 0.64rem;
  font-weight: 950;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.auth-heading {
  margin-top: 2.2rem;
}

.auth-heading h1,
.portal-heading h1 {
  margin-top: 0.45rem;
  color: var(--forest-900);
  font-size: clamp(2.2rem, 7vw, 3.4rem);
}

.auth-form {
  display: grid;
  gap: 0.65rem;
  margin-top: 1.7rem;
}

.auth-form--grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.8rem;
}

.auth-form__full {
  grid-column: 1 / -1;
}

.auth-form label {
  color: var(--forest-900);
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.auth-form input[type="email"],
.auth-form input[type="password"],
.auth-form input[type="text"],
.auth-form input[type="tel"],
.auth-form input:not([type]) {
  min-height: 48px;
  width: 100%;
  border: 1px solid rgba(31, 111, 178, 0.18);
  border-radius: 8px;
  padding: 0.75rem 0.85rem;
  color: var(--ink);
  background: rgba(255, 255, 255, 0.88);
  font: inherit;
}

.auth-form input:focus {
  outline: 2px solid var(--leaf-500);
  outline-offset: 2px;
}

.auth-form span,
.validation-summary {
  color: #b45309;
  font-size: 0.84rem;
  line-height: 1.4;
}

.auth-check {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  margin-block: 0.4rem;
  text-transform: none;
}

.auth-check input {
  width: 18px;
  height: 18px;
}

.auth-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  margin-top: 1.2rem;
}

.auth-links a,
.portal-card a {
  color: var(--pine-700);
  font-weight: 900;
}

.portal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  border: 1px solid rgba(31, 111, 178, 0.12);
  border-radius: 8px;
  padding: 0.9rem 1rem;
  background: rgba(255, 255, 255, 0.88);
  box-shadow: 0 16px 36px rgba(13, 51, 89, 0.08);
  backdrop-filter: blur(18px);
}

.portal-actions {
  display: flex;
  align-items: center;
  gap: 0.7rem;
}

.portal-shell {
  margin-top: 3.5rem;
}

.portal-heading {
  max-width: 740px;
}

.portal-heading p:not(.eyebrow) {
  margin-top: 1rem;
  color: var(--muted);
  font-size: 1.08rem;
  line-height: 1.7;
}

.portal-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
  margin-top: 2rem;
}

.portal-card {
  min-height: 190px;
  border: 1px solid rgba(31, 111, 178, 0.13);
  border-radius: 8px;
  padding: 1.15rem;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 14px 34px rgba(13, 51, 89, 0.07);
}

.portal-card h2 {
  color: var(--forest-900);
  font-size: 1.45rem;
}

.portal-card p {
  margin-block: 0.75rem 1rem;
  color: var(--muted);
  line-height: 1.6;
}

.portal-card {
  position: relative;
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.portal-card:hover,
.portal-card:focus-within {
  transform: translateY(-3px);
  border-color: rgba(31, 111, 178, 0.3);
  box-shadow: 0 20px 42px rgba(13, 51, 89, 0.12);
}

.portal-card__heading {
  display: flex;
  align-items: center;
  gap: 0.8rem;
}

.portal-card__icon {
  flex: 0 0 auto;
  width: 2.75rem;
  height: 2.75rem;
  display: inline-grid;
  place-items: center;
  border-radius: 10px;
  color: #ffffff;
  background: linear-gradient(145deg, var(--pine-700), var(--forest-900));
  box-shadow: 0 9px 20px rgba(24, 87, 140, 0.22);
  font-size: 1.35rem;
  font-weight: 900;
}

.portal-card--new-order {
  border-color: rgba(31, 111, 178, 0.3);
  background: linear-gradient(145deg, #ffffff 0%, #e8f4ff 100%);
}

.portal-card--new-order .portal-card__icon {
  color: var(--forest-950);
  background: linear-gradient(135deg, #f7fbff, #73b8f2);
}

.portal-card__badge {
  position: absolute;
  top: 0.75rem;
  right: 0.75rem;
  border-radius: 999px;
  padding: 0.3rem 0.55rem;
  color: #ffffff;
  background: var(--forest-900);
  font-size: 0.66rem;
  font-weight: 950;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.order-progress {
  width: min(100%, 1120px);
  margin: 2rem auto 0;
  overflow-x: auto;
  scrollbar-width: thin;
}

.order-progress ol {
  min-width: 890px;
  display: grid;
  grid-template-columns: repeat(8, minmax(96px, 1fr));
  gap: 0;
  margin: 0;
  padding: 0;
  list-style: none;
}

.order-progress li {
  position: relative;
}

.order-progress li::before {
  content: "";
  position: absolute;
  top: 1.15rem;
  left: 0;
  width: 100%;
  height: 2px;
  background: var(--stone-300);
}

.order-progress li:first-child::before {
  left: 50%;
  width: 50%;
}

.order-progress li:last-child::before {
  width: 50%;
}

.order-progress button,
.order-progress li > span {
  position: relative;
  z-index: 1;
  width: 100%;
  display: grid;
  justify-items: center;
  gap: 0.45rem;
  border: 0;
  padding: 0;
  color: var(--muted);
  background: transparent;
  font: inherit;
  text-align: center;
}

.order-progress button:not(:disabled) {
  cursor: pointer;
}

.order-progress button > span,
.order-progress li > span > b {
  width: 2.35rem;
  height: 2.35rem;
  display: grid;
  place-items: center;
  border: 2px solid var(--stone-300);
  border-radius: 50%;
  color: var(--muted);
  background: #ffffff;
  font-size: 0.8rem;
  font-weight: 950;
}

.order-progress strong {
  max-width: 110px;
  font-size: 0.7rem;
  line-height: 1.25;
}

.order-progress .is-current button > span,
.order-progress .is-current li > span > b,
.order-progress .is-current > span > b {
  border-color: var(--pine-700);
  color: #ffffff;
  background: var(--pine-700);
  box-shadow: 0 0 0 4px rgba(74, 163, 240, 0.16);
}

.order-progress .is-current strong {
  color: var(--forest-900);
}

.order-progress .is-complete::before {
  background: var(--pine-700);
}

.order-progress .is-complete button > span,
.order-progress .is-complete > span > b {
  border-color: var(--pine-700);
  color: #ffffff;
  background: var(--forest-900);
}

.order-wizard {
  display: block;
  margin-top: 1.25rem;
  padding: 0;
  background: transparent;
  box-shadow: none;
  border: 0;
}

/* The base listing form is a 12-column grid. Once it becomes the order
   wizard, its step panels must participate in a full-width block layout. */
.portal-form.order-wizard {
  display: block;
}

.new-listing-wizard > .order-step {
  grid-column: 1 / -1;
  width: 100%;
  max-width: none;
}

.order-step {
  border: 1px solid rgba(31, 111, 178, 0.14);
  border-radius: 12px;
  padding: clamp(1.1rem, 3vw, 2rem);
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 18px 44px rgba(13, 51, 89, 0.09);
}

.order-step[hidden] {
  display: none;
}

.order-step__header {
  margin-bottom: 1.4rem;
  border-bottom: 1px solid rgba(31, 111, 178, 0.12);
  padding-bottom: 1rem;
}

.new-listing-wizard .order-step:not([hidden]) {
  display: grid;
  grid-template-columns: minmax(0, 1fr) !important;
  gap: 0.85rem;
}

.new-listing-wizard .order-step__header,
.new-listing-wizard .order-step__actions {
  grid-column: 1 / -1;
}

.new-listing-wizard .order-step > div:not(.order-step__actions) {
  grid-column: 1 / -1 !important;
  width: 100% !important;
  max-width: none !important;
}

.new-listing-wizard .order-step input,
.new-listing-wizard .order-step select,
.new-listing-wizard .order-step textarea {
  display: block;
  width: 100% !important;
  max-width: none !important;
}

.portal-shell.new-order-shell {
  width: min(100%, 1120px) !important;
  max-width: 1120px !important;
  margin-right: auto !important;
  margin-left: auto !important;
}

.new-order-shell .portal-heading {
  max-width: none;
  padding-inline: clamp(1rem, 3vw, 2.5rem);
}

.new-order-page {
  padding-right: 0 !important;
  padding-left: 0 !important;
}

.new-order-page .order-progress {
  width: 100% !important;
  max-width: none !important;
  padding-inline: clamp(1rem, 3vw, 2.5rem);
}

.new-order-page .new-listing-wizard {
  width: 100% !important;
  max-width: none !important;
}

.new-order-page .new-listing-wizard .order-step {
  width: 100% !important;
  max-width: none !important;
  border-right: 0;
  border-left: 0;
  border-radius: 0;
  padding-inline: clamp(1rem, 3vw, 2.5rem);
}

.new-listing-wizard .property-address-step:not([hidden]) {
  width: 100% !important;
  max-width: none !important;
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) !important;
}

.new-listing-wizard .property-address-step > div:not(.order-step__actions) {
  grid-column: 1 / -1 !important;
  width: 100% !important;
  max-width: none !important;
}

.new-listing-wizard .property-address-step .address-field-full {
  grid-column: 1 / -1 !important;
  width: 100% !important;
  max-width: none !important;
}

.new-listing-wizard .property-address-step input,
.new-listing-wizard .property-address-step select {
  display: block;
  width: 100% !important;
  max-width: none !important;
}

.new-listing-wizard .property-address-step .address-line-one-full-width {
  grid-column: 1 / -1 !important;
  justify-self: stretch !important;
  width: 100% !important;
  max-width: none !important;
}

.new-listing-wizard .property-address-step .address-line-one-full-width input[name="ClientListingListingAddress1"] {
  display: block !important;
  width: 100% !important;
  max-width: none !important;
}

.new-listing-wizard .property-entry-step > div:not(.order-step__actions) {
  grid-column: 1 / -1;
  width: 100%;
}

.new-listing-wizard .property-entry-step input,
.new-listing-wizard .property-entry-step select,
.new-listing-wizard .property-entry-step textarea {
  width: 100%;
}

.new-listing-wizard .property-entry-step textarea {
  min-height: 150px;
}

.order-step__header > span {
  margin: 0 0 0.3rem;
  color: var(--moss-600);
  font-size: 0.72rem;
  font-weight: 950;
  letter-spacing: 0.11em;
  text-transform: uppercase;
}

.order-step__header h2 {
  color: var(--forest-900);
  font-size: clamp(1.65rem, 4vw, 2.25rem);
}

.order-step__help {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 1rem;
  border: 1px solid rgba(31, 111, 178, 0.13);
  border-radius: 10px;
  padding: 1.15rem;
  background: var(--sage-100);
}

.order-step__help p,
.order-step__subheading p,
.order-payment-preview p,
.order-confirmation-preview p,
.order-confirmation p:not(.eyebrow) {
  color: var(--muted);
  line-height: 1.6;
}

.order-step__actions,
.order-submit-field {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 0.75rem;
  margin-top: 1.4rem;
}

.order-step__subheading {
  margin-bottom: 1rem;
}

.order-step__subheading h3,
.order-payment-preview h3,
.order-confirmation-preview h3 {
  color: var(--forest-900);
}

.order-step__subheading p {
  margin-top: 0.35rem;
}

.order-review {
  display: grid;
  gap: 0.75rem;
  margin-top: 1.25rem;
  border-top: 1px solid rgba(31, 111, 178, 0.13);
  padding-top: 1.25rem;
}

.order-review > div {
  display: grid;
  grid-template-columns: minmax(120px, 0.28fr) 1fr;
  gap: 1rem;
}

.order-review > div > span {
  color: var(--moss-600);
  font-size: 0.72rem;
  font-weight: 950;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.order-review ul {
  display: grid;
  gap: 0.5rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.order-review li {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  border-bottom: 1px solid rgba(31, 111, 178, 0.1);
  padding-bottom: 0.45rem;
  color: var(--forest-900);
  font-weight: 800;
}

.order-review li span {
  color: var(--muted);
  font-size: 0.85rem;
  font-weight: 500;
}

.order-payment-preview {
  flex: 1 1 100%;
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 0.25rem;
  border: 1px solid rgba(31, 111, 178, 0.13);
  border-radius: 10px;
  padding: 1.2rem;
  background: var(--sage-100);
}

.order-payment-preview__icon,
.order-confirmation-preview > span,
.order-confirmation > span {
  flex: 0 0 auto;
  width: 3rem;
  height: 3rem;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: #ffffff;
  background: var(--forest-900);
  font-size: 1.3rem;
  font-weight: 950;
}

.order-submit-field {
  flex-wrap: wrap;
}

.order-step__error {
  margin-bottom: 1rem;
  border-left: 4px solid #b45309;
  padding: 0.75rem 0.9rem;
  color: #853b08;
  background: #fff7ed;
  font-weight: 800;
}

.order-confirmation-preview {
  display: grid;
  justify-items: center;
  gap: 0.75rem;
  padding: 2rem;
  text-align: center;
}

.order-progress--compact {
  margin-top: 1.5rem;
}

.order-confirmation {
  display: flex;
  align-items: center;
  gap: 1.1rem;
  margin-top: 1.25rem;
  border: 1px solid rgba(31, 111, 178, 0.2);
  border-radius: 12px;
  padding: 1.25rem;
  background: linear-gradient(145deg, #ffffff, #e8f4ff);
  box-shadow: 0 16px 38px rgba(13, 51, 89, 0.09);
}

.order-confirmation h2 {
  margin-top: 0.25rem;
  color: var(--forest-900);
  font-size: 1.65rem;
}

.order-confirmation p:not(.eyebrow) {
  margin-top: 0.35rem;
}

.portal-empty,
.portal-table-wrap {
  margin-top: 2rem;
  border: 1px solid rgba(31, 111, 178, 0.13);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 14px 34px rgba(13, 51, 89, 0.07);
}

.portal-empty {
  padding: 1.4rem;
}

.portal-notice {
  margin-top: 1.2rem;
  border: 1px solid rgba(31, 111, 178, 0.18);
  border-radius: 8px;
  padding: 0.95rem 1rem;
  color: var(--forest-900);
  background: rgba(216, 236, 255, 0.78);
  font-weight: 850;
  line-height: 1.5;
}

.portal-empty h2 {
  color: var(--forest-900);
  font-size: 1.6rem;
}

.portal-empty p {
  margin-block: 0.75rem 1rem;
  color: var(--muted);
}

.portal-table-wrap {
  overflow-x: auto;
}

.portal-table {
  width: 100%;
  border-collapse: collapse;
}

.portal-table th,
.portal-table td {
  padding: 0.9rem;
  border-bottom: 1px solid rgba(31, 111, 178, 0.1);
  color: var(--ink);
  text-align: left;
  vertical-align: top;
}

.portal-table th {
  color: var(--pine-700);
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.portal-table tr:last-child td {
  border-bottom: 0;
}

.portal-table td a {
  display: inline-block;
  margin-right: 0.8rem;
  color: var(--pine-700);
  font-weight: 900;
}

.portal-total-panel {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1.2rem;
  margin-top: 1rem;
  border: 1px solid rgba(31, 111, 178, 0.13);
  border-radius: 8px;
  padding: 1.15rem;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 14px 34px rgba(13, 51, 89, 0.07);
}

.portal-total-panel dl {
  display: grid;
  gap: 0.45rem;
  min-width: min(100%, 360px);
}

.portal-total-panel div {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  color: var(--ink);
}

.portal-total-panel dt {
  color: var(--pine-700);
  font-weight: 900;
}

.portal-total-panel dd {
  font-weight: 950;
}

.status-board {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1rem;
  margin-top: 2rem;
}

.status-card {
  min-height: 128px;
  border: 1px solid rgba(31, 111, 178, 0.13);
  border-radius: 8px;
  padding: 1rem;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 14px 34px rgba(13, 51, 89, 0.07);
}

.status-card span {
  display: block;
  color: var(--pine-700);
  font-size: 0.73rem;
  font-weight: 950;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.status-card strong {
  display: block;
  margin-top: 0.65rem;
  color: var(--forest-900);
  font-family: "Gill Sans", "Segoe UI", Arial, sans-serif;
  font-size: 1.6rem;
  line-height: 1.08;
}

.status-card--current {
  background: rgba(216, 236, 255, 0.82);
}

.provider-job-actions,
.provider-job-grid,
.provider-note-list {
  display: grid;
  gap: 1rem;
  margin-top: 1rem;
}

.provider-job-actions {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.provider-job-actions form,
.provider-job-actions button {
  width: 100%;
}

.provider-job-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.provider-note-list {
  grid-template-columns: 1fr;
}

.delivery-gallery {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1rem;
  margin: 1.25rem 0;
}

.delivery-photo {
  overflow: hidden;
  border: 1px solid rgba(31, 111, 178, 0.13);
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 18px 40px rgba(13, 51, 89, 0.08);
}

.delivery-photo img {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  background: #edf6ff;
}

.delivery-photo div {
  display: grid;
  gap: 0.35rem;
  padding: 0.9rem;
}

.delivery-photo span,
.portal-list small {
  color: #526f8d;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

.delivery-photo strong {
  color: var(--forest-900);
}

.portal-list {
  display: grid;
  gap: 1rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.portal-list li {
  display: grid;
  gap: 0.25rem;
  border-bottom: 1px solid rgba(31, 111, 178, 0.12);
  padding-bottom: 0.9rem;
}

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

.order-product-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 0.85rem;
}

.order-product-list--grouped {
  grid-template-columns: minmax(0, 1fr);
  gap: 1.5rem;
}

.order-product-section {
  display: grid;
  gap: 0.85rem;
}

.order-product-section + .order-product-section {
  border-top: 1px solid rgba(31, 111, 178, 0.13);
  padding-top: 1.5rem;
}

.order-product-section__header {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: baseline;
  gap: 0.2rem 0.75rem;
}

.order-product-section__header h3,
.order-product-section__header p {
  margin: 0;
}

.order-product-section__header p {
  grid-column: 1 / -1;
  color: var(--muted);
}

.order-product-section__count {
  border-radius: 999px;
  padding: 0.25rem 0.6rem;
  color: var(--leaf-700);
  background: var(--sage-100);
  font-size: 0.78rem;
  font-weight: 800;
}

.order-product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 0.85rem;
}

.invoice-preview {
  display: grid;
  gap: 1rem;
  margin-top: 0.65rem;
}

.invoice-preview__section {
  overflow: hidden;
  border: 1px solid rgba(31, 111, 178, 0.13);
  border-radius: 8px;
  background: #fff;
}

.invoice-preview__section > h3 {
  margin: 0;
  padding: 0.85rem 1rem;
  color: var(--forest-900);
  background: var(--sage-100);
  font-size: 1rem;
}

.invoice-header-details {
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(150px, 1fr);
  gap: 1rem;
  margin: 0;
  padding: 1rem;
}

.invoice-header-details div {
  display: grid;
  gap: 0.25rem;
}

.invoice-header-details dt {
  color: var(--muted);
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.invoice-header-details dd {
  margin: 0;
  color: var(--forest-900);
  font-weight: 800;
}

.invoice-breakdown__head,
.invoice-breakdown__row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 1rem;
  padding: 0.8rem 1rem;
}

.invoice-breakdown__head {
  color: var(--muted);
  background: #fff;
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.invoice-breakdown__head span:last-child,
.invoice-breakdown__row strong {
  text-align: right;
}

.invoice-breakdown__row:nth-child(odd) {
  background: #f0f2f4;
}

.invoice-breakdown__row:nth-child(even) {
  background: #fff;
}

.invoice-breakdown__empty {
  margin: 0;
  padding: 1rem;
  color: var(--muted);
  background: #f0f2f4;
}

.invoice-preview__total > div {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem;
  font-size: 1.05rem;
  font-weight: 800;
}

.invoice-preview__total strong {
  color: var(--forest-900);
  font-size: 1.35rem;
}

@media (max-width: 640px) {
  .invoice-header-details {
    grid-template-columns: 1fr;
  }
}

.review-invoice-sections {
  display: grid;
  gap: 1rem;
  margin-top: 2rem;
}

.review-invoice-section {
  overflow: hidden;
  border: 1px solid rgba(31, 111, 178, 0.13);
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 14px 34px rgba(13, 51, 89, 0.07);
}

.review-invoice-section > h2 {
  margin: 0;
  padding: 0.85rem 1rem;
  color: var(--forest-900);
  background: var(--sage-100);
  font-size: 1rem;
}

.review-invoice-section .status-board {
  margin: 0;
  padding: 1rem;
}

.review-invoice-section .status-card {
  box-shadow: none;
}

.review-invoice-section .portal-table-wrap {
  margin: 0;
  border: 0;
  border-radius: 0;
  box-shadow: none;
}

.review-invoice-section--breakdown .portal-table tbody tr:nth-child(odd) td {
  background: #f0f2f4;
}

.review-invoice-section--breakdown .portal-table tbody tr:nth-child(even) td {
  background: #fff;
}

.review-invoice-section .portal-total-panel {
  margin: 0;
  border: 0;
  border-radius: 0;
  box-shadow: none;
}

.service-provider-password-help,
.service-provider-password-error {
  margin: 0;
  border-radius: 8px;
  padding: 0.75rem 0.85rem;
}

.service-provider-password-help {
  color: var(--muted);
  background: var(--sage-100);
}

.service-provider-password-error {
  color: #853b08;
  background: #fff7ed;
  font-weight: 800;
}

.order-product {
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: start;
  gap: 0.7rem;
  border: 1px solid rgba(31, 111, 178, 0.13);
  border-radius: 8px;
  padding: 0.9rem;
  background: rgba(245, 249, 255, 0.9);
}

.order-product input {
  margin-top: 0.25rem;
}

.new-listing-wizard .product-selection-step .order-product input[type="checkbox"] {
  width: 1.2rem !important;
  min-width: 1.2rem;
  min-height: 1.2rem;
  padding: 0;
}

.product-selection-status {
  grid-column: 1 / -1;
  margin: 0 0 1rem;
  border-radius: 8px;
  padding: 0.85rem 1rem;
  color: var(--muted);
  background: var(--sage-100);
  font-weight: 750;
}

.product-selection-status--error {
  color: #853b08;
  background: #fff7ed;
}

.product-selection-list {
  grid-column: 1 / -1;
  width: 100%;
}

.order-product span {
  display: grid;
  gap: 0.3rem;
}

.order-product small,
.order-product em {
  color: var(--muted);
  font-style: normal;
}

.inline-form {
  display: inline;
}

.inline-form button {
  border: 0;
  padding: 0;
  color: var(--leaf-700);
  background: transparent;
  font: inherit;
  font-weight: 800;
  cursor: pointer;
}

.portal-form {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.85rem;
  margin-top: 2rem;
  border: 1px solid rgba(31, 111, 178, 0.13);
  border-radius: 8px;
  padding: 1.15rem;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 14px 34px rgba(13, 51, 89, 0.07);
}

.listing-form {
  grid-template-columns: repeat(12, minmax(0, 1fr));
}

.listing-form__span-2 {
  grid-column: span 2;
}

.listing-form__span-3 {
  grid-column: span 3;
}

.listing-form__span-4 {
  grid-column: span 4;
}

.listing-form__span-6 {
  grid-column: span 6;
}

.listing-form__span-8 {
  grid-column: span 8;
}

.listing-form__span-9 {
  grid-column: span 9;
}

.portal-form__full {
  grid-column: 1 / -1;
}

.portal-form label {
  display: block;
  margin-bottom: 0.35rem;
  color: var(--forest-900);
  font-size: 0.75rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.portal-form input,
.portal-form textarea,
.portal-form select {
  min-height: 46px;
  width: 100%;
  border: 1px solid rgba(31, 111, 178, 0.18);
  border-radius: 8px;
  padding: 0.72rem 0.78rem;
  color: var(--ink);
  background: rgba(255, 255, 255, 0.95);
  font: inherit;
}

.portal-form textarea {
  min-height: 120px;
  resize: vertical;
}

.portal-form span {
  display: block;
  margin-top: 0.28rem;
  color: #b45309;
  font-size: 0.82rem;
}

.portal-danger-form {
  display: flex;
  justify-content: flex-end;
  margin-top: 1rem;
}

.hero {
  position: relative;
  min-height: 96vh;
  display: flex;
  flex-direction: column;
  padding: 0 2rem 4rem;
  color: #ffffff;
  background:
    linear-gradient(90deg, rgba(8, 33, 63, 0.9) 0%, rgba(8, 33, 63, 0.72) 43%, rgba(24, 87, 140, 0.22) 100%),
    linear-gradient(180deg, rgba(8, 33, 63, 0.24) 0%, rgba(8, 33, 63, 0.14) 58%, rgba(8, 33, 63, 0.82) 100%),
    url("/images/ushp-gallery/4119CalvertCove77386-10952--MLS--_0030.jpg") center / cover no-repeat;
}

.hero::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 32%;
  pointer-events: none;
  background: linear-gradient(180deg, rgba(8, 33, 63, 0) 0%, rgba(8, 33, 63, 0.82) 100%);
}

.topbar,
.site-header,
.hero__content {
  position: relative;
  z-index: 1;
  width: min(100%, 1200px);
  margin-inline: auto;
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 44px;
  border-bottom: 1px solid rgba(216, 236, 255, 0.22);
  color: var(--mint-200);
  font-size: 0.86rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.topbar__links {
  display: flex;
  align-items: center;
  gap: 1rem;
  color: #ffffff;
  letter-spacing: 0;
  text-transform: none;
}

.site-header {
  z-index: 2;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 1.25rem;
  min-height: 104px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  width: max-content;
  max-width: 100%;
}

.brand__mark {
  width: 66px;
  height: 66px;
  object-fit: contain;
  filter: drop-shadow(0 12px 18px rgba(8, 33, 63, 0.36));
}

.brand__text {
  display: grid;
  gap: 0.1rem;
  color: #ffffff;
}

.brand__text strong {
  font-family: "Gill Sans", "Segoe UI", Arial, sans-serif;
  font-size: 1.2rem;
  font-weight: 800;
  letter-spacing: 0;
  line-height: 1;
}

.brand__text small {
  color: var(--mint-200);
  font-size: 0.62rem;
  font-weight: 950;
  letter-spacing: 0.16em;
  line-height: 1.25;
  text-transform: uppercase;
}

.site-nav {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.35rem;
}

.site-nav a,
.utility-link {
  min-height: 40px;
  display: inline-flex;
  align-items: center;
  padding: 0.65rem 0.8rem;
  border-radius: 8px;
  color: #edf7ff;
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  transition: background-color 0.2s ease, color 0.2s ease;
}

.site-nav a:hover,
.site-nav a:focus-visible,
.utility-link:hover,
.utility-link:focus-visible {
  color: var(--forest-950);
  background: var(--mint-200);
}

.login-menu {
  position: relative;
}

.login-menu__summary {
  cursor: pointer;
  list-style: none;
}

.login-menu__summary::-webkit-details-marker {
  display: none;
}

.login-menu__summary::after {
  content: "";
  width: 0.46rem;
  height: 0.46rem;
  margin-left: 0.55rem;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: rotate(45deg) translateY(-1px);
  transition: transform 0.2s ease;
}

.login-menu[open] .login-menu__summary {
  color: var(--forest-950);
  background: var(--mint-200);
}

.login-menu[open] .login-menu__summary::after {
  transform: rotate(225deg) translate(-1px, -1px);
}

.login-menu__panel {
  position: absolute;
  right: 0;
  top: calc(100% + 0.45rem);
  z-index: 20;
  min-width: 230px;
  padding: 0.45rem;
  border: 1px solid rgba(216, 236, 255, 0.32);
  border-radius: 8px;
  background: rgba(8, 33, 63, 0.94);
  box-shadow: 0 22px 48px rgba(8, 33, 63, 0.28);
}

.login-menu__panel a {
  display: flex;
  align-items: center;
  min-height: 42px;
  padding: 0.68rem 0.78rem;
  border-radius: 8px;
  color: #ffffff;
  font-size: 0.8rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.login-menu__panel a:hover,
.login-menu__panel a:focus-visible {
  color: var(--forest-950);
  background: var(--mint-200);
}

.site-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 0.55rem;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0.85rem 1.05rem;
  border: 1px solid transparent;
  border-radius: 8px;
  font-size: 0.88rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
}

.button:hover,
.button:focus-visible {
  transform: translateY(-2px);
}

.button--primary {
  color: var(--forest-950);
  background: linear-gradient(135deg, #f7fbff 0%, #d8ecff 46%, #73b8f2 100%);
  box-shadow: 0 18px 36px rgba(47, 134, 214, 0.28);
}

.button--secondary {
  color: #ffffff;
  border-color: rgba(216, 236, 255, 0.42);
  background: rgba(8, 33, 63, 0.5);
  backdrop-filter: blur(14px);
}

.hero__content {
  display: flex;
  flex: 1;
  flex-direction: column;
  justify-content: center;
  min-height: 560px;
  padding-block: 4rem 5rem;
}

.eyebrow {
  color: var(--leaf-500);
  font-size: 0.82rem;
  font-weight: 950;
  letter-spacing: 0.16em;
  line-height: 1.5;
  text-transform: uppercase;
}

.hero .eyebrow {
  color: var(--mint-200);
}

.hero__lead {
  max-width: 43rem;
  margin-top: 1.25rem;
  color: #eaf4ff;
  font-size: 1.2rem;
  line-height: 1.65;
}

.hero__actions,
.hero__proof {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.hero__actions {
  margin-top: 2rem;
}

.hero__proof {
  margin-top: 2.25rem;
}

.hero__proof span {
  display: inline-flex;
  align-items: center;
  min-height: 38px;
  padding: 0.5rem 0.75rem;
  border: 1px solid rgba(216, 236, 255, 0.28);
  border-radius: 8px;
  color: #eff7ff;
  background: rgba(8, 33, 63, 0.42);
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  backdrop-filter: blur(12px);
}

.intro-band {
  color: #ffffff;
  background: linear-gradient(90deg, var(--forest-950), var(--forest-800));
}

.section-inner {
  width: min(100% - 4rem, 1200px);
  margin-inline: auto;
}

.intro-band__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding-block: 1.05rem;
}

.intro-band p {
  color: #dcecff;
  font-size: 0.92rem;
  font-weight: 800;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.intro-band a {
  color: var(--mint-200);
  font-weight: 950;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.section {
  scroll-margin-top: 2rem;
  padding-block: 6rem;
}

.section--light {
  background: var(--stone-100);
}

.section-heading {
  max-width: 730px;
  margin-bottom: 2.25rem;
}

.section-heading--center {
  max-width: 680px;
  margin-inline: auto;
  text-align: center;
}

.section-heading h2,
.split-copy h2,
.section--contact h2 {
  margin-top: 0.65rem;
  color: var(--forest-900);
}

.section-heading p:not(.eyebrow),
.split-copy > p,
.section--contact p {
  margin-top: 1rem;
  color: var(--muted);
  font-size: 1.06rem;
  line-height: 1.7;
}

.service-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1rem;
}

.service-card {
  overflow: hidden;
  border: 1px solid rgba(31, 111, 178, 0.12);
  border-radius: 8px;
  background: #ffffff;
  box-shadow: 0 16px 42px rgba(13, 51, 89, 0.08);
}

.service-card img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.service-card div {
  padding: 1.1rem;
}

.card-kicker {
  margin-bottom: 0.55rem;
  color: var(--moss-600);
  font-size: 0.78rem;
  font-weight: 950;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.service-card h3 {
  color: var(--forest-900);
}

.service-card p:last-child {
  margin-top: 0.8rem;
  color: var(--muted);
  line-height: 1.6;
}

.section--split {
  color: #ffffff;
  background:
    linear-gradient(90deg, rgba(8, 33, 63, 0.96), rgba(24, 87, 140, 0.84)),
    url("/images/ushp-gallery/4119CalvertCove77386-10952--MLS--_0014.jpg") center / cover fixed;
}

.split-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(300px, 0.72fr);
  align-items: center;
  gap: 3rem;
}

.split-copy h2,
.section--split .split-copy > p {
  color: #ffffff;
}

.section--split .eyebrow {
  color: var(--mint-200);
}

.section--split .split-copy > p {
  color: #d6e8f8;
}

.feature-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.65rem;
  margin-top: 1.6rem;
}

.feature-list span {
  min-height: 48px;
  display: flex;
  align-items: center;
  padding: 0.7rem 0.8rem;
  border: 1px solid rgba(216, 236, 255, 0.22);
  border-radius: 8px;
  color: #eff7ff;
  background: rgba(8, 33, 63, 0.34);
  font-size: 0.88rem;
  font-weight: 850;
}

.feature-photo {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(216, 236, 255, 0.26);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.feature-photo img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
}

.feature-photo figcaption,
.portfolio-item figcaption {
  position: absolute;
  left: 0.75rem;
  bottom: 0.75rem;
  max-width: calc(100% - 1.5rem);
  padding: 0.5rem 0.65rem;
  border-radius: 8px;
  color: #ffffff;
  background: rgba(8, 33, 63, 0.66);
  font-size: 0.78rem;
  font-weight: 950;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  backdrop-filter: blur(12px);
}

.section--pricing {
  background: linear-gradient(180deg, #f7fbff 0%, #eaf4ff 100%);
}

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

.price-card {
  display: flex;
  flex-direction: column;
  min-height: 420px;
  padding: 1.4rem;
  border: 1px solid rgba(31, 111, 178, 0.13);
  border-radius: 8px;
  background: #ffffff;
  box-shadow: 0 20px 45px rgba(13, 51, 89, 0.08);
}

.price-card--featured {
  color: #ffffff;
  border-color: rgba(216, 236, 255, 0.2);
  background: linear-gradient(180deg, var(--forest-800), var(--forest-950));
  transform: translateY(-0.75rem);
}

.price-card__label {
  color: var(--moss-600);
  font-size: 0.78rem;
  font-weight: 950;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.price-card--featured .price-card__label {
  color: var(--mint-200);
}

.price-card h3 {
  margin-top: 0.6rem;
  color: var(--forest-900);
  font-size: 1.7rem;
}

.price-card--featured h3 {
  color: #ffffff;
}

.price-card__summary {
  margin-top: 0.7rem;
  color: var(--muted);
  line-height: 1.6;
}

.price-card--featured .price-card__summary {
  color: #d6e8f8;
}

.price-card dl {
  display: grid;
  gap: 0.45rem;
  margin-top: auto;
  padding-top: 1.4rem;
}

.price-card dl div {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 48px;
  padding: 0.7rem 0;
  border-top: 1px solid rgba(31, 111, 178, 0.12);
}

.price-card--featured dl div {
  border-color: rgba(216, 236, 255, 0.16);
}

.price-card dt {
  color: inherit;
  font-weight: 800;
}

.price-card dd {
  color: var(--moss-600);
  font-size: 1.35rem;
  font-weight: 950;
}

.price-card--featured dd {
  color: var(--mint-200);
}

.add-on-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
  margin-top: 1rem;
}

.add-on-grid article {
  padding: 1.2rem;
  border: 1px solid rgba(31, 111, 178, 0.12);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.78);
}

.add-on-grid h3 {
  color: var(--forest-900);
}

.add-on-grid p {
  margin-top: 0.75rem;
  color: var(--muted);
  line-height: 1.6;
}

.section--portfolio {
  background: #0a2745;
}

.section--portfolio .section-heading h2 {
  color: #ffffff;
}

.section--portfolio .section-heading p:not(.eyebrow) {
  color: #d6e8f8;
}

.section--portfolio .eyebrow {
  color: var(--mint-200);
}

.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  grid-auto-rows: 270px;
  gap: 1rem;
}

.portfolio-item {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(216, 236, 255, 0.16);
  border-radius: 8px;
  background: #0e2438;
}

.portfolio-item--wide {
  grid-column: span 2;
}

.portfolio-item--tall {
  grid-row: span 2;
}

.portfolio-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.35s ease;
}

.portfolio-item:hover img,
.portfolio-item:focus-within img {
  transform: scale(1.035);
}

.section--contact {
  color: #ffffff;
  background:
    linear-gradient(90deg, rgba(8, 33, 63, 0.94), rgba(24, 87, 140, 0.74)),
    url("/images/ushp-gallery/IMG_9065.jpg") center / cover no-repeat;
}

.section--contact h2,
.section--contact p {
  color: #ffffff;
}

.section--contact .eyebrow {
  color: var(--mint-200);
}

.contact-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 0.55fr);
  align-items: center;
  gap: 3rem;
}

.contact-panel {
  display: grid;
  gap: 0.75rem;
  padding: 1rem;
  border: 1px solid rgba(216, 236, 255, 0.22);
  border-radius: 8px;
  background: rgba(8, 33, 63, 0.56);
  backdrop-filter: blur(14px);
}

.contact-panel a {
  display: flex;
  align-items: center;
  min-height: 54px;
  padding: 0.8rem 0.9rem;
  border-radius: 8px;
  color: var(--forest-950);
  background: var(--mint-200);
  font-weight: 950;
}

.site-footer {
  color: #d6e8f8;
  background: var(--forest-950);
  padding-block: 3rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: minmax(220px, 0.65fr) minmax(0, 1.2fr) minmax(180px, 0.4fr);
  gap: 2rem;
}

.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
}

.footer-logo {
  width: 70px;
  height: 70px;
  object-fit: contain;
}

.footer-brand span {
  display: grid;
  gap: 0.12rem;
}

.footer-brand strong {
  color: #ffffff;
  font-family: "Gill Sans", "Segoe UI", Arial, sans-serif;
  font-size: 1.15rem;
  font-weight: 800;
  line-height: 1;
}

.footer-brand small {
  color: var(--mint-200);
  font-size: 0.62rem;
  font-weight: 950;
  letter-spacing: 0.16em;
  line-height: 1.25;
  text-transform: uppercase;
}

.site-footer p {
  margin-top: 1rem;
  color: #bed4ea;
  line-height: 1.7;
}

.site-footer h2 {
  color: #ffffff;
  font-size: 1rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.site-footer a {
  display: block;
  margin-top: 0.7rem;
  color: var(--mint-200);
  font-weight: 850;
}

@media (max-width: 1080px) {
  h1 {
    font-size: 3.7rem;
  }

  h2 {
    font-size: 2.45rem;
  }

  .site-header {
    grid-template-columns: 1fr;
    align-items: start;
    padding-block: 1.1rem;
  }

  .site-nav {
    justify-content: flex-start;
  }

  .site-actions {
    justify-content: flex-start;
  }

  .service-grid,
  .portfolio-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .pricing-grid,
  .add-on-grid,
  .portal-grid,
  .provider-job-actions,
  .provider-job-grid,
  .portal-form,
  .listing-form,
  .status-board {
    grid-template-columns: 1fr;
  }

  .listing-form__span-2,
  .listing-form__span-3,
  .listing-form__span-4,
  .listing-form__span-6,
  .listing-form__span-8,
  .listing-form__span-9 {
    grid-column: 1 / -1;
  }

  .price-card,
  .price-card--featured {
    min-height: auto;
    transform: none;
  }
}

@media (max-width: 780px) {
  .hero {
    min-height: auto;
    padding: 0 1rem 3rem;
  }

  .topbar {
    align-items: flex-start;
    flex-direction: column;
    padding-block: 0.8rem;
  }

  .topbar__links {
    flex-wrap: wrap;
  }

  .brand__mark {
    width: 58px;
    height: 58px;
  }

  .brand__text strong {
    font-size: 1.05rem;
  }

  .brand__text small {
    font-size: 0.56rem;
    letter-spacing: 0.13em;
  }

  .site-nav a,
  .utility-link {
    min-height: 38px;
    padding-inline: 0.58rem;
    font-size: 0.72rem;
  }

  .hero__content {
    min-height: 520px;
    padding-block: 2.5rem;
  }

  h1 {
    font-size: 2.75rem;
  }

  h2 {
    font-size: 2.05rem;
  }

  .hero__lead {
    font-size: 1rem;
  }

  .section-inner {
    width: min(100% - 2rem, 1200px);
  }

  .intro-band__inner,
  .split-layout,
  .contact-layout,
  .footer-grid,
  .portal-total-panel,
  .portal-header,
  .portal-actions {
    grid-template-columns: 1fr;
  }

  .portal-header,
  .portal-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .intro-band__inner {
    display: grid;
  }

  .feature-list {
    grid-template-columns: 1fr;
  }

  .portfolio-grid {
    grid-auto-rows: 235px;
  }

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

  .order-step__help,
  .order-review > div,
  .new-listing-wizard .order-step:not([hidden]) {
    grid-template-columns: 1fr;
  }

  .new-listing-wizard .listing-form__span-2,
  .new-listing-wizard .listing-form__span-3,
  .new-listing-wizard .listing-form__span-4,
  .new-listing-wizard .listing-form__span-6,
  .new-listing-wizard .listing-form__span-8,
  .new-listing-wizard .listing-form__span-9 {
    grid-column: 1 / -1;
  }

  .new-listing-wizard .property-entry-step {
    padding: 1rem;
  }

  .portal-shell.new-order-shell {
    width: 100% !important;
  }

  .new-listing-wizard .property-address-step {
    padding: 1rem;
  }

  .new-listing-wizard .property-entry-step input,
  .new-listing-wizard .property-entry-step select,
  .new-listing-wizard .property-entry-step textarea {
    min-height: 48px;
    font-size: 1rem;
  }

  .order-step__help .button {
    width: 100%;
  }
}

@media (max-width: 560px) {
  .hero__actions,
  .site-actions {
    width: 100%;
  }

  .button {
    flex: 1 1 100%;
  }

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

  .utility-link {
    justify-content: center;
    border: 1px solid rgba(216, 236, 255, 0.22);
  }

  .login-menu,
  .login-menu__summary {
    width: 100%;
  }

  .login-menu__panel {
    position: static;
    width: 100%;
    margin-top: 0.45rem;
  }

  h1 {
    font-size: 2.35rem;
  }

  .section {
    padding-block: 4rem;
  }

  .service-grid,
  .portfolio-grid {
    grid-template-columns: 1fr;
  }

  .portfolio-item--wide,
  .portfolio-item--tall {
    grid-column: auto;
    grid-row: auto;
  }

  .price-card {
    padding: 1.1rem;
  }

  .order-step__actions,
  .order-submit-field,
  .order-confirmation {
    align-items: stretch;
    flex-direction: column;
  }

  .order-step__actions .button,
  .order-submit-field .button {
    width: 100%;
  }

  .order-review li {
    flex-direction: column;
    gap: 0.25rem;
  }

  .price-card dl div {
    align-items: flex-start;
    flex-direction: column;
    gap: 0.3rem;
  }
}

/* Approved USHP Services artwork; wider proportions keep its lettering readable. */
.brand__mark { width: 164px; height: 90px; flex-shrink: 0; object-fit: contain; filter: none; border-radius: 6px; }
.auth-brand img { width: 144px; height: 79px; flex-shrink: 0; border-radius: 6px; }
.footer-logo { width: 144px; height: 79px; flex-shrink: 0; border-radius: 6px; }
@media (max-width: 640px) {
  .brand__mark { width: 128px; height: 70px; }
  .auth-brand img, .footer-logo { width: 120px; height: 66px; }
}

/* The approved logo already includes the company name. */
.brand__text { display: none; }
