/* =====================================================================
   Appleblossom Hub — Landing Page Styles
   Warm, accessible, 50+ friendly (large fonts, high contrast, roomy)
   ===================================================================== */

:root {
  --cream: #fdf6ed;
  --cream-light: #fffcf6;
  --cream-dark: #f5ebd9;
  --rose: #9a4a5e;
  --rose-dark: #7d3b4c;
  --blush: #f5b5c1;
  --blush-light: #fde5e8;
  --tan: #c8a27e;
  --tan-light: #e8d5b7;
  --text: #2c2621;
  --text-muted: #5a5048;
  --leaf: #7ea564;
  --leaf-dark: #4d7344;
  --shadow-rose: 0 2px 16px rgba(154, 74, 94, 0.1);
  --shadow-soft: 0 4px 24px rgba(44, 38, 33, 0.08);
  --radius: 12px;
  --radius-lg: 20px;
  --header-h: 84px;
  --serif-display: "Playfair Display", "Didot", Georgia, serif;
  --serif-body: Georgia, "Iowan Old Style", Palatino, "Palatino Linotype", "Times New Roman", serif;
}

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  font-size: 17px;
}

body {
  margin: 0;
  padding: 0;
  font-family: var(--serif-body);
  font-size: 17px;
  line-height: 1.7;
  color: var(--text);
  background: var(--cream);
}

a { color: var(--rose); text-decoration: none; }
a:hover { color: var(--rose-dark); text-decoration: underline; }

img { max-width: 100%; height: auto; }

h1, h2, h3, h4 {
  font-family: var(--serif-display);
  color: var(--text);
  letter-spacing: 0.2px;
  line-height: 1.25;
  margin-top: 0;
}

/* =============== BUTTONS =============== */
.btn {
  display: inline-block;
  padding: 12px 24px;
  border-radius: 10px;
  font-size: 16px;
  font-weight: 600;
  font-family: var(--serif-body);
  text-decoration: none;
  border: 2px solid transparent;
  cursor: pointer;
  transition: all 0.15s ease;
  line-height: 1.3;
  text-align: center;
}

.btn-primary {
  background: var(--rose);
  color: #fff;
  border-color: var(--rose);
}
.btn-primary:hover {
  background: var(--rose-dark);
  border-color: var(--rose-dark);
  color: #fff;
  text-decoration: none;
  transform: translateY(-1px);
  box-shadow: 0 4px 16px rgba(154, 74, 94, 0.25);
}

.btn-ghost {
  background: transparent;
  color: var(--rose);
  border-color: var(--blush);
}
.btn-ghost:hover {
  background: var(--blush-light);
  color: var(--rose-dark);
  border-color: var(--rose);
  text-decoration: none;
}

.btn-danger {
  background: #b74a3a;
  color: #fff;
  border-color: #b74a3a;
}
.btn-danger:hover { background: #9a3d2f; color: #fff; }

/* =============== HEADER =============== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(253, 246, 237, 0.96);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-bottom: 2px solid var(--blush);
  box-shadow: var(--shadow-rose);
}

.site-header-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 12px 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: var(--header-h);
}

.site-logo-link {
  display: flex;
  align-items: center;
  flex-shrink: 0;
}

.site-logo {
  height: 60px;
  width: auto;
  display: block;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 24px;
  font-size: 17px;
}

.site-nav a {
  color: var(--text);
  font-weight: 500;
  padding: 6px 4px;
  text-decoration: none;
  border-bottom: 2px solid transparent;
}

.site-nav a:hover {
  color: var(--rose);
  border-bottom-color: var(--blush);
}

.site-nav .btn {
  padding: 8px 18px;
  font-size: 15px;
}

.nav-sep { color: var(--tan); }

/* =============== HERO =============== */
.hero {
  position: relative;
  padding: 80px 32px 100px;
  background: linear-gradient(
      rgba(253, 246, 237, 0.75),
      rgba(253, 246, 237, 0.92)
    ),
    url('/uploads/default/original/1X/ad3c16360d4d9adb3d23bb30dd161175b8f20b81.png')
    center/cover no-repeat;
  text-align: center;
  border-bottom: 1px solid var(--cream-dark);
}

.hero-inner {
  max-width: 760px;
  margin: 0 auto;
}

.hero h1 {
  font-size: 56px;
  font-style: italic;
  font-weight: 700;
  color: var(--rose);
  margin: 0 0 20px;
  text-shadow: 0 2px 12px rgba(255, 255, 255, 0.8);
}

.hero-lead {
  font-size: 21px;
  line-height: 1.6;
  color: var(--text);
  max-width: 620px;
  margin: 0 auto 36px;
}

.hero-actions {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 28px;
}

.hero-actions .btn {
  padding: 14px 32px;
  font-size: 18px;
}

.hero-footnote {
  font-family: var(--serif-display);
  font-style: italic;
  color: var(--tan);
  font-size: 16px;
  letter-spacing: 1px;
}

/* =============== STATS =============== */
.stats {
  background: var(--cream-light);
  border-top: 1px solid var(--cream-dark);
  border-bottom: 1px solid var(--cream-dark);
  padding: 32px;
}

.stats-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  text-align: center;
}

.stat-number {
  font-family: var(--serif-display);
  font-size: 42px;
  font-weight: 700;
  color: var(--rose);
  line-height: 1;
  margin-bottom: 6px;
}

.stat-label {
  font-size: 15px;
  color: var(--text-muted);
  letter-spacing: 0.3px;
}

/* =============== SECTIONS =============== */
.section {
  padding: 72px 32px;
}

.section-inner {
  max-width: 1100px;
  margin: 0 auto;
}

.section-heading {
  text-align: center;
  margin-bottom: 48px;
}

.section-heading h2 {
  font-size: 42px;
  font-weight: 700;
  color: var(--rose);
  margin: 0 0 12px;
  font-style: italic;
}

.section-heading p {
  font-size: 19px;
  color: var(--text-muted);
  max-width: 620px;
  margin: 0 auto;
  line-height: 1.6;
}

.section-cta {
  text-align: center;
  margin-top: 32px;
}

/* =============== CALENDAR =============== */
.calendar-section {
  background: var(--cream);
}

.calendar-wrap {
  background: var(--cream-light);
  border-radius: var(--radius-lg);
  padding: 32px;
  box-shadow: var(--shadow-soft);
  border: 1px solid var(--cream-dark);
  margin-bottom: 48px;
}

/* FullCalendar overrides to match the warm theme */
.fc {
  font-family: var(--serif-body);
  font-size: 16px;
}

.fc .fc-toolbar-title {
  font-family: var(--serif-display);
  font-size: 28px;
  font-weight: 700;
  color: var(--rose);
  font-style: italic;
}

.fc .fc-button {
  background: var(--cream-light);
  border: 1px solid var(--tan-light);
  color: var(--text);
  font-family: var(--serif-body);
  font-size: 15px;
  padding: 8px 14px;
  font-weight: 500;
  border-radius: 8px;
  text-transform: none;
  box-shadow: none;
}

.fc .fc-button:hover {
  background: var(--blush-light);
  border-color: var(--rose);
  color: var(--rose);
}

.fc .fc-button-primary:not(:disabled).fc-button-active,
.fc .fc-button-primary:not(:disabled):active {
  background: var(--rose);
  border-color: var(--rose);
  color: #fff;
  box-shadow: none;
}

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

.fc .fc-col-header-cell-cushion {
  padding: 10px 4px;
  color: var(--text-muted);
  font-weight: 600;
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.fc .fc-daygrid-day-number {
  padding: 8px;
  color: var(--text);
  font-weight: 500;
  font-size: 15px;
}

.fc .fc-day-today {
  background: var(--blush-light) !important;
}

.fc .fc-daygrid-day:hover {
  background: rgba(245, 181, 193, 0.08);
  cursor: pointer;
}

.fc-event {
  border: none !important;
  border-radius: 6px !important;
  padding: 3px 8px !important;
  font-size: 13px !important;
  font-weight: 600 !important;
  cursor: pointer;
}

.fc-event.event-type-event { background-color: var(--rose) !important; color: #fff !important; }
.fc-event.event-type-meeting { background-color: #6b7e9a !important; color: #fff !important; }
.fc-event.event-type-cleanup { background-color: var(--leaf) !important; color: #fff !important; }
.fc-event.event-type-yard-sale { background-color: #d68240 !important; color: #fff !important; }
.fc-event.event-type-celebration { background-color: #c85588 !important; color: #fff !important; }
.fc-event.event-type-other { background-color: var(--tan) !important; color: #fff !important; }

.calendar-cta {
  margin-top: 24px;
  padding-top: 24px;
  border-top: 1px solid var(--cream-dark);
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}

#login-hint {
  font-size: 16px;
  color: var(--text-muted);
  font-style: italic;
}

.upcoming-heading {
  font-size: 24px;
  color: var(--rose);
  margin: 0 0 20px;
  font-style: italic;
  text-align: center;
}

.upcoming-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 16px;
}

.upcoming-list li {
  background: var(--cream-light);
  border: 1px solid var(--cream-dark);
  border-radius: var(--radius);
  padding: 18px 20px;
  box-shadow: var(--shadow-rose);
  display: flex;
  gap: 16px;
  align-items: flex-start;
}

.upcoming-list .upcoming-empty {
  text-align: center;
  color: var(--text-muted);
  font-style: italic;
  padding: 32px;
  grid-column: 1 / -1;
  display: block;
}

.upcoming-date {
  flex-shrink: 0;
  text-align: center;
  background: var(--rose);
  color: #fff;
  border-radius: 10px;
  padding: 10px 14px;
  min-width: 64px;
  line-height: 1.1;
}
.upcoming-date .month {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 1px;
  display: block;
}
.upcoming-date .day {
  font-size: 26px;
  font-weight: 700;
  display: block;
  font-family: var(--serif-display);
}

.upcoming-body h4 {
  margin: 0 0 4px;
  font-size: 17px;
  color: var(--text);
}
.upcoming-body .upcoming-meta {
  font-size: 14px;
  color: var(--text-muted);
  margin: 2px 0;
}

/* =============== ACTION CARDS =============== */
.actions-section {
  background: var(--cream-light);
}

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

.action-card {
  display: block;
  background: var(--cream);
  border: 1px solid var(--cream-dark);
  border-radius: var(--radius-lg);
  padding: 32px 28px;
  text-align: center;
  text-decoration: none !important;
  color: var(--text);
  transition: all 0.2s ease;
  box-shadow: var(--shadow-rose);
}

.action-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 32px rgba(154, 74, 94, 0.18);
  border-color: var(--blush);
  text-decoration: none;
  color: var(--text);
}

.action-icon {
  font-size: 52px;
  margin-bottom: 16px;
  line-height: 1;
}

.action-card h3 {
  font-size: 26px;
  color: var(--rose);
  margin: 0 0 12px;
  font-style: italic;
}

.action-card p {
  font-size: 16px;
  color: var(--text-muted);
  line-height: 1.6;
  margin: 0 0 16px;
  min-height: 3em;
}

.action-link {
  color: var(--rose);
  font-weight: 600;
  font-size: 15px;
}

.action-card:hover .action-link {
  color: var(--rose-dark);
}

/* =============== DISCUSSIONS =============== */
.discussions-section {
  background: var(--cream);
}

.discussions-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 16px;
}

.discussions-list li {
  background: var(--cream-light);
  border: 1px solid var(--cream-dark);
  border-radius: var(--radius);
  padding: 20px 24px;
  box-shadow: var(--shadow-rose);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.discussions-list li:hover {
  transform: translateX(4px);
  box-shadow: 0 4px 20px rgba(154, 74, 94, 0.12);
}

.discussions-list a.discussion-link {
  display: block;
  text-decoration: none;
  color: var(--text);
}

.discussions-list a.discussion-link:hover {
  text-decoration: none;
}

.discussion-title {
  font-size: 19px;
  font-weight: 600;
  color: var(--text);
  margin: 0 0 6px;
  font-family: var(--serif-display);
}

.discussions-list a.discussion-link:hover .discussion-title {
  color: var(--rose);
}

.discussion-meta {
  font-size: 14px;
  color: var(--text-muted);
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}

.discussion-meta .dot {
  color: var(--tan);
}

.discussions-empty {
  text-align: center;
  color: var(--text-muted);
  font-style: italic;
  padding: 32px;
  background: var(--cream-light);
  border: 1px dashed var(--cream-dark);
  border-radius: var(--radius);
  list-style: none;
}

/* =============== ABOUT =============== */
.about-section {
  background: linear-gradient(180deg, var(--cream-light), var(--cream));
  padding: 80px 32px;
}

.about-inner {
  max-width: 860px;
}

.about-text h2 {
  font-size: 42px;
  color: var(--rose);
  font-style: italic;
  text-align: center;
  margin: 0 0 28px;
}

.about-text p {
  font-size: 19px;
  line-height: 1.75;
  color: var(--text);
  margin: 0 0 20px;
}

.about-streets {
  margin-top: 32px !important;
  padding: 24px 28px;
  background: var(--cream);
  border-radius: var(--radius);
  border-left: 4px solid var(--rose);
  font-size: 16px !important;
  line-height: 1.8 !important;
  color: var(--text-muted) !important;
}

.about-streets strong {
  color: var(--rose);
  font-family: var(--serif-display);
  display: block;
  margin-bottom: 6px;
  font-size: 17px;
}

/* =============== FOOTER =============== */
.site-footer {
  background: #2c2621;
  color: #d4c9b8;
  padding: 56px 32px 24px;
  border-top: 4px solid var(--blush);
}

.footer-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 32px;
}

.footer-brand p {
  font-size: 15px;
  line-height: 1.6;
  color: #a8998a;
  max-width: 380px;
  margin: 12px 0 0;
}

.footer-logo {
  height: 52px;
  width: auto;
  filter: brightness(1.5) saturate(0.8);
}

.footer-links h4 {
  color: var(--blush);
  font-family: var(--serif-display);
  font-size: 17px;
  font-style: italic;
  margin: 0 0 16px;
}

.footer-links a {
  display: block;
  color: #c7b8a5;
  text-decoration: none;
  padding: 4px 0;
  font-size: 15px;
}

.footer-links a:hover {
  color: var(--blush);
  text-decoration: none;
}

.footer-credit {
  max-width: 1100px;
  margin: 0 auto;
  padding-top: 24px;
  border-top: 1px solid #4a4138;
  text-align: center;
  font-size: 14px;
  color: #8a7d6e;
  font-style: italic;
}

/* =============== MODALS =============== */
.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(44, 38, 33, 0.6);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  padding: 20px;
}

.modal-backdrop[hidden] { display: none; }

/* Ensure [hidden] attribute wins over other display rules */
[hidden] { display: none !important; }

.modal {
  background: var(--cream-light);
  border-radius: var(--radius-lg);
  padding: 36px;
  max-width: 560px;
  width: 100%;
  box-shadow: 0 20px 60px rgba(0,0,0,0.3);
  max-height: 90vh;
  overflow-y: auto;
  position: relative;
  border: 1px solid var(--blush);
}

.modal h2 {
  font-size: 30px;
  color: var(--rose);
  font-style: italic;
  margin: 0 0 24px;
}

.modal-close {
  position: absolute;
  top: 14px;
  right: 14px;
  background: transparent;
  border: none;
  font-size: 32px;
  cursor: pointer;
  color: var(--text-muted);
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
}
.modal-close:hover { background: var(--cream-dark); color: var(--rose); }

.form-row {
  margin-bottom: 18px;
}

.form-row-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.form-row label {
  display: block;
  font-size: 14px;
  font-weight: 600;
  color: var(--text-muted);
  margin-bottom: 6px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.form-row input,
.form-row textarea,
.form-row select {
  width: 100%;
  padding: 12px 16px;
  font-family: var(--serif-body);
  font-size: 16px;
  border: 1px solid var(--tan-light);
  border-radius: 8px;
  background: #fff;
  color: var(--text);
}

.form-row input:focus,
.form-row textarea:focus,
.form-row select:focus {
  outline: none;
  border-color: var(--rose);
  box-shadow: 0 0 0 3px rgba(245, 181, 193, 0.35);
}

.form-row textarea { resize: vertical; }

.form-actions {
  display: flex;
  gap: 12px;
  justify-content: flex-end;
  margin-top: 24px;
  padding-top: 20px;
  border-top: 1px solid var(--cream-dark);
}

.event-type-badge {
  display: inline-block;
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  background: var(--blush-light);
  color: var(--rose);
  margin-bottom: 12px;
}

.event-meta {
  font-size: 16px;
  color: var(--text-muted);
  margin: 8px 0;
}

.event-description {
  font-size: 16px;
  color: var(--text);
  line-height: 1.6;
  margin: 20px 0;
  padding: 16px 20px;
  background: var(--cream);
  border-radius: 8px;
  border-left: 4px solid var(--blush);
  white-space: pre-wrap;
}

.event-description:empty { display: none; }

.event-author {
  font-size: 14px;
  color: var(--tan);
  font-style: italic;
  margin-top: 16px;
}

/* =============== RESPONSIVE =============== */
@media (max-width: 840px) {
  .site-header-inner { padding: 10px 20px; gap: 12px; }
  .site-logo { height: 48px; }
  .site-nav { gap: 14px; font-size: 15px; }
  .site-nav a:not(.btn) { display: none; }
  .site-nav .btn { display: inline-block; }
  .nav-sep { display: none; }

  .hero { padding: 60px 24px 72px; }
  .hero h1 { font-size: 40px; }
  .hero-lead { font-size: 18px; }
  .hero-actions .btn { padding: 12px 24px; font-size: 16px; }

  .section { padding: 56px 20px; }
  .section-heading h2 { font-size: 32px; }
  .section-heading p { font-size: 17px; }

  .stats-inner { grid-template-columns: repeat(2, 1fr); }
  .stat-number { font-size: 32px; }

  .calendar-wrap { padding: 20px; }
  .fc .fc-toolbar-title { font-size: 22px; }
  .fc .fc-button { padding: 6px 10px; font-size: 14px; }

  .action-grid { grid-template-columns: 1fr; gap: 16px; }
  .action-card { padding: 24px; }

  .about-text h2 { font-size: 32px; }
  .about-text p { font-size: 17px; }

  .footer-inner {
    grid-template-columns: 1fr;
    gap: 32px;
    text-align: center;
  }
  .footer-brand p { margin: 12px auto 0; }
  .footer-logo { margin: 0 auto; display: block; }

  .modal { padding: 24px; }
  .modal h2 { font-size: 24px; }
  .form-row-split { grid-template-columns: 1fr; }
}

@media (max-width: 480px) {
  .hero h1 { font-size: 32px; }
  .hero-actions { flex-direction: column; }
  .hero-actions .btn { width: 100%; }
  .stats-inner { grid-template-columns: 1fr; gap: 16px; }
}

/* Accessibility — focus rings */
*:focus-visible {
  outline: 3px solid var(--blush);
  outline-offset: 3px;
  border-radius: 4px;
}

button:focus-visible,
.btn:focus-visible {
  outline: 3px solid var(--rose);
  outline-offset: 3px;
}
