/* =============================================================
   AVERAGE JOE'S — SHARED CORE TOKENS + COMPONENTS
   Used by Landing, Listings, Detail pages
   ============================================================= */

:root{
  --paper:    #FFFFFF;
  --paper-2:  #F2F4F8;
  --paper-3:  #F2F4F8;
  --line:     rgba(11,18,32,0.10);
  --line-2:   rgba(11,18,32,0.18);

  --ink:      #0B1220;
  --ink-2:    #2A3245;
  --ink-3:    #5B6172;
  --ink-4:    #8088A0;

  --navy:     #14274C;
  --navy-2:   #0E1C3A;
  --navy-3:   #1F2E54;

  --red:      #D9342B;     /* stripe accent */
  --blue:     #1F5FBF;     /* stripe accent */

  --warm:     #F7F3EC;
  --warm-2:   #ECE5D6;
  --gold:     #B8893A;
  --gold-2:   #966D26;
  --gold-3:   #F0E2C0;     /* light gold tint */

  --green:    #3A6B45;     /* "available" / positive */
  --red-deep: #C24A3A;     /* used sparingly for warnings */

  --shadow-sm: 0 1px 0 rgba(11,18,32,.06), 0 1px 2px rgba(11,18,32,.06);
  --shadow-md: 0 4px 12px -4px rgba(11,18,32,.12), 0 1px 3px rgba(11,18,32,.06);
  --shadow-lg: 0 18px 40px -16px rgba(11,18,32,.20), 0 6px 14px -8px rgba(11,18,32,.12);
}

*{ box-sizing: border-box }
html, body{ margin:0; padding:0; overflow-x: hidden }
body{
  font-family: "Inter", system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  line-height: 1.5;
}

a{ color: inherit }
img{ display:block; max-width: 100% }
button{ font: inherit }

.wrap{ max-width: 1280px; margin: 0 auto; padding: 0 32px }
@media (max-width: 720px){ .wrap{ padding: 0 20px } }

/* ============ TYPOGRAPHY ============ */
.display{
  font-family: "Archivo", sans-serif;
  font-weight: 900; font-stretch: 110%;
  letter-spacing: -.015em;
  line-height: .98;
  color: var(--navy);
  text-transform: uppercase;
}
.display em{
  font-style: normal; font-weight: 900; font-stretch: 110%;
  color: var(--navy);
  letter-spacing: -.01em;
  box-shadow: inset 0 -6px 0 var(--gold);
  padding-bottom: 0;
}
.h1{ font-size: clamp(40px, 5.6vw, 72px) }
.h2{ font-size: clamp(30px, 3.2vw, 42px) }
.h3{ font-size: clamp(22px, 2vw, 28px) }

.eyebrow{
  font-family: "JetBrains Mono", monospace;
  font-size: 11.5px; font-weight: 600;
  letter-spacing: .22em; text-transform: uppercase;
  color: var(--ink-3);
}

/* ============ LOGO ============ */
.lockup{ display:flex; align-items:center; gap: 12px; text-decoration:none; color: inherit }
.lockup-key{ width: 38px; height: 38px; flex-shrink: 0 }
.key-mark{ width: 36px; height: 50px; flex-shrink: 0 }
.key-mark-lg{ width: 56px; height: 78px }
.lockup-text{ display: flex; flex-direction: column; line-height: .9 }
.lockup-text .top{
  font-family: "Archivo", sans-serif;
  font-weight: 900; font-stretch: 110%;
  color: var(--navy);
  font-size: 18px; letter-spacing: -.005em;
  line-height: 1;
}
.lockup-text .bottom{
  font-family: "JetBrains Mono", monospace;
  font-size: 9px; font-weight: 600; color: var(--ink-3);
  letter-spacing: .22em; text-transform: uppercase;
  margin-top: 4px;
  border-top: 1.5px solid var(--ink); padding-top: 4px;
}

/* ============ NAV ============ */
.site-nav{
  position: sticky; top: 0; z-index: 50;
  background: rgba(255,255,255,0.92);
  backdrop-filter: saturate(160%) blur(10px);
  border-bottom: 1px solid var(--line);
  box-shadow: 0 1px 0 rgba(11,18,32,.04), 0 8px 24px -12px rgba(11,18,32,.18);
}
.site-nav .wrap{
  display:flex; align-items:center; justify-content:space-between;
  height: 72px;
}
.nav-links{ display:flex; gap: 28px; align-items:center }
.nav-links a{
  text-decoration:none; color: var(--ink); font-weight: 600; font-size: 14px;
  border-bottom: 2px solid transparent; padding: 4px 0;
  transition: border-color .15s, color .15s;
}
.nav-links a:hover, .nav-links a.active{ border-color: var(--gold); color: var(--navy) }
.nav-cta{ display:flex; gap:12px; align-items:center }
.phone{ font-family: "JetBrains Mono", monospace; font-size: 13px; color: var(--ink-2); font-weight: 600; white-space: nowrap }
@media (max-width: 1100px){ .nav-links{ display:none } }
@media (max-width: 800px){ .phone{ display:none } }
@media (max-width: 560px){
  /* keep the lockup and CTA on one uncrowded row */
  .lockup-key{ width: 30px; height: 30px }
  .lockup-text .top{ font-size: 15px }
  .lockup-text .bottom{ display: none }
  .nav-cta .btn{ padding: 9px 11px; font-size: 11px }
  .nav-cta .btn .arrow{ display: none }
}

/* ============ BUTTONS ============ */
.btn{
  display:inline-flex; align-items:center; gap:8px;
  font-family: "Archivo", sans-serif;
  font-weight: 800; font-stretch: 110%;
  text-transform: uppercase; letter-spacing: .04em;
  font-size: 13.5px;
  padding: 12px 18px; border-radius: 10px;
  cursor: pointer; border: 0;
  transition: transform .12s, background .15s, box-shadow .15s, color .15s;
  text-decoration: none;
  white-space: nowrap;
}
.btn-primary{
  background: var(--navy); color: #FFF;
  box-shadow: 0 1px 0 rgba(255,255,255,.18) inset, 0 4px 0 var(--navy-2), 0 12px 28px -12px rgba(11,18,32,.45);
}
.btn-primary:hover{ transform: translateY(-1px) }
.btn-primary:active{ transform: translateY(2px) }
.btn-secondary{
  background: #FFF; color: var(--navy);
  box-shadow: inset 0 0 0 2px var(--navy);
}
.btn-secondary:hover{ background: var(--paper-2) }
.btn-ghost{
  background: transparent; color: var(--navy); padding: 12px 16px;
  box-shadow: inset 0 0 0 1.5px var(--line-2);
}
.btn-ghost:hover{ background: rgba(11,18,32,.03) }
.btn .arrow{ font-size: 15px; line-height: 1 }

/* ============ TAG / PILL ============ */
.tag{
  display:inline-flex; align-items:center; gap: 6px;
  padding: 6px 12px; border-radius: 999px;
  background: var(--warm);
  color: var(--navy); font-size: 12px; font-weight: 700;
  letter-spacing: .04em;
  border: 1px solid var(--warm-2);
  white-space: nowrap;
}
.tag .dot{ width:6px; height:6px; border-radius:50%; background: var(--gold) }

/* ============ FOOTER ============ */
.site-footer{
  background: var(--ink); color: rgba(255,255,255,.78);
  padding: 60px 0 40px;
  margin-top: 80px;
}
.site-footer .wrap{ display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 40px }
@media (max-width: 800px){ .site-footer .wrap{ grid-template-columns: 1fr 1fr; gap: 32px } }
.site-footer h4{
  color: #FFF; font-family: "Archivo", sans-serif;
  font-weight: 800; font-stretch: 110%;
  text-transform: uppercase; letter-spacing: .04em;
  font-size: 12px; margin: 0 0 12px;
}
.site-footer ul{ list-style: none; padding: 0; margin: 0; font-size: 13px; line-height: 2 }
.site-footer a{ color: rgba(255,255,255,.78); text-decoration: none }
.site-footer a:hover{ color: #FFF }
.site-footer-meta{
  border-top: 1px solid rgba(255,255,255,.14);
  margin-top: 40px; padding-top: 24px;
  display:flex; justify-content:space-between; flex-wrap: wrap; gap: 16px;
  font-size: 12px; color: rgba(255,255,255,.5);
}
