/* Tie Dye Real Estate Guy — tiedyerealestateguy.net
   Tokens sourced from Tie-Dye-Real-Estate-Guy-Brand-Guideline.md §3 / §4 */

:root {
  --teal: #237ab1;
  --teal-deep: #1a5c86;
  --magenta: #e14b72;
  --orange: #e67446;
  --orange-text: #c94d1b; /* AA-safe variant for small text */
  --violet: #7d4793;
  --charcoal: #252525;
  --ink-2: #4f4f4f;
  --ink-3: #757068;
  --cream: #faf6ef;
  --cream-2: #f3ece1;
  --rule: #e2d9c9;
  --white: #fffdfa;

  --sans: "Inter", ui-sans-serif, system-ui, -apple-system, sans-serif;
  --script: "Caveat Brush", "Caveat", cursive;
  --step-brush: clamp(3.4rem, 9vw, 7.25rem);

  --maxw: 1180px;
  --gut: clamp(1.25rem, 4vw, 3rem);

  --step-0: 1.0625rem;
  --step-1: clamp(1.15rem, 0.6vw + 1rem, 1.3rem);
  --step-2: clamp(1.4rem, 1vw + 1.1rem, 1.75rem);
  --step-3: clamp(1.8rem, 2vw + 1.2rem, 2.6rem);
  --step-4: clamp(2.3rem, 4vw + 1rem, 4rem);
  --step-5: clamp(2.6rem, 5.6vw + 0.4rem, 5.25rem);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--cream);
  color: var(--charcoal);
  font-family: var(--sans);
  font-size: var(--step-0);
  line-height: 1.62;
  font-synthesis-weight: none;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--teal-deep); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--magenta); }
:focus-visible { outline: 3px solid var(--teal); outline-offset: 3px; border-radius: 2px; }

h1, h2, h3, h4 { font-weight: 800; line-height: 1.08; letter-spacing: -0.022em; margin: 0 0 0.5em; }
h1 { font-size: var(--step-4); }
h2 { font-size: var(--step-3); }
h3 { font-size: var(--step-2); letter-spacing: -0.01em; }
p { margin: 0 0 1.15em; max-width: 68ch; }
.lede { font-size: var(--step-1); color: var(--ink-2); line-height: 1.55; }
strong { font-weight: 700; }

.wrap { max-width: var(--maxw); margin-inline: auto; padding-inline: var(--gut); }
.narrow { max-width: 760px; }
section { padding-block: clamp(3.25rem, 7vw, 6rem); }
.rule-top { border-top: 1px solid var(--rule); }

.eyebrow {
  font-size: 0.75rem; font-weight: 700; letter-spacing: 0.16em;
  text-transform: uppercase; color: var(--orange-text); margin: 0 0 1rem;
}
.eyebrow.teal { color: var(--teal-deep); }

/* ---------- header ---------- */
.site-head {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in srgb, var(--cream) 92%, transparent);
  backdrop-filter: saturate(1.4) blur(10px);
  border-bottom: 1px solid var(--rule);
}
.head-in { display: flex; align-items: center; gap: 1.5rem; min-height: 74px; }
.brand { display: flex; align-items: center; gap: 0.7rem; text-decoration: none; color: inherit; flex: none; }
.brand img { width: 40px; height: 40px; }
.brand-txt { display: flex; flex-direction: column; line-height: 1.05; }
.brand-txt b {
  font-size: 0.9rem; font-weight: 800; letter-spacing: 0.02em; text-transform: uppercase;
}
.brand-txt span { font-size: 0.68rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-3); }

.nav { margin-left: auto; display: flex; align-items: center; gap: 1.25rem; }
.nav a { white-space: nowrap; }
.nav a {
  font-size: 0.875rem; font-weight: 600; color: var(--charcoal);
  text-decoration: none; padding-block: 0.4rem; border-bottom: 2px solid transparent;
}
.nav a:hover { color: var(--teal-deep); border-bottom-color: var(--orange); }
.nav a[aria-current="page"] { border-bottom-color: var(--teal); color: var(--teal-deep); }
.nav-cta {
  background: var(--teal); color: #fff !important; border-radius: 999px;
  padding: 0.55rem 1.15rem !important; border-bottom: 0 !important;
}
.nav-cta:hover { background: var(--teal-deep); }

.nav-toggle {
  margin-left: auto; display: none; background: none; border: 1px solid var(--rule);
  border-radius: 8px; padding: 0.5rem 0.7rem; font: inherit; font-size: 0.8rem;
  font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; cursor: pointer;
  color: var(--charcoal);
}

@media (max-width: 1240px) {
  .nav-toggle { display: block; }
  .nav {
    position: absolute; inset: 74px 0 auto; flex-direction: column; align-items: stretch;
    gap: 0; background: var(--cream); border-bottom: 1px solid var(--rule);
    padding: 0.5rem var(--gut) 1.25rem; display: none;
  }
  .nav.open { display: flex; }
  .nav a { padding-block: 0.75rem; border-bottom: 1px solid var(--rule); }
  .nav-cta { text-align: center; margin-top: 0.9rem; }
}

/* ---------- hero (Register B — personality brush lockup) ---------- */
.hero { position: relative; padding-block: clamp(2.75rem, 6vw, 4.5rem) clamp(3rem, 6vw, 5rem); }
.hero-in { position: relative; }
.hero-mark {
  position: absolute; top: -0.4rem; right: 0; width: clamp(7rem, 14vw, 12.5rem);
  aspect-ratio: 1; pointer-events: none;
}
.hero h1.hero-logo { margin: 0; line-height: 0; }
.hero h1.hero-logo img { display: block; width: 100%; max-width: 40rem; height: auto; }
.hero h1 .line { display: block; }
.hero h1 .l2 { margin-left: -0.02em; }
.hero h1 .l3 { margin-left: 1.1em; }
.hero-rule { border: 0; border-top: 1px solid var(--rule); margin: 2rem 0 1.15rem; max-width: 34rem; }
.hero .credit {
  font-size: 0.96rem; font-weight: 700; letter-spacing: 0.05em; text-transform: uppercase;
  color: var(--ink-2); margin: 0 0 0.45rem; max-width: none;
}
.hero .tagline { font-family: var(--sans); font-size: 0.84rem; font-weight: 600; letter-spacing: 0.16em; text-transform: uppercase; color: var(--ink-3); margin: 0; }
.hero-body { position: relative; max-width: 60ch; margin-top: 2.25rem; }
.hero-body p { font-size: var(--step-1); line-height: 1.55; }
@media (max-width: 760px) {
  .hero h1.hero-logo img { max-width: 100%; }
}

/* ---------- buttons ---------- */
.btn-row { display: flex; flex-wrap: wrap; gap: 0.85rem; margin-top: 1.75rem; }
.btn {
  display: inline-flex; align-items: center; gap: 0.5rem;
  font-size: 0.9rem; font-weight: 700; letter-spacing: 0.03em;
  padding: 0.85rem 1.5rem; border-radius: 999px; text-decoration: none;
  border: 2px solid transparent; transition: background .18s, color .18s, border-color .18s, transform .18s;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: var(--teal); color: #fff; }
.btn-primary:hover { background: var(--teal-deep); color: #fff; }
.btn-accent { background: var(--orange); color: #fff; }
.btn-accent:hover { background: var(--orange-text); color: #fff; }
.btn-ghost { border-color: var(--charcoal); color: var(--charcoal); }
.btn-ghost:hover { border-color: var(--teal); color: var(--teal-deep); }

/* ---------- credibility strip ---------- */
.strip { background: var(--charcoal); color: var(--cream); padding-block: 1.5rem; }
.strip ul {
  list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap;
  gap: 0.5rem 1.4rem; font-size: 0.78rem; font-weight: 600;
  letter-spacing: 0.1em; text-transform: uppercase;
}
.strip li { display: flex; align-items: center; gap: 1.4rem; color: #e8e1d5; }
.strip li::after { content: ""; width: 5px; height: 5px; border-radius: 50%; background: var(--orange); }
.strip li:last-child::after { display: none; }

/* ---------- three panels ---------- */
.panels { display: grid; gap: 1.5rem; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.panel {
  position: relative; background: var(--white); border: 1px solid var(--rule);
  border-radius: 14px; padding: 2rem 1.75rem 1.6rem; display: flex; flex-direction: column;
  transition: border-color .2s, transform .2s, box-shadow .2s;
}
.panel::before { content: ""; position: absolute; inset: 0 0 auto; height: 5px; border-radius: 14px 14px 0 0; }
.panel:nth-child(1)::before { background: var(--teal); }
.panel:nth-child(2)::before { background: var(--magenta); }
.panel:nth-child(3)::before { background: var(--orange); }
.panel:hover { transform: translateY(-3px); border-color: #cfc3ad; box-shadow: 0 14px 30px -18px rgba(37,37,37,.35); }
.panel h3 { margin-bottom: 0.4rem; }
.panel p { font-size: 0.97rem; color: var(--ink-2); flex: 1; }
.panel .go { font-size: 0.83rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; text-decoration: none; }

/* ---------- generic lists ---------- */
.ticks { list-style: none; padding: 0; margin: 0 0 1.5rem; max-width: 68ch; }
.ticks li { position: relative; padding-left: 1.6rem; margin-bottom: 0.6rem; }
.ticks li::before {
  content: ""; position: absolute; left: 0; top: 0.62em; width: 8px; height: 8px;
  border-radius: 2px; background: var(--orange); transform: rotate(45deg);
}

.numbered { list-style: none; counter-reset: n; padding: 0; margin: 0; display: grid; gap: 1.25rem; }
.numbered li { counter-increment: n; position: relative; padding-left: 3.4rem; }
.numbered li::before {
  content: counter(n); position: absolute; left: 0; top: -0.1em;
  width: 2.3rem; height: 2.3rem; display: grid; place-items: center;
  border-radius: 50%; background: var(--cream-2); border: 1px solid var(--rule);
  font-size: 0.95rem; font-weight: 800; color: var(--teal-deep);
}
.numbered h3 { font-size: 1.1rem; margin-bottom: 0.25rem; }
.numbered p { font-size: 0.97rem; color: var(--ink-2); margin: 0; }

.cols { display: grid; gap: clamp(2rem, 5vw, 4rem); grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr); align-items: start; }
@media (max-width: 860px) { .cols { grid-template-columns: 1fr; } }

.card {
  background: var(--white); border: 1px solid var(--rule); border-radius: 14px;
  padding: 1.6rem 1.5rem;
}
.card h3 { font-size: 1.05rem; }
.card dl { margin: 0; font-size: 0.95rem; }
.card dt { font-weight: 700; color: var(--teal-deep); font-size: 0.8rem; letter-spacing: 0.08em; text-transform: uppercase; }
.card dd { margin: 0.15rem 0 0.9rem; color: var(--ink-2); }

.quote {
  margin: 0; padding: 1.75rem 1.9rem; background: var(--cream-2);
  border-left: 5px solid var(--magenta); border-radius: 0 12px 12px 0;
}
.quote p { font-size: var(--step-1); line-height: 1.5; font-style: italic; color: var(--charcoal); }
.quote footer { font-size: 0.82rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-3); }

.note {
  font-size: 0.95rem; color: var(--ink-2); background: var(--white);
  border: 1px dashed var(--rule); border-radius: 12px; padding: 1.25rem 1.4rem; max-width: 70ch;
}

.band { background: var(--charcoal); color: var(--cream); }
.band h2 { color: var(--white); }
.band p { color: #ded6c8; }
.band a.btn-accent { color: #fff; }

.timeline { list-style: none; margin: 0; padding: 0; border-left: 2px solid var(--rule); }
.timeline li { position: relative; padding: 0 0 1.1rem 1.5rem; font-size: 0.97rem; }
.timeline li::before {
  content: ""; position: absolute; left: -7px; top: 0.6em; width: 12px; height: 12px;
  border-radius: 50%; background: var(--cream); border: 2px solid var(--teal);
}
.timeline b { display: block; font-size: 0.8rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--orange-text); }

.tags { display: flex; flex-wrap: wrap; gap: 0.5rem; padding: 0; margin: 0 0 1.5rem; list-style: none; }
.tags li {
  font-size: 0.78rem; font-weight: 700; letter-spacing: 0.06em;
  background: var(--white); border: 1px solid var(--rule); border-radius: 999px; padding: 0.4rem 0.85rem;
  color: var(--ink-2);
}

/* ---------- forms ---------- */
form { max-width: 560px; }
label { display: block; font-size: 0.8rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; margin-bottom: 0.35rem; }
input, select, textarea {
  width: 100%; font: inherit; font-size: 1rem; padding: 0.7rem 0.85rem; margin-bottom: 1.1rem;
  background: var(--white); border: 1px solid #d8ccb6; border-radius: 9px; color: var(--charcoal);
}
textarea { min-height: 150px; resize: vertical; }
button[type="submit"] { border: 0; cursor: pointer; font-family: inherit; }

/* ---------- footer ---------- */
.site-foot { background: var(--charcoal); color: #cdc5b7; padding-block: 3rem 2rem; font-size: 0.9rem; }
.foot-grid { display: grid; gap: 2rem; grid-template-columns: minmax(0, 1.4fr) repeat(auto-fit, minmax(160px, 1fr)); }
.site-foot img { width: 44px; margin-bottom: 1rem; }
.site-foot h4 { font-size: 0.75rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--white); margin-bottom: 0.8rem; }
.site-foot ul { list-style: none; margin: 0; padding: 0; }
.site-foot li { margin-bottom: 0.45rem; }
.site-foot a { color: #cdc5b7; text-decoration: none; }
.site-foot a:hover { color: var(--orange); }
.legal {
  margin-top: 2.5rem; padding-top: 1.5rem; border-top: 1px solid #3c3c3c;
  font-size: 0.78rem; line-height: 1.6; color: #a49c8e;
}
.legal p { max-width: 90ch; }

@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}

/* ---------- testimonials + credential list ---------- */
.quotes { display: grid; gap: 1.5rem; }
@media (min-width: 900px) {
  .quotes { display: block; columns: 2; column-gap: 1.5rem; }
  .quotes .quote { break-inside: avoid; display: inline-block; width: 100%; margin: 0 0 1.5rem; }
}
.quotes .quote { margin: 0; }
.creds { list-style: none; padding: 0; margin: 1rem 0 0; display: grid; gap: 0.45rem; }
.creds li { font-size: 0.95rem; color: var(--ink-2); }
.creds li b { display: inline-block; min-width: 4.2rem; color: var(--ink); font-weight: 800; letter-spacing: 0.02em; }

.rating { display: flex; flex-wrap: wrap; align-items: baseline; gap: 0.5rem; margin-top: 1.25rem; font-size: 1rem; color: var(--ink-2); max-width: none; }
.rating + .rating { margin-top: 0.5rem; }
.rating .stars { color: var(--orange); letter-spacing: 0.08em; font-size: 1.1rem; }
.rating strong { color: var(--ink); }
.quote footer span { display: block; margin-top: 0.25rem; font-size: 0.82rem; letter-spacing: 0.04em; text-transform: uppercase; color: var(--ink-3); }

.rating-alt { margin-top: 0.45rem; font-size: 0.95rem; color: var(--ink-3); max-width: none; }
.rating-alt a { white-space: nowrap; }

/* Equal Housing Opportunity badge (footer, every page) */
.site-foot .eho { display: flex; align-items: center; gap: 0.9rem; margin-top: 1rem; }
.site-foot .eho img { width: 48px; height: auto; margin: 0; flex: none; }
.site-foot .eho strong { color: #e9e3d8; }
