/* =====================================================
   RED BEARD INVESTMENTS — STL PORTFOLIO
   Shared stylesheet · Light mode default · Summer 2026
   ===================================================== */

/* ---- Light mode (DEFAULT) — warm ivory/cream ---- */
:root {
  --bg:           #f4f0e6;
  --bg-card:      #ffffff;
  --bg-card-2:    #ece8dc;
  --border:       rgba(0,0,0,0.09);
  --border-light: rgba(0,0,0,0.16);
  --text:         #1c1810;
  --text-muted:   #6a5f4e;
  --text-dim:     #a09070;
  --accent:       #8a6a15;
  --accent-dim:   rgba(138,106,21,0.10);
  --red:          #a03020;
  --red-dim:      rgba(160,48,32,0.09);
  --green:        #246830;
  --shadow:       0 2px 20px rgba(0,0,0,0.07);
  --shadow-card:  0 4px 28px rgba(0,0,0,0.09);
  --radius:       6px;
  --radius-lg:    10px;
  --nav-h:        64px;
}

/* ---- Dark mode — deep navy (toggled) ---- */
[data-theme="dark"] {
  --bg:           #0f1520;
  --bg-card:      #162030;
  --bg-card-2:    #1c2840;
  --border:       rgba(255,255,255,0.08);
  --border-light: rgba(255,255,255,0.14);
  --text:         #e8e2d6;
  --text-muted:   #8890a0;
  --text-dim:     #4a5868;
  --accent:       #c9a84c;
  --accent-dim:   rgba(201,168,76,0.12);
  --red:          #c04a3a;
  --red-dim:      rgba(192,74,58,0.12);
  --green:        #3cb850;
  --shadow:       0 2px 24px rgba(0,0,0,0.5);
  --shadow-card:  0 4px 32px rgba(0,0,0,0.4);
}

/* ---- Reset ---- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
  font-family: 'Work Sans', sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.65;
  transition: background 0.3s, color 0.3s;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }

/* ---- Typography ---- */
h1, h2, h3 {
  font-family: 'Instrument Serif', serif;
  font-weight: 400;
  line-height: 1.15;
  letter-spacing: -0.01em;
}
h1 { font-size: clamp(2.2rem, 5.5vw, 4rem); }
h2 { font-size: clamp(1.6rem, 3.2vw, 2.5rem); }
h3 { font-size: clamp(1.2rem, 2vw, 1.55rem); }
p  { font-weight: 300; color: var(--text-muted); }
strong { font-weight: 500; color: var(--text); }

.serif { font-family: 'Instrument Serif', serif; }
.label {
  font-size: 0.67rem;
  font-weight: 600;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: var(--accent);
}

/* ---- Layout ---- */
.container { max-width: 1080px; margin: 0 auto; padding: 0 24px; }
.section { padding: 96px 0; }
.section + .section { border-top: 1px solid var(--border); }

/* ---- Scroll Reveal ---- */
.reveal {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.reveal.visible { opacity: 1; transform: translateY(0); }
.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }
.reveal-delay-4 { transition-delay: 0.4s; }

/* ---- Navigation ---- */
nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: var(--nav-h);
  z-index: 100;
  display: flex;
  align-items: center;
  padding: 0 24px;
  background: var(--bg);
  border-bottom: 1px solid var(--border);
  transition: background 0.3s, box-shadow 0.3s;
}
nav.scrolled { box-shadow: var(--shadow); }

.nav-inner {
  max-width: 1080px;
  width: 100%;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.nav-logo { display: flex; align-items: center; gap: 10px; }
.nav-logo svg { height: 26px; width: auto; }
.nav-wordmark {
  font-size: 0.72rem; font-weight: 600;
  letter-spacing: 0.1em; text-transform: uppercase; color: var(--text);
}
.nav-wordmark span { color: var(--red); }
.nav-links { display: flex; align-items: center; gap: 24px; list-style: none; }
.nav-links a {
  font-size: 0.78rem; font-weight: 500; letter-spacing: 0.04em;
  text-transform: uppercase; color: var(--text-muted); transition: color 0.2s;
}
.nav-links a:hover { color: var(--text); }
.nav-contact {
  display: flex; align-items: center; gap: 6px;
  font-size: 0.78rem; font-weight: 400; color: var(--text-muted);
}
.nav-contact a { color: var(--text-muted); transition: color 0.2s; }
.nav-contact a:hover { color: var(--accent); }
.nav-sep { color: var(--text-dim); }
.nav-right { display: flex; align-items: center; gap: 14px; }

.theme-toggle {
  background: none;
  border: 1px solid var(--border-light);
  border-radius: 20px;
  padding: 4px 12px;
  cursor: pointer;
  font-size: 0.7rem; font-weight: 500; letter-spacing: 0.06em;
  text-transform: uppercase; color: var(--text-muted);
  transition: all 0.2s; font-family: 'Work Sans', sans-serif;
}
.theme-toggle:hover { color: var(--text); }

/* ---- Buttons ---- */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 13px 28px;
  background: var(--accent);
  color: #fff;
  font-family: 'Work Sans', sans-serif;
  font-size: 0.8rem; font-weight: 600; letter-spacing: 0.08em;
  text-transform: uppercase; border: none; border-radius: var(--radius);
  cursor: pointer; transition: opacity 0.2s, transform 0.15s; text-decoration: none;
}
.btn:hover { opacity: 0.88; transform: translateY(-1px); }

.btn-outline {
  background: transparent; color: var(--accent);
  border: 1px solid var(--accent);
}
.btn-outline:hover { background: var(--accent-dim); opacity: 1; }

.btn-ghost {
  background: var(--bg-card); color: var(--text);
  border: 1px solid var(--border-light);
}
.btn-ghost:hover { border-color: var(--accent); color: var(--accent); opacity: 1; }

/* ---- Tables ---- */
.table-wrap {
  overflow-x: auto; border: 1px solid var(--border);
  border-radius: var(--radius-lg); background: var(--bg-card);
  box-shadow: var(--shadow-card);
}
table { width: 100%; border-collapse: collapse; font-size: 0.875rem; }
thead tr { border-bottom: 1px solid var(--border-light); }
thead th {
  padding: 14px 18px; text-align: left;
  font-size: 0.66rem; font-weight: 600; letter-spacing: 0.12em;
  text-transform: uppercase; color: var(--text-dim); white-space: nowrap;
}
tbody td {
  padding: 15px 18px; border-bottom: 1px solid var(--border);
  font-weight: 400; color: var(--text-muted); white-space: nowrap;
}
tbody tr:last-child td { border-bottom: none; }
tbody tr:hover td { background: var(--accent-dim); }
td.bold   { font-weight: 500; color: var(--text); }
td.accent { color: var(--accent); font-weight: 500; }
td.green  { color: var(--green); font-weight: 500; }

.status-pill {
  display: inline-block; padding: 3px 10px; border-radius: 20px;
  font-size: 0.68rem; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase;
}
.status-vacant   { background: rgba(200,140,0,0.12); color: #b07800; }
.status-occupied { background: rgba(36,104,48,0.12); color: var(--green); }
.status-partial  { background: rgba(30,80,200,0.10); color: #2a60c0; }

/* ---- Spec chips ---- */
.property-specs { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 12px; }
.spec-chip {
  padding: 4px 11px; background: var(--bg-card-2);
  border: 1px solid var(--border); border-radius: 20px;
  font-size: 0.73rem; font-weight: 400; color: var(--text-muted);
}

/* ---- Appraisal badge ---- */
.appraisal-badge {
  display: inline-flex; align-items: center; gap: 7px;
  padding: 7px 14px; background: var(--accent-dim);
  border: 1px solid rgba(138,106,21,0.22); border-radius: var(--radius);
  font-size: 0.73rem; font-weight: 500; color: var(--accent); margin-top: 12px;
}
[data-theme="dark"] .appraisal-badge {
  border-color: rgba(201,168,76,0.22);
}

/* ---- Photo placeholder ---- */
.photo-placeholder {
  border-radius: var(--radius-lg); background: var(--bg-card-2);
  border: 1px solid var(--border); box-shadow: var(--shadow-card);
  aspect-ratio: 4/3; display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  position: relative; overflow: hidden;
}
.photo-placeholder::before {
  content: ''; position: absolute; inset: 0;
  background: repeating-linear-gradient(
    -45deg, transparent, transparent 22px, var(--border) 22px, var(--border) 23px
  );
  opacity: 0.5;
}
.photo-placeholder-inner { position: relative; z-index: 1; text-align: center; padding: 20px; }
.photo-placeholder svg { margin: 0 auto 10px; opacity: 0.3; }
.photo-address { font-family: 'Instrument Serif', serif; font-size: 1rem; color: var(--text); opacity: 0.65; }
.photo-note { font-size: 0.7rem; color: var(--text-dim); margin-top: 5px; font-style: italic; }

/* ---- Info box ---- */
.info-box {
  padding: 20px 22px; background: var(--bg-card-2);
  border: 1px solid var(--border); border-radius: var(--radius); font-size: 0.84rem;
}
.info-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.info-item-label { font-size: 0.68rem; color: var(--text-dim); text-transform: uppercase; letter-spacing: 0.08em; }
.info-item-val { font-weight: 500; color: var(--text); margin-top: 2px; }
.info-item-val.accent { color: var(--accent); font-weight: 600; }
.info-item-val.green  { color: var(--green); font-weight: 600; }

.section-subhead {
  font-size: 0.68rem; font-weight: 600; letter-spacing: 0.12em;
  text-transform: uppercase; color: var(--text-dim);
}

/* ---- Mgmt badge ---- */
.mgmt-badge {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 10px 18px; background: var(--bg-card);
  border: 1px solid var(--border-light); border-radius: var(--radius);
  font-size: 0.78rem; font-weight: 400; color: var(--text-muted); margin-top: 24px;
}
.mgmt-badge strong { color: var(--text); font-weight: 500; }

/* ---- Footer ---- */
footer { border-top: 1px solid var(--border); padding: 32px 24px; text-align: center; }
footer p { font-size: 0.74rem; color: var(--text-dim); line-height: 1.7; }

/* ---- Responsive ---- */
@media (max-width: 820px) {
  .nav-links  { display: none; }
  .nav-contact { display: none; }
}
@media (max-width: 560px) {
  .section { padding: 64px 0; }
  thead th, tbody td { padding: 11px 12px; }
}
