/* ==========================================================================
   Home hero
   ========================================================================== */
.hero {
  position: relative;
  padding: 72px 0 0;
  background:
    linear-gradient(180deg, var(--brand-soft) 0%, rgba(224, 239, 235, 0.35) 55%, var(--bg) 100%);
  border-bottom: 1px solid var(--line);
  overflow: hidden;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.02fr 0.98fr;
  align-items: center;
  gap: 56px;
  padding-bottom: 68px;
}

.hero h1 {
  margin-bottom: 20px;
}

.hero .lead {
  max-width: 50ch;
  margin-bottom: 30px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.hero-media {
  position: relative;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 12px;
  box-shadow: var(--shadow);
}

.hero-media img {
  width: 100%;
}

/* Ruled strip of key facts under the hero copy */
.hero-facts {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  list-style: none;
  padding: 0;
  margin: 34px 0 0;
  border-top: 1px solid var(--line-strong);
}

.hero-facts li {
  padding: 18px 22px 0 0;
  border-right: 1px solid var(--line);
}

.hero-facts li + li {
  padding-left: 22px;
}

.hero-facts li:last-child {
  border-right: 0;
  padding-right: 0;
}

.hero-facts strong {
  display: block;
  font-family: "Archivo", sans-serif;
  font-size: 22px;
  font-weight: 800;
  letter-spacing: -0.5px;
  color: var(--ink);
}

.hero-facts span {
  font-size: 13.5px;
  color: var(--muted);
}

/* Caption bar sitting flush inside the hero panel, under the image. */
.hero-badge {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 12px -12px -12px;
  padding: 16px 22px;
  background: var(--ink);
  color: #ffffff;
}

.hero-badge strong {
  display: block;
  font-family: "Archivo", sans-serif;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 1.2px;
  text-transform: uppercase;
}

.hero-badge span {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.76);
}

@media (max-width: 980px) {
  .hero-grid {
    grid-template-columns: 1fr;
    gap: 36px;
  }
  .hero-media {
    order: -1;
  }
}

@media (max-width: 640px) {
  .hero {
    padding-top: 44px;
  }
  .hero-grid {
    padding-bottom: 46px;
  }
  .hero-actions .btn {
    width: 100%;
  }
  .hero-facts {
    grid-template-columns: 1fr 1fr;
  }
  .hero-facts li {
    padding: 16px 14px 0 0;
  }
  .hero-facts li + li {
    padding-left: 14px;
  }
  .hero-facts li:nth-child(2n) {
    border-right: 0;
    padding-right: 0;
  }
  .hero-facts strong {
    font-size: 18px;
  }
  .hero-badge {
    position: static;
    margin-top: 12px;
  }
}

/* ==========================================================================
   Inner page hero
   ========================================================================== */
.page-hero {
  padding: 52px 0 44px;
  background: var(--card);
  border-bottom: 1px solid var(--line);
}

.page-hero h1 {
  margin-bottom: 16px;
}

.page-hero .lead {
  max-width: 68ch;
  margin-bottom: 0;
}

.page-hero .hero-actions {
  margin: 28px 0 0;
}

.breadcrumbs {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 9px;
  list-style: none;
  padding: 0;
  margin: 0 0 20px;
  font-family: "Archivo", sans-serif;
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  color: var(--muted);
}

.breadcrumbs li:not(:last-child)::after {
  content: "/";
  margin-left: 9px;
  color: var(--line-strong);
}

.breadcrumbs a {
  color: var(--muted);
}

.breadcrumbs a:hover {
  color: var(--brand-dark);
}

/* ==========================================================================
   How it works steps
   ========================================================================== */
.step-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(238px, 1fr));
  border-top: 1px solid var(--line-strong);
}

.step-card {
  padding: 28px 26px 26px 0;
  margin-right: 26px;
  border-right: 1px solid var(--line);
}

.step-card:last-child {
  border-right: 0;
  margin-right: 0;
  padding-right: 0;
}

.step-number {
  display: block;
  font-family: "Archivo", sans-serif;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--cta);
  margin-bottom: 14px;
}

.step-card h3 {
  font-size: 20px;
  margin-bottom: 10px;
}

.step-card p:last-child {
  margin-bottom: 0;
}

@media (max-width: 760px) {
  .step-card {
    border-right: 0;
    margin-right: 0;
    padding: 24px 0;
    border-bottom: 1px solid var(--line);
  }
  .step-card:last-child {
    border-bottom: 0;
  }
}

/* ==========================================================================
   Event type tiles
   ========================================================================== */
.use-card h3 {
  font-size: 18px;
  margin-bottom: 4px;
}

.use-card p {
  font-size: 15px;
  color: var(--muted);
  margin: 0;
}

.use-card {
  border-top: 3px solid transparent !important;
}

.grid-rules .use-card:nth-child(4n + 1) { border-top-color: var(--brand) !important; }
.grid-rules .use-card:nth-child(4n + 2) { border-top-color: var(--cta) !important; }
.grid-rules .use-card:nth-child(4n + 3) { border-top-color: var(--kids-blue) !important; }
.grid-rules .use-card:nth-child(4n + 4) { border-top-color: var(--kids-green) !important; }

/* ==========================================================================
   Split content block
   ========================================================================== */
.split {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 48px;
  align-items: center;
}

.split-media img {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--card);
  padding: 20px;
}

/* ==========================================================================
   Catalogue page
   ========================================================================== */
.catalogue-group {
  margin-bottom: 64px;
  scroll-margin-top: calc(var(--header-h) + 20px);
}

.catalogue-group:last-child {
  margin-bottom: 0;
}

.catalogue-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  overflow: hidden;
  width: fit-content;
  background: var(--card);
}

.catalogue-nav a {
  padding: 12px 22px;
  font-family: "Archivo", sans-serif;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 1.4px;
  text-transform: uppercase;
  color: var(--ink-soft);
  transition: background 0.15s ease, color 0.15s ease;
}

.catalogue-nav a + a {
  border-left: 1px solid var(--line);
}

.catalogue-nav a:hover {
  background: var(--brand);
  color: #ffffff;
}

@media (max-width: 640px) {
  .catalogue-nav {
    width: 100%;
  }
  .catalogue-nav a {
    flex: 1;
    text-align: center;
    padding: 12px 10px;
  }
}

/* ==========================================================================
   Product detail page
   ========================================================================== */
.product-detail {
  display: grid;
  grid-template-columns: 1.02fr 0.98fr;
  gap: 52px;
  align-items: start;
}

.product-gallery {
  position: sticky;
  top: calc(var(--header-h) + 20px);
  padding: 32px;
  background: var(--card-2);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.product-gallery.playful {
  background: linear-gradient(150deg, #fdf3df, #eef8f2 70%, var(--card-2));
}

.product-gallery.has-photo,
.product-gallery.playful.has-photo {
  background: #ffffff;
}

.product-gallery img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: contain;
}

/* Thumbnail strip */
.product-thumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 20px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
}

.thumb {
  width: 74px;
  height: 62px;
  padding: 4px;
  border: 1.5px solid var(--line);
  border-radius: var(--radius);
  background: #ffffff;
  cursor: pointer;
  transition: border-color 0.15s ease;
}

.thumb img {
  width: 100%;
  height: 100%;
  aspect-ratio: auto;
  object-fit: contain;
}

.thumb:hover {
  border-color: var(--line-strong);
}

.thumb.is-active {
  border-color: var(--brand);
  box-shadow: inset 0 0 0 1px var(--brand);
}

.product-summary h1 {
  margin-bottom: 14px;
}

.product-summary .product-price {
  font-size: 15px;
  border-top: 0;
  padding-top: 0;
  margin-bottom: 20px;
  color: var(--brand-dark);
}

.buy-box {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px;
  padding: 22px;
  background: var(--card);
  border: 1px solid var(--line-strong);
  border-left: 3px solid var(--cta);
  border-radius: var(--radius);
  margin: 24px 0;
}

.buy-box .qty {
  flex: none;
}

.buy-box .btn {
  flex: 1 1 190px;
}

.buy-box-note {
  flex-basis: 100%;
  font-size: 14px;
  color: var(--muted);
  margin: 0;
}

.spec-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 15.5px;
}

.spec-table th,
.spec-table td {
  text-align: left;
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
}

.spec-table th {
  color: var(--muted);
  font-weight: 600;
  width: 45%;
}

.spec-table tr:last-child th,
.spec-table tr:last-child td {
  border-bottom: 0;
}

.detail-columns {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(290px, 1fr));
  gap: 22px;
}

@media (max-width: 980px) {
  .product-detail {
    grid-template-columns: 1fr;
    gap: 32px;
  }
  .product-gallery {
    position: static;
  }
}

/* ==========================================================================
   Quote page
   ========================================================================== */
.quote-layout {
  display: grid;
  grid-template-columns: 1.5fr 0.95fr;
  gap: 44px;
  align-items: start;
}

.quote-panel {
  position: sticky;
  top: calc(var(--header-h) + 20px);
  padding: 0;
  overflow: hidden;
}

.quote-panel h3 {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 1.8px;
  text-transform: uppercase;
  margin: 0;
  padding: 18px 24px;
  background: var(--ink);
  color: #ffffff;
}

.summary-items {
  list-style: none;
  padding: 0 24px;
  margin: 18px 0 14px;
}

.summary-items li {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 14px;
  padding: 10px 0;
  border-bottom: 1px solid var(--line);
  font-size: 15.5px;
}

.summary-items strong {
  font-family: "Archivo", sans-serif;
  font-size: 18px;
  font-weight: 800;
}

.summary-total {
  margin: 0 24px 18px;
  padding: 9px 12px;
  background: var(--brand-soft);
  font-family: "Archivo", sans-serif;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--brand-dark);
}

.summary-details {
  padding: 0 24px;
}

.summary-pending {
  display: block;
  padding: 0 24px;
  color: var(--muted);
  font-style: italic;
  font-size: 14.5px;
}

.summary-details .summary-pending {
  display: inline;
  padding: 0;
}

.summary-note {
  margin: 18px 0 0;
  padding: 16px 24px;
  border-top: 1px solid var(--line);
  background: var(--card-2);
  font-size: 13.5px;
  color: var(--muted);
}

.quote-item {
  display: grid;
  grid-template-columns: 104px 1fr auto;
  align-items: center;
  gap: 22px;
  padding: 18px;
  background: var(--card);
  border: 1px solid var(--line);
  border-left: 3px solid transparent;
  border-radius: var(--radius);
  margin-bottom: 14px;
  transition: border-color 0.2s ease;
}

.quote-item.is-selected {
  border-color: var(--line-strong);
  border-left-color: var(--brand);
}

.quote-item-media {
  width: 104px;
  height: 78px;
  object-fit: contain;
  background: var(--card-2);
  border: 1px solid var(--line);
  padding: 6px;
}

.quote-item-body h3 {
  font-size: 18px;
  margin-bottom: 4px;
}

.quote-item-body p {
  font-size: 14.5px;
  margin-bottom: 8px;
}

.quote-item-controls {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}

@media (max-width: 1080px) {
  .quote-layout {
    grid-template-columns: 1fr;
  }
  .quote-panel {
    position: static;
    order: -1;
  }
}

@media (max-width: 640px) {
  .quote-item {
    grid-template-columns: 76px 1fr;
    gap: 14px;
  }
  .quote-item-media {
    width: 76px;
    height: 62px;
  }
  .quote-item-controls {
    grid-column: 1 / -1;
    flex-direction: row;
    justify-content: space-between;
  }
}

/* ==========================================================================
   Call to action band
   ========================================================================== */
.cta-band {
  padding: 64px 0;
  background: var(--brand-dark);
  color: #ffffff;
  border-top: 4px solid var(--cta);
}

.cta-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
}

.cta-inner h2 {
  color: #ffffff;
  margin-bottom: 10px;
  max-width: 20ch;
}

.cta-inner p {
  color: rgba(255, 255, 255, 0.82);
  margin: 0;
  max-width: 46ch;
}

.cta-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

@media (max-width: 640px) {
  .cta-actions {
    width: 100%;
  }
}

/* ==========================================================================
   Contact page
   ========================================================================== */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.28fr;
  gap: 40px;
  align-items: start;
}

.contact-card + .contact-card {
  margin-top: 18px;
}

.contact-card h3 {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 1.6px;
  text-transform: uppercase;
  color: var(--brand);
}

.contact-lead {
  font-family: "Archivo", sans-serif;
  font-size: 23px;
  font-weight: 800;
  letter-spacing: -0.6px;
  margin-bottom: 14px;
}

@media (max-width: 900px) {
  .contact-grid {
    grid-template-columns: 1fr;
  }
}

/* ==========================================================================
   Scroll reveal
   ========================================================================== */
.reveal {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}

.reveal.visible {
  opacity: 1;
  transform: none;
}

@media (prefers-reduced-motion: reduce) {
  .reveal {
    opacity: 1;
    transform: none;
  }
}
