/* ═══════════════════════════════════════════════
   PropDirect — Shared Design System
   ═══════════════════════════════════════════════ */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600&family=Instrument+Serif:ital@0;1&display=swap');

/* ─── RESET ─── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
img { display: block; max-width: 100%; }
button, input, select, textarea { font-family: inherit; }
a { color: inherit; text-decoration: none; }

/* ─── TOKENS ─── */
:root {
  --black:       #222222;
  --gray:        #7F7F7F;
  --gray-light:  #b0b0b0;
  --border:      #e6e6e4;
  --surface:     #f7f7f5;
  --tag-bg:      #f0efed;
  --white:       #FFFFFF;
  --mgmt-dark:   #1e140d;

  --sans:   'Inter', system-ui, sans-serif;
  --serif:  'Instrument Serif', Georgia, serif;

  --r-sm:   8px;
  --r-md:   14px;
  --r-lg:   20px;
  --r-xl:   24px;
  --r-pill: 100px;

  --shadow-sm:  0 2px 8px rgba(0,0,0,0.06);
  --shadow-md:  0 8px 32px rgba(0,0,0,0.10);
  --shadow-lg:  0 20px 60px rgba(0,0,0,0.14);
}

body {
  font-family: var(--sans);
  color: var(--black);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* ─── NAV ─── */
.site-nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px 52px;
  pointer-events: none;
}
.site-nav.scrolled { pointer-events: all; }

.nav-pill {
  display: flex;
  align-items: center;
  gap: 32px;
  background: rgba(255,255,255,0.94);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-radius: var(--r-pill);
  padding: 13px 28px;
  box-shadow: var(--shadow-md);
  pointer-events: all;
}

.nav-logo {
  font-family: var(--serif);
  font-style: italic;
  font-size: 17px;
  color: var(--black);
  margin-right: 8px;
}

.nav-divider {
  width: 1px;
  height: 18px;
  background: var(--border);
}

.nav-pill a {
  font-size: 13px;
  font-weight: 400;
  color: var(--black);
  letter-spacing: -0.01em;
  transition: opacity .18s;
  white-space: nowrap;
}
.nav-pill a:hover { opacity: .45; }
.nav-pill a.active { font-weight: 500; }

.nav-actions {
  position: absolute;
  right: 52px;
  display: flex;
  align-items: center;
  gap: 16px;
  pointer-events: all;
}

.nav-saved {
  font-size: 13px;
  font-weight: 400;
  color: var(--white);
  display: flex;
  align-items: center;
  gap: 6px;
  transition: opacity .18s;
}
.nav-saved:hover { opacity: .7; }

.nav-signin {
  background: var(--white);
  color: var(--black);
  border: none;
  border-radius: var(--r-pill);
  padding: 9px 20px;
  font-size: 13px;
  font-weight: 400;
  cursor: pointer;
  transition: background .18s;
  white-space: nowrap;
}
.nav-signin:hover { background: #eee; }

/* On white-bg pages, nav actions use dark text */
.nav--dark .nav-saved { color: var(--black); }

/* ─── BUTTONS ─── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border-radius: var(--r-pill);
  font-family: var(--sans);
  font-size: 13.5px;
  font-weight: 400;
  letter-spacing: -0.01em;
  cursor: pointer;
  transition: all .18s;
  white-space: nowrap;
  border: none;
}
.btn-primary {
  background: var(--black);
  color: var(--white);
  padding: 14px 28px;
}
.btn-primary:hover { background: #3a3a3a; }

.btn-secondary {
  background: transparent;
  color: var(--black);
  border: 1.5px solid var(--border);
  padding: 13px 26px;
}
.btn-secondary:hover { background: var(--surface); }

.btn-ghost-white {
  background: transparent;
  color: var(--white);
  border: 1px solid rgba(255,255,255,0.32);
  padding: 12px 24px;
  font-size: 13px;
}
.btn-ghost-white:hover { background: rgba(255,255,255,0.1); border-color: rgba(255,255,255,0.6); }

.btn-lg { padding: 16px 36px; font-size: 14.5px; }
.btn-sm { padding: 9px 18px; font-size: 12px; }

/* ─── TAGS / CHIPS ─── */
.tag {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: var(--tag-bg);
  color: var(--black);
  font-size: 11.5px;
  font-weight: 400;
  padding: 5px 12px;
  border-radius: var(--r-pill);
  white-space: nowrap;
}
.tag-outline {
  background: transparent;
  border: 1px solid var(--border);
}
.tag-dark {
  background: var(--black);
  color: var(--white);
}
.tag-green {
  background: #e8f5e9;
  color: #2e7d32;
}
.tag-amber {
  background: #fff8e1;
  color: #f57f17;
}

/* ─── SECTION TITLES ─── */
.section-hd {
  font-family: var(--sans);
  font-size: clamp(28px, 3.5vw, 46px);
  font-weight: 400;
  letter-spacing: -0.03em;
  line-height: 1.1;
}
.section-hd em {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 400;
  letter-spacing: -0.01em;
}

/* ─── FOOTER ─── */
.site-footer {
  background: var(--black);
  padding: 64px 72px 0;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 48px;
}
.footer-brand {
  font-family: var(--serif);
  font-style: italic;
  font-size: 24px;
  color: var(--white);
  margin-bottom: 14px;
}
.footer-tagline {
  font-size: 12.5px;
  font-weight: 300;
  color: rgba(255,255,255,0.42);
  line-height: 1.68;
  max-width: 240px;
}
.footer-col-hd {
  font-size: 10.5px;
  font-weight: 400;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.32);
  margin-bottom: 18px;
}
.footer-links { list-style: none; }
.footer-links li { margin-bottom: 10px; }
.footer-links a {
  font-size: 12.5px;
  font-weight: 300;
  color: rgba(255,255,255,0.62);
  transition: color .18s;
}
.footer-links a:hover { color: var(--white); }
.footer-bottom {
  background: var(--black);
  border-top: 1px solid rgba(255,255,255,0.07);
  margin: 40px 72px 0;
  padding: 20px 0 28px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.footer-copy {
  font-size: 11.5px;
  font-weight: 300;
  color: rgba(255,255,255,0.26);
}

/* ─── SCROLL ANIMATION ─── */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(24px); }
  to   { opacity: 1; transform: translateY(0); }
}
.anim { animation: fadeUp .7s cubic-bezier(.22,1,.36,1) both; }
.anim-d1 { animation-delay: .08s; }
.anim-d2 { animation-delay: .18s; }
.anim-d3 { animation-delay: .28s; }
.anim-d4 { animation-delay: .38s; }

/* ─── RESPONSIVE HELPERS ─── */
@media (max-width: 900px) {
  .site-nav { padding: 16px 20px; }
  .nav-actions { right: 20px; }
  .site-footer { grid-template-columns: 1fr 1fr; padding: 48px 24px 0; }
  .footer-bottom { margin: 32px 24px 0; flex-direction: column; gap: 8px; text-align: center; }
}
@media (max-width: 640px) {
  .site-footer { grid-template-columns: 1fr; }
}
