/* ── HOMELESS RESPONSE LAB — Global Styles ── */
:root {
  --linen: #F5F0E8;
  --linen-deep: #EDE7DB;
  --white: #FDFCFA;
  --slate: #3A5C6B;
  --slate-dark: #2C4A57;
  --slate-light: #4E7A8C;
  --charcoal: #252525;
  --charcoal-mid: #444;
  --charcoal-light: #6B6B6B;
  --gold: #B8903C;
  --gold-light: #CCA84E;
  --border: #DDD8CF;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  font-family: 'DM Sans', sans-serif;
  background: var(--linen);
  color: var(--charcoal);
  line-height: 1.6;
  overflow-x: hidden;
}

/* ── NAV ── */
nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  background: rgba(245,240,232,0.96);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border);
  padding: 0 6%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
}

.logo {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--slate-dark);
  text-decoration: none;
  letter-spacing: 0.04em;
  line-height: 1.2;
}

.logo span {
  display: block;
  font-size: 0.58rem;
  font-family: 'DM Sans', sans-serif;
  font-weight: 400;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--charcoal-light);
  margin-top: 1px;
}

.nav-links {
  display: flex;
  gap: 2.2rem;
  list-style: none;
  align-items: center;
}

.nav-links a {
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--charcoal-mid);
  text-decoration: none;
  padding-bottom: 2px;
  border-bottom: 1px solid transparent;
  transition: color 0.2s, border-color 0.2s;
}

.nav-links a:hover, .nav-links a.active {
  color: var(--slate);
  border-color: var(--slate);
}

.nav-cta {
  background: var(--slate) !important;
  color: white !important;
  padding: 0.5rem 1.1rem !important;
  border-bottom: none !important;
  border-radius: 2px;
  transition: background 0.2s !important;
}

.nav-cta:hover {
  background: var(--slate-dark) !important;
  border-color: transparent !important;
}

/* ── PAGE HERO (inner pages) ── */
.page-hero {
  margin-top: 68px;
  background: var(--slate-dark);
  padding: 90px 6% 80px;
  position: relative;
  overflow: hidden;
}

.page-hero::before {
  content: '';
  position: absolute;
  top: -150px; right: -150px;
  width: 500px; height: 500px;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,0.05);
}

.page-hero-inner { max-width: 720px; position: relative; z-index: 1; }

.page-label {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1.5rem;
}

.page-label span {
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold-light);
}

.page-label::before {
  content: '';
  display: block;
  width: 32px; height: 1px;
  background: var(--gold-light);
}

.page-hero h1 {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(2.6rem, 4.5vw, 3.8rem);
  font-weight: 300;
  color: white;
  line-height: 1.1;
  margin-bottom: 1.25rem;
  letter-spacing: -0.01em;
}

.page-hero p {
  font-size: 1.05rem;
  color: rgba(255,255,255,0.65);
  max-width: 540px;
  font-weight: 300;
  line-height: 1.7;
}

/* ── SECTION WRAPPERS ── */
.section-linen { background: var(--linen); }
.section-white { background: var(--white); }
.section-deep { background: var(--linen-deep); }
.section-slate { background: var(--slate-dark); }
.section-charcoal { background: var(--charcoal); }

/* ── SECTION LABEL ── */
.section-label {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1rem;
}

.section-label span {
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold);
}

.section-label::before {
  content: '';
  display: block;
  width: 24px; height: 1px;
  background: var(--gold);
}

/* ── BUTTONS ── */
.btn-slate {
  background: var(--slate);
  color: white;
  padding: 0.8rem 1.6rem;
  font-size: 0.73rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  border: none;
  cursor: pointer;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  transition: background 0.2s, transform 0.15s;
  border-radius: 2px;
}

.btn-slate:hover { background: var(--slate-dark); transform: translateY(-1px); }

.btn-gold {
  background: var(--gold);
  color: white;
  padding: 0.85rem 1.8rem;
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  border: none;
  cursor: pointer;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  transition: background 0.2s, transform 0.15s;
  border-radius: 2px;
}

.btn-gold:hover { background: var(--gold-light); transform: translateY(-1px); }

.btn-ghost {
  background: transparent;
  color: rgba(255,255,255,0.8);
  padding: 0.85rem 1.8rem;
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  border: 1px solid rgba(255,255,255,0.25);
  cursor: pointer;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  transition: all 0.2s;
  border-radius: 2px;
}

.btn-ghost:hover { border-color: rgba(255,255,255,0.6); color: white; }

/* ── FOOTER ── */
footer {
  background: var(--charcoal);
  padding: 4rem 6% 2rem;
}

.footer-top {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 3rem;
  padding-bottom: 3rem;
  border-bottom: 1px solid rgba(255,255,255,0.08);
  margin-bottom: 2rem;
}

.footer-logo {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.1rem;
  font-weight: 600;
  color: white;
  text-decoration: none;
  letter-spacing: 0.04em;
  display: block;
  margin-bottom: 1rem;
  line-height: 1.2;
}

.footer-logo span {
  display: block;
  font-size: 0.55rem;
  font-family: 'DM Sans', sans-serif;
  font-weight: 400;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.35);
  margin-top: 2px;
}

.footer-brand p {
  font-size: 0.83rem;
  color: rgba(255,255,255,0.4);
  line-height: 1.7;
  font-weight: 300;
  max-width: 260px;
}

.footer-col h5 {
  font-size: 0.68rem;
  font-weight: 500;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.3);
  margin-bottom: 1.25rem;
}

.footer-col ul { list-style: none; display: flex; flex-direction: column; gap: 0.7rem; }

.footer-col a {
  font-size: 0.83rem;
  color: rgba(255,255,255,0.5);
  text-decoration: none;
  transition: color 0.2s;
  font-weight: 300;
}

.footer-col a:hover { color: white; }

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
}

.footer-bottom p { font-size: 0.73rem; color: rgba(255,255,255,0.22); }

/* ── ANIMATIONS ── */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

.fade-in {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.fade-in.visible { opacity: 1; transform: translateY(0); }

/* ── CONTACT FORM ── */
.contact-form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.form-group label {
  font-size: 0.73rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--charcoal-light);
}

.form-group input,
.form-group select,
.form-group textarea {
  padding: 0.8rem 1rem;
  border: 1px solid var(--border);
  border-radius: 2px;
  font-family: 'DM Sans', sans-serif;
  font-size: 0.9rem;
  color: var(--charcoal);
  background: white;
  transition: border-color 0.2s;
  outline: none;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--slate);
}

.form-group textarea { resize: vertical; min-height: 120px; }

/* ── RESPONSIVE ── */
@media (max-width: 900px) {
  .footer-top { grid-template-columns: 1fr 1fr; }
  .form-row { grid-template-columns: 1fr; }
}

@media (max-width: 600px) {
  .nav-links { display: none; }
  .footer-top { grid-template-columns: 1fr; }
}
