:root {
  --color-brand: #a3211f;
  --color-brand-dark: #7a1917;
  --color-ink: #1a1a1a;
  --color-bg: #ffffff;
  --color-muted: #6b6b6b;
  --font-heading: "Fraunces", Georgia, serif;
  --font-body: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--color-ink);
  background: var(--color-bg);
  line-height: 1.55;
  padding-bottom: 4.5rem; /* room for sticky mobile CTA */
}

h1, h2, h3 {
  font-family: var(--font-heading);
  letter-spacing: -0.01em;
}

.site-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 1.25rem;
  border-bottom: 1px solid #f0f0f0;
}

.site-nav-logo {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.1rem;
}

.site-nav-cta {
  color: var(--color-brand);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.95rem;
}

.hero {
  padding: 4.5rem 1.25rem 4rem;
  text-align: center;
  background: radial-gradient(circle at 50% 0%, #fdf6f0 0%, #ffffff 65%);
}

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.75rem;
  color: var(--color-muted);
  font-weight: 600;
  margin-bottom: 0.75rem;
}

.hero h1 {
  font-size: 2.75rem;
  font-weight: 700;
  margin: 0 0 0.6rem;
}

.tagline {
  color: var(--color-muted);
  font-size: 1.15rem;
  margin-bottom: 1.75rem;
  max-width: 32ch;
  margin-left: auto;
  margin-right: auto;
}

.cta-button {
  display: inline-block;
  background: var(--color-brand);
  color: #fff;
  padding: 0.9rem 1.75rem;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 600;
  font-size: 1.05rem;
  transition: background 0.15s ease;
}

.cta-button:hover {
  background: var(--color-brand-dark);
}

.sticky-cta {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: #fff;
  border-top: 1px solid #eee;
  padding: 0.75rem 1rem;
  z-index: 50;
  display: none;
}

.sticky-cta .cta-button {
  display: block;
  text-align: center;
}

@media (max-width: 640px) {
  .sticky-cta {
    display: block;
  }
}

section {
  padding: 3rem 1.25rem;
  max-width: 640px;
  margin: 0 auto;
}

section h2 {
  font-size: 1.5rem;
  margin-bottom: 1rem;
}

.widget-placeholder {
  padding: 1.5rem;
  border: 1px dashed #ccc;
  border-radius: 8px;
  color: var(--color-muted);
  text-align: center;
}

.site-footer {
  text-align: center;
  padding: 2rem 1.25rem;
  color: var(--color-muted);
  font-size: 0.9rem;
}

.social-links a {
  margin: 0 0.5rem;
  color: var(--color-ink);
  text-decoration: none;
}

/* Sticky mobile CTA */
@media (max-width: 640px) {
  .cta-button {
    width: 100%;
  }
}

/* Booking widget */
.widget-status {
  text-align: center;
  color: var(--color-muted);
  padding: 1.5rem;
}

.widget-error {
  color: var(--color-brand);
}

.run-date-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.run-date-row {
  margin-bottom: 0.6rem;
}

.run-date-button {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 1.1rem;
  border: 1px solid #e2e2e2;
  border-radius: 10px;
  background: #fff;
  font-size: 1rem;
  cursor: pointer;
  text-align: left;
}

.run-date-button:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.run-date-main {
  display: flex;
  flex-direction: column;
}

.run-date-day {
  font-weight: 600;
}

.run-date-time {
  color: var(--color-muted);
  font-size: 0.9rem;
}

.badge {
  padding: 0.3rem 0.7rem;
  border-radius: 999px;
  font-size: 0.85rem;
  font-weight: 600;
}

.badge-open { background: #eef7ee; color: #2f7a2f; }
.badge-low { background: #fff4e0; color: #a05a00; }
.badge-soldout { background: #f2f2f2; color: #888; }

/* Modal */
.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  display: flex;
  align-items: flex-end;
  justify-content: center;
  z-index: 100;
}

@media (min-width: 640px) {
  .modal-backdrop {
    align-items: center;
  }
}

.modal {
  background: #fff;
  border-radius: 14px 14px 0 0;
  padding: 1.75rem;
  width: 100%;
  max-width: 460px;
  position: relative;
  max-height: 90vh;
  overflow-y: auto;
}

@media (min-width: 640px) {
  .modal {
    border-radius: 14px;
  }
}

.modal-close {
  position: absolute;
  top: 0.75rem;
  right: 0.9rem;
  background: none;
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
  color: var(--color-muted);
}

.modal-price {
  color: var(--color-muted);
  margin-top: -0.5rem;
  margin-bottom: 1rem;
}

.modal form label {
  display: block;
  font-size: 0.9rem;
  font-weight: 600;
  margin-bottom: 1rem;
}

.modal form input[type="text"],
.modal form input[type="email"],
.modal form input[type="tel"] {
  display: block;
  width: 100%;
  margin-top: 0.35rem;
  padding: 0.65rem 0.75rem;
  border: 1px solid #ccc;
  border-radius: 8px;
  font-size: 1rem;
}

.waiver-check {
  display: flex !important;
  align-items: flex-start;
  gap: 0.5rem;
  font-weight: 400 !important;
  font-size: 0.85rem !important;
}

.waiver-check input {
  margin-top: 0.2rem;
}

.modal-error {
  color: var(--color-brand);
  font-size: 0.9rem;
  margin-bottom: 1rem;
}

.modal button[type="submit"] {
  width: 100%;
  border: none;
  cursor: pointer;
}

/* Success page */
.success-page {
  text-align: center;
  padding-top: 3rem;
}

.success-card {
  background: #f9f9f9;
  border-radius: 14px;
  padding: 2.5rem 1.5rem;
  max-width: 480px;
  margin: 0 auto;
}

.success-card h1 {
  font-size: 1.6rem;
  margin-bottom: 0.75rem;
}

.success-detail {
  font-weight: 600;
  font-size: 1.1rem;
}

.success-amount {
  color: var(--color-muted);
  margin-bottom: 1.25rem;
}

.success-back {
  margin-top: 1.5rem;
}

.success-back a {
  color: var(--color-brand);
  text-decoration: none;
  font-weight: 600;
}

/* Run calendar */
.run-calendar {
  margin-bottom: 1.75rem;
  border: 1px solid #e6e6e6;
  border-radius: 12px;
  padding: 1rem;
}

.calendar-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.75rem;
}

.calendar-month-label {
  font-weight: 700;
  font-size: 1.05rem;
}

.calendar-nav-button {
  background: #f3f3f3;
  border: none;
  border-radius: 8px;
  width: 34px;
  height: 34px;
  font-size: 1.2rem;
  cursor: pointer;
  color: var(--color-ink);
}

.calendar-nav-button:disabled {
  opacity: 0.3;
  cursor: not-allowed;
}

.calendar-weekday-row,
.calendar-week {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 4px;
}

.calendar-weekday {
  text-align: center;
  font-size: 0.75rem;
  color: var(--color-muted);
  padding-bottom: 0.35rem;
}

.calendar-week {
  margin-bottom: 4px;
}

.calendar-cell {
  aspect-ratio: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  border: none;
  background: transparent;
  border-radius: 8px;
  font-size: 0.85rem;
  color: var(--color-ink);
  cursor: default;
  position: relative;
}

.calendar-cell-empty {
  visibility: hidden;
}

.calendar-cell-muted {
  color: #c9c9c9;
}

.calendar-cell-open {
  background: #eef7ee;
  color: #2f7a2f;
  font-weight: 700;
  cursor: pointer;
}

.calendar-cell-soldout {
  background: #f2f2f2;
  color: #999;
  text-decoration: line-through;
}

.calendar-cell-dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: currentColor;
  margin-top: 2px;
}

.calendar-legend {
  display: flex;
  gap: 1.25rem;
  margin-top: 0.85rem;
  font-size: 0.8rem;
  color: var(--color-muted);
}

.legend-dot {
  display: inline-block;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  margin-right: 0.35rem;
}

.legend-dot-open { background: #2f7a2f; }
.legend-dot-soldout { background: #999; }

/* Logo + accessible hidden heading */
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.hero-logo {
  width: 200px;
  height: auto;
  margin-bottom: 1rem;
}
