* { box-sizing: border-box; }
html, body { margin: 0; }
body {
  font-family: Calibri, 'Segoe UI', Arial, sans-serif;
  background: #f8f4ee;
  color: #322f2a;
  min-height: 100vh;
}

/* ---------------- Header / nav ---------------- */
.site-header {
  position: absolute;
  top: 0; left: 0; right: 0;
  z-index: 10;
  padding: 22px 40px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.site-header .brand {
  font-size: 1.15rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #f8f4ee;
  text-decoration: none;
}
.site-header nav {
  display: flex;
  gap: 34px;
}
.site-header nav a {
  color: #f0ece4;
  text-decoration: none;
  font-size: 0.85rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.site-header nav a:hover { color: #fff; }

/* When not on the hero (inner pages), give the header a solid backdrop */
.site-header.solid {
  position: sticky;
  background: #322f2a;
  border-bottom: 1px solid #46423b;
}
.site-header.solid .brand,
.site-header.solid nav a { color: #f8f4ee; }

/* ---------------- Hero (homepage) ---------------- */
.hero {
  position: relative;
  width: 100%;
  height: 100vh;
  overflow: hidden;
}
.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  animation: heroFade 48s infinite;
}
.hero-slide img { width: 100%; height: 100%; object-fit: cover; }
.hero-slide:nth-child(1) { animation-delay: 0s; }
.hero-slide:nth-child(2) { animation-delay: 8s; }
.hero-slide:nth-child(3) { animation-delay: 16s; }
.hero-slide:nth-child(4) { animation-delay: 24s; }
.hero-slide:nth-child(5) { animation-delay: 32s; }
.hero-slide:nth-child(6) { animation-delay: 40s; }
@keyframes heroFade {
  0%   { opacity: 0; }
  10%  { opacity: 1; }
  16%  { opacity: 1; }
  26%  { opacity: 0; }
  100% { opacity: 0; }
}
.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(50,47,42,.5) 0%, rgba(50,47,42,.3) 45%, rgba(50,47,42,.65) 100%);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 20px;
}
.hero-overlay .brand-label {
  font-size: 1.1rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: #f0ece4;
  margin-bottom: 18px;
}
.hero-overlay h1 { font-size: 3rem; margin: 0 0 14px; font-weight: 400; letter-spacing: 0.02em; color: #fff; }
.hero-overlay p { color: #f0ece4; font-size: 1.05rem; max-width: 480px; line-height: 1.6; margin: 0 0 30px; }
.pill {
  display: inline-block;
  padding: 10px 26px;
  border: 1px solid #a89377;
  border-radius: 999px;
  color: #f0ece4;
  font-size: 0.85rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

/* ---------------- Generic inner-page layout ---------------- */
.page-section {
  max-width: 1000px;
  margin: 0 auto;
  padding: 140px 24px 100px;
}
.page-head { text-align: center; margin-bottom: 50px; }
.page-head .eyebrow {
  font-size: 0.8rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #a89377;
  margin-bottom: 10px;
}
.page-head h1 { font-size: 2.4rem; font-weight: 400; margin: 0 0 12px; color: #322f2a; }
.page-head p { color: #6b665c; max-width: 560px; margin: 0 auto; line-height: 1.6; }

/* Community button grid (Operations page) */
.community-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}
@media (max-width: 640px) { .community-grid { grid-template-columns: 1fr; } }
.community-btn {
  display: block;
  padding: 34px 26px;
  border: 1px solid #e4ddd0;
  border-radius: 10px;
  color: #322f2a;
  text-decoration: none;
  font-size: 1.2rem;
  letter-spacing: 0.02em;
  text-align: center;
  background: #ffffff;
  transition: border-color .2s, background .2s;
}
.community-btn:hover { border-color: #a89377; background: #fbf8f2; }

/* Home cards (community detail page) */
.home-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 18px;
}
.home-card {
  border: 1px solid #e4ddd0;
  border-radius: 10px;
  overflow: hidden;
  background: #ffffff;
}
.home-card img { width: 100%; aspect-ratio: 4/3; object-fit: cover; display: block; }
.home-card .addr { padding: 16px 18px; font-size: 0.92rem; }
.home-card a.addr-link {
  display: block;
  padding: 18px 20px;
  color: #322f2a;
  text-decoration: none;
  font-size: 0.98rem;
}
.home-card a.addr-link:hover { background: #fbf8f2; color: #a89377; }

.back-link {
  display: inline-block;
  margin-top: 40px;
  color: #a89377;
  text-decoration: none;
  font-size: 0.85rem;
  letter-spacing: 0.03em;
}

/* ---------------- Invest / Investor form ---------------- */
.investor-intro {
  max-width: 700px;
  margin: 0 auto 50px;
  line-height: 1.75;
  color: #4a453d;
}
.investor-intro p { margin: 0 0 16px; }

.invest-form {
  max-width: 520px;
  margin: 0 auto;
}
.invest-form .field { margin-bottom: 18px; }
.invest-form label {
  display: block;
  font-size: 0.8rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #8a8577;
  margin-bottom: 6px;
}
.invest-form input, .invest-form select, .invest-form textarea {
  width: 100%;
  padding: 12px 14px;
  background: #ffffff;
  border: 1px solid #e4ddd0;
  border-radius: 6px;
  color: #322f2a;
  font-family: inherit;
  font-size: 0.95rem;
}
.invest-form textarea { min-height: 110px; resize: vertical; }
.invest-form button {
  width: 100%;
  padding: 14px;
  background: #322f2a;
  border: none;
  border-radius: 999px;
  color: #fff;
  font-size: 0.95rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  cursor: pointer;
}
.invest-form button:hover { background: #46423b; }
.invest-form button:disabled { opacity: 0.6; cursor: default; }
.form-status { margin-top: 16px; font-size: 0.88rem; display: none; }
.form-status.show { display: block; }
.form-status.success { color: #2e7d4f; }
.form-status.error { color: #b3261e; }

footer.site-footer {
  text-align: center;
  padding: 30px 20px;
  font-size: 0.8rem;
  color: #8a8577;
  border-top: 1px solid #e4ddd0;
  background: #f8f4ee;
}
