* {
  box-sizing: border-box;
}

html, body {
  margin: 0;
  height: 100%;
  font-family: sans-serif;
}

.site-nav {
  display: flex;
  gap: 1.5rem;
  padding: 1rem 1.5rem;
  background: #1a1a1a;
}

.site-nav a {
  color: white;
  text-decoration: none;
  font-weight: bold;
}

.site-nav a.active {
  text-decoration: underline;
}

.message {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  color: white;
  font-size: 4rem;
  font-weight: bold;
  text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.8);
  text-align: center;
  z-index: 1;
}

.page-content {
  max-width: 700px;
  margin: 2rem auto;
  padding: 0 1.5rem;
  line-height: 1.6;
}

.page-content p {
  /* Every paragraph is a single flowing block; measure, rhythm, and line
     wrapping are controlled strictly by CSS, never by manual breaks. */
  max-width: 65ch;
  line-height: 1.65;
  text-wrap: pretty;
}

.content-photo {
  max-width: 100%;
  border-radius: 8px;
  margin-top: 1rem;
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  max-width: 480px;
}

.contact-form label {
  font-weight: bold;
}

.contact-form input,
.contact-form textarea {
  padding: 0.5rem;
  font-size: 1rem;
  font-family: inherit;
}

.contact-form button {
  align-self: flex-start;
  padding: 0.5rem 1.5rem;
  font-size: 1rem;
  cursor: pointer;
}

.field-error {
  color: #b00020;
  font-size: 0.875rem;
  margin-top: -0.5rem;
}

.banner {
  padding: 0.75rem 1rem;
  border-radius: 4px;
  font-weight: bold;
}

.banner.success {
  background: #d4edda;
  color: #155724;
}

.banner.error {
  background: #f8d7da;
  color: #721c24;
}

/* Honeypot anti-bot field — visually hidden; real users never see or fill it. */
.hp-field {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

@media (max-width: 700px) {
  .site-nav {
    flex-direction: column;
    gap: 0.5rem;
  }

  .hero-banner {
    min-height: 32vh;
  }

  .message {
    font-size: 2.5rem;
  }
}

/* --- Dropdown nav --- */
.has-dropdown {
  position: relative;
}

.dropdown-trigger {
  background: none;
  border: none;
  color: white;
  font: inherit;
  font-weight: bold;
  cursor: pointer;
  padding: 0;
}

.dropdown-trigger.active {
  text-decoration: underline;
}

.has-dropdown .dropdown {
  list-style: none;
  margin: 0;
  padding: 0.5rem 0;
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 12rem;
  background: #1a1a1a;
  border: 1px solid #333;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
  display: none;
  z-index: 100;
}

.has-dropdown:hover .dropdown,
.has-dropdown:focus-within .dropdown,
.has-dropdown.open .dropdown {
  display: block;
}

.dropdown li a {
  display: block;
  padding: 0.5rem 1.5rem;
  white-space: nowrap;
}

/* --- Group page --- */
.group-size {
  font-style: italic;
  opacity: 0.8;
}

/* --- Home hero --- */
/* Single full-width hero: the Flatirons above Boulder. Served via the static
   asset route so all styling (including this background) lives in the
   stylesheet, not inline. */
.hero-banner {
  background-image: url("/api/assets/flatirons.jpg");
  background-size: cover;
  background-position: center;
  min-height: 45vh;
}

.welcome {
  max-width: 700px;
  margin: 2rem auto;
  padding: 0 1.5rem;
  line-height: 1.6;
}

.offerings {
  list-style: none;
  padding: 0;
}

.offerings li {
  margin: 0.75rem 0;
  font-size: 1.1rem;
}

.side-lists {
  display: flex;
  gap: 2.5rem;
  margin: 1.5rem 0;
}

.side-lists > section {
  flex: 1;
}

.side-lists h2 {
  margin-top: 0;
}

.faq {
  margin-top: 2.5rem;
}

.faq details {
  border-bottom: 1px solid rgba(0, 0, 0, 0.12);
  padding: 0.75rem 0;
}

.faq summary {
  cursor: pointer;
  font-weight: 600;
  font-size: 1.05rem;
  list-style-position: inside;
}

.faq details[open] summary {
  margin-bottom: 0.5rem;
}

.faq details p {
  /* Answer bodies are a single flowing block; all formatting comes from CSS
     (measure, rhythm, spacing) rather than any manual line/sentence breaks. */
  margin: 0.5rem 0 0;
  max-width: 65ch;
  line-height: 1.65;
  text-wrap: pretty;
}

@media (max-width: 700px) {
  .side-lists {
    flex-direction: column;
    gap: 1rem;
  }

  .has-dropdown .dropdown {
    position: static;
    box-shadow: none;
    border: none;
  }

  .has-dropdown .dropdown {
    display: none;
  }

  .has-dropdown.open .dropdown {
    display: block;
  }
}

/* --- Privacy / footer (compliance quick wins) --- */
.site-footer {
  text-align: center;
  padding: 1.5rem 1rem;
  border-top: 1px solid rgba(0, 0, 0, 0.08);
  font-size: 0.85rem;
}
.site-footer .copyright { margin-right: 0.75rem; }
.site-footer a { color: inherit; opacity: 0.75; }
.site-footer a:hover { opacity: 1; }
.form-note { font-size: 0.85rem; opacity: 0.7; margin-top: 0.75rem; }
.prose { max-width: 60ch; }
.prose h2 { margin-top: 1.6rem; }
.prose .muted { opacity: 0.7; font-size: 0.9rem; }

/* --- Admin dashboard --- */
.admin-auth { display: flex; gap: 0.5rem; align-items: center; flex-wrap: wrap; margin-bottom: 1.5rem; }
.admin-auth input { padding: 0.4rem 0.5rem; }
.admin-email { margin-bottom: 2rem; }
.admin-email input { padding: 0.4rem 0.5rem; min-width: 20rem; max-width: 100%; }
.admin-out { background: rgba(0, 0, 0, 0.04); padding: 0.75rem; overflow-x: auto; white-space: pre-wrap; word-break: break-word; }
.admin-table { width: 100%; border-collapse: collapse; font-size: 0.85rem; }
.admin-table th, .admin-table td { text-align: left; padding: 0.4rem 0.5rem; border-bottom: 1px solid rgba(0, 0, 0, 0.08); }
button.danger { background: #c0392b; color: #fff; border: 0; padding: 0.3rem 0.6rem; border-radius: 3px; cursor: pointer; font-size: 0.8rem; }
button.danger:hover { background: #a93226; }
