/* Realty Unfiltered — Shared Stylesheet */

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

:root {
  --bg: #0d1427;
  --bg2: #121c35;
  --bg3: #1a2640;
  --text: #f5f5f5;
  --muted: #888;
  --border: #222;
  --accent: #ff5c00;
  --accent-hover: #e05000;
  --max-w: 1100px;
  --max-prose: 720px;
}

html { scroll-behavior: smooth; }

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Helvetica, Arial, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  font-size: 16px;
}

a { color: var(--accent); text-decoration: none; }
a:hover { color: var(--accent-hover); }

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

.container {
  width: 100%;
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 20px;
}

.container--prose {
  max-width: var(--max-prose);
}

/* ─── HEADER ─────────────────────────────────────── */

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(10,10,10,0.95);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border);
}

.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 60px;
}

.logo {
  font-size: 18px;
  font-weight: 800;
  color: var(--text);
  letter-spacing: -0.02em;
  text-decoration: none;
}
.logo span { color: var(--accent); }

.nav {
  display: flex;
  align-items: center;
  gap: 28px;
}

.nav a {
  font-size: 14px;
  font-weight: 500;
  color: var(--muted);
  text-decoration: none;
  transition: color 0.15s;
}
.nav a:hover { color: var(--text); }

.nav-cta {
  background: var(--accent) !important;
  color: #fff !important;
  padding: 8px 16px;
  border-radius: 6px;
  font-weight: 700 !important;
  font-size: 13px !important;
  transition: background 0.15s !important;
}
.nav-cta:hover { background: var(--accent-hover) !important; }

.nav-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--text);
  font-size: 22px;
  cursor: pointer;
  padding: 4px;
}

.nav-mobile {
  display: none;
  flex-direction: column;
  gap: 0;
  border-top: 1px solid var(--border);
  background: var(--bg);
  padding: 8px 0 16px;
}
.nav-mobile a {
  display: block;
  padding: 12px 20px;
  font-size: 15px;
  font-weight: 500;
  color: var(--muted);
  text-decoration: none;
  border-bottom: 1px solid var(--border);
}
.nav-mobile a:last-child { border-bottom: none; }
.nav-mobile a:hover { color: var(--text); }
.nav-mobile .nav-cta {
  margin: 12px 20px 0;
  text-align: center;
  background: var(--accent);
  color: #fff;
  border-radius: 6px;
  padding: 12px 16px;
  font-weight: 700;
  border-bottom: none !important;
}

@media (max-width: 640px) {
  .nav { display: none; }
  .nav-toggle { display: block; }
  .nav-mobile.open { display: flex; }
}

/* ─── FOOTER ─────────────────────────────────────── */

.site-footer {
  border-top: 1px solid var(--border);
  padding: 48px 0 32px;
  margin-top: 80px;
}

.site-footer .container {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 16px;
}

.footer-brand {
  font-size: 20px;
  font-weight: 800;
  color: var(--text);
}
.footer-brand span { color: var(--accent); }

.footer-tagline {
  font-size: 14px;
  color: var(--muted);
}

.footer-nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 20px;
}
.footer-nav a {
  font-size: 13px;
  color: var(--muted);
  text-decoration: none;
}
.footer-nav a:hover { color: var(--text); }

.footer-copy {
  font-size: 12px;
  color: #555;
}

/* ─── BUTTONS ─────────────────────────────────────── */

.btn {
  display: inline-block;
  padding: 14px 28px;
  border-radius: 8px;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  border: none;
  transition: background 0.15s, transform 0.1s;
  text-decoration: none;
}
.btn:active { transform: scale(0.98); }

.btn-primary {
  background: var(--accent);
  color: #fff;
}
.btn-primary:hover { background: var(--accent-hover); color: #fff; }

.btn-outline {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--border);
}
.btn-outline:hover { border-color: var(--accent); color: var(--accent); }

/* ─── HERO ─────────────────────────────────────── */

.hero {
  padding: 80px 0 60px;
  text-align: center;
}

.hero .eyebrow {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 20px;
}

.hero h1 {
  font-size: clamp(32px, 6vw, 60px);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.03em;
  margin-bottom: 20px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.hero p {
  font-size: clamp(16px, 2.5vw, 19px);
  color: var(--muted);
  max-width: 580px;
  margin: 0 auto 36px;
  line-height: 1.7;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
  align-items: center;
}

.hero-secondary {
  font-size: 14px;
  color: var(--muted);
  text-decoration: underline;
  text-underline-offset: 3px;
}
.hero-secondary:hover { color: var(--text); }

/* ─── VALUE PROPS ─────────────────────────────────────── */

.value-props {
  padding: 48px 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.value-props-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}

@media (max-width: 640px) {
  .value-props-grid { grid-template-columns: 1fr; gap: 24px; }
}

.vp-item {
  text-align: center;
}
.vp-icon { font-size: 28px; margin-bottom: 12px; }
.vp-title {
  font-size: 15px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 8px;
}
.vp-desc { font-size: 14px; color: var(--muted); line-height: 1.6; }

/* ─── FEATURED GUIDE ─────────────────────────────────────── */

.featured-guide {
  padding: 64px 0;
}

.section-label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 24px;
}

.guide-card {
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 40px;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 32px;
  align-items: center;
}

@media (max-width: 640px) {
  .guide-card { grid-template-columns: 1fr; }
}

.guide-card h2 {
  font-size: clamp(22px, 4vw, 30px);
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-bottom: 12px;
  line-height: 1.2;
}
.guide-card p {
  font-size: 15px;
  color: var(--muted);
  line-height: 1.6;
  margin-bottom: 24px;
}

.guide-bullets {
  list-style: none;
  margin-bottom: 28px;
}
.guide-bullets li {
  font-size: 14px;
  color: #ccc;
  padding: 6px 0 6px 20px;
  position: relative;
  border-bottom: 1px solid var(--border);
}
.guide-bullets li::before {
  content: '→';
  position: absolute;
  left: 0;
  color: var(--accent);
}

.guide-badge {
  background: var(--bg3);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 24px;
  text-align: center;
  min-width: 160px;
}
.guide-badge-label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 8px;
}
.guide-badge-text {
  font-size: 28px;
  font-weight: 800;
  color: var(--text);
  line-height: 1;
  margin-bottom: 4px;
}
.guide-badge-sub { font-size: 12px; color: var(--muted); }

/* ─── POSTS GRID ─────────────────────────────────────── */

.posts-section { padding: 64px 0; }

.posts-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
  margin-top: 32px;
}

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

.post-card {
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 28px;
  transition: border-color 0.15s;
  text-decoration: none;
  display: block;
}
.post-card:hover { border-color: var(--accent); }

.post-card-tag {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 12px;
}
.post-card h3 {
  font-size: 17px;
  font-weight: 700;
  color: var(--text);
  line-height: 1.35;
  margin-bottom: 10px;
}
.post-card p {
  font-size: 14px;
  color: var(--muted);
  line-height: 1.6;
}
.post-card-placeholder {
  opacity: 0.4;
  cursor: default;
  pointer-events: none;
}

/* ─── OPT-IN BANNER ─────────────────────────────────────── */

.optin-banner {
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 48px 40px;
  text-align: center;
  margin: 0 0 80px;
}

.optin-banner h2 {
  font-size: clamp(22px, 4vw, 32px);
  font-weight: 800;
  margin-bottom: 10px;
}
.optin-banner p {
  font-size: 15px;
  color: var(--muted);
  margin-bottom: 28px;
}

.optin-form {
  display: flex;
  gap: 10px;
  max-width: 440px;
  margin: 0 auto;
}
@media (max-width: 500px) {
  .optin-form { flex-direction: column; }
}

.optin-form input[type="email"] {
  flex: 1;
  background: var(--bg3);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 12px 16px;
  font-size: 14px;
  color: var(--text);
  outline: none;
  transition: border-color 0.15s;
}
.optin-form input[type="email"]:focus { border-color: var(--accent); }
.optin-form input[type="email"]::placeholder { color: #555; }

.optin-form button {
  background: var(--accent);
  color: #fff;
  border: none;
  border-radius: 8px;
  padding: 12px 20px;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  white-space: nowrap;
  transition: background 0.15s;
}
.optin-form button:hover { background: var(--accent-hover); }

.optin-success {
  display: none;
  font-size: 15px;
  color: #4caf50;
  font-weight: 600;
  margin-top: 16px;
}
.optin-error {
  display: none;
  font-size: 13px;
  color: #f44336;
  margin-top: 12px;
}

/* ─── ARTICLE ─────────────────────────────────────── */

.article-hero {
  width: 100%;
  max-width: var(--max-prose);
  margin: 0 auto;
  aspect-ratio: 16/9;
  object-fit: cover;
  border-radius: 12px;
  display: block;
  margin-top: 32px;
  margin-bottom: 0;
}

.article-header {
  padding: 40px 0 40px;
}
.article-tag {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 16px;
}
.article-header h1 {
  font-size: clamp(28px, 5vw, 46px);
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.15;
  margin-bottom: 16px;
}
.article-meta {
  font-size: 13px;
  color: var(--muted);
}

.article-body {
  padding-bottom: 64px;
}
.article-body h2 {
  font-size: clamp(20px, 3.5vw, 26px);
  font-weight: 800;
  letter-spacing: -0.02em;
  margin: 48px 0 16px;
  color: var(--text);
}
.article-body h3 {
  font-size: 18px;
  font-weight: 700;
  margin: 32px 0 12px;
  color: var(--text);
}
.article-body p {
  font-size: 17px;
  line-height: 1.75;
  color: #d0d0d0;
  margin-bottom: 20px;
}
.article-body ul, .article-body ol {
  padding-left: 24px;
  margin-bottom: 20px;
}
.article-body li {
  font-size: 16px;
  line-height: 1.7;
  color: #d0d0d0;
  margin-bottom: 8px;
}
.article-body strong { color: var(--text); }

.article-callout {
  background: var(--bg2);
  border: 1px solid var(--border);
  border-left: 3px solid var(--accent);
  border-radius: 8px;
  padding: 24px 28px;
  margin: 32px 0;
}
.article-callout p {
  font-size: 15px;
  color: var(--muted);
  margin: 0;
}

.checklist {
  list-style: none;
  padding: 0;
  margin-bottom: 24px;
}
.checklist li {
  padding: 10px 0 10px 28px;
  position: relative;
  border-bottom: 1px solid var(--border);
  font-size: 16px;
  color: #d0d0d0;
}
.checklist li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: var(--accent);
  font-weight: 700;
}

.article-cta-box {
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 32px;
  margin: 48px 0;
  text-align: center;
}
.article-cta-box h3 {
  font-size: 20px;
  font-weight: 800;
  margin-bottom: 8px;
}
.article-cta-box p {
  font-size: 14px;
  color: var(--muted);
  margin-bottom: 20px;
}
.article-cta-box .optin-form {
  max-width: 380px;
}

/* ─── BLOG INDEX ─────────────────────────────────────── */

.blog-header { padding: 60px 0 40px; }
.blog-header h1 {
  font-size: clamp(28px, 5vw, 46px);
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-bottom: 12px;
}
.blog-header p { font-size: 17px; color: var(--muted); }

.blog-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
  padding-bottom: 80px;
}
@media (max-width: 640px) {
  .blog-grid { grid-template-columns: 1fr; }
}

/* ─── SIMPLE PAGE (about, legal) ─────────────────────────────────────── */

.simple-page { padding: 60px 0 80px; }
.simple-page h1 {
  font-size: clamp(28px, 5vw, 40px);
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-bottom: 12px;
}
.simple-page .page-meta {
  font-size: 13px;
  color: var(--muted);
  margin-bottom: 48px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--border);
}
.simple-page h2 {
  font-size: 20px;
  font-weight: 700;
  margin: 40px 0 12px;
}
.simple-page p {
  font-size: 16px;
  line-height: 1.75;
  color: #d0d0d0;
  margin-bottom: 16px;
}
.simple-page ul {
  padding-left: 20px;
  margin-bottom: 16px;
}
.simple-page li {
  font-size: 15px;
  line-height: 1.7;
  color: #d0d0d0;
  margin-bottom: 6px;
}
.simple-page a { color: var(--accent); }
.simple-page .btn { color: #fff; }
.simple-page .btn:hover { color: #fff; }
