/* Slotwise Studio (BookingBox template) — design system.
   Deep indigo + teal accent on soft mist/white, clean geometric shapes,
   booking-flow-first (step indicator, slot grid, date picker) — deliberately
   distinct from the navy/amber PetCareBox palette and the green LawnCareBox
   theme sitting next to it in the same account. */

:root {
  --bb-ink: #1a2233;
  --bb-slate: #4b5768;
  --bb-steel: #7c8797;
  --bb-steel-light: #c6cddb;
  --bb-indigo: #3454d1;
  --bb-indigo-dark: #24399a;
  --bb-indigo-2: #2c3f8f;
  --bb-teal: #12a594;
  --bb-teal-dark: #0c7f72;
  --bb-mist: #f2f4fa;
  --bb-mist-2: #e7ebf6;
  --bb-white: #ffffff;
  --bb-line: rgba(255, 255, 255, 0.14);
  --bb-line-dark: rgba(26, 34, 51, 0.12);
  --font-base: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --radius: 12px;
  --radius-lg: 20px;
  --shadow: 0 6px 20px rgba(26, 34, 51, 0.10);
  --shadow-lg: 0 14px 36px rgba(26, 34, 51, 0.16);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-base);
  color: var(--bb-ink);
  background: var(--bb-white);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }

a { color: var(--bb-indigo); text-decoration: none; }
a:hover { text-decoration: underline; }

h1, h2, h3, h4 {
  font-family: var(--font-base);
  font-weight: 800;
  letter-spacing: -0.01em;
  line-height: 1.15;
  margin: 0 0 0.5em;
  color: var(--bb-ink);
}

.eyebrow {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--bb-teal-dark);
  margin-bottom: 10px;
}

h1 { font-size: clamp(2.1rem, 5vw, 3.4rem); }
h2 { font-size: clamp(1.6rem, 3.4vw, 2.3rem); }
h3 { font-size: 1.25rem; }
p { margin: 0 0 1em; color: var(--bb-slate); }

.container {
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 20px;
}

.section { padding: 64px 0; }
.section-mist { background: var(--bb-mist); }
.section-dark { background: var(--bb-ink); color: var(--bb-white); }
.section-dark h1, .section-dark h2, .section-dark h3 { color: var(--bb-white); }
.section-dark p { color: var(--bb-steel-light); }

/* ── Buttons ───────────────────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 15px 26px;
  border-radius: 999px;
  font-weight: 800;
  font-size: 1rem;
  letter-spacing: 0.01em;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform 0.12s ease, background 0.15s ease, box-shadow 0.15s ease;
  text-decoration: none;
  min-height: 48px;
}
.btn:hover { text-decoration: none; }
.btn:active { transform: scale(0.98); }
.btn:disabled { opacity: 0.5; cursor: not-allowed; }

.btn-primary { background: var(--bb-indigo); color: var(--bb-white); box-shadow: var(--shadow); }
.btn-primary:hover { background: var(--bb-indigo-dark); }

.btn-accent { background: var(--bb-teal); color: var(--bb-white); box-shadow: var(--shadow); }
.btn-accent:hover { background: var(--bb-teal-dark); }

.btn-outline { background: transparent; border-color: currentColor; color: var(--bb-white); }
.btn-outline:hover { background: rgba(255, 255, 255, 0.1); }

.btn-outline-dark { background: transparent; border-color: var(--bb-indigo); color: var(--bb-indigo); }
.btn-outline-dark:hover { background: rgba(52, 84, 209, 0.06); }

.btn-block { width: 100%; }

/* ── Nav ───────────────────────────────────────────────────────────────── */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--bb-ink);
  border-bottom: 3px solid var(--bb-teal);
}
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 20px;
  max-width: 1160px;
  margin: 0 auto;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--bb-white);
  font-weight: 800;
  font-size: 1.2rem;
  letter-spacing: 0.01em;
}
.brand:hover { text-decoration: none; }
.brand-mark {
  width: 36px; height: 36px;
  background: var(--bb-teal);
  border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  color: var(--bb-ink);
  font-weight: 900;
  flex-shrink: 0;
}
.nav-links {
  display: none;
  align-items: center;
  gap: 26px;
}
.nav-links a {
  color: var(--bb-steel-light);
  font-weight: 700;
  font-size: 0.92rem;
}
.nav-links a:hover { color: var(--bb-white); text-decoration: none; }
.nav-cta { display: none; }
.nav-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px; height: 44px;
  background: transparent;
  border: 2px solid var(--bb-line);
  border-radius: var(--radius);
  color: var(--bb-white);
  cursor: pointer;
}
.mobile-menu {
  display: none;
  flex-direction: column;
  background: var(--bb-indigo-2);
  border-top: 1px solid var(--bb-line);
}
.mobile-menu.open { display: flex; }
.mobile-menu a {
  padding: 16px 20px;
  color: var(--bb-white);
  font-weight: 700;
  border-bottom: 1px solid var(--bb-line);
  font-size: 0.95rem;
}
.mobile-menu a:hover { text-decoration: none; background: rgba(255,255,255,0.04); }
.mobile-menu .btn { margin: 16px 20px; }

@media (min-width: 900px) {
  .nav-links { display: flex; }
  .nav-cta { display: inline-flex; }
  .nav-toggle { display: none; }
  .mobile-menu { display: none !important; }
}

/* ── Sticky mobile booking bar ───────────────────────────────────────────── */
.sticky-cta {
  position: fixed;
  bottom: 0; left: 0; right: 0;
  z-index: 90;
  background: var(--bb-ink);
  border-top: 3px solid var(--bb-teal);
  padding: 10px 16px;
  padding-bottom: max(10px, env(safe-area-inset-bottom));
}
.sticky-cta .btn { width: 100%; }
@media (min-width: 900px) {
  .sticky-cta { display: none; }
}
body { padding-bottom: 76px; }
@media (min-width: 900px) {
  body { padding-bottom: 0; }
}

/* ── Hero ──────────────────────────────────────────────────────────────── */
.hero {
  background:
    linear-gradient(rgba(26,34,51,0.92), rgba(26,34,51,0.96)),
    radial-gradient(circle at 15% 25%, rgba(52,84,209,0.20) 0, transparent 45%),
    radial-gradient(circle at 85% 75%, rgba(18,165,148,0.16) 0, transparent 50%),
    var(--bb-ink);
  color: var(--bb-white);
  padding: 56px 0 64px;
}
.hero h1 { color: var(--bb-white); }
.hero p { max-width: 560px; color: var(--bb-steel-light); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 26px; }

/* ── Cards / grids ─────────────────────────────────────────────────────── */
.grid { display: grid; gap: 20px; grid-template-columns: 1fr; }
@media (min-width: 640px) { .grid-2 { grid-template-columns: 1fr 1fr; } }
@media (min-width: 900px) { .grid-3 { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 900px) { .grid-4 { grid-template-columns: repeat(4, 1fr); } }

.card {
  background: var(--bb-white);
  border: 1px solid var(--bb-line-dark);
  border-radius: var(--radius-lg);
  padding: 26px;
  box-shadow: var(--shadow);
}
.card-icon {
  width: 48px; height: 48px;
  background: var(--bb-indigo);
  border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  color: var(--bb-white);
  margin-bottom: 16px;
}
.card .price {
  display: inline-block;
  margin-top: 10px;
  font-weight: 800;
  color: var(--bb-teal-dark);
  font-size: 0.98rem;
}
.card .duration {
  display: inline-block;
  margin-top: 6px;
  margin-left: 10px;
  font-size: 0.85rem;
  color: var(--bb-steel);
}

.badge {
  display: inline-block;
  padding: 4px 10px;
  border-radius: 999px;
  background: var(--bb-teal);
  color: var(--bb-white);
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

/* ── Step indicator (booking flow) ───────────────────────────────────────── */
.steps {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 30px;
  flex-wrap: wrap;
}
.step {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 700;
  font-size: 0.85rem;
  color: var(--bb-steel);
}
.step .num {
  width: 26px; height: 26px;
  border-radius: 50%;
  background: var(--bb-mist-2);
  color: var(--bb-slate);
  display: flex; align-items: center; justify-content: center;
  font-size: 0.8rem;
  font-weight: 800;
  flex-shrink: 0;
}
.step.active .num { background: var(--bb-indigo); color: var(--bb-white); }
.step.active { color: var(--bb-ink); }
.step.done .num { background: var(--bb-teal); color: var(--bb-white); }
.step-sep { width: 20px; height: 2px; background: var(--bb-line-dark); }

/* ── Service picker ───────────────────────────────────────────────────── */
.service-option {
  display: block;
  border: 2px solid var(--bb-line-dark);
  border-radius: var(--radius);
  padding: 16px 18px;
  cursor: pointer;
  margin-bottom: 12px;
  transition: border-color 0.12s ease, background 0.12s ease;
}
.service-option:hover { border-color: var(--bb-indigo); }
.service-option.selected { border-color: var(--bb-indigo); background: var(--bb-mist); }
.service-option input { display: none; }
.service-option-row { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.service-option-row strong { color: var(--bb-ink); font-size: 1.02rem; }
.service-option-row .price { color: var(--bb-teal-dark); font-weight: 800; white-space: nowrap; }
.service-option .meta { font-size: 0.82rem; color: var(--bb-steel); margin-top: 4px; }
.service-option p { margin: 6px 0 0; font-size: 0.9rem; }

/* ── Date + slot picker ───────────────────────────────────────────────── */
.date-picker { margin-bottom: 22px; }
.slot-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}
@media (min-width: 480px) { .slot-grid { grid-template-columns: repeat(4, 1fr); } }
.slot-btn {
  padding: 12px 8px;
  border-radius: var(--radius);
  border: 2px solid var(--bb-line-dark);
  background: var(--bb-white);
  font-weight: 700;
  font-size: 0.9rem;
  cursor: pointer;
  color: var(--bb-ink);
  min-height: 44px;
}
.slot-btn:hover { border-color: var(--bb-indigo); }
.slot-btn.selected { background: var(--bb-indigo); border-color: var(--bb-indigo); color: var(--bb-white); }
.slot-empty {
  grid-column: 1 / -1;
  text-align: center;
  padding: 24px 12px;
  color: var(--bb-steel);
  font-size: 0.92rem;
  background: var(--bb-mist);
  border-radius: var(--radius);
}

/* ── Forms ─────────────────────────────────────────────────────────────── */
.field { margin-bottom: 18px; }
.field label {
  display: block;
  font-weight: 700;
  font-size: 0.88rem;
  margin-bottom: 6px;
  color: var(--bb-ink);
}
.field .hint { font-size: 0.78rem; color: var(--bb-steel); margin-top: 4px; }
.field input,
.field select,
.field textarea {
  width: 100%;
  padding: 13px 14px;
  border-radius: var(--radius);
  border: 2px solid var(--bb-line-dark);
  font-size: 16px;
  font-family: var(--font-base);
  background: var(--bb-white);
  color: var(--bb-ink);
}
.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--bb-indigo);
}
.field textarea { min-height: 110px; resize: vertical; }
.field-row { display: grid; gap: 14px; grid-template-columns: 1fr; }
@media (min-width: 640px) { .field-row-2 { grid-template-columns: 1fr 1fr; } }

.form-card {
  background: var(--bb-white);
  border-radius: var(--radius-lg);
  padding: 28px 22px;
  box-shadow: var(--shadow-lg);
  max-width: 640px;
  margin: 0 auto;
}
.form-msg { padding: 14px; border-radius: var(--radius); margin-bottom: 18px; font-weight: 700; display: none; }
.form-msg.success { background: #e2f2ea; color: #1f7a45; display: block; }
.form-msg.error { background: #fbe6e0; color: #a5321a; display: block; }
.form-msg.info { background: var(--bb-mist-2); color: var(--bb-indigo-dark); display: block; }

/* ── FAQ accordion ─────────────────────────────────────────────────────── */
.faq-item {
  border-bottom: 1px solid var(--bb-line-dark);
  padding: 18px 0;
}
.faq-q {
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
  font-weight: 800;
  gap: 12px;
}
.faq-q .plus { flex-shrink: 0; font-size: 1.3rem; color: var(--bb-teal-dark); transition: transform 0.15s; }
.faq-item.open .faq-q .plus { transform: rotate(45deg); }
.faq-a { display: none; margin-top: 10px; color: var(--bb-slate); }
.faq-item.open .faq-a { display: block; }

/* ── Table (admin bookings list, also usable in a "recent bookings" widget) ── */
.table-wrap { overflow-x: auto; }
table.data-table { width: 100%; border-collapse: collapse; font-size: 0.9rem; }
table.data-table th, table.data-table td { padding: 10px 12px; text-align: left; border-bottom: 1px solid var(--bb-line-dark); white-space: nowrap; }
table.data-table th { color: var(--bb-steel); font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.04em; }

/* ── Footer ────────────────────────────────────────────────────────────── */
.site-footer {
  background: var(--bb-ink);
  color: var(--bb-steel-light);
  padding: 48px 0 28px;
}
.site-footer h4 { color: var(--bb-white); font-size: 1rem; letter-spacing: 0.02em; }
.site-footer p { color: var(--bb-steel-light); }
.site-footer .notice { color: var(--bb-slate); }
.site-footer a { color: var(--bb-steel-light); }
.site-footer a:hover { color: var(--bb-white); }
.footer-grid { display: grid; gap: 30px; grid-template-columns: 1fr; margin-bottom: 30px; }
@media (min-width: 720px) { .footer-grid { grid-template-columns: 2fr 1fr 1fr 1fr; } }
.footer-bottom {
  border-top: 1px solid var(--bb-line);
  padding-top: 20px;
  font-size: 0.82rem;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 10px;
}
.footer-bottom a { margin-right: 14px; }

/* ── Trust notice ─────────────────────────────────────────────────────── */
.notice {
  background: var(--bb-mist-2);
  border-left: 4px solid var(--bb-teal);
  padding: 16px 18px;
  border-radius: 4px;
  font-size: 0.92rem;
  color: var(--bb-slate);
}

/* ── Utilities ─────────────────────────────────────────────────────────── */
.text-center { text-align: center; }
.mt-0 { margin-top: 0; }
.mb-0 { margin-bottom: 0; }
.max-w-prose { max-width: 680px; }
.center { margin-left: auto; margin-right: auto; }
.skip-link {
  position: absolute; left: -9999px; top: 0;
  background: var(--bb-teal); color: white; padding: 12px 16px; z-index: 200;
}
.skip-link:focus { left: 10px; top: 10px; }
