/* ============================================================
   REELTY — Shared stylesheet
   ============================================================ */

:root {
  --bg: #0a0b0d;
  --bg-soft: #111318;
  --bg-elev: #16181f;
  --ink: #eef0f4;
  --ink-soft: #c7cad2;
  --ink-dim: #8a8f9a;
  --line: rgba(238, 240, 244, 0.08);
  --line-strong: rgba(238, 240, 244, 0.18);
  --glow: #d7e3f0;
  --accent: #b8cde0;
  --accent-warm: #e9d8b8;
  --radius: 4px;
  --maxw: 1440px;
  --pad: clamp(20px, 4vw, 56px);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; overflow-x: clip; }
body {
  background: var(--bg);
  color: var(--ink);
  font-family: 'Inter Tight', -apple-system, sans-serif;
  font-weight: 300;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
  width: 100%;
}

body::before {
  content: "";
  position: fixed; inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='200' height='200'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2'/%3E%3CfeColorMatrix values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 0.15 0'/%3E%3C/filter%3E%3Crect width='200' height='200' filter='url(%23n)'/%3E%3C/svg%3E");
  opacity: 0.35; pointer-events: none; z-index: 9999; mix-blend-mode: overlay;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }

.container { max-width: var(--maxw); margin: 0 auto; padding: 0 var(--pad); }

/* ========== NAV ========== */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  padding: 20px var(--pad);
  display: flex; align-items: center; justify-content: space-between;
  backdrop-filter: blur(14px);
  background: linear-gradient(to bottom, rgba(10,11,13,0.75), rgba(10,11,13,0.35));
  border-bottom: 1px solid var(--line);
}
.nav-brand { display: flex; align-items: center; gap: 12px; }
.nav-brand img { width: 34px; height: 34px; }
.nav-brand span {
  font-family: 'Fraunces', serif;
  font-size: 22px; font-weight: 400; letter-spacing: -0.02em;
  font-style: italic;
}
.nav-links { display: flex; gap: 36px; align-items: center; }
.nav-links a {
  font-size: 13px; color: var(--ink-soft); letter-spacing: 0.02em;
  position: relative; transition: color 0.3s;
}
.nav-links a:hover,
.nav-links a.current { color: var(--ink); }
.nav-links a::after {
  content: ""; position: absolute; left: 0; bottom: -4px;
  width: 0; height: 1px; background: var(--glow);
  transition: width 0.35s ease;
}
.nav-links a:hover::after,
.nav-links a.current::after { width: 100%; }
.nav-cta {
  padding: 10px 20px; border: 1px solid var(--line-strong);
  border-radius: 100px; font-size: 13px;
  transition: background 0.3s, color 0.3s, border-color 0.3s;
  background: rgba(238,240,244,0.02);
  color: var(--ink);
}
.nav-cta:hover,
.nav-cta:hover * { background: var(--ink); color: var(--bg) !important; border-color: var(--ink); }
.nav-cta::after { display: none !important; }

.menu-btn {
  display: none; background: none; border: none; color: var(--ink);
  cursor: pointer; font-size: 22px; line-height: 1;
}

/* Mobile menu overlay */
.mobile-menu {
  position: fixed; inset: 0; z-index: 200;
  background: var(--bg);
  display: none; flex-direction: column;
  padding: 100px var(--pad) 40px;
  opacity: 0; pointer-events: none;
  transition: opacity 0.4s ease;
}
.mobile-menu.open { opacity: 1; pointer-events: auto; }
.mobile-menu a {
  font-family: 'Fraunces', serif;
  font-size: 40px; font-weight: 300; font-style: italic;
  padding: 16px 0; letter-spacing: -0.02em;
  border-bottom: 1px solid var(--line);
}
.mobile-menu .close-btn {
  position: absolute; top: 24px; right: var(--pad);
  background: none; border: none; color: var(--ink);
  font-size: 28px; cursor: pointer;
}

/* ========== SECTION BASICS ========== */
section { padding: 140px 0; position: relative; }

.section-label {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px; letter-spacing: 0.2em; text-transform: uppercase;
  color: var(--ink-dim); display: flex; align-items: center; gap: 12px;
  margin-bottom: 40px;
}
.section-label::before {
  content: ""; width: 28px; height: 1px; background: var(--accent);
}

.section-title {
  font-family: 'Fraunces', serif;
  font-size: clamp(40px, 6vw, 88px);
  font-weight: 300;
  line-height: 1; letter-spacing: -0.025em;
  margin-bottom: 60px; max-width: 1100px;
}
.section-title em { font-style: italic; color: var(--accent); }

/* ========== BUTTONS ========== */
.btn-primary {
  display: inline-flex; align-items: center; gap: 14px;
  padding: 18px 28px;
  background: var(--ink); color: var(--bg);
  border-radius: 100px; font-size: 15px; font-weight: 500;
  transition: background 0.4s cubic-bezier(0.2,0.8,0.2,1), color 0.4s, transform 0.3s;
  position: relative; overflow: hidden;
  border: none; cursor: pointer;
  font-family: inherit;
  white-space: nowrap;
}
.btn-primary::before {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(110deg, var(--accent) 0%, var(--accent-warm) 100%);
  opacity: 0; transition: opacity 0.4s;
  z-index: 0;
}
.btn-primary:hover { transform: translateY(-1px); }
.btn-primary:hover::before { opacity: 1; }
.btn-primary > * { position: relative; z-index: 1; color: var(--bg); }
.btn-primary .arrow {
  width: 30px; height: 30px; border-radius: 50%;
  background: var(--bg); color: var(--ink);
  display: flex; align-items: center; justify-content: center;
  transition: transform 0.4s, background 0.4s;
  flex-shrink: 0;
}
.btn-primary:hover .arrow { transform: rotate(-45deg); background: var(--bg); color: var(--ink); }

.btn-ghost {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 14px 24px;
  border: 1px solid var(--line-strong);
  border-radius: 100px; font-size: 14px;
  transition: all 0.3s;
  background: rgba(238,240,244,0.02);
  color: var(--ink-soft);
}
.btn-ghost:hover { background: rgba(184,205,224,0.06); color: var(--ink); border-color: var(--accent); }

/* ========== FOOTER ========== */
.mega-mark {
  font-family: 'Fraunces', serif;
  font-size: clamp(100px, 22vw, 400px);
  font-weight: 300; font-style: italic;
  line-height: 1; letter-spacing: -0.05em;
  text-align: center;
  padding: 40px var(--pad) 20px;
  overflow: hidden;
  background: linear-gradient(180deg, rgba(238,240,244,0.2) 0%, rgba(238,240,244,0.04) 100%);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent;
  user-select: none;
}

footer.site-footer {
  padding: 80px var(--pad) 40px;
  border-top: 1px solid var(--line);
  background: var(--bg-soft);
}
.footer-top {
  display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 60px;
  padding-bottom: 60px; border-bottom: 1px solid var(--line);
}
.footer-brand { display: flex; align-items: center; gap: 14px; margin-bottom: 20px; }
.footer-brand img { width: 40px; height: 40px; }
.footer-brand span { font-family: 'Fraunces', serif; font-size: 28px; font-style: italic; }
.footer-desc { color: var(--ink-soft); font-size: 14px; line-height: 1.7; max-width: 360px; margin-bottom: 24px; }
.footer-email {
  font-family: 'JetBrains Mono', monospace; font-size: 13px;
  color: var(--glow); letter-spacing: 0.05em;
}
.footer-col h5 {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px; letter-spacing: 0.2em; text-transform: uppercase;
  color: var(--ink-dim); margin-bottom: 20px;
}
.footer-col ul { list-style: none; }
.footer-col li { margin-bottom: 10px; }
.footer-col a { font-size: 14px; color: var(--ink-soft); transition: color 0.3s; }
.footer-col a:hover { color: var(--glow); }
.footer-bottom {
  padding-top: 32px;
  display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 16px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px; letter-spacing: 0.1em;
  color: var(--ink-dim); text-transform: uppercase;
}
.footer-bottom a:hover { color: var(--glow); }

/* ========== REVEAL ANIMATION ========== */
.reveal { opacity: 0; transform: translateY(40px); transition: opacity 0.9s ease, transform 0.9s ease; }
.reveal.in { opacity: 1; transform: translateY(0); }

/* ========== COOKIE BANNER ========== */
.cookie-banner {
  position: fixed; bottom: 20px; left: 20px; right: 20px;
  max-width: 520px; z-index: 300;
  background: var(--bg-soft);
  border: 1px solid var(--line-strong);
  border-radius: 12px;
  padding: 24px;
  box-shadow: 0 20px 60px rgba(0,0,0,0.6), 0 0 0 1px rgba(184,205,224,0.05);
  transform: translateY(120%);
  transition: transform 0.6s cubic-bezier(0.2,0.8,0.2,1);
  backdrop-filter: blur(20px);
}
.cookie-banner.show { transform: translateY(0); }
.cookie-banner h4 {
  font-family: 'Fraunces', serif; font-size: 22px; font-weight: 400;
  letter-spacing: -0.02em; margin-bottom: 8px;
}
.cookie-banner h4 em { font-style: italic; color: var(--accent); }
.cookie-banner p { font-size: 13px; color: var(--ink-soft); line-height: 1.6; margin-bottom: 20px; }
.cookie-banner p a { color: var(--glow); text-decoration: underline; text-decoration-color: rgba(215,227,240,0.3); }
.cookie-actions { display: flex; gap: 10px; flex-wrap: wrap; }
.cookie-actions button {
  padding: 10px 20px; border-radius: 100px;
  font-size: 12px; font-weight: 500;
  cursor: pointer; font-family: inherit;
  transition: all 0.3s;
  border: 1px solid var(--line-strong);
  background: transparent; color: var(--ink);
}
.cookie-actions button:hover { border-color: var(--accent); color: var(--accent); }
.cookie-actions button.primary {
  background: var(--ink); color: var(--bg); border-color: var(--ink);
}
.cookie-actions button.primary:hover { background: var(--accent); border-color: var(--accent); color: var(--bg); }

/* ========== LEGAL PAGES ========== */
.legal-page {
  padding: 180px var(--pad) 120px;
  max-width: 900px; margin: 0 auto;
  position: relative;
}
.legal-page .glow {
  position: absolute; top: 100px; left: 50%;
  width: 600px; height: 600px; transform: translateX(-50%);
  background: radial-gradient(circle, rgba(184,205,224,0.1) 0%, transparent 60%);
  filter: blur(60px); pointer-events: none; z-index: -1;
}
.legal-meta {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px; letter-spacing: 0.2em; text-transform: uppercase;
  color: var(--ink-dim); margin-bottom: 24px;
}
.legal-title {
  font-family: 'Fraunces', serif;
  font-size: clamp(44px, 7vw, 92px);
  font-weight: 300; letter-spacing: -0.025em;
  line-height: 1; margin-bottom: 24px;
}
.legal-title em { font-style: italic; color: var(--accent); }
.legal-updated { color: var(--ink-dim); font-size: 14px; margin-bottom: 60px; }
.legal-content h2 {
  font-family: 'Fraunces', serif;
  font-size: 32px; font-weight: 400; letter-spacing: -0.02em;
  margin: 56px 0 20px; color: var(--ink);
}
.legal-content h3 {
  font-family: 'Fraunces', serif;
  font-size: 22px; font-weight: 400;
  margin: 32px 0 12px;
}
.legal-content p, .legal-content li {
  color: var(--ink-soft); font-size: 16px; line-height: 1.75;
  margin-bottom: 16px;
}
.legal-content ul, .legal-content ol { padding-left: 24px; margin-bottom: 16px; }
.legal-content a { color: var(--glow); text-decoration: underline; text-decoration-color: rgba(215,227,240,0.3); }
.legal-content strong { color: var(--ink); font-weight: 500; }

/* ========== PAGE HERO (for sub-pages) ========== */
.page-hero {
  padding: 180px var(--pad) 100px;
  position: relative; overflow: hidden;
}
.page-hero .glow {
  position: absolute; top: 10%; left: 50%;
  width: 900px; height: 900px;
  transform: translateX(-50%);
  background: radial-gradient(circle, rgba(184,205,224,0.15) 0%, transparent 60%);
  filter: blur(50px);
  pointer-events: none; z-index: 0;
  animation: drift 14s ease-in-out infinite;
}
@keyframes drift {
  0%,100% { transform: translateX(-50%) scale(1); }
  50% { transform: translateX(-48%) scale(1.08); }
}
.page-hero-inner { position: relative; z-index: 1; max-width: var(--maxw); margin: 0 auto; }
.page-hero h1 {
  font-family: 'Fraunces', serif;
  font-size: clamp(52px, 9vw, 140px);
  font-weight: 300; line-height: 0.95; letter-spacing: -0.03em;
  margin: 40px 0 30px; max-width: 1200px;
}
.page-hero h1 em {
  font-style: italic;
  background: linear-gradient(110deg, var(--glow), var(--accent-warm));
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent;
}
.page-hero .lede {
  font-size: 18px; color: var(--ink-soft);
  max-width: 580px; line-height: 1.6;
}

/* ========== RESPONSIVE ========== */
@media (max-width: 1024px) {
  .footer-top { grid-template-columns: 1fr 1fr; gap: 40px; }
}
@media (max-width: 768px) {
  .nav { padding: 18px var(--pad); }
  .nav-links { display: none; }
  .menu-btn { display: block; }
  .nav-cta { display: none; }
  .mobile-menu { display: flex; }
  section { padding: 80px 0; }
  .footer-top { grid-template-columns: 1fr; gap: 40px; padding-bottom: 40px; }
  .footer-bottom {
    flex-direction: column; gap: 12px; align-items: flex-start;
    padding-top: 32px;
  }
  .legal-page { padding: 120px var(--pad) 80px; }
  .legal-title { font-size: clamp(40px, 9vw, 64px); }
  .legal-content { font-size: 15px; }
  .legal-content h2 { font-size: 22px; margin-top: 40px; }
  .cookie-banner {
    left: 12px; right: 12px; bottom: 12px;
    max-width: calc(100% - 24px);
    padding: 20px;
  }
  .cookie-banner h4 { font-size: 18px; }
  .cookie-banner p { font-size: 13px; }
  .cookie-actions { flex-direction: column-reverse; gap: 8px; }
  .cookie-actions button { width: 100%; justify-content: center; }
}
@media (max-width: 480px) {
  :root { --pad: 20px; }
  .btn-primary { padding: 16px 22px; font-size: 14px; gap: 12px; }
  .btn-primary .arrow { width: 26px; height: 26px; }
  .mobile-menu a { font-size: 32px; }
}
  .footer-bottom { flex-direction: column; gap: 16px; text-align: center; }
  .cookie-banner { left: 12px; right: 12px; bottom: 12px; padding: 20px; }
}
