/*
 * DREF Design System — "Gold Standard"
 * Digital Real-Estate Frontier, LLC
 * Palette derived from the DREF gold-gradient logo.
 * Warm, premium, grounded — NOT a tech-startup look.
 * Built 2026-08-25 by Argo.
 */

/* ── Tokens ── */
:root {
  /* Gold family (from logo gradient) */
  --gold:        #c9a84c;
  --gold-light:  #e4cc7a;
  --gold-bright: #f0d98a;
  --gold-dark:   #8b6f2a;
  --gold-muted:  #a08a40;

  /* Backgrounds — warm near-blacks */
  --bg-1:   #080806;
  --bg-2:   #111110;
  --bg-3:   #1a1a16;
  --bg-4:   #242420;

  /* Surfaces (cards, nav) */
  --surface:       rgba(20, 20, 16, 0.85);
  --surface-hover: rgba(30, 30, 24, 0.95);
  --surface-border: rgba(201, 168, 76, 0.15);

  /* Text */
  --text:       #f0ece4;
  --text-dim:   #b8b2a4;
  --text-muted: #7a7568;

  /* Accents */
  --accent-green:  #4a9e6e;
  --accent-blue:   #4a7eb5;
  --accent-warm:   #c47a3a;

  /* Spacing */
  --nav-height: 72px;
  --section-pad: clamp(4rem, 8vw, 7rem);
  --content-max: 1200px;
  --content-narrow: 800px;

  /* Type */
  --font-display: 'Playfair Display', Georgia, serif;
  --font-body: 'Inter', system-ui, -apple-system, sans-serif;

  /* Motion */
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --transition: 0.3s var(--ease-out);
}

/* ── Reset ── */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-font-smoothing: antialiased; }

body {
  font-family: var(--font-body);
  background: var(--bg-1);
  color: var(--text);
  line-height: 1.7;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }
a { color: var(--gold); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--gold-light); }

/* ── Typography ── */
h1, h2, h3, h4 { font-family: var(--font-display); font-weight: 700; line-height: 1.2; color: var(--text); }
h1 { font-size: clamp(2.4rem, 5vw, 4rem); }
h2 { font-size: clamp(1.8rem, 3.5vw, 2.6rem); margin-bottom: 1rem; }
h3 { font-size: clamp(1.2rem, 2vw, 1.5rem); }

.label-sm {
  font-family: var(--font-body);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold);
}

.text-gold { color: var(--gold); }
.text-muted { color: var(--text-muted); }

/* Gold gradient text */
.gold-gradient {
  background: linear-gradient(135deg, #8b6f2a 0%, #c9a84c 25%, #e4cc7a 50%, #c9a84c 75%, #8b6f2a 100%);
  background-size: 200% 200%;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: goldShimmer 6s ease-in-out infinite;
}
@keyframes goldShimmer {
  0%, 100% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
}

/* ── Navigation ── */
.site-nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--nav-height);
  z-index: 1000;
  background: rgba(8, 8, 6, 0.75);
  backdrop-filter: blur(20px) saturate(1.2);
  -webkit-backdrop-filter: blur(20px) saturate(1.2);
  border-bottom: 1px solid var(--surface-border);
  transition: background var(--transition), box-shadow var(--transition);
}
.site-nav.scrolled {
  background: rgba(8, 8, 6, 0.95);
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.4);
}

.nav-inner {
  max-width: var(--content-max);
  margin: 0 auto;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 1.5rem;
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
}
.nav-brand img {
  height: 42px;
  width: auto;
}
.nav-brand .brand-text {
  display: flex;
  flex-direction: column;
}
.nav-brand .brand-name {
  font-family: var(--font-body);
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold);
  line-height: 1;
}
.nav-brand .brand-slogan {
  font-size: 0.58rem;
  color: var(--text-muted);
  letter-spacing: 0.08em;
  margin-top: 3px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  list-style: none;
}
.nav-links a {
  display: block;
  padding: 0.5rem 1rem;
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--text-dim);
  border-radius: 8px;
  transition: all var(--transition);
  position: relative;
}
.nav-links a:hover,
.nav-links a.active {
  color: var(--gold);
  background: rgba(201, 168, 76, 0.08);
}
.nav-links a.active::after {
  content: '';
  position: absolute;
  bottom: 4px;
  left: 50%;
  transform: translateX(-50%);
  width: 16px;
  height: 2px;
  background: var(--gold);
  border-radius: 1px;
}

/* Mobile menu */
.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
  color: var(--text);
}
.nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: currentColor;
  margin: 5px 0;
  transition: all 0.3s ease;
  border-radius: 1px;
}
.nav-toggle.open span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

@media (max-width: 768px) {
  .nav-toggle { display: block; }
  .nav-links {
    position: fixed;
    top: var(--nav-height);
    left: 0;
    right: 0;
    flex-direction: column;
    background: rgba(8, 8, 6, 0.97);
    backdrop-filter: blur(20px);
    padding: 1rem 1.5rem 2rem;
    border-bottom: 1px solid var(--surface-border);
    transform: translateY(-120%);
    opacity: 0;
    transition: all 0.4s var(--ease-out);
    gap: 0;
  }
  .nav-links.open {
    transform: translateY(0);
    opacity: 1;
  }
  .nav-links a {
    padding: 0.85rem 1rem;
    font-size: 1rem;
    border-radius: 10px;
  }
}

/* ── Content spacing ── */
main { flex: 1; padding-top: var(--nav-height); }

.section {
  padding: var(--section-pad) 1.5rem;
}
.section-alt {
  background: var(--bg-2);
}

.container {
  max-width: var(--content-max);
  margin: 0 auto;
}
.container-narrow {
  max-width: var(--content-narrow);
  margin: 0 auto;
}

/* ── Section headers ── */
.section-header {
  text-align: center;
  margin-bottom: 3.5rem;
}
.section-header .label-sm {
  margin-bottom: 0.75rem;
  display: block;
}
.section-header p {
  color: var(--text-dim);
  max-width: 600px;
  margin: 0.75rem auto 0;
  font-size: 1.05rem;
}

/* ── Cards ── */
.card {
  background: linear-gradient(180deg, var(--bg-3), var(--bg-2));
  border: 1px solid var(--surface-border);
  border-radius: 16px;
  padding: 2rem;
  transition: all var(--transition);
}
.card:hover {
  transform: translateY(-4px);
  border-color: rgba(201, 168, 76, 0.35);
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.3), 0 0 0 1px rgba(201, 168, 76, 0.1);
}

.card-grid {
  display: grid;
  gap: 1.5rem;
}
.card-grid-2 { grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }
.card-grid-3 { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }

.card-icon {
  width: 56px;
  height: 56px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  background: rgba(201, 168, 76, 0.08);
  border: 1px solid rgba(201, 168, 76, 0.2);
  margin-bottom: 1.25rem;
}

.card h3 { margin-bottom: 0.75rem; }
.card p { color: var(--text-dim); font-size: 0.95rem; line-height: 1.7; }

.card-link {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  margin-top: 1.25rem;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--gold);
}
.card-link .arrow { transition: transform 0.2s; }
.card-link:hover .arrow { transform: translateX(4px); }

/* ── Buttons ── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.85rem 2rem;
  font-family: var(--font-body);
  font-size: 0.9rem;
  font-weight: 600;
  border: none;
  border-radius: 10px;
  cursor: pointer;
  transition: all var(--transition);
  text-decoration: none;
}
.btn-gold {
  background: linear-gradient(135deg, var(--gold-dark), var(--gold));
  color: #0a0a06;
  box-shadow: 0 4px 16px rgba(201, 168, 76, 0.25);
}
.btn-gold:hover {
  background: linear-gradient(135deg, var(--gold), var(--gold-light));
  color: #0a0a06;
  box-shadow: 0 6px 24px rgba(201, 168, 76, 0.35);
  transform: translateY(-2px);
}
.btn-outline {
  background: transparent;
  color: var(--gold);
  border: 1px solid rgba(201, 168, 76, 0.4);
}
.btn-outline:hover {
  background: rgba(201, 168, 76, 0.08);
  border-color: var(--gold);
  color: var(--gold-light);
}

/* ── Dividers ── */
.divider {
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(201, 168, 76, 0.25), transparent);
}

/* ── Hero (home page) ── */
.hero {
  position: relative;
  min-height: calc(100vh - var(--nav-height));
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 800px 600px at 25% 40%, rgba(201, 168, 76, 0.07), transparent 60%),
    radial-gradient(ellipse 600px 500px at 75% 60%, rgba(201, 168, 76, 0.05), transparent 60%),
    radial-gradient(ellipse 400px 300px at 50% 30%, rgba(228, 204, 122, 0.04), transparent 50%);
  filter: blur(40px);
  animation: heroFloat 18s ease-in-out infinite alternate;
  pointer-events: none;
}
@keyframes heroFloat {
  0%   { transform: translate(0, 0) scale(1); }
  50%  { transform: translate(2%, -1.5%) scale(1.03); }
  100% { transform: translate(-1.5%, 2%) scale(0.98); }
}

/* Subtle gold dust particles */
.hero-particles {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(1.5px 1.5px at 12% 20%, rgba(201, 168, 76, 0.35), transparent),
    radial-gradient(1px 1px at 58% 68%, rgba(228, 204, 122, 0.2), transparent),
    radial-gradient(1px 1px at 82% 22%, rgba(201, 168, 76, 0.3), transparent),
    radial-gradient(1.5px 1.5px at 35% 82%, rgba(228, 204, 122, 0.15), transparent),
    radial-gradient(1px 1px at 70% 45%, rgba(201, 168, 76, 0.25), transparent);
  background-size: 200% 200%;
  animation: particleDrift 20s ease-in-out infinite;
}
@keyframes particleDrift {
  0%, 100% { background-position: 0% 0%, 100% 100%, 80% 20%, 20% 80%, 50% 50%; opacity: 0.5; }
  50% { background-position: 100% 100%, 0% 0%, 20% 80%, 80% 20%, 30% 70%; opacity: 1; }
}

.hero-content {
  position: relative;
  z-index: 10;
  text-align: center;
  max-width: 900px;
  padding: 2rem 1.5rem;
}

.hero-logo {
  width: 120px;
  height: auto;
  margin: 0 auto 2rem;
  filter: drop-shadow(0 0 30px rgba(201, 168, 76, 0.2));
}

.hero h1 { margin-bottom: 1.5rem; }

.hero-tagline {
  font-size: 1.15rem;
  color: var(--text-dim);
  max-width: 620px;
  margin: 0 auto 2.5rem;
  line-height: 1.8;
  font-weight: 300;
}

.hero-cta {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

/* ── Page hero (inner pages) ── */
.page-hero {
  padding: calc(var(--section-pad) * 0.6) 1.5rem calc(var(--section-pad) * 0.4);
  text-align: center;
  position: relative;
  overflow: hidden;
}
.page-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 600px 400px at 50% 80%, rgba(201, 168, 76, 0.06), transparent);
  pointer-events: none;
}
.page-hero .label-sm { margin-bottom: 0.75rem; display: block; }
.page-hero h1 { position: relative; margin-bottom: 1rem; }
.page-hero p {
  position: relative;
  color: var(--text-dim);
  max-width: 600px;
  margin: 0 auto;
  font-size: 1.05rem;
}

/* ── Info grid (About page stats) ── */
.info-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1.5rem;
}
.info-item {
  text-align: center;
  padding: 1.5rem;
  background: var(--bg-3);
  border: 1px solid var(--surface-border);
  border-radius: 14px;
}
.info-item .info-value {
  font-family: var(--font-display);
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--gold);
  margin-bottom: 0.25rem;
}
.info-item .info-label {
  font-size: 0.82rem;
  color: var(--text-muted);
  letter-spacing: 0.05em;
}

/* ── Footer ── */
.site-footer {
  background: var(--bg-2);
  border-top: 1px solid var(--surface-border);
  padding: 3.5rem 1.5rem 2rem;
  margin-top: auto;
}
.footer-inner {
  max-width: var(--content-max);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 2.5rem;
}
.footer-brand img {
  height: 48px;
  width: auto;
  margin-bottom: 1rem;
  filter: drop-shadow(0 0 20px rgba(201, 168, 76, 0.15));
}
.footer-brand p {
  color: var(--text-muted);
  font-size: 0.88rem;
  line-height: 1.7;
  max-width: 300px;
}

.footer-col h4 {
  font-family: var(--font-body);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold-muted);
  margin-bottom: 1rem;
}
.footer-col ul { list-style: none; }
.footer-col li { margin-bottom: 0.5rem; }
.footer-col a {
  color: var(--text-muted);
  font-size: 0.88rem;
  transition: color var(--transition);
}
.footer-col a:hover { color: var(--gold); }

.footer-bottom {
  max-width: var(--content-max);
  margin: 2.5rem auto 0;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(201, 168, 76, 0.08);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
}
.footer-bottom p {
  color: var(--text-muted);
  font-size: 0.8rem;
}
.footer-bottom a {
  color: var(--text-muted);
  font-size: 0.8rem;
}

@media (max-width: 768px) {
  .footer-inner {
    grid-template-columns: 1fr 1fr;
  }
  .footer-brand { grid-column: 1 / -1; }
  .footer-bottom {
    flex-direction: column;
    text-align: center;
  }
}
@media (max-width: 480px) {
  .footer-inner { grid-template-columns: 1fr; }
}

/* ── Animations ── */
.fade-in {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s var(--ease-out), transform 0.7s var(--ease-out);
}
.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Staggered children */
.stagger > * { transition-delay: calc(var(--i, 0) * 0.1s); }

/* ── Utility ── */
.flex-center { display: flex; align-items: center; justify-content: center; }
.gap-1 { gap: 1rem; }
.gap-2 { gap: 2rem; }
.mt-2 { margin-top: 2rem; }
.mt-3 { margin-top: 3rem; }
.mb-2 { margin-bottom: 2rem; }
.text-center { text-align: center; }
