/* Public CSS - Styles specific to public interface */

/* Import application styles first */
/* @import "application.css"; - Removed to fix 404 error */

/* Import reset (commented out for now - will require reworking public styles) */
/* @import "reset.css"; */

/* Public-specific CSS variables */
:root {
  --bg: #0e0f0f;
  --panel: #161818;
  --ink: #e9f0e6;
  --sub: #c8d2c6;
  --moss: #59755d;
  --fern: #7fa483;
  --accent: #9fb89f;
  --amber: #d7a94b;
  --radius: 16px;
  --shadow: 0 10px 30px rgba(0,0,0,0.35);
}

/* Base styles */
* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

html,
body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: "Inter", system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, sans-serif;
}

body.has-admin-banner {
  padding-bottom: 60px;
}

a {
  color: var(--fern);
  text-decoration: none;
}

a:hover {
  color: #b6d2ba;
}

:focus-visible {
  outline: 2px solid var(--amber);
  outline-offset: 3px;
}

@media (prefers-reduced-motion: reduce) {
  * {
    animation: none !important;
    transition: none !important;
  }
}

/* Navigation */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: saturate(140%) blur(8px);
  background: rgba(14,15,15,0.6);
  border-bottom: 1px solid rgba(255,255,255,0.05);
}

.nav-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 12px 16px;
}

.menu {
  display: flex;
  gap: 14px;
}

.menu a {
  padding: 8px 10px;
  border-radius: 10px;
  color: var(--ink);
  opacity: 0.86;
}

.menu a:hover {
  background: rgba(255,255,255,0.06);
  opacity: 1;
}

.menu a.active {
  background: rgba(127,164,131,0.15);
  color: var(--fern);
  opacity: 1;
  border: 1px solid rgba(127,164,131,0.3);
}

/* Sections */
section {
  max-width: 1100px;
  margin: 0 auto;
  padding: 32px 18px;
}

@media (min-width: 1100px) {
  section {
    padding: 40px 18px;
  }
}

.panel {
  background: var(--panel);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

/* Hero band */
.band {
  background: linear-gradient(180deg, rgba(25,28,26,.7), rgba(25,28,26,.25));
  border-bottom: 1px solid rgba(255,255,255,0.06);
}

.band-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 2rem;
  padding: 28px 18px 22px;
  align-items: start;
}

.kicker {
  color: var(--sub);
  text-transform: uppercase;
  letter-spacing: 1.4px;
  font-weight: 600;
  font-size: 12px;
}

h1 {
  font-size: clamp(28px, 4.5vw, 56px);
  margin: 6px 0;
}

.tagline {
  font-size: clamp(16px, 1.8vw, 22px);
  color: #d7dfd5;
}

.hero-content {
  max-width: 600px;
}

.hero-image {
  width: 400px;
  height: 100%;
  min-height: 300px;
  position: relative;
}

.image-container {
  width: 100%;
  height: 100%;
  background-image: url('/hero.jpeg');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  position: relative;
  overflow: hidden;
}

.image-overlay {
  position: absolute;
  inset: auto 0 0 0;
  padding: 14px 16px;
  background: linear-gradient(180deg, rgba(10,14,13,0), rgba(10,14,13,0.85));
  color: var(--ink);
  font-weight: 500;
  font-size: 14px;
  letter-spacing: 0.6px;
  text-transform: uppercase;
}

@media (max-width: 900px) {
  .band-inner {
    grid-template-columns: 1fr;
    gap: 1rem;
  }
  .hero-image {
    width: 100%;
    height: 300px;
  }
}

/* Hero section */
.hero {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 20px;
  align-items: stretch;
}

@media (max-width: 900px) {
  .band-inner,
  .hero {
    grid-template-columns: 1fr;
  }
}

.hero .art {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius);
  min-height: 300px;
  width: 100%;
}

@media (min-width: 900px) {
  .hero .art {
    min-height: 460px;
    width: calc(100vw - 36px - 1fr);
    margin-right: calc(-1 * (100vw - 1100px) / 2 - 18px);
  }
}

.hero .art img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  filter: contrast(1.05) saturate(1.1);
}

.hero .art::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,0.25), rgba(0,0,0,0.25));
}

/* Typography */
.muted {
  color: var(--sub);
}

.divider {
  height: 1px;
  background: linear-gradient(90deg, rgba(255,255,255,0), rgba(255,255,255,0.12), rgba(255,255,255,0));
  margin: 16px 0;
}

.section-title {
  font-size: clamp(20px, 3vw, 28px);
  margin: 0 0 12px;
}

/* Values section */
.values-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}

@media (max-width: 900px) {
  .values-row {
    grid-template-columns: 1fr;
  }
}

.values-row h3 {
  margin: 0 0 6px;
}

.value-tile {
  padding: 18px;
  border-radius: 14px;
  background: linear-gradient(180deg, rgba(255,255,255,0.03), rgba(255,255,255,0.02));
  border: 1px solid rgba(255,255,255,0.06);
  box-shadow: var(--shadow);
}

.value-tile .value-title {
  font-weight: 700;
}

.value-tile .value-text {
  color: var(--sub);
  margin: 6px 0 0;
}

/* Events */
.events-list {
  display: grid;
  gap: 14px;
}

details.event {
  padding: 0;
}

details.event summary {
  list-style: none;
  padding: 18px;
  cursor: pointer;
}

details.event[open] summary {
  border-bottom: 1px solid rgba(255,255,255,0.06);
}

details.event .body {
  padding: 16px 18px 18px;
}

details.event summary::-webkit-details-marker {
  display: none;
}

.event .meta {
  font-size: 14px;
  color: var(--sub);
}

.event .more {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 10px;
  font-weight: 600;
}

.empty {
  padding: 24px;
  text-align: center;
  color: var(--sub);
}

/* Contact */
.contact-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 8px;
}

.contact-list li {
  display: flex;
  gap: 10px;
  align-items: center;
}

.badge {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 999px;
  background: rgba(255,255,255,0.08);
  font-size: 12px;
  color: var(--sub);
}

.contact {
  display: grid;
  gap: 14px;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}

/* CTAs */
.cta-row {
  display: flex;
  gap: 10px;
  margin-top: 12px;
  flex-wrap: wrap;
}

.tile {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 12px;
  border-radius: 12px;
  border: 1px solid rgba(255,255,255,0.08);
}

.tile.attend {
  background: rgba(127,164,131,0.12);
}

.tile.host {
  background: rgba(215,169,75,0.1);
}

.host-cta {
  margin-top: 14px;
  padding: 0;
}

.btn-like {
  display: inline-block;
  padding: 8px 12px;
  border-radius: 10px;
  background: rgba(127,164,131,0.14);
  border: 1px solid rgba(255,255,255,0.08);
}

/* Forms */
input,
textarea {
  font-family: inherit;
  font-size: 14px;
}

input:focus,
textarea:focus {
  outline: 2px solid var(--amber);
  outline-offset: 2px;
}

input::placeholder,
textarea::placeholder {
  color: rgba(255,255,255,0.4);
}

/* Lists */
ul,
ol {
  padding-left: 24px;
}

li {
  margin-bottom: 4px;
}

/* Footer */
footer {
  max-width: 1100px;
  margin: 0 auto;
  padding: 28px 18px;
  color: #aab5ac;
  border-top: 1px solid rgba(255,255,255,0.08);
  text-align: center;
}

.to-top {
  position: fixed;
  right: 20px;
  bottom: 20px;
  width: 46px;
  height: 46px;
  border-radius: 999px;
  display: none;
  place-items: center;
  background: linear-gradient(180deg, var(--moss), var(--fern));
  color: #09100b;
  box-shadow: var(--shadow);
  cursor: pointer;
  border: 0;
}

.to-top.show {
  display: grid;
}

.to-top:hover {
  filter: brightness(1.08);
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
  border: 0;
}

/* Admin banner */
.admin-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: rgba(22,24,24,0.95);
  backdrop-filter: saturate(140%) blur(8px);
  border-top: 1px solid rgba(255,255,255,0.08);
  padding: 12px 18px;
  z-index: 40;
  display: none;
}

.admin-banner.show {
  display: block;
}

.admin-banner-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
}

.admin-banner-left {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--sub);
  font-size: 14px;
}

.admin-banner-right {
  display: flex;
  gap: 8px;
}

.admin-banner a {
  padding: 6px 12px;
  border-radius: 8px;
  background: rgba(255,255,255,0.08);
  color: var(--ink);
  font-size: 14px;
  text-decoration: none;
  transition: background 0.2s;
}

.admin-banner a:hover {
  background: rgba(255,255,255,0.12);
}

.admin-banner .logout {
  background: rgba(215,169,75,0.15);
  color: var(--amber);
}

.admin-banner .logout:hover {
  background: rgba(215,169,75,0.25);
}

@media (max-width: 600px) {
  .admin-banner-inner {
    flex-direction: column;
    gap: 8px;
    text-align: center;
  }
}

.hidden { display: none; }
.content_block_editor { clear: both; }
.content_block_editor .btn-like { padding: 6px 10px; border: 1px solid #3a4a41; border-radius: 6px; background: #111; color: #dbe6dd; cursor: pointer; }
.content_block_editor .rendered_content { margin-bottom: 8px; }
.content_block_editor .trix-content { color: #dbe6dd; }
.content_block_editor .trix-content p { margin: 0 0 10px; }
.content_block_editor .expanded_content { max-width: 640px; background: #0c1210; padding: 12px; border-radius: 8px; border: 1px solid #2a3a31; box-shadow: 0 2px 8px rgba(0,0,0,0.2); }
@media (min-width: 900px) {
  .band .hero-content .expanded_content { max-width: 540px; }
}

.cb-modal-open { overflow: hidden; }
.cb-modal { position: fixed; inset: 0; z-index: 1000; }
.cb-modal.hidden { display: none; }
.cb-modal-backdrop { position: absolute; inset: 0; background: rgba(0,0,0,0.55); backdrop-filter: blur(2px); }
.cb-modal-dialog { position: relative; margin: 6vh auto; width: min(95vw, 960px); background: #ffffff; color: #111; border: 1px solid #d8dfda; border-radius: 12px; box-shadow: 0 10px 30px rgba(0,0,0,0.5); }
.cb-modal-header { display:flex; align-items:center; justify-content: space-between; padding: 12px 14px; border-bottom: 1px solid #e7eee9; background: #f7faf8; }
.cb-modal-body { padding: 14px; max-height: 72vh; overflow: auto; }
.cb-close { background: transparent; color: #333; border: 0; font-size: 20px; line-height: 1; cursor: pointer; }
.cb-modal .btn-like { background: #f2f6f4; color: #123; border-color: #cfd8d3; }
.cb-modal .btn-like.primary { background: #24664c; border-color: #1e5942; color: #fff; }

/* Trix in modal: sizing and light theme overrides */
.cb-modal .trix-toolbar { background: #f7faf8; border: none; border-radius: 8px; padding: 6px; }
.cb-modal .trix-button-group { margin-right: 6px; border: none; }
.cb-modal .trix-button { border-color: #cfd8d3; background: #ffffff; color: #111; }
.cb-modal .trix-content { color: #111; }
.cb-modal trix-editor { background: #fff; color: #111; border: 1px solid #d8dfda; border-radius: 8px; padding: 10px; min-height: 220px; }
.cb-modal .cb-plain { width: 100%; min-height: 220px; font: inherit; line-height: 1.5; padding: 10px; border: 1px solid #d8dfda; border-radius: 8px; }

/* Hide unwanted Trix controls */
.cb-modal .trix-button-group--file-tools { display: none; }
.cb-modal .trix-button[data-trix-action="undo"],
.cb-modal .trix-button[data-trix-action="redo"],
.cb-modal .trix-button[data-trix-action="decreaseNestingLevel"],
.cb-modal .trix-button[data-trix-action="increaseNestingLevel"],
.cb-modal .trix-button[data-trix-attribute="heading1"] { display: none; }

/* Style H3/H4 buttons with SVG icons to match other Trix buttons */
.cb-modal .trix-button--icon-heading-3::before {
  background-image: url('data:image/svg+xml;charset=UTF-8,<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24"><text x="50%" y="50%" dominant-baseline="middle" text-anchor="middle" font-family="system-ui, -apple-system, sans-serif" font-size="14" font-weight="700" fill="%23000">H3</text></svg>') !important;
}

.cb-modal .trix-button--icon-heading-4::before {
  background-image: url('data:image/svg+xml;charset=UTF-8,<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24"><text x="50%" y="50%" dominant-baseline="middle" text-anchor="middle" font-family="system-ui, -apple-system, sans-serif" font-size="14" font-weight="700" fill="%23000">H4</text></svg>') !important;
}

.content_block_editor.admin .rendered_content { position: relative; }
.content_block_editor.admin .rendered_content::after {
  content: "";
  position: absolute;
  inset: -2px;
  border-radius: 6px;
  box-shadow: 0 0 0 0 rgba(36,102,76,0.0);
  transition: box-shadow 120ms ease-in-out, background-color 120ms ease-in-out;
}
.content_block_editor.admin .rendered_content:hover::after,
.content_block_editor.admin .rendered_content:focus-visible::after {
  box-shadow: 0 0 0 2px rgba(36,102,76,0.8);
  background-color: rgba(36,102,76,0.07);
}

/* Trix toolbar aesthetic to match admin palette */
.cb-modal .trix-button {
  border-radius: 6px;
  padding: 6px 10px;
  border: 1px solid #cfd8d3;
}
.cb-modal .trix-button.trix-active {
  background: #e6f2ed;
  border-color: #98c7b3;
}
.cb-modal .trix-button-group { gap: 6px; border: none; }
/* Hide headings/indent controls entirely per product choice */
.cb-modal .trix-button[data-trix-attribute="heading1"],
.cb-modal .trix-button[data-trix-action="decreaseNestingLevel"],
.cb-modal .trix-button[data-trix-action="increaseNestingLevel"] { display: none; }

/* FAQ Page Styles */
#faq-content {
  padding: 0 0 40px 0;
}

.faq-section {
  margin-bottom: 48px;
}

.faq-section h2 {
  color: var(--ink);
  font-size: 26px;
  font-weight: 700;
  margin: 0 0 16px;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  display: inline-flex;
  align-items: center;
  gap: 12px;
}

.faq-section h2::after {
  content: "";
  flex: 1;
  height: 1px;
  background: rgba(159, 184, 159, 0.4);
}

.faq-item {
  margin-bottom: 20px;
  padding: 24px 28px;
  border-radius: var(--radius);
  background: rgba(22, 24, 24, 0.95);
  border: 1px solid rgba(127, 164, 131, 0.25);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.35);
  position: relative;
}

.faq-item::before {
  content: "";
  position: absolute;
  left: 12px;
  top: 24px;
  bottom: 24px;
  width: 4px;
  border-radius: 999px;
  background: linear-gradient(180deg, rgba(223, 182, 77, 0.9), rgba(127, 164, 131, 0.9));
}

.faq-question {
  margin: 0 0 14px;
  padding-left: 40px;
  color: var(--ink);
  font-size: 20px;
  font-weight: 600;
  line-height: 1.35;
}

.faq-content {
  padding-left: 40px;
  color: var(--sub);
  line-height: 1.7;
}

.faq-content p {
  margin-bottom: 14px;
}

.faq-content p:last-child {
  margin-bottom: 0;
}

.faq-content ul {
  margin: 14px 0;
  padding-left: 22px;
}

.faq-content li {
  margin-bottom: 8px;
}

.faq-content li::marker {
  color: var(--fern);
}

.faq-content a {
  color: var(--fern);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s ease;
}

.faq-content a:hover {
  color: var(--accent);
  border-bottom-color: var(--accent);
}

.faq-content strong {
  color: var(--ink);
  font-weight: 600;
}


@media (max-width: 768px) {
  #faq-content {
    padding: 0 16px 32px;
  }

  .faq-item {
    padding: 20px;
  }

  .faq-item::before {
    left: 10px;
    top: 22px;
    bottom: 22px;
  }

  .faq-question {
    font-size: 18px;
    padding-left: 28px;
    margin-bottom: 12px;
  }

  .faq-content {
    padding-left: 28px;
  }
}

@media (max-width: 480px) {
  .faq-item {
    padding: 18px;
  }

  .faq-item::before {
    left: 8px;
    top: 18px;
    bottom: 18px;
  }

  .faq-question {
    font-size: 17px;
    padding-left: 24px;
  }

  .faq-content {
    padding-left: 24px;
    font-size: 15px;
  }
}

.panel-grid {
  display: grid;
  gap: 18px;
}

.panel-grid .panel,
.structured-content {
  padding: 24px;
  line-height: 1.7;
}

.panel-grid .panel p,
.structured-content p {
  margin: 0 0 16px;
}

.structured-content h3 {
  margin: 28px 0 10px;
  font-size: 24px;
  font-weight: 700;
  letter-spacing: 0.4px;
  text-transform: uppercase;
}

.structured-content h3:first-child {
  margin-top: 0;
}

.structured-content h4 {
  margin: 18px 0 8px;
  font-size: 18px;
  font-weight: 600;
  color: var(--ink);
}

.structured-content ul {
  margin: 16px 0 16px 0;
  padding-left: 22px;
}

.structured-content li {
  margin-bottom: 8px;
}

.panel-grid .panel:last-child,
.structured-content p:last-child {
  margin-bottom: 0;
}

.callout-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 16px;
}

.callout-panel {
  background: rgba(22, 24, 24, 0.85);
  border: 1px solid rgba(159, 184, 159, 0.22);
  border-radius: var(--radius);
  padding: 20px 22px;
  box-shadow: 0 12px 26px rgba(0,0,0,0.3);
}

.callout-panel h3 {
  margin-top: 0;
}

.events-callout {
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 22px 24px;
  border-radius: var(--radius);
  background: rgba(22, 24, 24, 0.85);
  border: 1px solid rgba(215, 169, 75, 0.2);
  margin-bottom: 18px;
}

.callout-icon {
  width: 46px;
  height: 46px;
  border-radius: 999px;
  display: grid;
  place-items: center;
  background: linear-gradient(180deg, rgba(215,169,75,0.9), rgba(159,184,159,0.9));
  color: #0b120f;
  font-size: 18px;
  font-weight: 700;
  box-shadow: 0 10px 24px rgba(0,0,0,0.35);
}

.events-callout h3 {
  margin: 0 0 6px;
}

.events-callout p {
  margin: 0;
  color: var(--sub);
}

.owner-card {
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: 24px;
  align-items: start;
  background: rgba(22,24,24,0.9);
  border: 1px solid rgba(127,164,131,0.25);
  border-radius: var(--radius);
  box-shadow: 0 16px 32px rgba(0,0,0,0.38);
  padding: 24px;
}

.owner-photo {
  max-width: 200px;
}

.owner-photo img {
  width: 100%;
  border-radius: var(--radius);
  box-shadow: 0 14px 28px rgba(0,0,0,0.35);
  border: 1px solid rgba(255,255,255,0.08);
}

.owner-content h3 {
  margin-top: 0;
}

@media (max-width: 900px) {
  .owner-card {
    grid-template-columns: 1fr;
  }
  .owner-photo {
    max-width: 220px;
  }
}
