/* ---------------------------------------------------------------------------
 * Unlink Realtor — public standalone page.
 *
 * Design system: "The Calm Ledger" rebrand (dayron-feature/rebrand).
 * Navy carries the surface; orange is held back to a scarce accent.
 * No gradients, no shadows. Editorial rhythm with a 17px body floor.
 *
 * All selectors are prefixed with `.ur-` (unlink-realtor) so this file is
 * scoped and will not bleed into anything else if it ever gets co-loaded.
 * ------------------------------------------------------------------------- */

:root {
  /* Brand */
  --ur-navy: #243c90;
  --ur-navy-hover: #1b2f71;
  --ur-navy-tint: #eef1fa;

  --ur-orange: #eb5a2d;
  --ur-orange-tint: #fce8df;

  /* Text */
  --ur-text-primary: #1b1d2a;
  --ur-text-body: #2c2f3f;
  --ur-text-muted: #6b6b6b;
  --ur-text-subtle: #9b9b9b;

  /* Lines & surfaces */
  --ur-hairline: #e6e2dc;
  --ur-hairline-strong: #d9d4cb;
  --ur-surface: #fbfbfd;
  --ur-page-bg: #faf8f5;

  /* Semantics */
  --ur-error: #b8503e;

  /* Shape */
  --ur-radius-sm: 4px;
  --ur-radius-md: 12px;
  --ur-radius-lg: 16px;

  /* Type */
  --ur-body-floor: 17px;
  --ur-font: "Lato", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
    "Helvetica Neue", Arial, sans-serif;
}

/* ---------------------------------------------------------------------------
 * Reset (minimal — we don't load Bootstrap on this page)
 * ------------------------------------------------------------------------- */

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

html,
body {
  margin: 0;
  padding: 0;
  background-color: var(--ur-navy-tint);
  color: var(--ur-text-primary);
  font-family: var(--ur-font);
  font-size: var(--ur-body-floor);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

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

a {
  color: var(--ur-navy);
  text-decoration: none;
}
a:hover {
  text-decoration: underline;
  text-decoration-color: var(--ur-navy);
}

[hidden] {
  display: none !important;
}

/* ---------------------------------------------------------------------------
 * Header
 * ------------------------------------------------------------------------- */

.ur-header {
  background-color: var(--ur-surface);
  border-bottom: 1px solid var(--ur-hairline);
  height: 60px;
}

.ur-header-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  height: 100%;
}

.ur-brand {
  display: inline-flex;
  align-items: center;
  line-height: 0;
}
.ur-brand:hover {
  text-decoration: none;
}
.ur-brand img {
  height: 30px;
  width: auto;
  display: block;
}

/* ---------------------------------------------------------------------------
 * Page shell
 * ------------------------------------------------------------------------- */

.ur-page {
  min-height: calc(100vh - 60px);
  padding: 40px 20px 64px;
}

@media (min-width: 640px) {
  .ur-page {
    padding: 64px 32px 96px;
  }
}

.ur-shell {
  max-width: 640px;
  margin: 0 auto;
  background: transparent;
}

.ur-state {
  display: block;
}

.ur-state-loading {
  padding: 40px 0;
  text-align: center;
}
.ur-loading-text {
  margin: 0;
  color: var(--ur-text-muted);
  font-size: var(--ur-body-floor);
  letter-spacing: 0.02em;
}

/* ---------------------------------------------------------------------------
 * Typography
 * ------------------------------------------------------------------------- */

.ur-heading {
  font-size: 28px;
  font-weight: 600;
  color: var(--ur-navy);
  line-height: 1.15;
  letter-spacing: -0.01em;
  margin: 0 0 20px;
}
@media (min-width: 640px) {
  .ur-heading {
    font-size: 34px;
  }
}

.ur-body {
  font-size: var(--ur-body-floor);
  line-height: 1.65;
  color: var(--ur-text-body);
  margin: 0 0 24px;
  max-width: 60ch;
}

.ur-body-muted {
  color: var(--ur-text-muted);
}

.ur-body-actions {
  margin: 24px 0 0;
}

.ur-link {
  color: var(--ur-navy);
  font-weight: 500;
}

/* ---------------------------------------------------------------------------
 * Realtor card
 * ------------------------------------------------------------------------- */

.ur-card {
  background-color: var(--ur-surface);
  border: 1px solid var(--ur-hairline);
  border-radius: var(--ur-radius-lg);
  padding: 20px;
  margin: 16px 0 28px;
}
@media (min-width: 640px) {
  .ur-card {
    padding: 24px;
  }
}

.ur-eyebrow {
  font-size: 12px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  font-weight: 600;
  color: var(--ur-navy);
  margin: 0 0 16px;
}

.ur-card-identity {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 20px;
}

.ur-card-avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  flex-shrink: 0;
  border: 1px solid var(--ur-hairline);
  background-color: var(--ur-navy-tint);
  color: var(--ur-navy);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  font-weight: 600;
  letter-spacing: 0.02em;
  overflow: hidden;
}

.ur-card-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.ur-card-name {
  font-size: 20px;
  font-weight: 600;
  color: var(--ur-text-primary);
  line-height: 1.2;
  word-break: break-word;
  margin: 0;
}

.ur-card-rows {
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
}

.ur-card-row {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 12px 0;
  border-top: 1px solid var(--ur-hairline);
}
.ur-card-row:first-child {
  border-top: none;
  padding-top: 0;
}
.ur-card-row:last-child {
  padding-bottom: 0;
}

@media (min-width: 640px) {
  .ur-card-row {
    flex-direction: row;
    align-items: baseline;
    gap: 16px;
  }
}

.ur-card-label {
  font-size: 12px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  font-weight: 600;
  color: var(--ur-text-muted);
  margin: 0;
  line-height: 1.4;
}
@media (min-width: 640px) {
  .ur-card-label {
    flex: 0 0 110px;
  }
}

.ur-card-value {
  font-size: var(--ur-body-floor);
  color: var(--ur-text-primary);
  font-weight: 500;
  word-break: break-word;
  line-height: 1.45;
  margin: 0;
  flex: 1;
  min-width: 0;
}

/* ---------------------------------------------------------------------------
 * Actions
 * ------------------------------------------------------------------------- */

.ur-action {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-top: 8px;
}

/* ---------------------------------------------------------------------------
 * Buttons
 * ------------------------------------------------------------------------- */

.ur-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 11px 22px;
  font-family: inherit;
  font-size: var(--ur-body-floor);
  font-weight: 600;
  letter-spacing: 0.02em;
  line-height: 1.2;
  border-radius: var(--ur-radius-sm);
  border: 1px solid transparent;
  cursor: pointer;
  text-decoration: none;
  transition: background-color 0.15s ease, border-color 0.15s ease,
    color 0.15s ease;
  align-self: flex-start;
  min-width: 200px;
}

.ur-btn:focus-visible {
  outline: 2px solid var(--ur-navy);
  outline-offset: 2px;
}

.ur-btn:disabled,
.ur-btn[aria-disabled="true"] {
  opacity: 0.55;
  cursor: not-allowed;
}

.ur-btn-primary {
  background-color: var(--ur-navy);
  color: #f4f2ee;
  border-color: var(--ur-navy);
}
.ur-btn-primary:hover:not(:disabled) {
  background-color: var(--ur-navy-hover);
  border-color: var(--ur-navy-hover);
  text-decoration: none;
}

.ur-btn-ghost {
  background-color: transparent;
  color: var(--ur-navy);
  border-color: var(--ur-navy);
}
.ur-btn-ghost:hover:not(:disabled) {
  background-color: var(--ur-navy-tint);
  text-decoration: none;
}

.ur-btn-error {
  background-color: transparent;
  color: var(--ur-error);
  border-color: var(--ur-error);
}
.ur-btn-error:hover:not(:disabled) {
  background-color: var(--ur-orange-tint);
  text-decoration: none;
}

/* ---------------------------------------------------------------------------
 * Feedback
 * ------------------------------------------------------------------------- */

.ur-feedback {
  margin-top: 16px;
  padding: 12px 16px;
  border-radius: var(--ur-radius-md);
  font-size: var(--ur-body-floor);
  line-height: 1.55;
  border: 1px solid var(--ur-hairline);
  background-color: var(--ur-surface);
  color: var(--ur-text-primary);
}

.ur-feedback.is-success {
  background-color: var(--ur-navy-tint);
  border-color: var(--ur-navy-tint);
  color: var(--ur-text-primary);
}

.ur-feedback.is-error {
  background-color: var(--ur-orange-tint);
  border-color: var(--ur-error);
  color: var(--ur-error);
}

/* ---------------------------------------------------------------------------
 * Support block
 * ------------------------------------------------------------------------- */

.ur-support {
  margin-top: 48px;
  padding-top: 20px;
  border-top: 1px solid var(--ur-hairline);
  color: var(--ur-text-muted);
  line-height: 1.55;
}
.ur-support-title {
  margin: 0 0 4px;
  font-weight: 500;
  color: var(--ur-text-body);
  font-size: var(--ur-body-floor);
}
.ur-support-body {
  margin: 0;
  font-size: var(--ur-body-floor);
}

/* ---------------------------------------------------------------------------
 * Modal
 * ------------------------------------------------------------------------- */

.ur-modal {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.ur-modal-backdrop {
  position: absolute;
  inset: 0;
  background-color: rgba(27, 29, 42, 0.45);
}

.ur-modal-card {
  position: relative;
  background-color: var(--ur-surface);
  border: 1px solid var(--ur-hairline);
  border-radius: var(--ur-radius-lg);
  padding: 28px 24px 24px;
  max-width: 440px;
  width: 100%;
}

.ur-modal-title {
  margin: 0 0 12px;
  font-size: 22px;
  font-weight: 600;
  color: var(--ur-navy);
  line-height: 1.2;
}

.ur-modal-body {
  margin: 0 0 24px;
  font-size: var(--ur-body-floor);
  line-height: 1.55;
  color: var(--ur-text-body);
}

.ur-modal-actions {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

@media (min-width: 640px) {
  .ur-modal-actions {
    flex-direction: row;
    justify-content: flex-end;
  }
}

.ur-modal-actions .ur-btn {
  min-width: 0;
  width: 100%;
}
@media (min-width: 640px) {
  .ur-modal-actions .ur-btn {
    width: auto;
    min-width: 140px;
  }
}

/* ---------------------------------------------------------------------------
 * Footer
 * ------------------------------------------------------------------------- */

.ur-footer {
  background-color: var(--ur-page-bg);
  border-top: 1px solid var(--ur-hairline);
  padding: 40px 20px 56px;
  color: var(--ur-text-body);
  font-size: 15px;
  line-height: 1.5;
}

.ur-footer-inner {
  max-width: 1080px;
  margin: 0 auto;
}

.ur-footer-top {
  display: flex;
  flex-direction: column;
  gap: 32px;
  padding-bottom: 28px;
  border-bottom: 1px solid var(--ur-hairline);
}

@media (min-width: 768px) {
  .ur-footer-top {
    flex-direction: row;
    gap: 40px;
  }
  .ur-footer-brand {
    flex: 1 1 33%;
  }
  .ur-footer-col {
    flex: 1 1 33%;
  }
}

.ur-footer-brand {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.ur-footer-logo {
  width: 160px;
  height: auto;
}
.ur-footer-tagline {
  margin: 0;
  color: var(--ur-text-muted);
}

.ur-footer-col {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.ur-footer-col-title {
  margin: 0 0 4px;
  font-weight: 600;
  color: var(--ur-text-primary);
  font-size: 17px;
}

.ur-footer-link {
  color: var(--ur-text-body);
  text-decoration: none;
}
.ur-footer-link:hover {
  text-decoration: underline;
  color: var(--ur-navy);
}

.ur-footer-follow {
  margin: 12px 0 6px;
  font-weight: 600;
  color: var(--ur-text-primary);
}
.ur-footer-social {
  display: flex;
  align-items: center;
  gap: 12px;
}
.ur-footer-social img {
  display: block;
}

.ur-footer-bottom {
  padding-top: 24px;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

@media (min-width: 768px) {
  .ur-footer-bottom {
    flex-direction: row;
    justify-content: space-between;
    align-items: flex-start;
  }
}

.ur-footer-stores-text {
  margin: 0 0 12px;
  color: var(--ur-text-muted);
}
.ur-footer-stores-badges {
  display: flex;
  align-items: center;
  gap: 12px;
}

.ur-footer-legal {
  display: flex;
  flex-direction: column;
  gap: 6px;
  color: var(--ur-text-muted);
}
.ur-footer-rights {
  margin: 0;
}
.ur-footer-fineprint {
  font-size: 13px;
  color: var(--ur-text-subtle);
}
.ur-footer-policy {
  margin-top: 4px;
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}
.ur-footer-sep {
  color: var(--ur-text-subtle);
}
