/* Rootophia Mini Daycare — extends styles.v7.css
   Used by the dedicated Mini Daycare page and by the launch band, service
   listing and CTAs that appear across the rest of the site. */

:root {
  --md-plum: #6b3fa0;
  --md-sun: #ffb156;
  --md-sky: #8fd0ff;
  --md-mint: #8ccf8a;
  --md-ink: #1f2937;
}

/* ── NEW badge (launch) ─────────────────────────── */
.md-new {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #d32f2f;
  color: #fff;
  font-weight: 850;
  font-size: 12px;
  letter-spacing: 0.8px;
  text-transform: uppercase;
  padding: 5px 12px;
  border-radius: 999px;
  box-shadow: 0 6px 16px rgba(211, 47, 47, 0.35);
}
.md-new::before {
  content: "★";
  font-size: 11px;
}

/* ── Launch band (homepage + service pages) ─────── */
.md-launch {
  padding: 40px 0;
}
.md-launch__card {
  position: relative;
  overflow: hidden;
  border-radius: 26px;
  padding: 32px clamp(20px, 4vw, 44px);
  color: #fff;
  background:
    radial-gradient(circle at 88% 12%, rgba(255, 255, 255, 0.22), transparent 42%),
    linear-gradient(135deg, var(--orange) 0%, #ff9c3f 42%, var(--md-plum) 100%);
  box-shadow: 0 20px 50px rgba(107, 63, 160, 0.28);
}
/* Soft paw watermark — decorative only. */
.md-launch__card::after {
  content: "🐾";
  position: absolute;
  right: -10px;
  bottom: -34px;
  font-size: 190px;
  line-height: 1;
  opacity: 0.1;
  pointer-events: none;
}
.md-launch__top {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 14px;
}
.md-launch__eyebrow {
  font-weight: 800;
  font-size: 13px;
  letter-spacing: 1.4px;
  text-transform: uppercase;
  opacity: 0.92;
}
.md-launch h2,
.md-launch__title {
  margin: 0;
  font-size: clamp(28px, 4.6vw, 46px);
  line-height: 1.05;
  letter-spacing: 0.5px;
  font-weight: 850;
  text-transform: uppercase;
}
.md-launch__tagline {
  margin: 10px 0 0;
  font-size: clamp(17px, 2.2vw, 22px);
  font-weight: 750;
}
.md-launch__sub {
  margin: 6px 0 0;
  font-size: 15px;
  opacity: 0.94;
  max-width: 62ch;
}

/* Fact pills: 2 hours / £15 / 9:30–11:30 / Mon–Fri / 5 dogs */
.md-facts {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 10px;
  margin: 22px 0 0;
  padding: 0;
  list-style: none;
}
.md-facts li {
  display: flex;
  align-items: center;
  gap: 10px;
  background: rgba(255, 255, 255, 0.16);
  border: 1px solid rgba(255, 255, 255, 0.34);
  border-radius: 16px;
  padding: 12px 14px;
  font-weight: 800;
  font-size: 15px;
  backdrop-filter: blur(4px);
}
.md-facts .md-facts__icon {
  font-size: 20px;
  line-height: 1;
}
.md-facts li strong {
  display: block;
  font-size: 16px;
  letter-spacing: 0.3px;
}
.md-facts li span.md-facts__label {
  display: block;
  font-size: 12px;
  font-weight: 650;
  opacity: 0.88;
  letter-spacing: 0.4px;
  text-transform: uppercase;
}

/* Scarcity badge — the number is filled in from real booking data. */
.md-scarcity {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 20px;
  background: rgba(255, 255, 255, 0.95);
  color: #b3261e;
  font-weight: 850;
  font-size: 14px;
  letter-spacing: 0.6px;
  text-transform: uppercase;
  padding: 10px 16px;
  border-radius: 999px;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.16);
}
.md-scarcity::before {
  content: "🐶";
  font-size: 16px;
}
.md-scarcity.is-loading {
  color: var(--muted);
}
.md-scarcity.is-full {
  background: #b3261e;
  color: #fff;
}
.md-scarcity.is-plenty {
  color: #1b5e20;
}

.md-launch__cta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 22px;
}
.md-launch .button.md-btn-primary {
  background: #fff;
  color: var(--md-plum);
  font-size: 16px;
  padding: 15px 26px;
  min-height: 50px;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  font-weight: 850;
}
.md-launch .button.md-btn-primary:hover {
  background: #fff6ec;
}
.md-launch .button.md-btn-secondary {
  background: rgba(255, 255, 255, 0.14);
  color: #fff;
  border: 2px solid rgba(255, 255, 255, 0.7);
  box-shadow: none;
  font-size: 16px;
  padding: 14px 24px;
  min-height: 50px;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  font-weight: 800;
}
.md-launch .button.md-btn-secondary:hover {
  background: rgba(255, 255, 255, 0.24);
}
.md-launch .button[aria-disabled="true"],
.md-book-cta[aria-disabled="true"] {
  pointer-events: none;
  opacity: 0.6;
  filter: grayscale(0.35);
}

/* ── Dedicated page hero ────────────────────────── */
.md-hero {
  padding: 44px 0 10px;
}
.md-hero__top {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}
.md-hero h1 {
  margin: 12px 0 0;
  font-size: clamp(30px, 4.4vw, 48px);
  line-height: 1.06;
}
.md-hero__tagline {
  margin: 8px 0 0;
  font-size: clamp(18px, 2.4vw, 24px);
  font-weight: 800;
  color: var(--md-plum);
}
.md-hero__strip {
  margin: 14px 0 0;
  font-weight: 800;
  color: rgba(0, 0, 0, 0.78);
}
.md-hero__copy {
  margin: 16px 0 0;
  max-width: 72ch;
  color: rgba(0, 0, 0, 0.76);
}

/* ── Section furniture ──────────────────────────── */
.md-section {
  padding: 30px 0;
}
.md-section__head {
  max-width: 74ch;
  margin-bottom: 20px;
}
.md-section__head h2 {
  margin: 0;
  font-size: clamp(23px, 2.8vw, 34px);
}
.md-section__head p {
  margin: 10px 0 0;
  color: rgba(0, 0, 0, 0.72);
}
.md-note {
  margin: 16px 0 0;
  background: rgba(255, 255, 255, 0.82);
  border-left: 6px solid var(--orange);
  border-radius: 12px;
  padding: 14px 16px;
  font-size: 14.5px;
  color: rgba(0, 0, 0, 0.78);
}

/* ── "What dogs can enjoy" cards ────────────────── */
.md-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 16px;
}
.md-card {
  background: #fff;
  border: 1px solid rgba(0, 0, 0, 0.07);
  border-radius: 20px;
  padding: 22px;
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.07);
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}
.md-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 34px rgba(0, 0, 0, 0.12);
}
.md-card__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  border-radius: 16px;
  font-size: 26px;
  background: linear-gradient(135deg, rgba(245, 124, 0, 0.16), rgba(107, 63, 160, 0.16));
  margin-bottom: 12px;
}
.md-card h3 {
  margin: 0 0 8px;
  font-size: 18px;
}
.md-card p {
  margin: 0;
  color: rgba(0, 0, 0, 0.7);
  line-height: 1.55;
  font-size: 15px;
}
.md-card--pool {
  border: 2px solid rgba(143, 208, 255, 0.85);
  background: linear-gradient(180deg, rgba(143, 208, 255, 0.14), #fff 60%);
}
.md-card__flag {
  display: inline-block;
  margin-top: 10px;
  font-size: 13px;
  font-weight: 800;
  color: #0b4f6c;
  background: rgba(143, 208, 255, 0.32);
  border-radius: 999px;
  padding: 5px 11px;
}

/* ── "Who is Mini Daycare for?" ─────────────────── */
.md-audience {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 10px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.md-audience li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  background: rgba(255, 255, 255, 0.86);
  border-radius: 14px;
  padding: 13px 15px;
  font-weight: 650;
  color: rgba(0, 0, 0, 0.8);
  line-height: 1.45;
}
.md-audience li::before {
  content: "🐾";
  flex: 0 0 auto;
  font-size: 15px;
}

/* ── Availability strip ─────────────────────────── */
.md-availability {
  background: #fff;
  border-radius: 22px;
  padding: 22px;
  box-shadow: var(--shadow);
}
.md-days {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 10px;
  margin-top: 14px;
}
.md-day {
  text-align: left;
  border: 2px solid rgba(0, 0, 0, 0.09);
  background: #fff;
  border-radius: 16px;
  padding: 13px 14px;
  cursor: pointer;
  font: inherit;
  min-height: 78px;
  transition: border-color 0.15s ease, transform 0.12s ease, background 0.15s ease;
}
.md-day:hover:not(:disabled) {
  border-color: var(--orange);
  transform: translateY(-2px);
}
.md-day__date {
  display: block;
  font-weight: 850;
  font-size: 15px;
}
.md-day__spaces {
  display: block;
  margin-top: 6px;
  font-size: 12.5px;
  font-weight: 800;
  letter-spacing: 0.4px;
  text-transform: uppercase;
  color: #1b5e20;
}
.md-day--low .md-day__spaces {
  color: #b3261e;
}
.md-day--full {
  background: #f6f6f6;
  cursor: not-allowed;
  opacity: 0.85;
}
.md-day--full .md-day__spaces {
  color: #b3261e;
}
.md-day--selected {
  border-color: var(--md-plum);
  background: rgba(107, 63, 160, 0.07);
  box-shadow: 0 0 0 3px rgba(107, 63, 160, 0.16);
}
.md-days__more {
  margin-top: 14px;
}

/* ── Booking form ───────────────────────────────── */
.md-form {
  display: grid;
  gap: 18px;
  margin-top: 18px;
}
.md-fieldset {
  border: 0;
  margin: 0;
  padding: 0;
}
.md-fieldset legend {
  font-weight: 850;
  font-size: 18px;
  padding: 0;
  margin-bottom: 4px;
}
.md-radio-group {
  display: grid;
  gap: 8px;
  margin-top: 10px;
}
.md-radio {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  background: rgba(255, 255, 255, 0.92);
  border: 2px solid rgba(0, 0, 0, 0.1);
  border-radius: 14px;
  padding: 12px 14px;
  cursor: pointer;
  font-weight: 650;
  min-height: 48px;
}
.md-radio:has(input:checked) {
  border-color: var(--orange);
  background: rgba(245, 124, 0, 0.07);
}
.md-radio input {
  width: 20px;
  height: 20px;
  margin: 2px 0 0;
  flex: 0 0 auto;
}
.md-selected-date {
  font-weight: 850;
  color: var(--md-plum);
}
.md-alert {
  border-radius: 14px;
  padding: 14px 16px;
  font-weight: 700;
  line-height: 1.5;
}
.md-alert--warn {
  background: #fff4e5;
  border-left: 6px solid var(--orange);
  color: #7a4100;
}
.md-alert--error {
  background: #fdecea;
  border-left: 6px solid #d32f2f;
  color: #8c1d18;
}
.md-alert--ok {
  background: #eaf6ea;
  border-left: 6px solid #2e7d32;
  color: #1b5e20;
}
.md-submit {
  min-height: 54px;
  font-size: 17px;
  padding: 16px 28px;
  background: var(--orange);
  color: #fff;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  font-weight: 850;
  width: 100%;
}
.md-submit:hover:not([disabled]) {
  background: #d96c00;
}
.md-submit[disabled] {
  opacity: 0.6;
  cursor: not-allowed;
  filter: grayscale(0.3);
}
.md-form__footnote {
  font-size: 13px;
  color: rgba(0, 0, 0, 0.66);
}

/* ── Confirmation screen ────────────────────────── */
.md-confirm {
  background: #fff;
  border-radius: 24px;
  padding: 28px;
  box-shadow: var(--shadow);
  text-align: center;
}
.md-confirm h2 {
  margin: 0;
  font-size: clamp(26px, 3.4vw, 36px);
}
.md-confirm__lead {
  margin: 8px 0 20px;
  font-size: 18px;
  font-weight: 750;
}
.md-confirm__details {
  display: grid;
  gap: 1px;
  background: rgba(0, 0, 0, 0.08);
  border-radius: 16px;
  overflow: hidden;
  text-align: left;
  margin: 0 auto;
  max-width: 460px;
}
.md-confirm__row {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  background: #fff;
  padding: 12px 16px;
  font-size: 15px;
}
.md-confirm__row dt {
  margin: 0;
  color: var(--muted);
  font-weight: 650;
}
.md-confirm__row dd {
  margin: 0;
  font-weight: 800;
  text-align: right;
}
.md-confirm__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
  margin-top: 22px;
}
.md-confirm__actions .button {
  min-height: 48px;
}

/* ── Compact service listing (reused on other pages) ── */
.md-listing {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 18px;
  background: linear-gradient(135deg, rgba(245, 124, 0, 0.1), rgba(107, 63, 160, 0.1));
  border: 2px solid rgba(107, 63, 160, 0.22);
  border-radius: 20px;
  padding: 22px;
}
.md-listing__body {
  flex: 1 1 320px;
}
.md-listing__title {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  margin: 0 0 6px;
  font-size: 21px;
}
.md-listing__meta {
  margin: 0 0 8px;
  font-weight: 850;
  color: var(--md-plum);
  letter-spacing: 0.3px;
}
.md-listing__desc {
  margin: 0;
  color: rgba(0, 0, 0, 0.74);
}
.md-listing__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.md-listing .button {
  min-height: 48px;
  display: inline-flex;
  align-items: center;
}
.md-listing .button.md-btn-primary {
  background: var(--orange);
  color: #fff;
  font-weight: 850;
  text-transform: uppercase;
  letter-spacing: 0.4px;
}
.md-listing .button.md-btn-primary:hover {
  background: #d96c00;
}

/* ── Closing CTA ────────────────────────────────── */
.md-closing {
  padding: 34px 0 54px;
}
.md-closing__card {
  border-radius: 24px;
  padding: 32px clamp(20px, 4vw, 40px);
  text-align: center;
  color: #fff;
  background: linear-gradient(135deg, var(--md-plum), var(--orange));
  box-shadow: 0 18px 44px rgba(107, 63, 160, 0.28);
}
.md-closing__card h2 {
  margin: 0;
  font-size: clamp(24px, 3.2vw, 34px);
}
.md-closing__card p {
  margin: 12px auto 0;
  max-width: 62ch;
  font-size: 16px;
  opacity: 0.95;
}
.md-closing__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
  margin-top: 22px;
}

/* ── Lookup ─────────────────────────────────────── */
.md-lookup {
  background: #fff;
  border-radius: 20px;
  padding: 22px;
  box-shadow: var(--shadow);
}

/* ── Page shell ─────────────────────────────────── */
.md-page {
  background:
    radial-gradient(900px 420px at 90% -8%, rgba(143, 208, 255, 0.28), transparent 60%),
    radial-gradient(760px 380px at 0% 12%, rgba(245, 124, 0, 0.12), transparent 58%),
    #fffcf6;
  background-attachment: fixed;
}
.sr-only-label {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

/* On a light page the scarcity badge needs its own outline to stand out. */
.md-hero .md-scarcity,
.md-availability .md-scarcity,
.md-section .md-scarcity {
  margin-top: 0;
  border: 2px solid rgba(179, 38, 30, 0.28);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.08);
}
.md-hero .md-scarcity.is-plenty,
.md-section .md-scarcity.is-plenty {
  border-color: rgba(27, 94, 32, 0.3);
}
.md-hero .md-scarcity.is-loading {
  border-color: rgba(0, 0, 0, 0.12);
}
.md-closing .md-scarcity {
  margin-top: 0;
}

/* A date an admin has blocked out — shown, but not bookable. */
.md-day--blocked {
  background: #f6f6f6;
  cursor: not-allowed;
  opacity: 0.85;
}
.md-day--blocked .md-day__spaces {
  color: var(--muted);
}
.md-day:disabled {
  cursor: not-allowed;
}
.md-day__meta {
  display: block;
  margin-top: 4px;
  font-size: 11.5px;
  font-weight: 700;
  color: var(--muted);
  letter-spacing: 0.3px;
}

/* ── Mobile ─────────────────────────────────────── */
@media (max-width: 760px) {
  .md-launch {
    padding: 26px 0;
  }
  .md-launch__card {
    padding: 24px 18px;
    border-radius: 22px;
  }
  .md-launch__card::after {
    font-size: 130px;
    bottom: -24px;
    right: -14px;
  }
  /* Two columns keeps £15 / 9:30–11:30 / 5 dogs visible without scrolling. */
  .md-facts {
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
  }
  .md-facts li {
    padding: 10px 11px;
    font-size: 14px;
  }
  .md-facts li strong {
    font-size: 15px;
  }
  .md-facts li:last-child {
    grid-column: 1 / -1;
  }
  .md-launch__cta {
    gap: 10px;
  }
  .md-launch__cta .button {
    flex: 1 1 100%;
    text-align: center;
    justify-content: center;
  }
  .md-days {
    grid-template-columns: repeat(2, 1fr);
  }
  .md-confirm {
    padding: 22px 16px;
  }
  .md-confirm__row {
    flex-direction: column;
    gap: 2px;
  }
  .md-confirm__row dd {
    text-align: left;
  }
  .md-confirm__actions .button,
  .md-closing__actions .button,
  .md-listing__actions .button {
    flex: 1 1 100%;
    justify-content: center;
    text-align: center;
  }
}

@media (max-width: 380px) {
  .md-facts {
    grid-template-columns: 1fr;
  }
  .md-facts li:last-child {
    grid-column: auto;
  }
}

@media (prefers-reduced-motion: reduce) {
  .md-card,
  .md-day,
  .button {
    transition: none;
  }
  .md-card:hover,
  .md-day:hover:not(:disabled) {
    transform: none;
  }
}
