@import url('https://fonts.googleapis.com/css2?family=Bebas+Neue&family=Source+Sans+3:wght@300;400;500;600;700&display=swap');

:root {
  --bg: #0a0b0d;
  --bg-alt: #131519;
  --fg: #f2f2f4;
  --fg-muted: #93939c;
  --accent: #f5c518;
  --accent-fg: #0a0b0d;
  --border: #232429;
  --danger: #d16b6b;
  --success: #5fa580;
  --radius: 6px;
  --font-body: 'Source Sans 3', -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
  --font-display: 'Bebas Neue', var(--font-body);
}

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}

body {
  margin: 0;
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--fg);
  line-height: 1.5;
}

a { color: inherit; }

h1, h2, h3, .brand, .hero-content .tagline, .social-btn {
  font-family: var(--font-display);
  letter-spacing: .02em;
}

/* ---------- Hero ---------- */

.hero {
  position: relative;
  height: 100vh;
  min-height: 560px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  text-align: center;
}

.hero-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,.55) 0%, rgba(0,0,0,.35) 45%, rgba(0,0,0,.75) 100%);
  z-index: 1;
}

.brand-mark {
  position: fixed;
  top: 28px;
  left: 28px;
  z-index: 20;
  text-decoration: none;
  color: var(--fg);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(.85rem, 1.6vw, 1.1rem);
  letter-spacing: .08em;
  text-transform: uppercase;
  text-shadow: 0 2px 12px rgba(0,0,0,.5);
  transition: color .2s ease;
}
.brand-mark:hover { color: var(--accent); }

.corner-mark {
  position: absolute;
  top: 24px;
  right: 24px;
  z-index: 2;
  height: clamp(56px, 9vw, 96px);
  width: auto;
  filter: drop-shadow(0 4px 14px rgba(0,0,0,.55));
}

.hero-content {
  position: relative;
  z-index: 2;
  padding: 0 24px;
}

.hero-content .eyebrow {
  font-size: clamp(.75rem, 1.6vw, .9rem);
  color: var(--fg-muted);
  text-transform: uppercase;
  letter-spacing: .12em;
  margin: 0 0 .75rem;
  font-family: var(--font-body);
}

.hero-content h1 {
  font-size: clamp(2.75rem, 8vw, 6rem);
  margin: 0;
  letter-spacing: -0.02em;
  font-weight: 700;
  text-shadow: 0 4px 24px rgba(0,0,0,.5);
}

.hero-content .tagline {
  font-size: clamp(.85rem, 2vw, 1.1rem);
  color: var(--fg-muted);
  margin: .5rem 0 2rem;
  text-transform: uppercase;
  letter-spacing: .15em;
  font-weight: 400;
}

.scroll-cue {
  position: absolute;
  bottom: 28px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  font-size: 1.5rem;
  color: var(--fg);
  opacity: .7;
  text-decoration: none;
  animation: bob 2s ease-in-out infinite;
}

@keyframes bob {
  0%, 100% { transform: translate(-50%, 0); }
  50% { transform: translate(-50%, 8px); }
}

/* ---------- Buttons ---------- */

.btn {
  display: inline-block;
  padding: .8rem 1.6rem;
  margin: 0 .5rem;
  border-radius: var(--radius);
  text-decoration: none;
  font-weight: 500;
  font-size: .9rem;
  letter-spacing: .01em;
  border: 1px solid transparent;
  cursor: pointer;
  transition: background-color .2s ease, border-color .2s ease, filter .2s ease;
}

.btn-outline {
  border-color: rgba(255,255,255,.25);
  color: var(--fg);
  background: transparent;
}
.btn-outline:hover { background: rgba(255,255,255,.06); border-color: rgba(255,255,255,.4); }

.btn-solid {
  background: var(--accent);
  color: var(--accent-fg);
  border-color: var(--accent);
}
.btn-solid:hover { filter: brightness(1.12); }

/* ---------- Sections ---------- */

.section {
  padding: 5rem 6vw;
}

.section-alt {
  background: var(--bg-alt);
}

.section-watermarked {
  position: relative;
  overflow: hidden;
}

.section-watermark {
  position: absolute;
  top: 50%;
  right: -4vw;
  transform: translateY(-50%);
  height: 140%;
  width: auto;
  max-width: none;
  filter: invert(1);
  opacity: .045;
  pointer-events: none;
  z-index: 0;
}

.section h2 {
  font-size: 2rem;
  margin-bottom: 2rem;
  text-align: center;
  position: relative;
  z-index: 1;
}

.empty-state {
  text-align: center;
  color: var(--fg-muted);
  position: relative;
  z-index: 1;
}

/* ---------- Video grid ---------- */

.video-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  max-width: 1200px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

.video-card video {
  width: 100%;
  border-radius: var(--radius);
  background: #000;
  display: block;
}

.video-title {
  margin: .75rem 0 0;
  color: var(--fg-muted);
  font-size: .95rem;
}

/* ---------- Contact form ---------- */

.contact-form {
  max-width: 520px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.contact-form label {
  display: flex;
  flex-direction: column;
  gap: .4rem;
  font-size: .9rem;
  color: var(--fg-muted);
}

.contact-form input,
.contact-form textarea {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: .75rem .9rem;
  color: var(--fg);
  font: inherit;
  resize: vertical;
}

.contact-form input:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: var(--accent);
}

.contact-form button {
  align-self: flex-start;
}

.flash {
  max-width: 520px;
  margin: 0 auto 1.5rem;
  padding: .85rem 1rem;
  border-radius: var(--radius);
  font-size: .9rem;
}
.flash-success { background: rgba(99,179,124,.15); color: var(--success); border: 1px solid rgba(99,179,124,.3); }
.flash-error { background: rgba(224,96,96,.15); color: var(--danger); border: 1px solid rgba(224,96,96,.3); }

.site-footer {
  text-align: center;
  padding: 2rem;
  color: var(--fg-muted);
  font-size: .85rem;
  border-top: 1px solid var(--border);
}

.social-buttons {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: .75rem;
  margin-bottom: 1.25rem;
}

.social-btn {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  padding: .55rem 1.1rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  text-decoration: none;
  color: var(--fg);
  font-weight: 500;
  font-family: var(--font-display);
  font-size: .85rem;
  transition: border-color .2s ease, background-color .2s ease, color .2s ease;
}

.social-btn svg { color: var(--accent); flex-shrink: 0; }

.social-btn:hover {
  border-color: var(--accent);
  background: rgba(245,197,24,.08);
}

/* =========================================================
   Admin
   ========================================================= */

.admin-body {
  max-width: 1000px;
  margin: 0 auto;
  padding: 2rem 5vw 5rem;
}

.admin-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 5vw;
  border-bottom: 1px solid var(--border);
  margin-bottom: 2rem;
}

.admin-nav .brand {
  font-weight: 700;
}

.admin-nav a {
  text-decoration: none;
  color: var(--fg-muted);
  margin-left: 1.5rem;
  font-size: .9rem;
}

.admin-nav a.active, .admin-nav a:hover {
  color: var(--fg);
}

.card {
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
  margin-bottom: 1.5rem;
}

.stat-row {
  display: flex;
  gap: 1.5rem;
  margin-bottom: 2rem;
}

.stat {
  flex: 1;
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.25rem;
  text-align: center;
}

.stat .num {
  font-size: 2.25rem;
  font-weight: 700;
  color: var(--accent);
  font-family: var(--font-display);
  letter-spacing: .02em;
}

.stat .label {
  color: var(--fg-muted);
  font-size: .85rem;
}

table {
  width: 100%;
  border-collapse: collapse;
}

th, td {
  text-align: left;
  padding: .75rem .5rem;
  border-bottom: 1px solid var(--border);
  font-size: .9rem;
}

th {
  color: var(--fg-muted);
  font-weight: 600;
  font-size: .8rem;
  text-transform: uppercase;
  letter-spacing: .05em;
}

.badge {
  display: inline-block;
  padding: .2rem .6rem;
  border-radius: 999px;
  font-size: .75rem;
  font-weight: 600;
}
.badge-new { background: rgba(224,177,92,.15); color: var(--accent); }
.badge-done { background: rgba(99,179,124,.15); color: var(--success); }

.inline-form { display: inline; }

.admin-body input,
.admin-body textarea,
.admin-body select {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: .6rem .8rem;
  color: var(--fg);
  font: inherit;
}

.admin-body input:focus,
.admin-body textarea:focus {
  outline: none;
  border-color: var(--accent);
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 1rem;
  margin-bottom: 1rem;
}

.form-grid label,
.stack label {
  display: flex;
  flex-direction: column;
  gap: .35rem;
  font-size: .85rem;
  color: var(--fg-muted);
}

.form-grid input,
.form-grid textarea,
.stack input,
.stack textarea {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: .6rem .8rem;
  color: var(--fg);
  font: inherit;
}

.stack {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  max-width: 420px;
}

.btn-small {
  padding: .4rem .9rem;
  font-size: .8rem;
  margin: 0;
}

.login-wrap {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
}

.login-card {
  width: 100%;
  max-width: 360px;
}

.login-card h1 {
  font-size: 1.4rem;
  margin-top: 0;
  text-align: center;
}

.checkbox-row {
  display: flex;
  align-items: center;
  gap: .5rem;
  font-size: .85rem;
  color: var(--fg-muted);
}

/* ---------- Calendar ---------- */

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

.calendar-header h2 {
  margin: 0;
}

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

.calendar-weekday {
  text-align: center;
  font-size: .75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .05em;
  color: var(--fg-muted);
  padding-bottom: .5rem;
}

.calendar-cell {
  min-height: 90px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: .4rem;
  display: flex;
  flex-direction: column;
  gap: .3rem;
}

.calendar-cell-empty {
  background: transparent;
  border-color: transparent;
}

.calendar-cell-today {
  border-color: var(--accent);
}

.calendar-day-num {
  font-size: .8rem;
  color: var(--fg-muted);
}

.calendar-cell-today .calendar-day-num {
  color: var(--accent);
  font-weight: 700;
}

.calendar-appt {
  display: flex;
  align-items: center;
  gap: .3rem;
  background: rgba(224,177,92,.12);
  border-radius: 5px;
  padding: .15rem .35rem;
  font-size: .72rem;
  line-height: 1.3;
  overflow: hidden;
}

.calendar-appt-time {
  color: var(--accent);
  font-weight: 600;
  flex-shrink: 0;
}

.calendar-appt-name {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  flex: 1;
}

.calendar-appt-delete {
  background: none;
  border: none;
  color: var(--fg-muted);
  cursor: pointer;
  font-size: .9rem;
  line-height: 1;
  padding: 0 .1rem;
  flex-shrink: 0;
}

.calendar-appt-delete:hover {
  color: var(--danger);
}

/* ---------- Date picker ---------- */

.date-field {
  position: relative;
}

.date-picker-trigger {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .5rem;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: .6rem .8rem;
  color: var(--fg);
  font: inherit;
  text-align: left;
  cursor: pointer;
  transition: border-color .15s ease;
}

.date-picker-trigger:hover,
.date-picker-trigger:focus {
  border-color: var(--accent);
  outline: none;
}

.date-picker-trigger svg {
  color: var(--fg-muted);
  flex-shrink: 0;
}

.date-picker-trigger .placeholder {
  color: var(--fg-muted);
}

.date-picker-error {
  border-color: var(--danger);
  animation: date-picker-shake .3s ease;
}

@keyframes date-picker-shake {
  25% { transform: translateX(-4px); }
  75% { transform: translateX(4px); }
}

.date-picker-popup {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  z-index: 30;
  width: 280px;
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1rem;
  box-shadow: 0 12px 32px rgba(0,0,0,.5);
}

.date-picker-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: .75rem;
  font-family: var(--font-display);
  letter-spacing: .02em;
  font-size: 1.05rem;
}

.date-picker-nav {
  background: none;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  color: var(--fg);
  width: 28px;
  height: 28px;
  cursor: pointer;
  font-size: .85rem;
}

.date-picker-nav:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.date-picker-weekdays,
.date-picker-days {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 2px;
}

.date-picker-weekdays {
  margin-bottom: .35rem;
}

.date-picker-weekdays span {
  text-align: center;
  font-size: .7rem;
  color: var(--fg-muted);
  text-transform: uppercase;
}

.date-picker-day {
  aspect-ratio: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  background: none;
  border: 1px solid transparent;
  border-radius: 4px;
  color: var(--fg);
  font-size: .82rem;
  cursor: pointer;
}

.date-picker-day-empty {
  cursor: default;
}

.date-picker-day:hover {
  border-color: var(--accent);
}

.date-picker-day.is-today {
  color: var(--accent);
  font-weight: 700;
}

.date-picker-day.is-selected {
  background: var(--accent);
  color: var(--accent-fg);
  font-weight: 700;
}

/* ---------- Time picker ---------- */

.time-picker-popup {
  width: 180px;
  padding: .5rem;
}

.time-picker-list {
  max-height: 240px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.time-picker-option {
  background: none;
  border: 1px solid transparent;
  border-radius: 4px;
  color: var(--fg);
  font: inherit;
  font-size: .85rem;
  text-align: left;
  padding: .5rem .6rem;
  cursor: pointer;
}

.time-picker-option:hover {
  border-color: var(--accent);
}

.time-picker-option.is-selected {
  background: var(--accent);
  color: var(--accent-fg);
  font-weight: 700;
}

@media (max-width: 640px) {
  .admin-nav { flex-direction: column; align-items: flex-start; gap: .75rem; }
  .admin-nav a { margin-left: 0; margin-right: 1rem; }
  .stat-row { flex-direction: column; }
  .calendar-grid { grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 3px; }
  .calendar-cell { min-height: 60px; padding: .25rem; }
  .calendar-weekday { font-size: .6rem; padding-bottom: .25rem; }
  .calendar-appt { font-size: .6rem; }
  .calendar-appt-name { display: none; }
}
