/* ============================================================
   1010 LOFTS RESIDENTS ASSOCIATION — main.css
   Design tokens drawn from 1010lofts.com:
   dark/gold industrial palette, Playfair Display + Lato
   ============================================================ */

/* ── DESIGN TOKENS ─────────────────────────────────────────── */
:root {
  --black:   #0e0e0e;
  --dark:    #1a1814;
  --mid:     #2a2520;
  --gold:    #c9a252;
  --gold-lt: #e2bf7a;
  --gold-dk: #8b6b2e;
  --cream:   #f2ead8;
  --muted:   #9a8f80;
  --white:   #ffffff;
  --radius:  2px;
  --nav-h:   68px;
}

/* ── RESET ─────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

/* ── BASE ──────────────────────────────────────────────────── */
body {
  background: var(--black);
  color: var(--cream);
  font-family: 'Lato', sans-serif;
  font-weight: 300;
  line-height: 1.75;
}

/* ── TYPOGRAPHY ─────────────────────────────────────────────── */
h1, h2, h3 {
  font-family: 'Playfair Display', serif;
  font-weight: 700;
  line-height: 1.2;
}
h1 { font-size: clamp(2.2rem, 5vw, 3.6rem); }
h2 { font-size: clamp(1.6rem, 3vw, 2.4rem); }
h3 { font-size: 1.2rem; font-weight: 600; }

.eyebrow {
  font-family: 'Lato', sans-serif;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold);
  display: block;
  margin-bottom: 0.6rem;
}

p { margin-bottom: 1.1em; }
p:last-child { margin-bottom: 0; }

a { color: var(--gold); text-decoration: none; }
a:hover { color: var(--gold-lt); text-decoration: underline; }

/* ── LAYOUT ─────────────────────────────────────────────────── */
.container      { max-width: 860px;  margin: 0 auto; padding: 0 1.5rem; }
.container--wide { max-width: 1100px; margin: 0 auto; padding: 0 1.5rem; }

section { padding: 5rem 0; }

.divider {
  width: 52px;
  height: 2px;
  background: var(--gold);
  margin: 1.2rem 0 2rem;
}

.section-lead {
  font-size: 1.05rem;
  max-width: 680px;
  margin-bottom: 2.5rem;
}

/* ── NAV ────────────────────────────────────────────────────── */
#site-nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 200;
  height: var(--nav-h);
  background: rgba(14, 14, 14, 0.95);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(201, 162, 82, 0.15);
  display: flex;
  align-items: center;
  padding: 0 1.5rem;
  gap: 1rem;
}

/* Logo */
.nav-logo {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  text-decoration: none;
  flex-shrink: 0;
  margin-right: 0.5rem;
}
.nav-logo:hover { text-decoration: none; }

.nav-logo-badge {
  width: 34px;
  height: 44px;
  background: var(--gold);
  clip-path: polygon(50% 0%, 100% 12%, 100% 88%, 50% 100%, 0% 88%, 0% 12%);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.nav-logo-badge span {
  font-family: 'Playfair Display', serif;
  font-size: 0.52rem;
  font-weight: 700;
  color: var(--black);
  line-height: 1.15;
  text-align: center;
}
.nav-logo-text {
  font-family: 'Playfair Display', serif;
  font-size: 0.88rem;
  color: var(--cream);
  line-height: 1.25;
}
.nav-logo-text small {
  display: block;
  font-family: 'Lato', sans-serif;
  font-size: 0.58rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold);
  font-style: normal;
}

/* Menu links */
.nav-menu {
  list-style: none;
  display: flex;
  align-items: center;
  gap: 0;
  flex: 1;
}
.nav-menu li { display: flex; }

.nav-link {
  font-family: 'Lato', sans-serif;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: var(--muted);
  padding: 0.4rem 0.9rem;
  text-decoration: none;
  border-bottom: 2px solid transparent;
  transition: color 0.2s, border-color 0.2s;
  white-space: nowrap;
}
.nav-link:hover {
  color: var(--cream);
  text-decoration: none;
  border-bottom-color: rgba(201, 162, 82, 0.4);
}
.nav-link.active {
  color: var(--gold-lt);
  border-bottom-color: var(--gold);
}

/* CTA button */
.nav-cta {
  flex-shrink: 0;
  background: var(--gold);
  color: var(--black);
  font-family: 'Lato', sans-serif;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 0.55rem 1.1rem;
  border-radius: var(--radius);
  text-decoration: none;
  transition: background 0.2s;
  white-space: nowrap;
}
.nav-cta:hover { background: var(--gold-lt); color: var(--black); text-decoration: none; }
.nav-cta--active { background: var(--gold-dk); }

/* Hamburger — hidden on desktop */
.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.4rem;
  margin-left: auto;
}
.nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--cream);
  border-radius: 1px;
  transition: transform 0.25s, opacity 0.25s;
}
/* Hamburger open state */
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ── BUTTONS ────────────────────────────────────────────────── */
.btn {
  display: inline-block;
  font-family: 'Lato', sans-serif;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  padding: 0.8rem 1.6rem;
  border-radius: var(--radius);
  text-decoration: none;
  transition: all 0.2s;
  cursor: pointer;
  border: none;
}
.btn--gold { background: var(--gold); color: var(--black); }
.btn--gold:hover { background: var(--gold-lt); color: var(--black); text-decoration: none; }
.btn--outline {
  background: transparent;
  color: var(--cream);
  border: 1px solid rgba(201, 162, 82, 0.45);
}
.btn--outline:hover { border-color: var(--gold); color: var(--gold-lt); text-decoration: none; }

.page-nav-links {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  margin-top: 3rem;
  padding-top: 2.5rem;
  border-top: 1px solid rgba(201, 162, 82, 0.12);
}

/* ── HERO (HOME) ────────────────────────────────────────────── */
.hero {
  min-height: 100svh;
  padding-top: var(--nav-h);
  background:
    linear-gradient(to bottom, rgba(14,14,14,0.68) 0%, rgba(14,14,14,0.88) 65%, var(--black) 100%),
    url('https://resource.rentcafe.com/image/upload/x_0,y_0,w_5464,h_3070,c_crop/q_auto,f_auto,c_lfill,w_960,ar_1.411,g_auto/s3/2/190441/dji_0752.jpeg') center/cover no-repeat;
  display: flex;
  align-items: center;
  padding-left: 1.5rem;
  padding-right: 1.5rem;
  padding-bottom: 4rem;
}
.hero-inner { max-width: 720px; }
.hero h1 { margin: 0.6rem 0 1.2rem; color: var(--white); }
.hero h1 em { font-style: italic; color: var(--gold-lt); }
.hero-subtitle {
  font-size: 1.1rem;
  color: var(--cream);
  opacity: 0.88;
  max-width: 580px;
  margin-bottom: 2.2rem;
}
.hero-actions { display: flex; gap: 1rem; flex-wrap: wrap; }

/* ── HOME NAV CARDS ─────────────────────────────────────────── */
.home-nav-section {
  background: var(--dark);
  padding: 5rem 0;
  border-top: 1px solid rgba(201, 162, 82, 0.1);
}
.home-nav-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.5rem;
}
.home-nav-card {
  background: var(--mid);
  border: 1px solid rgba(201, 162, 82, 0.1);
  border-top: 3px solid var(--gold-dk);
  padding: 2rem;
  border-radius: var(--radius);
  text-decoration: none;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  transition: border-top-color 0.2s, background 0.2s;
}
.home-nav-card:hover {
  border-top-color: var(--gold);
  background: #302b25;
  text-decoration: none;
}
.home-nav-card .eyebrow { margin-bottom: 0; }
.home-nav-card h3 { color: var(--cream); margin-top: 0.2rem; }
.home-nav-card p { font-size: 0.9rem; color: var(--muted); flex: 1; margin: 0; }
.home-nav-arrow {
  font-family: 'Lato', sans-serif;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gold);
  margin-top: 1rem;
}
.home-nav-card--cta { border-top-color: var(--gold); }
.home-nav-card--cta:hover { border-top-color: var(--gold-lt); }

/* ── PAGE HERO (INNER PAGES) ───────────────────────────────── */
.page-hero {
  background: var(--dark);
  padding: calc(var(--nav-h) + 3rem) 1.5rem 3rem;
  border-bottom: 1px solid rgba(201, 162, 82, 0.1);
}
.page-hero h1 { color: var(--white); margin-top: 0.5rem; }
.page-hero .divider { margin-bottom: 0; }

/* ── WHY ORGANIZE ───────────────────────────────────────────── */
.why { background: var(--dark); }

.why-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.75rem;
  margin-bottom: 0;
}
.why-card {
  background: var(--mid);
  border: 1px solid rgba(201, 162, 82, 0.12);
  border-top: 3px solid var(--gold);
  padding: 1.75rem;
  border-radius: var(--radius);
}
.why-card h3 { margin-bottom: 0.65rem; color: var(--gold-lt); }
.why-card p  { font-size: 0.93rem; color: var(--cream); opacity: 0.85; margin: 0; }

/* ── THE ISSUES ─────────────────────────────────────────────── */
.comms { background: var(--black); }
.comms-layout { max-width: 680px; }

.problem-list { list-style: none; margin: 1.5rem 0 1.75rem; }
.problem-list li {
  display: flex;
  gap: 0.75rem;
  align-items: flex-start;
  margin-bottom: 0.9rem;
  font-size: 0.95rem;
}
.problem-list li::before {
  content: '';
  display: block;
  width: 6px;
  height: 6px;
  background: var(--gold);
  border-radius: 50%;
  flex-shrink: 0;
  margin-top: 0.6em;
}

/* ── YOUR RIGHTS ────────────────────────────────────────────── */
.legal { background: var(--dark); }

.legal-box {
  background: var(--mid);
  border: 1px solid rgba(201, 162, 82, 0.22);
  border-radius: var(--radius);
  padding: 2.5rem;
  margin-top: 2.5rem;
}
.legal-box h3 { color: var(--gold-lt); margin-bottom: 0.5rem; }
.legal-box-sub {
  font-size: 0.85rem;
  color: var(--muted);
  margin-bottom: 0;
}

.steps-list {
  counter-reset: steps;
  list-style: none;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.5rem;
  margin-top: 2rem;
}
.steps-list li {
  counter-increment: steps;
  position: relative;
  padding-left: 3rem;
  font-size: 0.92rem;
  color: var(--cream);
  opacity: 0.88;
}
.steps-list li::before {
  content: counter(steps);
  position: absolute;
  left: 0;
  top: -0.05rem;
  width: 2rem;
  height: 2rem;
  background: var(--gold-dk);
  color: var(--cream);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Playfair Display', serif;
  font-size: 0.88rem;
  font-weight: 700;
}
.steps-list li strong { display: block; color: var(--gold-lt); margin-bottom: 0.25rem; }

/* ── INTEREST FORM ──────────────────────────────────────────── */
#interest { background: var(--dark); }

.form-wrapper {
  background: var(--mid);
  border: 1px solid rgba(201, 162, 82, 0.18);
  border-radius: var(--radius);
  padding: 2.5rem;
  margin-top: 2rem;
}
.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
}
.form-field { display: flex; flex-direction: column; }
.form-full { grid-column: 1 / -1; }

label {
  display: block;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 0.45rem;
}
input[type="text"],
input[type="email"],
select,
textarea {
  width: 100%;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(201, 162, 82, 0.22);
  border-radius: var(--radius);
  color: var(--cream);
  font-family: 'Lato', sans-serif;
  font-size: 0.95rem;
  padding: 0.7rem 0.9rem;
  outline: none;
  transition: border-color 0.2s;
}
input[type="text"]:focus,
input[type="email"]:focus,
select:focus,
textarea:focus { border-color: var(--gold); }
input::placeholder, textarea::placeholder { color: var(--muted); }
select option { background: var(--dark); color: var(--cream); }
textarea { min-height: 110px; resize: vertical; }

.checkbox-group {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 0.55rem;
  margin-top: 0.4rem;
}
.checkbox-item {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.9rem;
  cursor: pointer;
}
.checkbox-item input[type="checkbox"] {
  width: 1rem;
  height: 1rem;
  accent-color: var(--gold);
  flex-shrink: 0;
}
.btn--submit { width: 100%; padding: 0.95rem; margin-top: 1.75rem; font-size: 0.82rem; }

.form-note {
  font-size: 0.78rem;
  color: var(--muted);
  margin-top: 1.25rem;
  text-align: center;
}
#form-success {
  text-align: center;
  padding: 3rem 2rem;
}
#form-success h3 { color: var(--gold-lt); margin-bottom: 0.6rem; }
#form-success p  { color: var(--cream); max-width: 460px; margin: 0 auto; }

/* ── FOOTER ─────────────────────────────────────────────────── */
footer {
  background: var(--dark);
  border-top: 1px solid rgba(201, 162, 82, 0.1);
  padding: 3rem 1.5rem;
  text-align: center;
}
.footer-logo {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  margin-bottom: 1.4rem;
}
.footer-logo-badge {
  width: 30px;
  height: 40px;
  background: var(--gold-dk);
  clip-path: polygon(50% 0%, 100% 12%, 100% 88%, 50% 100%, 0% 88%, 0% 12%);
  display: flex;
  align-items: center;
  justify-content: center;
}
.footer-logo-badge span {
  font-family: 'Playfair Display', serif;
  font-size: 0.48rem;
  font-weight: 700;
  color: var(--cream);
  line-height: 1.1;
  text-align: center;
}
.footer-logo-text {
  font-family: 'Playfair Display', serif;
  font-size: 0.85rem;
  color: var(--muted);
  line-height: 1.25;
  text-align: left;
}
footer p { font-size: 0.8rem; color: var(--muted); max-width: 540px; margin: 0 auto 0.65rem; }
footer a { color: var(--muted); }
footer a:hover { color: var(--gold); }
.footer-legal { font-size: 0.72rem !important; margin-top: 1.25rem !important; }

/* ── RESPONSIVE ─────────────────────────────────────────────── */
@media (max-width: 768px) {
  /* Stack nav on mobile */
  .nav-menu {
    display: none;
    position: fixed;
    top: var(--nav-h);
    left: 0; right: 0;
    background: rgba(14, 14, 14, 0.98);
    flex-direction: column;
    align-items: stretch;
    padding: 1rem 1.5rem 1.5rem;
    border-bottom: 1px solid rgba(201, 162, 82, 0.18);
    gap: 0;
  }
  .nav-menu.open { display: flex; }
  .nav-menu li { border-bottom: 1px solid rgba(201, 162, 82, 0.08); }
  .nav-link {
    display: block;
    padding: 0.9rem 0;
    border-bottom: none;
    font-size: 0.8rem;
  }
  /* Show CTA inside mobile menu */
  .nav-menu li:last-child { border-bottom: none; padding-top: 1rem; }

  .nav-cta { display: none; }
  .nav-toggle { display: flex; }

  /* Single column form */
  .form-grid { grid-template-columns: 1fr; }
  .form-full { grid-column: 1; }
  .form-wrapper { padding: 1.5rem 1.1rem; }

  /* Tighter hero on small screens */
  .hero { min-height: 90svh; }

  /* Page nav links stack */
  .page-nav-links { flex-direction: column; }
  .page-nav-links .btn { text-align: center; }
}

@media (max-width: 480px) {
  .home-nav-grid { grid-template-columns: 1fr; }
  .steps-list { grid-template-columns: 1fr; }
  .why-grid { grid-template-columns: 1fr; }
}
