/* Nourayni Wellness – public site */
:root {
  --nw-sage: #5f7d6b;
  --nw-sage-dark: #46604f;
  --nw-sage-soft: #e7eee9;
  --nw-sand: #f7f2ec;
  --nw-sand-dark: #ece3d8;
  --nw-clay: #c08a6c;
  --nw-ink: #2e3a33;
  --nw-muted: #6f7b74;
  --nw-line: #e3ddd5;
  --nw-radius: 14px;
  --nw-heading-font: 'Rubik', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --bs-body-font-family: 'IBM Plex Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

body {
  font-family: 'IBM Plex Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif; /* same base font as the admin panel */
  color: var(--nw-ink);
  background: var(--nw-sand);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

main { flex: 1; }

h1, h2, h3, .display-font {
  font-family: var(--nw-heading-font);
  font-weight: 500;
  letter-spacing: -0.01em;
}

a { color: var(--nw-sage-dark); }

/* Header & footer */
.site-header {
  background: rgba(247, 242, 236, 0.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--nw-line);
  position: sticky;
  top: 0;
  z-index: 1030;
}

.site-header .nav-link { color: var(--nw-ink); font-weight: 500; }
.site-header .nav-link:hover { color: var(--nw-sage); }

.brand-mark {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--nw-sage);
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
}

.brand-text { font-family: var(--nw-heading-font); font-size: 1.22rem; font-weight: 600; color: var(--nw-ink); }
.brand-text span { color: var(--nw-sage); font-weight: 400; }

.site-footer { background: var(--nw-ink); color: #fff; padding: 1.5rem 0; font-size: 0.9rem; margin-top: 4rem; }

/* Buttons */
.btn-brand { background: var(--nw-sage); border-color: var(--nw-sage); color: #fff; border-radius: 999px; padding-inline: 1.4rem; font-weight: 500; }
.btn-brand:hover, .btn-brand:focus { background: var(--nw-sage-dark); border-color: var(--nw-sage-dark); color: #fff; }
.btn-brand:disabled { background: #a9b7ae; border-color: #a9b7ae; }
.btn-outline-brand { border: 1px solid var(--nw-sage); color: var(--nw-sage-dark); border-radius: 999px; }
.btn-outline-brand:hover { background: var(--nw-sage); color: #fff; }

/* Booking page */
.booking-hero { padding: 3rem 0 1.5rem; }
.booking-hero h1 { font-size: clamp(1.9rem, 4.2vw, 2.6rem); }
.booking-hero p { color: var(--nw-muted); max-width: 560px; }

.step-card {
  background: #fff;
  border: 1px solid var(--nw-line);
  border-radius: var(--nw-radius);
  padding: 1.5rem;
  margin-bottom: 1.25rem;
  transition: opacity 0.2s;
}

.step-card.is-locked { opacity: 0.45; pointer-events: none; }

.step-title { display: flex; align-items: center; gap: 0.75rem; margin-bottom: 1.1rem; }
.step-title h2 { font-size: 1.25rem; margin: 0; }
.step-num {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: var(--nw-sage-soft);
  color: var(--nw-sage-dark);
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.step-card.is-done .step-num { background: var(--nw-sage); color: #fff; }

/* Selectable cards / pills (radio inputs visually hidden) */
.choice-input { position: absolute; opacity: 0; pointer-events: none; }

.therapy-card {
  display: block;
  height: 100%;
  border: 1.5px solid var(--nw-line);
  border-radius: 12px;
  padding: 1rem 1.1rem;
  cursor: pointer;
  transition: border-color 0.15s, box-shadow 0.15s, background 0.15s;
  background: #fff;
}
.therapy-card:hover { border-color: var(--nw-sage); }
.choice-input:checked + .therapy-card { border-color: var(--nw-sage); background: var(--nw-sage-soft); box-shadow: 0 0 0 3px rgba(95, 125, 107, 0.15); }
.choice-input:focus-visible + .therapy-card,
.choice-input:focus-visible + .pill { outline: 2px solid var(--nw-sage); outline-offset: 2px; }
.therapy-card .name { font-weight: 600; font-size: 1.05rem; }
.therapy-card .desc { color: var(--nw-muted); font-size: 0.88rem; margin: 0.25rem 0 0.6rem; }
.chip { display: inline-block; font-size: 0.75rem; padding: 0.15rem 0.55rem; border-radius: 999px; background: var(--nw-sand); color: var(--nw-muted); margin: 0 0.25rem 0.25rem 0; }
.chip-online { background: #e5eef6; color: #3f6b8c; }

.pill {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  border: 1.5px solid var(--nw-line);
  border-radius: 999px;
  padding: 0.55rem 1.2rem;
  cursor: pointer;
  background: #fff;
  font-weight: 500;
  margin: 0 0.5rem 0.5rem 0;
  transition: all 0.15s;
}
.pill:hover { border-color: var(--nw-sage); }
.choice-input:checked + .pill { background: var(--nw-sage); border-color: var(--nw-sage); color: #fff; }
.choice-input:disabled + .pill { opacity: 0.35; cursor: not-allowed; text-decoration: line-through; }

/* Date strip */
.date-strip { display: flex; gap: 0.6rem; overflow-x: auto; padding-bottom: 0.5rem; scroll-snap-type: x mandatory; }
.date-strip::-webkit-scrollbar { height: 6px; }
.date-strip::-webkit-scrollbar-thumb { background: var(--nw-line); border-radius: 3px; }

.date-btn {
  flex: 0 0 auto;
  width: 74px;
  scroll-snap-align: start;
  border: 1.5px solid var(--nw-line);
  border-radius: 12px;
  background: #fff;
  padding: 0.55rem 0.3rem;
  text-align: center;
  line-height: 1.15;
  transition: all 0.15s;
}
.date-btn .wd { font-size: 0.75rem; text-transform: uppercase; color: var(--nw-muted); letter-spacing: 0.05em; }
.date-btn .d { font-family: var(--nw-heading-font); font-size: 1.35rem; font-weight: 500; margin: 0.1rem 0; }
.date-btn .m { font-size: 0.75rem; color: var(--nw-muted); }
.date-btn .avail { font-size: 0.68rem; margin-top: 0.2rem; color: var(--nw-sage-dark); font-weight: 500; }
.date-btn:hover:not(:disabled) { border-color: var(--nw-sage); }
.date-btn.active { background: var(--nw-sage); border-color: var(--nw-sage); color: #fff; }
.date-btn.active .wd, .date-btn.active .m, .date-btn.active .avail { color: rgba(255, 255, 255, 0.85); }
.date-btn:disabled { opacity: 0.45; cursor: not-allowed; }
.date-btn:disabled .avail { color: var(--nw-muted); }

/* Therapist slot cards */
.therapist-card { border: 1px solid var(--nw-line); border-radius: 12px; padding: 1rem 1.1rem; margin-bottom: 0.9rem; background: #fff; }
.therapist-card.is-unavailable { background: #faf8f5; }
.therapist-head { display: flex; align-items: center; gap: 0.85rem; margin-bottom: 0.75rem; }
.therapist-photo { width: 52px; height: 52px; border-radius: 50%; object-fit: cover; flex-shrink: 0; }
.therapist-initials {
  width: 52px; height: 52px; border-radius: 50%; flex-shrink: 0;
  background: var(--nw-sage-soft); color: var(--nw-sage-dark);
  display: inline-flex; align-items: center; justify-content: center; font-weight: 600;
}
.therapist-name { font-weight: 600; font-size: 1.05rem; }
.therapist-role { color: var(--nw-muted); font-size: 0.85rem; }
.period-label { font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.08em; color: var(--nw-muted); margin: 0.35rem 0 0.35rem; }

.slot-btn {
  border: 1.5px solid var(--nw-sage);
  color: var(--nw-sage-dark);
  background: #fff;
  border-radius: 8px;
  padding: 0.4rem 0.75rem;
  margin: 0 0.4rem 0.45rem 0;
  font-weight: 500;
  font-size: 0.92rem;
  min-width: 86px;
  transition: all 0.12s;
}
.slot-btn:hover { background: var(--nw-sage-soft); }
.slot-btn.active { background: var(--nw-sage); color: #fff; }

.loading-line { color: var(--nw-muted); padding: 0.75rem 0; }

/* Summary */
.summary-card { background: #fff; border: 1px solid var(--nw-line); border-radius: var(--nw-radius); padding: 1.4rem; }
@media (min-width: 992px) { .summary-sticky { position: sticky; top: 96px; } }
.summary-card h3 { font-size: 1.2rem; }
.summary-row { display: flex; justify-content: space-between; gap: 1rem; padding: 0.55rem 0; border-bottom: 1px dashed var(--nw-line); font-size: 0.95rem; }
.summary-row:last-of-type { border-bottom: 0; }
.summary-row .label { color: var(--nw-muted); }
.summary-row .value { font-weight: 500; text-align: right; }
.summary-row .value.empty { color: #b9b2a8; font-weight: 400; }

.form-control, .form-select { border-radius: 10px; border-color: var(--nw-line); padding: 0.65rem 0.9rem; }
.form-control:focus, .form-select:focus { border-color: var(--nw-sage); box-shadow: 0 0 0 3px rgba(95, 125, 107, 0.15); }
.form-check-input:checked { background-color: var(--nw-sage); border-color: var(--nw-sage); }

.hp-field { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* Thank you */
.thanks-card { background: #fff; border: 1px solid var(--nw-line); border-radius: 18px; padding: 2.5rem 2rem; max-width: 640px; margin: 3rem auto 0; }
.thanks-icon .bx { font-size: 2.6rem; }
.thanks-icon { width: 72px; height: 72px; border-radius: 50%; background: var(--nw-sage-soft); color: var(--nw-sage); display: inline-flex; align-items: center; justify-content: center; font-size: 2.4rem; }
.booking-ref { font-family: var(--nw-heading-font); font-size: 1.6rem; font-weight: 600; color: var(--nw-sage-dark); letter-spacing: 0.04em; }

/* Small phones: keep logo, "Book now" and menu on one line */
@media (max-width: 420px) {
  .brand-text { font-size: 1.05rem; }
  .brand-mark { width: 30px; height: 30px; font-size: 1.05rem; }
  .site-header .btn-brand.btn-sm { padding-inline: 0.85rem; }
  .site-header .navbar-toggler { padding: 0.25rem 0.35rem; }
  .step-card { padding: 1.15rem; }
}

/* My bookings – month calendar */
.month-cal { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 4px; }
.month-cal-head { font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.06em; color: var(--nw-muted); text-align: center; padding: 0.25rem 0; }
.month-cal-day { min-height: 86px; border: 1px solid var(--nw-line); border-radius: 8px; padding: 4px; background: #fff; overflow: hidden; }
.month-cal-day .num { font-size: 0.8rem; color: var(--nw-muted); display: block; margin-bottom: 2px; }
.month-cal-day.is-other { background: transparent; border-style: dashed; opacity: 0.5; }
.month-cal-day.is-today { border-color: var(--nw-sage); box-shadow: inset 0 0 0 1px var(--nw-sage); }
.month-cal-day.is-today .num { color: var(--nw-sage-dark); font-weight: 700; }
.month-cal-day.has-bookings { background: #fbfaf7; }

.cal-chip { display: block; font-size: 0.7rem; line-height: 1.3; padding: 2px 4px; margin-bottom: 2px; border-radius: 4px; color: #fff; text-decoration: none; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cal-chip:hover { color: #fff; filter: brightness(0.92); }

/* Status colours (customer side) */
.status-pending { --st: #d29a4c; }
.status-confirmed, .status-rescheduled { --st: var(--nw-sage); }
.status-completed { --st: #6b8fb5; }
.status-cancelled, .status-no_show { --st: #b9b2a8; }
.cal-chip { background: var(--st); }
.cal-chip.status-cancelled, .cal-chip.status-no_show { text-decoration: line-through; }
.legend-dot { display: inline-block; width: 10px; height: 10px; border-radius: 50%; background: var(--st); margin-right: 5px; vertical-align: middle; }

.my-booking { border-left: 3px solid var(--st); padding: 0.4rem 0 0.9rem 0.85rem; margin-bottom: 0.9rem; border-bottom: 1px dashed var(--nw-line); }
.my-booking:last-child { margin-bottom: 0; border-bottom: 0; padding-bottom: 0.3rem; }
.my-booking:target { background: var(--nw-sage-soft); border-radius: 0 8px 8px 0; }
.status-pill { font-size: 0.72rem; padding: 0.15rem 0.6rem; border-radius: 999px; background: color-mix(in srgb, var(--st) 18%, #fff); color: color-mix(in srgb, var(--st) 75%, #000); white-space: nowrap; font-weight: 500; }

@media (max-width: 575.98px) {
  .month-cal { gap: 2px; }
  .month-cal-day { min-height: 54px; padding: 3px 2px; text-align: center; }
  .cal-chip { display: inline-block; width: 10px; height: 10px; padding: 0; border-radius: 50%; margin: 0 1px; }
  .cal-chip > span { display: none !important; }
}

/* ===== Home page ===== */
.btn-light-outline { border: 1.5px solid rgba(255, 255, 255, 0.85); color: #fff; border-radius: 999px; padding-inline: 1.4rem; }
.btn-light-outline:hover { background: rgba(255, 255, 255, 0.15); color: #fff; }

.home-hero { position: relative; }
.hero-slide {
  min-height: 560px;
  color: #fff;
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
}
.hero-slide .hero-content { position: relative; z-index: 2; width: 100%; padding-top: 4rem; padding-bottom: 7.5rem; }
.hero-slide h1 { font-size: clamp(2.2rem, 4.8vw, 3.5rem); line-height: 1.12; margin: 0.6rem 0 1rem; max-width: 640px; }
.hero-slide p { font-size: 1.12rem; max-width: 520px; color: rgba(255, 255, 255, 0.88); margin-bottom: 1.6rem; }
.hero-kicker { display: inline-flex; align-items: center; gap: 0.45rem; text-transform: uppercase; letter-spacing: 0.14em; font-size: 0.78rem; font-weight: 500; background: rgba(255, 255, 255, 0.14); padding: 0.35rem 0.85rem; border-radius: 999px; }

/* Soft botanical artwork drawn with gradients; replace with client photography later */
.hero-slide::before, .hero-slide::after { content: ''; position: absolute; border-radius: 50%; z-index: 1; }
.hero-slide-1 { background: radial-gradient(circle at 78% 40%, #8aa894 0, transparent 42%), linear-gradient(120deg, #3f5a49 0%, #5f7d6b 55%, #7f9c88 100%); }
.hero-slide-1::before { width: 520px; height: 520px; right: -120px; top: -60px; background: radial-gradient(circle, rgba(247, 242, 236, 0.22), rgba(247, 242, 236, 0) 70%); }
.hero-slide-1::after { width: 260px; height: 260px; right: 18%; bottom: -80px; border: 1px solid rgba(255, 255, 255, 0.25); }
.hero-slide-2 { background: radial-gradient(circle at 80% 30%, #d9b49b 0, transparent 40%), linear-gradient(120deg, #7a5544 0%, #a8755c 50%, #c08a6c 100%); }
.hero-slide-2::before { width: 600px; height: 600px; right: -180px; bottom: -260px; border: 1px solid rgba(255, 255, 255, 0.22); }
.hero-slide-2::after { width: 340px; height: 340px; right: 12%; top: -90px; background: radial-gradient(circle, rgba(255, 255, 255, 0.18), rgba(255, 255, 255, 0) 70%); }
.hero-slide-3 { background: radial-gradient(circle at 75% 45%, #6f8fa8 0, transparent 40%), linear-gradient(120deg, #2e3a33 0%, #3f5a49 60%, #5f7d6b 100%); }
.hero-slide-3::before { width: 460px; height: 460px; right: -60px; top: 10%; border: 1px dashed rgba(255, 255, 255, 0.25); }
.hero-slide-3::after { width: 180px; height: 180px; right: 22%; top: 18%; background: rgba(255, 255, 255, 0.08); }

.live-dot { width: 8px; height: 8px; border-radius: 50%; background: #7ee2a8; box-shadow: 0 0 0 0 rgba(126, 226, 168, 0.7); animation: live-pulse 1.8s infinite; }
@keyframes live-pulse { 70% { box-shadow: 0 0 0 9px rgba(126, 226, 168, 0); } 100% { box-shadow: 0 0 0 0 rgba(126, 226, 168, 0); } }

/* Bootstrap stretches the indicator bar across 70% of the slider above the arrows; shrink it to the dots */
.home-hero .carousel-indicators { margin: 0 0 6.6rem; left: 50%; right: auto; transform: translateX(-50%); width: max-content; }
.home-hero .carousel-indicators [data-bs-target] { width: 26px; height: 4px; border-radius: 2px; }
/* Small round arrows bottom-right, clear of the text */
.home-hero .carousel-control-prev, .home-hero .carousel-control-next { top: auto; bottom: 6rem; width: 42px; height: 42px; border-radius: 50%; border: 1px solid rgba(255, 255, 255, 0.6); opacity: 0.85; z-index: 5; }
.home-hero .carousel-control-prev:hover, .home-hero .carousel-control-next:hover, .home-hero .carousel-control-prev:focus-visible, .home-hero .carousel-control-next:focus-visible { opacity: 1; background: rgba(255, 255, 255, 0.15); }
.home-hero .carousel-control-next { right: max(1rem, calc((100% - 1320px) / 2 + 12px)); }
.home-hero .carousel-control-prev { left: auto; right: calc(max(1rem, calc((100% - 1320px) / 2 + 12px)) + 52px); }
.home-hero .carousel-control-prev-icon, .home-hero .carousel-control-next-icon { width: 1rem; height: 1rem; }

.quick-book-wrap { position: relative; z-index: 5; margin-top: -4.25rem; }
.quick-book { background: #fff; border: 1px solid var(--nw-line); border-radius: 18px; padding: 1.25rem 1.4rem; box-shadow: 0 18px 40px rgba(46, 58, 51, 0.12); }
.quick-book-title { font-family: var(--nw-heading-font); font-size: 1.12rem; font-weight: 500; margin-bottom: 0.6rem; }
.quick-book-title .bx { color: var(--nw-sage); }

.home-section { padding: 4.5rem 0; }
.home-band { background: var(--nw-sand-dark); }
.section-head { text-align: center; max-width: 620px; margin: 0 auto 2.5rem; }
.section-head h2 { font-size: clamp(1.6rem, 3.2vw, 2.2rem); margin: 0.3rem 0 0.6rem; }
.section-head p { color: var(--nw-muted); margin: 0; }
.section-kicker { text-transform: uppercase; letter-spacing: 0.16em; font-size: 0.75rem; color: var(--nw-clay); font-weight: 600; }

.highlight { background: #fff; border: 1px solid var(--nw-line); border-radius: 14px; padding: 1.25rem 0.75rem; height: 100%; display: flex; flex-direction: column; align-items: center; gap: 0.15rem; }
.highlight .bx { font-size: 1.8rem; color: var(--nw-sage); margin-bottom: 0.25rem; }
.highlight strong { font-weight: 600; }
.highlight span { font-size: 0.85rem; color: var(--nw-muted); }

.therapy-tile { background: #fff; border: 1px solid var(--nw-line); border-radius: 16px; padding: 1.6rem; height: 100%; display: flex; flex-direction: column; transition: transform 0.2s, box-shadow 0.2s; }
.therapy-tile:hover { transform: translateY(-3px); box-shadow: 0 14px 30px rgba(46, 58, 51, 0.08); }
.therapy-tile h3 { font-size: 1.25rem; margin: 0.8rem 0 0.4rem; }
.therapy-tile p { color: var(--nw-muted); font-size: 0.95rem; }
.therapy-tile-icon { width: 50px; height: 50px; border-radius: 14px; background: var(--nw-sage-soft); color: var(--nw-sage); display: inline-flex; align-items: center; justify-content: center; font-size: 1.6rem; }
.therapy-next { font-size: 0.88rem; background: var(--nw-sand); border-radius: 10px; padding: 0.55rem 0.75rem; margin-bottom: 1rem; color: var(--nw-ink); }
.therapy-next .bx { color: var(--nw-sage); }

.step-tile { background: #fff; border-radius: 16px; padding: 1.6rem 1.4rem; height: 100%; position: relative; }
.step-tile .bx { font-size: 2rem; color: var(--nw-sage); }
.step-tile h3 { font-size: 1.15rem; margin: 0.6rem 0 0.35rem; }
.step-tile p { color: var(--nw-muted); font-size: 0.92rem; margin: 0; }
.step-tile-num { position: absolute; top: 1rem; right: 1.2rem; font-family: var(--nw-heading-font); font-size: 1.9rem; font-weight: 600; color: var(--nw-sand-dark); line-height: 1; }

.therapist-tile { text-align: center; background: #fff; border: 1px solid var(--nw-line); border-radius: 16px; padding: 1.75rem 1.25rem; height: 100%; }
.therapist-tile h3 { font-size: 1.15rem; margin: 0.9rem 0 0.1rem; }
.therapist-tile-photo { width: 104px; height: 104px; border-radius: 50%; object-fit: cover; display: inline-flex; }
.therapist-tile-initials { background: var(--nw-sage-soft); color: var(--nw-sage-dark); align-items: center; justify-content: center; font-size: 1.9rem; font-weight: 600; }

.cta-band { background: linear-gradient(120deg, var(--nw-sage-dark), var(--nw-sage)); color: #fff; border-radius: 22px; padding: 2.6rem 2.4rem; display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 1.5rem; }
.cta-band h2 { font-size: clamp(1.5rem, 3.2vw, 2rem); margin-bottom: 0.25rem; }
.cta-band .btn-light { border-radius: 999px; padding-inline: 1.4rem; color: var(--nw-sage-dark); font-weight: 500; }

@media (max-width: 767.98px) {
  .hero-slide { min-height: 520px; }
  .hero-slide .hero-content { padding-top: 3rem; padding-bottom: 6rem; }
  .home-hero .carousel-indicators { margin-bottom: 5.25rem; }
  .home-hero .carousel-control-prev, .home-hero .carousel-control-next { display: none; }
  .quick-book-wrap { margin-top: -3.5rem; }
  .home-section { padding: 3.25rem 0; }
  .cta-band { padding: 2rem 1.5rem; }
}
@media (prefers-reduced-motion: reduce) {
  .carousel-item { transition: none; }
  .live-dot { animation: none; }
}
