/* FULFILAB brand — light, minimal (Planning _ Fulfilab.pdf) */
:root {
  --fl-bg: #ffffff;
  --fl-bg-soft: #f7f7f7;
  --fl-text: #1a1a1a;
  --fl-text-muted: #5c5c5c;
  --fl-border: #e5e5e5;
  --fl-accent: #b8956a;
  --fl-accent-dark: #9a7d55;
  --fl-accent-soft: #f5f0e8;
  --fl-radius: 4px;
  --fl-font: "Plus Jakarta Sans", system-ui, -apple-system, sans-serif;
}

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

body {
  font-family: var(--fl-font);
  background: var(--fl-bg);
  color: var(--fl-text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

.container { max-width: 1200px; margin: 0 auto; padding: 0 1.75rem; }

.text-accent { color: var(--fl-accent); }
.text-muted { color: var(--fl-text-muted); }

/* Nav */
.navbar {
  background: var(--fl-bg);
  padding: 1.25rem 0;
  position: sticky;
  top: 0;
  z-index: 100;
  border-bottom: 1px solid var(--fl-border);
}
.nav-flex { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 1rem; }
.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  text-decoration: none;
  color: var(--fl-text);
}
.brand-mark {
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 50%;
  background: var(--fl-accent);
  color: #fff;
  font-weight: 700;
  font-size: 1.1rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.brand-name { font-size: 1.35rem; font-weight: 700; letter-spacing: -0.02em; }
.tagline-nav { font-size: 0.72rem; letter-spacing: 0.06em; color: var(--fl-text-muted); margin-top: 0.15rem; text-transform: uppercase; }
.nav-links { display: flex; gap: 2rem; align-items: center; flex-wrap: wrap; }
.nav-links a {
  text-decoration: none;
  font-weight: 500;
  font-size: 0.95rem;
  color: var(--fl-text);
  transition: color 0.2s;
}
.nav-links a:hover { color: var(--fl-accent); }

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  background: var(--fl-text);
  color: #fff;
  font-weight: 600;
  border: none;
  padding: 0.85rem 1.75rem;
  font-size: 0.95rem;
  border-radius: var(--fl-radius);
  cursor: pointer;
  transition: background 0.2s, opacity 0.2s;
  font-family: inherit;
  text-decoration: none;
}
.btn:hover:not(:disabled) { background: #333; }
.btn:disabled { opacity: 0.45; cursor: not-allowed; }
.btn-outline {
  background: transparent;
  border: 1px solid var(--fl-text);
  color: var(--fl-text);
}
.btn-outline:hover:not(:disabled) { background: var(--fl-bg-soft); }
.btn-accent {
  background: var(--fl-accent);
  color: #fff;
}
.btn-accent:hover:not(:disabled) { background: var(--fl-accent-dark); }
.btn-full { width: 100%; margin-top: 0.85rem; padding: 1rem; }

/* Hero */
.hero { padding: 3.5rem 0 4rem; background: var(--fl-bg); }
.hero-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 3rem; align-items: center; }
.hero-eyebrow {
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--fl-text);
  margin-bottom: 1rem;
}
.hero-text h1 {
  font-size: clamp(2rem, 4vw, 2.75rem);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin-bottom: 1.25rem;
  color: var(--fl-text);
}
.hero-desc { color: var(--fl-text-muted); margin-bottom: 1.5rem; font-size: 1rem; max-width: 36rem; }
.contact-info-hero { display: flex; flex-wrap: wrap; gap: 1rem 1.5rem; font-size: 0.9rem; color: var(--fl-text-muted); }
.contact-info-hero i { color: var(--fl-accent); margin-right: 0.4rem; }
.hero-visual {
  min-height: 320px;
  border-radius: var(--fl-radius);
  background: linear-gradient(145deg, #e8e4df 0%, #d4d0cb 35%, #f0ece8 70%, #c8c4bf 100%);
  position: relative;
  overflow: hidden;
}
.hero-visual::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 30% 40%, rgba(255,255,255,0.5) 0%, transparent 50%),
    radial-gradient(circle at 70% 60%, rgba(0,0,0,0.06) 0%, transparent 45%);
}
.hero-visual-inner {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(26,26,26,0.15);
  font-size: 6rem;
}

.features-strip {
  background: var(--fl-bg-soft);
  padding: 1rem 1.5rem;
  display: flex;
  justify-content: center;
  gap: 2rem;
  flex-wrap: wrap;
  border-top: 1px solid var(--fl-border);
  border-bottom: 1px solid var(--fl-border);
}
.feature-item { display: flex; align-items: center; gap: 0.5rem; font-size: 0.85rem; font-weight: 500; color: var(--fl-text-muted); }
.feature-item i { color: var(--fl-accent); }

.section-eyebrow {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  text-align: center;
  margin-top: 3.5rem;
  margin-bottom: 0.5rem;
}
.section-title {
  text-align: center;
  font-size: clamp(1.75rem, 3vw, 2.25rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 2rem;
  color: var(--fl-text);
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.5rem;
  margin-bottom: 2rem;
}
.service-card {
  background: var(--fl-bg);
  border: 1px solid var(--fl-border);
  border-radius: var(--fl-radius);
  padding: 1.75rem;
  transition: border-color 0.2s, box-shadow 0.2s;
  cursor: pointer;
}
.service-card:hover { border-color: var(--fl-accent); box-shadow: 0 4px 24px rgba(0,0,0,0.04); }
.service-card.selected { border-color: var(--fl-accent); background: var(--fl-accent-soft); }
.service-icon { font-size: 2rem; color: var(--fl-accent); margin-bottom: 1rem; }
.service-card h3 { font-size: 1.25rem; font-weight: 700; margin-bottom: 0.35rem; }
.price { font-weight: 700; font-size: 1.35rem; color: var(--fl-text); margin: 0.5rem 0; }
.service-desc { color: var(--fl-text-muted); font-size: 0.88rem; }

.booking-section {
  background: var(--fl-bg-soft);
  border: 1px solid var(--fl-border);
  border-radius: var(--fl-radius);
  margin: 2rem 0 4rem;
  padding: 2.5rem 2rem;
}
.booking-header h2 { font-size: 1.75rem; font-weight: 700; margin-bottom: 0.5rem; letter-spacing: -0.02em; }
.booking-header p { color: var(--fl-text-muted); font-size: 0.95rem; }
.selected-service-info {
  background: var(--fl-bg);
  padding: 1rem 1.25rem;
  border-radius: var(--fl-radius);
  margin: 1.5rem 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.75rem;
  border-left: 3px solid var(--fl-accent);
  border: 1px solid var(--fl-border);
  border-left: 3px solid var(--fl-accent);
}
.slot-hint { font-size: 0.85rem; color: var(--fl-text-muted); margin-top: 0.35rem; }

.form-row { display: flex; flex-wrap: wrap; gap: 1.25rem; margin-bottom: 1.25rem; }
.form-group { flex: 1; min-width: 180px; }
label { display: block; font-weight: 600; font-size: 0.85rem; margin-bottom: 0.4rem; color: var(--fl-text); }
input, select, textarea {
  width: 100%;
  padding: 0.75rem 0.85rem;
  background: var(--fl-bg);
  border: 1px solid var(--fl-border);
  border-radius: var(--fl-radius);
  font-family: inherit;
  font-size: 0.95rem;
  color: var(--fl-text);
  transition: border-color 0.2s;
}
input:focus, select:focus, textarea:focus {
  outline: none;
  border-color: var(--fl-accent);
}
input::placeholder, textarea::placeholder { color: #aaa; }

.alert { padding: 1rem 1.25rem; border-radius: var(--fl-radius); margin-top: 1.25rem; font-weight: 500; font-size: 0.95rem; }
.alert-success { background: #eef6f0; color: #2d5a3d; border: 1px solid #c5dcc9; }
.alert-error { background: #fdf0ee; color: #8b3a3a; border: 1px solid #e8c4c0; }

.scheduler-grid {
  display: grid;
  grid-template-columns: minmax(280px, 1.1fr) minmax(260px, 1fr);
  gap: 1.5rem;
  align-items: start;
  margin-bottom: 1.25rem;
}
@media (max-width: 900px) { .scheduler-grid { grid-template-columns: 1fr; } .hero-grid { grid-template-columns: 1fr; } .hero-visual { min-height: 200px; } }

.cal-panel, .time-panel {
  background: var(--fl-bg);
  border: 1px solid var(--fl-border);
  border-radius: var(--fl-radius);
  padding: 1.25rem;
}
.time-panel { min-height: 200px; }
.cal-nav { display: flex; align-items: center; justify-content: space-between; margin-bottom: 0.75rem; }
.cal-nav h3 { font-size: 1.05rem; font-weight: 700; }
.cal-nav button {
  background: var(--fl-bg);
  color: var(--fl-text);
  border: 1px solid var(--fl-border);
  border-radius: var(--fl-radius);
  width: 2.25rem;
  height: 2.25rem;
  cursor: pointer;
  font-size: 1.1rem;
}
.cal-nav button:hover { border-color: var(--fl-accent); color: var(--fl-accent); }
.cal-legend { display: flex; flex-wrap: wrap; gap: 0.5rem 1rem; font-size: 0.72rem; color: var(--fl-text-muted); margin-bottom: 0.75rem; }
.cal-legend span { display: inline-flex; align-items: center; gap: 0.35rem; }
.lg-dot { width: 10px; height: 10px; border-radius: 2px; flex-shrink: 0; box-sizing: border-box; }
.cal-dow {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 4px;
  margin-bottom: 4px;
  font-size: 0.68rem;
  font-weight: 600;
  color: var(--fl-text-muted);
  text-align: center;
}
.cal-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 6px; }
.cal-cell {
  aspect-ratio: 1;
  min-height: 40px;
  max-height: 52px;
  border-radius: var(--fl-radius);
  border: 1px solid transparent;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1px;
  font-size: 0.82rem;
  font-weight: 600;
  cursor: default;
  color: var(--fl-text-muted);
  background: transparent;
  padding: 2px;
  font-family: inherit;
}
.cal-cell:disabled { cursor: not-allowed; }
.cal-cell.pad { background: transparent; border: none; visibility: hidden; }
/* Available — clearly clickable */
.cal-cell.pickable {
  cursor: pointer;
  color: var(--fl-text);
  background: #fff;
  border: 2px solid var(--fl-accent);
  box-shadow: 0 1px 4px rgba(184, 149, 106, 0.15);
}
.cal-cell.pickable:hover:not(:disabled) {
  border-color: var(--fl-accent-dark);
  background: var(--fl-accent-soft);
  box-shadow: 0 2px 8px rgba(184, 149, 106, 0.22);
}
.cal-cell.selected {
  border-color: var(--fl-accent-dark);
  background: var(--fl-accent-soft);
  color: var(--fl-text);
  box-shadow: 0 0 0 2px rgba(184, 149, 106, 0.35);
}
.cal-cell.today:not(.selected) { box-shadow: inset 0 0 0 1px var(--fl-accent); }
.cal-cell .day-num { line-height: 1.1; }
.cal-cell .sub {
  font-size: 0.52rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  line-height: 1.1;
  text-transform: uppercase;
  max-width: 100%;
  padding: 0 1px;
  text-align: center;
}
.cal-cell.pickable .sub { color: var(--fl-accent-dark); }
/* Past — faded, no fill */
.cal-cell.st-past {
  opacity: 0.35;
  background: transparent;
  color: #aaa;
}
.cal-cell.st-past .sub { color: #bbb; font-weight: 500; text-transform: none; font-size: 0.55rem; }
/* Business closed (wrong weekday) */
.cal-cell.st-closed {
  background: repeating-linear-gradient(
    -45deg,
    #fafafa,
    #fafafa 5px,
    #f0f0f0 5px,
    #f0f0f0 6px
  );
  color: #999;
  border: 1px dashed #ddd;
}
.cal-cell.st-closed .sub { color: #888; font-weight: 600; }
/* Blocked holiday / blackout */
.cal-cell.st-blocked {
  background: #fff5f5;
  color: #a66;
  border: 1px solid #f0d0d0;
}
.cal-cell.st-blocked .sub { color: #a66; }
/* Fully booked but business was open */
.cal-cell.st-slots_full {
  background: #fffbf0;
  color: #886622;
  border: 1px solid #ead9a8;
}
.cal-cell.st-slots_full .sub { color: #996633; }
/* Package too long for remaining hours */
.cal-cell.st-no_fit {
  background: #f8f8fa;
  color: #778;
  border: 1px solid #e8e8ec;
}
.cal-cell.st-no_fit .sub { color: #889; font-weight: 500; text-transform: none; font-size: 0.55rem; }
.cal-cell.st-out { background: transparent; color: #ccc; }

.time-panel h3 { font-size: 0.95rem; font-weight: 700; margin-bottom: 0.65rem; }
.time-chips { display: flex; flex-wrap: wrap; gap: 0.45rem; }
.time-chip {
  padding: 0.5rem 0.85rem;
  border-radius: var(--fl-radius);
  border: 1px solid var(--fl-border);
  background: var(--fl-bg);
  color: var(--fl-text);
  font-weight: 600;
  font-size: 0.85rem;
  cursor: pointer;
  font-family: inherit;
}
.time-chip:hover:not(:disabled) { border-color: var(--fl-accent); color: var(--fl-accent); }
.time-chip.picked { background: var(--fl-accent-soft); border-color: var(--fl-accent); color: var(--fl-text); }

.info-panel {
  background: var(--fl-bg-soft);
  border: 1px solid var(--fl-border);
  border-radius: var(--fl-radius);
  padding: 2.5rem 2rem;
  margin: 1rem 0 3rem;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 2rem;
}
.info-block h4 { font-weight: 700; margin-bottom: 0.75rem; font-size: 1rem; }
.info-block p { margin: 0.4rem 0; font-size: 0.9rem; color: var(--fl-text-muted); }

.footer {
  background: var(--fl-bg);
  border-top: 1px solid var(--fl-border);
  padding: 3rem 0 2rem;
  margin-top: 2rem;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1fr auto auto;
  gap: 2rem;
  align-items: start;
}
.footer-brand { display: flex; align-items: center; gap: 0.65rem; margin-bottom: 0.5rem; }
.footer-brand .brand-mark { width: 2rem; height: 2rem; font-size: 0.95rem; }
.footer-brand-name { font-size: 1.15rem; font-weight: 700; }
.footer-tagline { color: var(--fl-text-muted); font-size: 0.88rem; }
.footer-copy { margin-top: 2rem; padding-top: 1.5rem; border-top: 1px solid var(--fl-border); font-size: 0.8rem; color: var(--fl-text-muted); text-align: center; }
.footer-social { display: flex; gap: 1rem; font-size: 1.25rem; }
.footer-social a { color: var(--fl-text); }

@media (max-width: 768px) {
  .nav-links { gap: 1rem; }
  .footer-grid { grid-template-columns: 1fr; }
  .hero-text h1 { font-size: 1.85rem; }
}

.fa, .fas, .far { pointer-events: none; }

/* Admin workspace */
.admin-wrap { max-width: 1200px; margin: 0 auto; padding: 1.5rem; }
.admin-wrap a { color: var(--fl-accent-dark); }
.admin-wrap h1 { font-size: 1.5rem; font-weight: 700; color: var(--fl-text); margin-bottom: 0.25rem; }
.admin-card {
  background: var(--fl-bg);
  border: 1px solid var(--fl-border);
  border-radius: var(--fl-radius);
  padding: 1.25rem;
  margin-bottom: 1.5rem;
}
.admin-wrap label { display: block; font-size: 0.8rem; font-weight: 600; color: var(--fl-text-muted); margin-bottom: 0.25rem; }
.admin-wrap input, .admin-wrap select, .admin-wrap textarea {
  width: 100%;
  padding: 0.65rem 0.75rem;
  border-radius: var(--fl-radius);
  border: 1px solid var(--fl-border);
  background: var(--fl-bg);
  color: var(--fl-text);
  font: inherit;
}
.admin-wrap button {
  cursor: pointer;
  font: inherit;
  font-weight: 600;
  border: none;
  border-radius: var(--fl-radius);
  padding: 0.65rem 1.25rem;
  background: var(--fl-text);
  color: #fff;
}
.admin-wrap button:disabled { opacity: 0.45; cursor: not-allowed; }
.admin-wrap button.secondary { background: transparent; color: var(--fl-text); border: 1px solid var(--fl-text); }
.admin-wrap button.btn-danger { background: #fdf0ee; color: #8b3a3a; border: 1px solid #e8c4c0; }
.admin-wrap button.btn-sm { padding: 0.35rem 0.7rem; font-size: 0.75rem; }
.admin-wrap button.tab { border-radius: var(--fl-radius); background: var(--fl-bg-soft); color: var(--fl-text-muted); border: 1px solid var(--fl-border); }
.admin-wrap button.tab.active { background: var(--fl-accent); color: #fff; border-color: var(--fl-accent); }
.admin-row { display: flex; gap: 1rem; flex-wrap: wrap; align-items: flex-end; }
.admin-row > div { flex: 1; min-width: 160px; }
.admin-login { max-width: 360px; }
.admin-err { color: #8b3a3a; font-size: 0.9rem; margin-top: 0.5rem; }
.admin-wrap table { width: 100%; border-collapse: collapse; font-size: 0.85rem; }
.admin-wrap th, .admin-wrap td { text-align: left; padding: 0.5rem 0.4rem; border-bottom: 1px solid var(--fl-border); vertical-align: top; }
.admin-wrap th { color: var(--fl-text); font-weight: 600; }
.admin-pill { display: inline-block; padding: 0.15rem 0.5rem; border-radius: var(--fl-radius); font-size: 0.75rem; font-weight: 600; }
.admin-wrap .pill { display: inline-block; padding: 0.15rem 0.5rem; border-radius: var(--fl-radius); font-size: 0.75rem; font-weight: 600; }
.st-booked { background: #eef2f8; color: #3a5a8a; }
.st-completed { background: #eef6f0; color: #2d5a3d; }
.st-closed { background: var(--fl-accent-soft); color: var(--fl-accent-dark); }
.st-other { background: var(--fl-bg-soft); color: var(--fl-text-muted); }
.admin-muted { color: var(--fl-text-muted); font-size: 0.8rem; }
.admin-wrap .muted { color: var(--fl-text-muted); font-size: 0.8rem; }
.admin-grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
@media (max-width: 768px) { .admin-grid2 { grid-template-columns: 1fr; } }
.admin-wrap pre { background: var(--fl-bg-soft); padding: 1rem; border-radius: var(--fl-radius); overflow: auto; font-size: 0.75rem; max-height: min(70vh, 520px); border: 1px solid var(--fl-border); }
.hidden { display: none !important; }
.admin-tabs { display: flex; gap: 0.5rem; flex-wrap: wrap; margin-bottom: 1rem; }
.book-toolbar { display: flex; flex-wrap: wrap; gap: 1rem; align-items: center; margin-bottom: 1rem; }
.book-toolbar input[type="search"] { flex: 1; min-width: 180px; max-width: 320px; }
.pager { display: flex; gap: 0.75rem; align-items: center; margin-top: 1rem; flex-wrap: wrap; }
.pager span { margin-right: auto; }
.table-wrap { overflow-x: auto; margin-top: 0.75rem; }
.admin-note { min-height: 4.5rem; resize: vertical; font-size: 0.8rem; }
details.collapse-section { margin-top: 0.75rem; border: 1px solid var(--fl-border); border-radius: var(--fl-radius); padding: 0.5rem 1rem 1rem; background: var(--fl-bg-soft); }
details.collapse-section summary { cursor: pointer; font-weight: 600; color: var(--fl-text); user-select: none; list-style-position: outside; }
details.collapse-section .contact-textarea { min-height: 22rem; resize: vertical; overflow: auto; line-height: 1.45; }
.action-cell { white-space: nowrap; }
.action-cell button { margin: 0.15rem 0.15rem 0 0; }
.modal-overlay { position: fixed; inset: 0; background: rgba(0,0,0,0.4); display: flex; align-items: center; justify-content: center; z-index: 200; padding: 1rem; }
.modal-overlay.hidden { display: none !important; }
.modal-dialog { max-width: 420px; width: 100%; margin: 0; }
