/* Crown Property Services — crownpsi.com */
@font-face { font-family: "Barlow"; src: url("fonts/barlow-latin-400-normal.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Barlow"; src: url("fonts/barlow-latin-500-normal.woff2") format("woff2"); font-weight: 500; font-display: swap; }
@font-face { font-family: "Barlow"; src: url("fonts/barlow-latin-600-normal.woff2") format("woff2"); font-weight: 600; font-display: swap; }
@font-face { font-family: "Barlow"; src: url("fonts/barlow-latin-700-normal.woff2") format("woff2"); font-weight: 700; font-display: swap; }
@font-face { font-family: "Cinzel"; src: url("fonts/cinzel-latin-600-normal.woff2") format("woff2"); font-weight: 600; font-display: swap; }

:root {
  --ink: #111214;
  --char: #1c1d20;
  --char-2: #26282c;
  --paper: #f6f5f2;
  --white: #ffffff;
  --text: #1d1f22;
  --muted: #5b5f66;
  --line: #dcdad4;
  --silver-1: #f1f1ee;
  --silver-2: #b9bbbe;
  --silver-3: #8a8d92;
  --silver: linear-gradient(100deg, #8a8d92 0%, #e9e9e6 35%, #b9bbbe 55%, #f1f1ee 75%, #9a9da2 100%);
  --wrap: 1120px;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: "Barlow", system-ui, -apple-system, "Segoe UI", sans-serif;
  font-size: 17px;
  line-height: 1.6;
  color: var(--text);
  background: var(--paper);
}
img, svg { max-width: 100%; display: block; }
a { color: inherit; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 20px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* Header */
.site-header {
  background: var(--ink);
  color: var(--silver-1);
  position: sticky; top: 0; z-index: 10;
  border-bottom: 1px solid #000;
}
.site-header::after { content: ""; display: block; height: 2px; background: var(--silver); opacity: .55; }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 64px; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; }
.brand img { width: 44px; height: auto; }
.brand span { font-family: "Cinzel", serif; font-weight: 600; letter-spacing: .22em; font-size: 15px; line-height: 1.1; }
.brand small { display: block; font-family: "Barlow", sans-serif; font-weight: 500; letter-spacing: .28em; font-size: 9.5px; color: var(--silver-2); margin-top: 3px; }
.nav { display: flex; gap: 22px; align-items: center; }
.nav a { text-decoration: none; font-weight: 500; font-size: 15px; letter-spacing: .04em; color: var(--silver-2); }
.nav a:hover, .nav a[aria-current="page"] { color: var(--white); }
.nav .call {
  white-space: nowrap;
  color: var(--ink); background: var(--silver); padding: 8px 14px; border-radius: 3px; font-weight: 700; letter-spacing: .02em;
}
.nav .call:hover { color: var(--ink); filter: brightness(1.06); }
.nav .portal {
  white-space: nowrap;
  color: var(--silver-1); border: 1px solid var(--silver-2); padding: 7px 13px; border-radius: 3px; font-weight: 600; letter-spacing: .02em;
}
.nav .portal:hover { color: var(--white); border-color: var(--white); }
@media (max-width: 720px) {
  .nav { gap: 10px; }
  .nav a:not(.call):not(.portal) { display: none; }
  .nav .portal { padding: 7px 11px; font-size: 14px; }
  .brand span { font-size: 13px; }
  .nav .call { padding: 8px 12px; font-size: 14px; }
}
@media (max-width: 480px) { .nav .portal .long { display: none; } }
@media (max-width: 380px) { .brand small { display: none; } }

/* Hero */
.hero {
  background:
    radial-gradient(1200px 500px at 85% -10%, rgba(233,233,230,.10), transparent 60%),
    linear-gradient(180deg, var(--ink), var(--char));
  color: var(--silver-1);
  padding: 72px 0 80px;
}
.hero .wrap { display: grid; grid-template-columns: 1.2fr .8fr; gap: 48px; align-items: center; }
.hero h1 {
  font-family: "Cinzel", serif; font-weight: 600; letter-spacing: .06em;
  font-size: clamp(30px, 4.6vw, 52px); line-height: 1.12; margin: 0 0 18px;
  background: var(--silver); -webkit-background-clip: text; background-clip: text; color: transparent;
}
.hero p.lede { font-size: 20px; color: #cfd0d2; max-width: 34em; margin: 0 0 28px; }
.hero .logo { justify-self: center; width: min(340px, 100%); }
.actions { display: flex; flex-wrap: wrap; gap: 12px; }
.btn {
  display: inline-block; text-decoration: none; font-weight: 700; letter-spacing: .03em;
  padding: 13px 22px; border-radius: 3px; font-size: 16px;
}
.btn-silver { background: var(--silver); color: var(--ink); }
.btn-ghost { border: 1px solid #55585e; color: var(--silver-1); }
.btn-ghost:hover { border-color: var(--silver-2); }
@media (max-width: 820px) {
  .hero { padding: 48px 0 56px; }
  .hero .wrap { grid-template-columns: 1fr; gap: 28px; }
  .hero .logo { order: -1; width: 200px; justify-self: start; }
}

/* Sections */
section { padding: 72px 0; }
.eyebrow {
  font-weight: 600; font-size: 13px; letter-spacing: .28em; text-transform: uppercase; color: var(--muted); margin: 0 0 10px;
}
h2 {
  font-family: "Cinzel", serif; font-weight: 600; letter-spacing: .05em;
  font-size: clamp(26px, 3vw, 34px); line-height: 1.2; margin: 0 0 18px; color: var(--ink);
}
h3 { font-size: 19px; font-weight: 700; margin: 0 0 6px; color: var(--ink); }
.rule { width: 72px; height: 3px; background: var(--silver); margin: 0 0 26px; border-radius: 2px; }
.about .wrap { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; }
.about p { margin: 0 0 14px; }
.facts { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; align-content: start; }
.facts li { background: var(--white); border: 1px solid var(--line); border-left: 4px solid var(--silver-3); padding: 16px 18px; border-radius: 3px; }
.facts strong { display: block; font-size: 15px; letter-spacing: .04em; text-transform: uppercase; color: var(--muted); font-weight: 600; }
.facts span { font-size: 20px; font-weight: 600; color: var(--ink); }
@media (max-width: 820px) { .about .wrap { grid-template-columns: 1fr; gap: 28px; } }

.services { background: var(--white); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.card { border: 1px solid var(--line); border-radius: 4px; padding: 24px; background: var(--paper); }
.card .icon { width: 40px; height: 40px; margin-bottom: 14px; color: var(--ink); }
.card p { margin: 0; color: var(--muted); font-size: 16px; }
@media (max-width: 900px) { .grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .grid { grid-template-columns: 1fr; } }

.band { background: var(--char); color: var(--silver-1); }
.band h2 { color: var(--silver-1); }
.band p { color: #c9cacc; max-width: 46em; }
.band .eyebrow { color: var(--silver-3); }

.contact .wrap { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; }
.contact dl { margin: 0; display: grid; grid-template-columns: max-content 1fr; gap: 12px 20px; }
.contact dt { font-weight: 600; color: var(--muted); text-transform: uppercase; letter-spacing: .08em; font-size: 14px; padding-top: 2px; }
.contact dd { margin: 0; font-size: 18px; }
.contact dd a { text-decoration: none; border-bottom: 1px solid var(--silver-2); }
.note { background: var(--white); border: 1px solid var(--line); border-radius: 4px; padding: 22px; }
.note p { margin: 0 0 10px; }
.note p:last-child { margin: 0; }
@media (max-width: 820px) { .contact .wrap { grid-template-columns: 1fr; gap: 28px; } }

/* Legal / document pages */
.page-head { background: linear-gradient(180deg, var(--ink), var(--char)); color: var(--silver-1); padding: 48px 0 40px; }
.page-head h1 { font-family: "Cinzel", serif; font-weight: 600; letter-spacing: .05em; margin: 0 0 8px; font-size: clamp(28px, 4vw, 40px); }
.page-head p { margin: 0; color: #b9bbbe; }
.doc { padding: 48px 0 72px; }
.doc .wrap { max-width: 780px; }
.doc h2 { font-size: 22px; margin: 40px 0 12px; }
.doc h2:first-child { margin-top: 0; }
.doc h3 { margin: 24px 0 8px; font-size: 17px; }
.doc p, .doc li { color: #2a2d31; }
.doc ul { padding-left: 22px; }
.doc li { margin-bottom: 6px; }
.callout { background: var(--white); border: 1px solid var(--line); border-left: 4px solid var(--ink); padding: 18px 20px; border-radius: 3px; margin: 20px 0; }
.callout p { margin: 0 0 8px; }
.callout p:last-child { margin: 0; }
.toc { background: var(--white); border: 1px solid var(--line); border-radius: 4px; padding: 16px 20px; margin-bottom: 36px; }
.toc ol { margin: 6px 0 0; padding-left: 20px; columns: 2; column-gap: 32px; }
@media (max-width: 560px) { .toc ol { columns: 1; } }
.toc a { text-decoration: none; border-bottom: 1px solid var(--line); }

/* Opt-in example (sms page) */
.optin-example { background: var(--white); border: 1px solid var(--line); border-radius: 8px; padding: 22px; margin: 18px 0 8px; box-shadow: 0 1px 0 var(--line), 0 10px 30px rgba(0,0,0,.06); max-width: 560px; }
.optin-example .label { display: block; font-weight: 600; font-size: 14px; color: var(--muted); margin-bottom: 6px; }
.optin-example .field { border: 1px solid #c9c7c1; border-radius: 4px; padding: 10px 12px; font-size: 16px; background: #fbfbfa; margin-bottom: 14px; }
.optin-example .check { display: grid; grid-template-columns: 22px 1fr; gap: 10px; align-items: start; font-size: 15px; line-height: 1.5; }
.optin-example .box { width: 20px; height: 20px; border: 2px solid #6b6f75; border-radius: 3px; margin-top: 2px; background: var(--white); }
.optin-example .tag { display: inline-block; font-size: 12px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); margin-bottom: 12px; }
.optin-caption { font-size: 14px; color: var(--muted); margin: 0 0 24px; }
.sms-samples { display: grid; gap: 10px; margin: 16px 0 8px; max-width: 520px; }
.bubble { background: #e9eaec; border-radius: 16px 16px 16px 4px; padding: 10px 14px; font-size: 15px; line-height: 1.45; }
.bubble.me { background: #2b2d31; color: #f1f1ee; border-radius: 16px 16px 4px 16px; justify-self: end; }

/* Footer */
.site-footer { background: var(--ink); color: #a7a9ad; padding: 40px 0 28px; font-size: 15px; }
.site-footer .wrap { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 28px; }
.site-footer h4 { color: var(--silver-1); font-size: 13px; letter-spacing: .2em; text-transform: uppercase; margin: 0 0 10px; font-weight: 600; }
.site-footer a { color: #d4d5d7; text-decoration: none; }
.site-footer a:hover { color: var(--white); }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.site-footer .legal { grid-column: 1 / -1; border-top: 1px solid #2c2e33; padding-top: 18px; margin-top: 8px; font-size: 13px; color: #85888d; }
.site-footer img { width: 150px; margin-bottom: 12px; }
@media (max-width: 720px) { .site-footer .wrap { grid-template-columns: 1fr; } }

:focus-visible { outline: 3px solid #5b8def; outline-offset: 2px; }
