* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  /* Brand palette (from johnsonartscenter.org) */
  --brand-red: #ea4524;
  --brand-red-dark: #cf3a1c;
  --brand-teal: #00a9ac;
  --brand-teal-dark: #018587;
  --brand-yellow: #f9a51a;
  --brand-blue: #a9dde5;

  --bg: #fffdf9;
  --surface: #ffffff;
  --surface-2: #faf6ef;
  --border: #e8e2d6;
  --ink: #242021;
  --text: #242021;
  --text-muted: #5f5a54;
  --link: #cf3a1c;

  --font-head: 'Fraunces', Georgia, 'Times New Roman', serif;
  --font-body: 'Pontano Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;

  --max-width: 1080px;
  --nav-height: 76px;
  --shadow: 0 6px 20px rgba(40, 30, 20, 0.08);
  --shadow-sm: 0 2px 8px rgba(40, 30, 20, 0.06);
}

html {
  min-height: 100%;
}

body {
  font-family: var(--font-body);
  background: var(--bg);
  min-height: 100vh;
  color: var(--ink);
  line-height: 1.6;
}

h1, h2, h3, h4 {
  font-family: var(--font-head);
  font-weight: 600;
  line-height: 1.15;
  color: var(--ink);
}

a {
  color: var(--link);
}

a:hover {
  text-decoration: underline;
}

/* ---------- Header / navigation ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--brand-teal);
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.12);
}

.site-header-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0.6rem 1.25rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.site-logo {
  display: inline-flex;
  align-items: center;
  color: #fff;
  text-decoration: none;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 1.15rem;
}

.site-logo:hover {
  text-decoration: none;
  opacity: 0.95;
}

.site-logo img {
  display: block;
  height: 54px;
  width: auto;
  background: #fff;
  padding: 6px 10px;
  border-radius: 8px;
}

.site-nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.35rem 1.15rem;
  list-style: none;
}

.site-nav a {
  color: #ffffff;
  text-decoration: none;
  font-size: 0.98rem;
  font-weight: 600;
  letter-spacing: 0.01em;
}

.site-nav a:hover,
.site-nav a[aria-current='page'] {
  color: var(--brand-yellow);
  text-decoration: none;
}

.site-nav .nav-admin a {
  color: var(--brand-yellow);
}

/* ---------- Layout ---------- */
main {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 2.5rem 1.25rem 3.5rem;
}

.page-title {
  font-size: 2.6rem;
  margin-bottom: 1rem;
  color: var(--brand-red);
}

.lead {
  font-size: 1.2rem;
  color: var(--text-muted);
  margin-bottom: 1.5rem;
  max-width: 65ch;
}

/* ---------- Home hero + section cards ---------- */
.hero {
  text-align: center;
  padding: 2.5rem 0 1rem;
}

.hero-logo {
  max-width: 560px;
  width: 100%;
  height: auto;
  margin: 0 auto;
}

.hero-tagline {
  font-family: var(--font-head);
  font-size: 1.5rem;
  color: var(--ink);
  margin-top: 1.5rem;
  max-width: 34ch;
  margin-left: auto;
  margin-right: auto;
}

.home-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.5rem;
  margin-top: 3rem;
}

.home-card {
  border-radius: 16px;
  padding: 2rem 1.9rem;
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow);
  color: #fff;
}

.home-card h2 {
  color: #fff;
  font-size: 1.7rem;
  margin-bottom: 0.6rem;
}

.home-card p {
  flex: 1;
  margin-bottom: 1.5rem;
  color: rgba(255, 255, 255, 0.95);
}

.home-card--red { background: var(--brand-red); }
.home-card--teal { background: var(--brand-teal); }
.home-card--yellow { background: var(--brand-yellow); color: var(--ink); }
.home-card--yellow h2 { color: var(--ink); }
.home-card--yellow p { color: rgba(36, 32, 33, 0.85); }
.home-card--blue { background: var(--brand-blue); color: var(--ink); }
.home-card--blue h2 { color: var(--ink); }
.home-card--blue p { color: rgba(36, 32, 33, 0.8); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-block;
  padding: 0.7rem 1.35rem;
  border-radius: 8px;
  background: #171412;
  border: 1px solid #171412;
  color: #fff;
  text-decoration: none;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 0.98rem;
  text-align: center;
  cursor: pointer;
  transition: background 0.15s ease, transform 0.05s ease;
}

.btn:hover {
  background: var(--brand-red);
  border-color: var(--brand-red);
  color: #fff;
  text-decoration: none;
}

.btn:active {
  transform: translateY(1px);
}

.btn-link {
  color: var(--link);
  align-self: center;
  background: none;
  border: none;
  font-weight: 600;
}

/* ---------- Generic cards ---------- */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.5rem;
  margin-top: 1.5rem;
}

.card {
  background: var(--surface);
  border-radius: 14px;
  border: 1px solid var(--border);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-sm);
}

.card-image {
  width: 100%;
  aspect-ratio: 8 / 5;
  object-fit: cover;
  display: block;
  background: var(--surface-2);
}

.card-body {
  padding: 1.35rem;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.card-body h2 {
  font-size: 1.4rem;
  margin-bottom: 0.5rem;
  color: var(--brand-red);
}

.card-body p {
  font-size: 0.97rem;
  color: var(--text-muted);
  flex: 1;
  margin-bottom: 1rem;
}

.card-date {
  flex: 0 0 auto;
  font-weight: 700;
  color: var(--brand-teal-dark);
  margin-bottom: 0.5rem;
}

/* ---------- Notices ---------- */
.notice {
  background: #eaf7ee;
  border: 1px solid #b7e4c4;
  color: #1c6b38;
  border-radius: 10px;
  padding: 0.75rem 1rem;
  margin-bottom: 1.5rem;
}

.error-msg {
  color: #c0392b;
  margin-bottom: 1rem;
}

/* ---------- Rooms ---------- */
.rooms-list {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  margin-top: 1.5rem;
}

.room {
  background: var(--surface);
  border-radius: 14px;
  border: 1px solid var(--border);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}

.room-main {
  display: flex;
  gap: 1.25rem;
  padding: 1.35rem;
}

.room-image {
  width: 240px;
  flex: 0 0 240px;
  aspect-ratio: 8 / 5;
  object-fit: cover;
  border-radius: 10px;
  background: var(--surface-2);
}

.room-info {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
}

.room-info h2 {
  font-size: 1.5rem;
  margin-bottom: 0.5rem;
  color: var(--brand-red);
}

.room-info p {
  font-size: 0.97rem;
  color: var(--text-muted);
  margin-bottom: 0.4rem;
}

.room-desc {
  margin-bottom: 0.75rem;
}

.room-air {
  color: var(--text-muted);
  font-size: 0.88rem;
}

.rent-toggle {
  align-self: flex-start;
  margin-top: 0.85rem;
  cursor: pointer;
}

/* Smooth expand using animatable grid rows */
.room-calendar {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 0.35s ease;
}

.room-calendar.open {
  grid-template-rows: 1fr;
}

.room-calendar-inner {
  overflow: hidden;
  min-height: 0;
}

.room-calendar.open .room-calendar-inner {
  border-top: 1px solid var(--border);
}

.rc-calendar {
  padding: 1.25rem;
}

.calendar-hint {
  padding: 0.85rem 1.25rem 0;
  font-size: 0.9rem;
  color: var(--text-muted);
}

.rc-request {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin: 0.85rem 1.25rem 0;
  padding: 0.75rem 1rem;
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: 10px;
}

.rc-request[hidden] {
  display: none;
}

.rc-request-text {
  font-weight: 700;
  font-size: 0.95rem;
}

.rc-request-btn {
  cursor: pointer;
}

@media (max-width: 620px) {
  .room-main {
    flex-direction: column;
  }
  .room-image {
    width: 100%;
    flex-basis: auto;
  }
}

/* ---------- Reserve form ---------- */
.reserve-summary {
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 1rem 1.25rem;
}

.reserve-summary p {
  margin-bottom: 0.3rem;
}

.reserve-total {
  margin-top: 0.5rem;
  font-size: 1.15rem;
}

.reserve-total-detail {
  font-weight: 400;
  color: var(--text-muted);
  font-size: 0.9rem;
}

.btn-pay {
  background: var(--brand-red);
  border-color: var(--brand-red);
  font-size: 1.05rem;
  padding: 0.75rem 1.5rem;
}

.btn-pay:hover {
  background: var(--brand-red-dark);
  border-color: var(--brand-red-dark);
}

.reserve-form {
  margin-top: 1.5rem;
  max-width: 560px;
}

.form-row {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  margin-bottom: 1rem;
}

.form-row label {
  font-weight: 700;
  font-size: 0.95rem;
}

.form-row input,
.form-row textarea {
  font: inherit;
  color: var(--ink);
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 0.6rem 0.75rem;
}

.form-row input::placeholder,
.form-row textarea::placeholder {
  color: #a49d92;
}

.form-row input:focus,
.form-row textarea:focus {
  outline: 2px solid var(--brand-teal);
  outline-offset: 1px;
  border-color: var(--brand-teal);
}

.form-fineprint {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 1.25rem;
}

/* ---------- About / donors ---------- */
.about-section {
  margin-bottom: 2rem;
}

.about-section h2 {
  font-size: 1.6rem;
  margin-bottom: 0.75rem;
  color: var(--brand-red);
}

.about-section p {
  margin-bottom: 1rem;
  color: var(--text-muted);
}

.about-photos {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1rem;
  margin: 1.5rem 0;
}

.about-photos img {
  width: 100%;
  border-radius: 12px;
  border: 1px solid var(--border);
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.placeholder-block {
  background: var(--surface-2);
  border: 1px dashed var(--border);
  border-radius: 16px;
  padding: 2rem;
  text-align: center;
  color: var(--text-muted);
}

/* ---------- Community calendar ---------- */
#calendar {
  margin-top: 1rem;
  background: var(--surface);
  border-radius: 12px;
  padding: 0.75rem;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
}

/* FullCalendar theming for the light brand look */
.fc {
  --fc-border-color: #e8e2d6;
  --fc-button-bg-color: var(--brand-teal);
  --fc-button-border-color: var(--brand-teal);
  --fc-button-text-color: #fff;
  --fc-button-hover-bg-color: var(--brand-teal-dark);
  --fc-button-hover-border-color: var(--brand-teal-dark);
  --fc-button-active-bg-color: var(--brand-teal-dark);
  --fc-today-bg-color: rgba(249, 165, 26, 0.12);
  --fc-page-bg-color: transparent;
  --fc-neutral-bg-color: #faf6ef;
  color: var(--ink);
}

.fc .fc-toolbar-title {
  color: var(--ink);
  font-family: var(--font-head);
}

.fc-theme-standard td,
.fc-theme-standard th {
  border-color: var(--fc-border-color);
}

.fc-col-header-cell {
  color: var(--text-muted);
}

.fc .slot-booked {
  background: var(--brand-red);
  border-color: var(--brand-red-dark);
  color: #fff;
  font-size: 0.75rem;
}

.fc .slot-event {
  background: var(--brand-teal);
  border-color: var(--brand-teal-dark);
  color: #fff;
  font-size: 0.75rem;
}

/* ---------- Admin ---------- */
.admin-panel {
  background: var(--surface);
  border-radius: 14px;
  border: 1px solid var(--border);
  padding: 1.5rem 1.75rem;
  box-shadow: var(--shadow-sm);
}

.admin-panel p {
  margin-bottom: 1rem;
}

.admin-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-top: 1.5rem;
  border-bottom: 2px solid var(--border);
}

.admin-tab {
  font: inherit;
  font-family: var(--font-body);
  cursor: pointer;
  color: var(--text-muted);
  background: transparent;
  border: 2px solid transparent;
  border-bottom: none;
  border-radius: 10px 10px 0 0;
  padding: 0.6rem 1.15rem;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  margin-bottom: -2px;
}

.admin-tab:hover {
  color: var(--ink);
  background: var(--surface-2);
}

.admin-tab.active {
  color: var(--brand-red);
  background: var(--surface);
  border-color: var(--border);
  border-bottom-color: var(--brand-red);
}

.admin-tabpanel[hidden] {
  display: none;
}

.admin-section {
  margin-top: 2rem;
}

.admin-section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}

.admin-form-wrap {
  margin-top: 1rem;
  padding: 1.25rem 1.35rem;
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: 12px;
}

.admin-form-wrap[hidden] {
  display: none;
}

.form-heading {
  margin-bottom: 0.5rem;
  color: var(--brand-red);
}

.admin-section h2 {
  font-size: 1.5rem;
  margin-bottom: 0.35rem;
}

.count-badge {
  display: inline-block;
  min-width: 1.5rem;
  padding: 0 0.4rem;
  margin-left: 0.4rem;
  border-radius: 999px;
  background: var(--brand-red);
  color: #fff;
  font-size: 0.85rem;
  font-weight: 700;
  text-align: center;
}

.admin-hint {
  color: var(--text-muted);
  font-size: 0.9rem;
  margin-bottom: 1rem;
}

.admin-table {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.admin-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 0.85rem 1.1rem;
  box-shadow: var(--shadow-sm);
}

.admin-row-info {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}

.admin-meta {
  color: var(--text-muted);
  font-size: 0.88rem;
}

.admin-row-actions {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.admin-row-actions form {
  margin: 0;
}

.btn-approve {
  background: #1c8a4a;
  border-color: #1c8a4a;
}

.btn-approve:hover {
  background: #156b39;
  border-color: #156b39;
}

.btn-reject {
  background: #fff;
  border-color: var(--brand-red);
  color: var(--brand-red);
}

.btn-reject:hover {
  background: var(--brand-red);
  border-color: var(--brand-red);
  color: #fff;
}

.status-pill {
  display: inline-block;
  padding: 0.25rem 0.7rem;
  border-radius: 999px;
  font-size: 0.82rem;
  font-weight: 700;
  background: var(--surface-2);
  border: 1px solid var(--border);
  color: var(--text-muted);
}

.status-paid {
  background: #eaf7ee;
  border-color: #b7e4c4;
  color: #1c6b38;
}

.status-authorized {
  background: #fdf1d8;
  border-color: #f4dca0;
  color: #8a5a12;
}

.status-rejected,
.status-cancelled {
  background: #fdecea;
  border-color: #f5c2ba;
  color: #b23120;
}

.status-pending {
  background: #eef0f3;
  border-color: #dfe3e8;
  color: #555c66;
}

.event-form {
  max-width: 640px;
  margin-top: 1rem;
}

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

@media (max-width: 520px) {
  .form-grid-2 {
    grid-template-columns: 1fr;
  }
}

.form-row-inline {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1rem;
}

.form-row-inline label {
  font-weight: 400;
}

.rooms-fieldset {
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 0.85rem 1rem;
  margin-bottom: 1rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.25rem;
}

.rooms-fieldset legend {
  padding: 0 0.4rem;
  font-weight: 700;
  font-size: 0.9rem;
}

.room-check {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.95rem;
}

.status-line {
  margin-top: 1.5rem;
  font-size: 0.9rem;
  color: var(--text-muted);
}

/* ---------- Footer ---------- */
.site-footer {
  background: var(--brand-teal);
  color: #fff;
  margin-top: 3rem;
}

.site-footer-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 1.5rem 1.25rem;
  font-size: 0.9rem;
}

.site-footer a {
  color: #fff;
}

code {
  background: var(--surface-2);
  border: 1px solid var(--border);
  padding: 0.15rem 0.4rem;
  border-radius: 4px;
  font-size: 0.9em;
  color: var(--brand-red-dark);
}
