@import url('https://fonts.googleapis.com/css2?family=Fredoka:wght@400;500;600&family=Quicksand:wght@500;600;700&display=swap');

/* Brand colours: red #C51E35, green #68A93D, yellow #F6C400, purple #B137B1, blue #5AB7D9, dark azure #20405D */

/* Reset and base styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Quicksand', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Arial, sans-serif;
  font-weight: 600;
  line-height: 1.6;
  color: #333;
  background-color: #fafafa;
}

a {
  color: #C51E35;
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

h1, h2, h3, h4 {
  font-family: 'Fredoka', 'Quicksand', sans-serif;
  font-weight: 500;
}

button {
  font-family: inherit;
  cursor: pointer;
  border: none;
  border-radius: 4px;
  padding: 8px 16px;
  font-size: 14px;
}

/* Header */
header {
  background-color: #fff;
  border-bottom: 4px solid #F6C400;
  padding: 20px;
}

header h1 {
  font-size: 24px;
  margin-bottom: 8px;
}

header nav {
  display: flex;
  gap: 20px;
}

header a {
  color: #20405D;
  font-size: 14px;
}

/* Container */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 20px;
}

/* Catalogue */
.filters {
  margin-bottom: 30px;
}

.filters label {
  display: block;
  margin-bottom: 10px;
  font-weight: 600;
}

.filter-sub-label {
  margin-top: 14px;
}

.filters select {
  padding: 8px;
  border: 1px solid #ddd;
  border-radius: 4px;
  font-size: 14px;
}

.results-count {
  margin-top: 10px;
  color: #666;
  font-size: 14px;
}

.toys-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 20px;
  margin-top: 20px;
}

.toy-card {
  background: #fff;
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  overflow: hidden;
  transition: box-shadow 0.2s;
}

.toy-card:hover {
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.toy-card img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  background-color: #f0f0f0;
}

.toy-card-content {
  padding: 15px;
}

.toy-card h3 {
  font-size: 16px;
  margin-bottom: 8px;
}

.toy-card-meta {
  font-size: 13px;
  color: #666;
  margin-bottom: 8px;
}

.toy-card-category {
  display: inline-block;
  background-color: #f0f0f0;
  padding: 4px 8px;
  border-radius: 3px;
  font-size: 12px;
  margin-top: 8px;
}

.badge-available {
  display: inline-block;
  background-color: #d4edda;
  color: #155724;
  padding: 4px 12px;
  border-radius: 3px;
  font-size: 12px;
  font-weight: 600;
  margin-top: 10px;
}

.badge-unavailable {
  display: inline-block;
  background-color: #f8d7da;
  color: #721c24;
  padding: 4px 12px;
  border-radius: 3px;
  font-size: 12px;
  font-weight: 600;
  margin-top: 10px;
}

.toy-card-link {
  display: inline-block;
  margin-top: 12px;
  padding: 8px 16px;
  background-color: #20405D;
  color: white;
  border-radius: 4px;
  font-size: 14px;
}

.toy-card-link:hover {
  background-color: #17304a;
  text-decoration: none;
}

/* Toy detail page */
.toy-detail {
  background: #fff;
  border-radius: 8px;
  overflow: hidden;
  max-width: 800px;
}

.toy-detail-image {
  width: 100%;
  max-height: 400px;
  object-fit: cover;
  background-color: #f0f0f0;
}

.toy-detail-content {
  padding: 30px;
}

.toy-detail h1 {
  font-size: 32px;
  margin-bottom: 20px;
}

.toy-detail-info {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-bottom: 30px;
}

.toy-detail-info div {
  padding: 15px;
  background-color: #f9f9f9;
  border-radius: 4px;
}

.toy-detail-info strong {
  display: block;
  margin-bottom: 5px;
  color: #666;
  font-size: 13px;
  text-transform: uppercase;
}

.toy-detail-description {
  margin-bottom: 30px;
}

.toy-detail-description p {
  margin-bottom: 10px;
}

.back-link-row {
  margin-top: 30px;
}

/* Messages */
.message {
  padding: 15px;
  border-radius: 4px;
  margin: 15px 0;
  font-size: 14px;
}

.message-success {
  background-color: #d4edda;
  border: 1px solid #c3e6cb;
  color: #155724;
}

.message-error {
  background-color: #f8d7da;
  border: 1px solid #f5c6cb;
  color: #721c24;
}

.message-info {
  background-color: #d1ecf1;
  border: 1px solid #bee5eb;
  color: #0c5460;
}

/* Loading spinner */
.spinner {
  display: inline-block;
  width: 20px;
  height: 20px;
  border: 3px solid #f3f3f3;
  border-top: 3px solid #20405D;
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

.loading {
  text-align: center;
  padding: 30px;
}

.loading .spinner {
  margin-right: 10px;
}

/* Utilities */
.text-center {
  text-align: center;
}

.mt-20 {
  margin-top: 20px;
}

.mb-20 {
  margin-bottom: 20px;
}

.hidden {
  display: none;
}

/* Responsive */
@media (max-width: 768px) {
  .toy-detail-info {
    grid-template-columns: 1fr;
  }

  .booking-item-meta {
    grid-template-columns: 1fr;
  }

  header nav {
    flex-direction: column;
    gap: 10px;
  }

  .toys-grid {
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  }
}

/* ============================================================
   HOME PAGE
   ============================================================ */

/* Scoped body class so these rules only affect the home page */
body.home-page {
  background: linear-gradient(160deg, #e8f8f2 0%, #f0f8ff 40%, #fffbe8 100%);
  min-height: 100vh;
  position: relative;
  overflow-x: hidden;
}

/* Decorative SVG background */
.home-bg-deco {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
}
.deco-svg {
  width: 100%;
  height: 100%;
}

/* All home content sits above the deco layer */
body.home-page > *:not(.home-bg-deco) {
  position: relative;
  z-index: 1;
}

/* Header overrides for home page */
.home-header {
  background: rgba(255,255,255,0.82);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 2px solid #F6C400;
  padding: 0;
  box-shadow: 0 2px 16px rgba(104,169,61,0.08);
}
.home-header-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 18px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}
.home-header h1 {
  font-size: 22px;
  font-weight: 700;
  color: #20405D;
  margin: 0;
  letter-spacing: -0.3px;
}
.home-header nav {
  display: flex;
  gap: 6px;
}
.home-header nav a {
  color: #20405D;
  font-size: 14px;
  font-weight: 500;
  padding: 6px 14px;
  border-radius: 20px;
  transition: background 0.18s, color 0.18s;
}
.home-header nav a:hover,
.home-header nav a.nav-active {
  background: #20405D;
  color: #fff;
  text-decoration: none;
}

/* ---- Hero ---- */
.home-hero {
  padding: 60px 24px 50px;
}
.home-hero-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 48px;
  flex-wrap: wrap;
}
.home-hero-text {
  flex: 1 1 340px;
}
.home-tagline {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #B137B1;
  margin-bottom: 8px;
}
.home-hero-text h2 {
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 800;
  color: #20405D;
  line-height: 1.15;
  margin-bottom: 16px;
}
.tagline-sparkle {
  display: inline-block;
  animation: sparkle-bob 2.4s ease-in-out infinite;
}
@keyframes sparkle-bob {
  0%, 100% { transform: translateY(0) scale(1); }
  50%       { transform: translateY(-6px) scale(1.15); }
}
.home-subtitle {
  font-size: 17px;
  color: #20405D;
  margin-bottom: 32px;
  max-width: 460px;
  line-height: 1.65;
}
.home-hero-cta {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}
.btn-hero-primary {
  display: inline-block;
  padding: 13px 30px;
  background: #C51E35;
  color: #fff;
  font-weight: 700;
  font-size: 15px;
  border-radius: 30px;
  box-shadow: 0 4px 18px rgba(197,30,53,0.28);
  transition: transform 0.18s, box-shadow 0.18s;
}
.btn-hero-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(197,30,53,0.34);
  text-decoration: none;
  color: #fff;
}
.btn-hero-secondary {
  display: inline-block;
  padding: 13px 30px;
  background: rgba(255,255,255,0.8);
  color: #20405D;
  font-weight: 700;
  font-size: 15px;
  border-radius: 30px;
  border: 2px solid #68A93D;
  transition: background 0.18s, transform 0.18s;
}
.btn-hero-secondary:hover {
  background: #d8f3dc;
  transform: translateY(-2px);
  text-decoration: none;
}
.home-hero-logo {
  flex: 0 0 auto;
}
.home-hero-logo img {
  max-width: 350px;
  width: 120%;
  border-radius: 20px;
  box-shadow: 0 12px 40px rgba(32,64,93,0.15);
  transition: transform 0.3s;
}
.home-hero-logo img:hover {
  transform: rotate(-2deg) scale(1.03);
}

/* ---- Section common ---- */
.home-section {
  padding: 56px 24px;
}
.section-title {
  font-size: clamp(1.4rem, 3vw, 1.9rem);
  font-weight: 800;
  color: #20405D;
  text-align: center;
  margin-bottom: 40px;
  position: relative;
}
.section-title::after {
  content: '';
  display: block;
  width: 52px;
  height: 4px;
  background: linear-gradient(90deg, #68A93D, #F6C400);
  border-radius: 2px;
  margin: 10px auto 0;
}

/* ---- Steps grid ---- */
.steps-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 22px;
}
.step-card {
  background: rgba(255,255,255,0.78);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  border-radius: 18px;
  padding: 28px 22px 24px;
  text-align: center;
  border: 1.5px solid rgba(104,169,61,0.18);
  box-shadow: 0 4px 20px rgba(32,64,93,0.07);
  transition: transform 0.2s, box-shadow 0.2s;
  position: relative;
}
.step-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 12px 32px rgba(32,64,93,0.13);
}
.step-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  margin-bottom: 10px;
}
.step-icon svg {
  width: 28px;
  height: 28px;
}
.step-num {
  position: absolute;
  top: 14px;
  right: 16px;
  font-size: 11px;
  font-weight: 800;
  color: #68A93D;
  letter-spacing: 0.05em;
}
.step-card h3 {
  font-size: 16px;
  font-weight: 700;
  color: #20405D;
  margin-bottom: 8px;
}
.step-card p {
  font-size: 14px;
  color: #20405D;
  line-height: 1.55;
}
.step-card a {
  color: #C51E35;
  font-weight: 600;
}

/* ---- Values strip ---- */
.home-values {
  background: #20405D;
  padding: 28px 24px;
}
.home-values-inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  max-width: 1100px;
  margin: 0 auto;
}
.value-pill {
  background: rgba(255,255,255,0.18);
  color: #fff;
  font-size: 14px;
  font-weight: 600;
  padding: 8px 20px;
  border-radius: 24px;
  border: 1.5px solid rgba(255,255,255,0.3);
  backdrop-filter: blur(4px);
  letter-spacing: 0.02em;
}

/* ---- Help section ---- */
.home-help {
  text-align: center;
}
.home-help p {
  font-size: 16px;
  color: #20405D;
}

/* ---- Responsive ---- */
@media (max-width: 680px) {
  .home-hero-inner {
    flex-direction: column-reverse;
    text-align: center;
  }
  .home-hero-cta {
    justify-content: center;
  }
  .home-subtitle {
    max-width: 100%;
  }
  .home-hero-logo img {
    max-width: 200px;
  }
  .home-header-inner {
    flex-direction: column;
    align-items: flex-start;
  }
}


/* ============================================================
   SIMPLIFIED SITE ADDITIONS (join, membership, home info cards)
   ============================================================ */
.btn {
  display: inline-block;
  padding: 11px 26px;
  background: #C51E35;
  color: #fff;
  font-family: 'Fredoka', sans-serif;
  font-size: 16px;
  font-weight: 500;
  border-radius: 28px;
  border: 2px solid #C51E35;
}
.btn:hover { background: #a8182b; border-color: #a8182b; text-decoration: none; }
.btn-outline { background: transparent; color: #20405D; border-color: #20405D; }
.btn-outline:hover { background: #20405D; color: #fff; }
.btn-row { display: flex; gap: 12px; flex-wrap: wrap; margin: 18px 0; }
.page-intro { max-width: 70ch; margin-bottom: 8px; }

.info-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 18px;
  margin-top: 24px;
}
.info-card {
  background: #fff;
  border: 2px solid #20405D;
  border-radius: 18px;
  padding: 20px 24px;
}
.info-card h3 { margin-bottom: 6px; }
.info-card p { margin: 0; }
.info-card a { color: #20405D; text-decoration: underline; }
.info-card-highlight { background: #F6C400; border-color: #F6C400; }
.info-card-purple { background: #F7ECF7; border-color: #B137B1; }
.home-info { max-width: 1100px; margin: 0 auto; padding: 0 24px 24px; }
.home-info .info-cards { margin-top: 0; }

.plans {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 20px;
  margin-top: 20px;
}
.plan {
  background: #fff;
  border: 2px solid #e0e0e0;
  border-top: 8px solid var(--c);
  border-radius: 18px;
  padding: 22px;
}
.plan:nth-child(1) { --c: #C51E35; }
.plan:nth-child(2) { --c: #68A93D; }
.plan:nth-child(3) { --c: #5AB7D9; }
.plan h3 { font-size: 20px; margin-bottom: 4px; }
.plan-price { font-family: 'Fredoka', sans-serif; font-size: 40px; line-height: 1.1; margin: 8px 0; }
.plan-price small { font-family: 'Quicksand', sans-serif; font-size: 15px; font-weight: 700; }
.plan-limit { display: inline-block; background: #f0f4f7; border-radius: 14px; padding: 2px 12px; font-size: 14px; margin-bottom: 10px; }
.plan p { margin: 0; }
