/* ─────────────────────────────────────────────────────────
   3D-home.pl — blog (shared styles)
   ───────────────────────────────────────────────────────── */
:root {
  --ink:        #FFFFFF;
  --ink-soft:   #F8F9FA;
  --ink-2:      #E9ECEF;
  --ink-3:      #DEE2E6;
  --cream:      #111827;
  --cream-2:    #4B5563;
  --cream-3:    #9CA3AF;
  --accent:     #FF0055;
  --accent-2:   #E6004D;
  --line:       rgba(0, 0, 0, 0.08);
  --line-2:     rgba(0, 0, 0, 0.15);
  --success:    #22C55E;

  --font-display: 'Manrope', system-ui, sans-serif;
  --font-body:    'Inter', system-ui, sans-serif;
  --font-mono:    'JetBrains Mono', ui-monospace, monospace;

  --r-1: 4px;
  --r-2: 12px;
  --r-3: 24px;
  --r-pill: 999px;

  --max-w: 1280px;
  --gutter: 24px;
  --section: clamp(72px, 9vw, 120px);

  --t-base: 180ms;
  --ease: cubic-bezier(0.2, 0.8, 0.2, 1);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  background: var(--ink);
  color: var(--cream);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img, svg, iframe { display: block; max-width: 100%; }
button { font: inherit; cursor: pointer; border: 0; background: none; color: inherit; }
a { color: inherit; text-decoration: none; transition: color var(--t-base) var(--ease); }
a:hover { color: var(--accent); }
.tnum { font-feature-settings: "tnum" 1, "lnum" 1; font-variant-numeric: tabular-nums lining-nums; }

.container { max-width: var(--max-w); margin: 0 auto; padding: 0 var(--gutter); }
.container-narrow { max-width: 760px; margin: 0 auto; padding: 0 var(--gutter); }

.eyebrow {
  font-family: var(--font-mono);
  font-size: 12px; font-weight: 500;
  text-transform: uppercase; letter-spacing: 0.14em;
  color: var(--accent);
  display: inline-flex; align-items: center; gap: 10px;
}
.eyebrow::before { content: ""; width: 24px; height: 1px; background: var(--accent); }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 600; letter-spacing: -0.02em;
  line-height: 1.05; color: var(--cream);
  text-wrap: balance;
}
h1 { font-size: clamp(34px, 4.6vw, 64px); font-weight: 500; letter-spacing: -0.03em; line-height: 1.08; }
h2 { font-size: clamp(32px, 4.4vw, 60px); }
h3 { font-size: clamp(22px, 2.4vw, 30px); line-height: 1.15; }
h4 { font-size: 18px; line-height: 1.3; }
p  { color: var(--cream-2); text-wrap: pretty; max-width: 62ch; }

.lede { font-size: clamp(17px, 1.4vw, 22px); line-height: 1.5; color: var(--cream-2); font-weight: 400; }

/* Buttons */
.btn { display: inline-flex; align-items: center; gap: 10px; padding: 14px 22px;
  border-radius: var(--r-pill); font-weight: 500; font-size: 15px;
  letter-spacing: -0.005em; transition: all var(--t-base) var(--ease); white-space: nowrap;
  border: 1px solid transparent; }
.btn-primary { background: var(--accent); color: #fff; }
.btn-primary:hover { background: var(--accent-2); color: #fff; transform: translateY(-1px); }
.btn-ghost { background: transparent; color: var(--cream); border-color: var(--line-2); }
.btn-ghost:hover { border-color: var(--cream); color: var(--cream); }
.btn .arrow { transition: transform var(--t-base) var(--ease); }
.btn:hover .arrow { transform: translateX(3px); }

/* Nav */
.nav { position: fixed; top: 0; left: 0; right: 0; z-index: 100; padding: 18px 0;
  background: rgba(255,255,255,0.96); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  transition: background var(--t-base) var(--ease), backdrop-filter var(--t-base) var(--ease), border-color var(--t-base) var(--ease);
  border-bottom: 1px solid rgba(0,0,0,0.08); }
.nav.scrolled { background: rgba(255,255,255,1); backdrop-filter: blur(10px) saturate(140%);
  -webkit-backdrop-filter: blur(10px) saturate(140%); border-bottom-color: rgba(0,0,0,0.12); }
.nav-inner { display: flex; align-items: center; justify-content: space-between; gap: 32px; }
.logo { display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--font-display); font-weight: 600; font-size: 17px;
  letter-spacing: -0.01em; color: #000; flex-shrink: 0; }
.logo svg { flex-shrink: 0; }
.nav-links { display: flex; align-items: center; gap: 28px; list-style: none; }
.nav-links a { font-size: 14px; font-weight: 500; color: #000; position: relative; }
.nav-links a:hover { color: var(--accent); }
.nav-links a.active { color: var(--accent); }

.has-dropdown { position: relative; }
.nav-dropdown-label {
  font-size: 14px; font-weight: 500; color: #000;
  cursor: default; display: inline-flex; align-items: center; gap: 4px;
  user-select: none;
}
.nav-dropdown-label svg { transition: transform 180ms ease; }
.has-dropdown:hover .nav-dropdown-label svg { transform: rotate(180deg); }
.dropdown {
  position: absolute; top: 100%; left: 50%;
  transform: translateX(-50%);
  padding-top: 14px;
  list-style: none; min-width: 252px;
  opacity: 0; visibility: hidden; pointer-events: none;
  transition: opacity 180ms ease, visibility 180ms ease;
}
.dropdown-inner {
  background: #fff; border: 1px solid rgba(0,0,0,0.15);
  border-radius: var(--r-2);
  box-shadow: 0 8px 32px rgba(0,0,0,0.10);
  padding: 6px;
}
.has-dropdown:hover .dropdown {
  opacity: 1; visibility: visible; pointer-events: auto;
}
.dropdown li a, .dropdown-inner a {
  display: block; padding: 10px 14px;
  border-radius: var(--r-1); font-size: 14px; font-weight: 500;
  color: #000; white-space: nowrap; text-decoration: none;
}
.dropdown li a:hover, .dropdown-inner a:hover { background: #F8F9FA; color: var(--accent); }
.dropdown-inner a.active { color: var(--accent); }

.nav-cta { display: flex; align-items: center; gap: 16px; }
.nav-phone { font-family: var(--font-mono); font-size: 13px; font-weight: 500; color: #000; }
.nav-phone:hover { color: var(--accent); }

/* Footer */
footer { background: var(--ink); border-top: 1px solid var(--line); padding: 80px 0 40px; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr 1fr; gap: 40px;
  padding-bottom: 56px; border-bottom: 1px solid var(--line); }
.footer-grid p { font-size: 14px; color: var(--cream-2); margin-top: 16px; }
.footer-col h5 { font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.12em;
  text-transform: uppercase; color: var(--cream-3); margin-bottom: 18px; font-weight: 500; }
.footer-col ul { list-style: none; display: flex; flex-direction: column; gap: 10px; }
.footer-col ul a { font-size: 14px; color: var(--cream-2); }
.footer-bottom { padding-top: 32px; display: flex; justify-content: space-between;
  flex-wrap: wrap; gap: 16px; font-family: var(--font-mono); font-size: 12px; color: var(--cream-3); }
.footer-bottom .updated { display: inline-flex; align-items: center; gap: 8px; }
.footer-bottom .updated .dot { width: 6px; height: 6px; background: var(--success); border-radius: var(--r-pill); }

/* Blog header (top of /blog) */
.blog-hero { padding: 160px 0 60px; border-bottom: 1px solid var(--line); }
.blog-hero h1 { max-width: 22ch; }
.blog-hero p { margin-top: 20px; max-width: 60ch; font-size: 18px; }

/* Categories filter */
.blog-cats { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 36px; }
.blog-cats a { padding: 8px 14px; border-radius: var(--r-pill); border: 1px solid var(--line-2);
  font-size: 13px; font-weight: 500; color: var(--cream-2); }
.blog-cats a:hover, .blog-cats a.active { background: var(--accent); color: #fff; border-color: var(--accent); }

/* Article grid */
.posts { padding: 80px 0; }
.posts-grid { display: grid; grid-template-columns: repeat(12, 1fr); gap: 32px; }
.post-card { grid-column: span 4; display: flex; flex-direction: column; gap: 16px;
  padding: 0; transition: transform var(--t-base) var(--ease); }
.post-card.feature { grid-column: span 12; flex-direction: row; gap: 48px; align-items: center;
  padding: 32px 0; border-bottom: 1px solid var(--line); }
.post-card.feature .post-thumb { flex: 1; aspect-ratio: 16 / 10; }
.post-card.feature .post-body { flex: 1; }
.post-card:hover .post-thumb::after { opacity: 0.4; }
.post-card:hover h3 { color: var(--accent); }

.post-thumb { aspect-ratio: 4 / 3; border-radius: var(--r-2); overflow: hidden;
  background: var(--ink-soft); border: 1px solid var(--line); position: relative; }
.post-thumb::after { content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, transparent 50%, rgba(0,0,0,0.5) 100%);
  opacity: 0.2; transition: opacity var(--t-base) var(--ease); }
.post-thumb-label { position: absolute; bottom: 16px; left: 16px; z-index: 2;
  font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.1em;
  text-transform: uppercase; color: rgba(255,255,255,0.85); }
.thumb-matterport { background: linear-gradient(135deg, #2A1A1F 0%, #5C1A2E 60%, #FF0055 130%); }
.thumb-google     { background: linear-gradient(135deg, #0A1A2A 0%, #1A3A6A 60%, #4A8AFA 130%); }
.thumb-drone      { background: linear-gradient(135deg, #142020 0%, #1A3A38 60%, #4ADE80 130%); }
.thumb-realestate { background: linear-gradient(135deg, #1A1A2A 0%, #2D2A4A 60%, #5C5C8A 130%); }
.thumb-hotel      { background: linear-gradient(135deg, #2A1F1A 0%, #4A2D1A 60%, #9A6E3A 130%); }
.thumb-roi        { background: linear-gradient(135deg, #2A1A2A 0%, #4A1A4A 60%, #B33AB3 130%); }

.post-meta { display: flex; align-items: center; gap: 12px;
  font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.1em;
  text-transform: uppercase; color: var(--cream-3); }
.post-meta .cat { color: var(--accent); }
.post-meta .dot { width: 3px; height: 3px; background: var(--cream-3); border-radius: 999px; }
.post-card h3 { font-size: 22px; line-height: 1.2; transition: color var(--t-base) var(--ease); }
.post-card.feature h3 { font-size: clamp(28px, 3vw, 40px); line-height: 1.1; }
.post-card p { font-size: 15px; color: var(--cream-2); }
.post-card .read { font-family: var(--font-mono); font-size: 12px; color: var(--cream);
  display: inline-flex; align-items: center; gap: 8px; margin-top: 4px; }

/* Article page */
.article-hero { padding: 160px 0 60px; }
.article-meta { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 28px;
  font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.1em;
  text-transform: uppercase; color: var(--cream-3); align-items: center; }
.article-meta .cat { color: var(--accent); }
.article-meta .dot { width: 3px; height: 3px; background: var(--cream-3); border-radius: 999px; }
.article-hero h1 { font-size: clamp(32px, 4.4vw, 56px); max-width: 22ch; }
.article-hero .lede { margin-top: 24px; }

.article-cover { aspect-ratio: 16 / 9; border-radius: var(--r-3); overflow: hidden;
  margin-top: 48px; max-width: 1100px; margin-left: auto; margin-right: auto;
  border: 1px solid var(--line); position: relative; }
.article-cover .label { position: absolute; bottom: 24px; left: 24px;
  font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.1em;
  text-transform: uppercase; color: var(--cream-3); }

/* TOC + body */
.article-body { padding: 60px 0 80px; }
.article-layout { display: grid; grid-template-columns: 240px 1fr; gap: 80px;
  max-width: 1100px; margin: 0 auto; padding: 0 var(--gutter); }
.toc { position: sticky; top: 100px; align-self: start;
  border-left: 1px solid var(--line); padding-left: 20px; }
.toc h5 { font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.12em;
  text-transform: uppercase; color: var(--cream-3); margin-bottom: 14px; font-weight: 500; }
.toc ul { list-style: none; display: flex; flex-direction: column; gap: 10px; }
.toc a { font-size: 13px; color: var(--cream-2); line-height: 1.4; }
.toc a:hover { color: var(--accent); }

.prose { max-width: 70ch; font-size: 17px; line-height: 1.7; color: var(--cream-2); }
.prose h2 { font-size: clamp(24px, 2.6vw, 32px); margin: 56px 0 18px; color: var(--cream); }
.prose h2:first-child { margin-top: 0; }
.prose h3 { font-size: 22px; margin: 36px 0 14px; color: var(--cream); }
.prose p { margin-bottom: 18px; }
.prose strong { color: var(--cream); font-weight: 600; }
.prose a { color: var(--cream); border-bottom: 1px solid var(--accent); padding-bottom: 1px; }
.prose a:hover { color: var(--accent); }
.prose .btn { border-bottom: none; padding-bottom: 14px; }
.prose .btn-primary { color: #fff; }
.prose .btn-primary:hover { color: #fff; }
.prose .btn-ghost { color: var(--cream); }
.prose ul, .prose ol { margin: 0 0 24px 22px; }
.prose li { margin-bottom: 8px; color: var(--cream-2); }
.prose blockquote { border-left: 3px solid var(--accent); padding: 4px 0 4px 22px;
  margin: 28px 0; font-family: var(--font-display); font-size: 22px; line-height: 1.4;
  color: var(--cream); font-style: italic; font-weight: 500; }
.prose .answer-box { background: var(--ink-soft); border: 1px solid var(--line);
  border-left: 3px solid var(--accent); border-radius: var(--r-2);
  padding: 20px 24px; margin: 24px 0; font-size: 16px; line-height: 1.6; }
.prose .answer-box .label { font-family: var(--font-mono); font-size: 11px;
  letter-spacing: 0.12em; text-transform: uppercase; color: var(--accent); display: block; margin-bottom: 8px; }
.prose .answer-box strong { color: var(--cream); }
.prose table { width: 100%; border-collapse: collapse; margin: 28px 0; font-size: 14px;
  border: 1px solid var(--line); border-radius: var(--r-2); overflow: hidden; }
.prose th, .prose td { padding: 14px 16px; text-align: left; border-bottom: 1px solid var(--line); }
.prose thead th { background: var(--ink-soft); color: var(--cream);
  font-family: var(--font-display); font-weight: 600; font-size: 14px; }
.prose tbody td { color: var(--cream-2); }
.prose tbody td:first-child { color: var(--cream); }

/* Inline CTA */
.inline-cta { margin: 56px 0; padding: 32px; border: 1px solid var(--line-2);
  border-radius: var(--r-3); background: var(--ink-soft);
  display: flex; gap: 24px; align-items: center; flex-wrap: wrap; justify-content: space-between; }
.inline-cta .text { flex: 1; min-width: 260px; }
.inline-cta strong { display: block; color: var(--cream); font-family: var(--font-display);
  font-size: 22px; font-weight: 500; margin-bottom: 6px; letter-spacing: -0.01em; }
.inline-cta p { color: var(--cream-2); font-size: 14px; }

/* Related */
.related { padding: 80px 0; border-top: 1px solid var(--line); background: var(--ink-soft); }
.related-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; margin-top: 36px; }

.hamburger {
  display: none;
  width: 44px; height: 44px;
  border-radius: 999px;
  border: 1px solid rgba(10,10,10,0.15);
  background: transparent;
  align-items: center; justify-content: center;
  cursor: pointer;
}
.hamburger svg { width: 18px; height: 18px; stroke: #000; fill: none; stroke-width: 1.6; }
.mobile-nav {
  display: none;
  position: fixed;
  inset: 0;
  background: #fff;
  z-index: 99;
  padding: 80px var(--gutter, 24px) 40px;
  flex-direction: column;
  gap: 0;
}
.mobile-nav.open { display: flex; }
.mobile-nav a {
  display: block;
  font-size: 20px;
  font-weight: 500;
  color: #0a0a0a;
  padding: 11px 0;
  border-bottom: 1px solid rgba(10,10,10,0.08);
  text-decoration: none;
}
.mobile-nav a:hover { color: var(--accent); }
.mobile-nav a.sub {
  font-size: 14px;
  font-weight: 400;
  color: #666;
  padding: 9px 0 9px 14px;
}
.mobile-nav .m-cta {
  margin-top: 20px;
  display: flex; flex-direction: column; gap: 12px;
  align-items: flex-start;
}
.mobile-nav .m-cta a { border-bottom: 0; }
.mobile-nav .m-cta .btn { display: inline-flex; padding: 14px 22px; width: fit-content; color: #fff; }
.mobile-nav .m-phone {
  font-size: 14px;
  color: #999;
  padding: 0;
  border-bottom: 0;
}

@media (max-width: 1200px) {
  .footer-grid { grid-template-columns: 1fr 1fr 1fr; }
}
@media (max-width: 1024px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .nav-links { display: none; }
  .nav-cta .btn { display: none; }
  .hamburger { display: inline-flex; }
  .article-layout { grid-template-columns: 1fr; gap: 40px; }
  .toc { position: static; border-left: 0; padding-left: 0; border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line); padding: 20px 0; }
  .post-card { grid-column: span 6; }
  .post-card.feature { flex-direction: column; gap: 24px; }
  .related-grid { grid-template-columns: 1fr; gap: 24px; }
}
@media (max-width: 640px) {
  :root { --gutter: 18px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-grid > div:first-child { grid-column: span 2; }
  .post-card { grid-column: span 12; }
  .nav-phone { display: none; }
  .blog-hero { padding: 120px 0 40px; }
  .article-hero { padding: 120px 0 40px; }
  .inline-cta { flex-direction: column; align-items: stretch; }
}
