/* Tinker Shed site frame, shared by every redesigned page.
   Load order: didac.css → tokens.css → didac-tokens.css → site.css → the page's own CSS.
   Adds what the DIDAC page doesn't have: latest-event strip link, menu with dropdowns,
   current-page marker, full footer with social links, floating WhatsApp + back-to-top. */

/* ---------- Latest-event strip (above the header) ---------- */
.topline-link { display: block; min-height: 44px; padding-top: 11px; padding-bottom: 11px; text-decoration: none; }
.topline-link:hover { background: #ffece4; }
.topline-more { display: inline-flex; align-items: center; gap: 4px; margin-left: 8px; color: var(--orange-ink); font-weight: 700; white-space: nowrap; }
.topline-more svg { width: 14px; height: 14px; }

/* ---------- Header menu with dropdowns ---------- */
.site-nav { display: flex; align-items: center; gap: clamp(14px, 2vw, 26px); }
.site-nav__list { display: flex; align-items: center; gap: clamp(10px, 1.6vw, 22px); margin: 0; padding: 0; list-style: none; }
.site-nav__item { position: relative; }
.site-nav__link {
  display: inline-flex; align-items: center; gap: 4px; min-height: 44px; padding: 0 2px;
  font-family: var(--font-display); font-size: var(--type-nav-size); font-weight: var(--weight-display);
  letter-spacing: var(--tracking-display); color: #3a3f47; text-decoration: none;
  background: none; border: 0; cursor: pointer;
}
.site-nav__link:hover, .site-nav__toggle[aria-expanded="true"] { color: var(--orange-ink); }
/* Current page: orange with a yellow underline (design system) */
.site-nav__link[aria-current="page"], .site-nav__toggle.is-current { color: var(--orange-ink); text-decoration: underline; text-decoration-color: var(--yellow); text-decoration-thickness: 3px; text-underline-offset: 8px; }
.site-nav__toggle svg { width: 16px; height: 16px; transition: transform .2s ease; }
.site-nav__toggle[aria-expanded="true"] svg { transform: rotate(180deg); }
.site-nav__drop {
  display: none; position: absolute; top: 100%; left: -12px; z-index: 45; min-width: 230px;
  margin: 0; padding: 8px; list-style: none; background: var(--white);
  border: 1px solid var(--line); border-radius: var(--radius-card); box-shadow: var(--shadow-lift);
}
.site-nav__drop.is-open { display: block; }
.site-nav__drop a {
  display: flex; align-items: center; min-height: 44px; padding: 0 12px; border-radius: 10px;
  font-family: var(--font-body); font-size: var(--text-16); font-weight: var(--weight-semibold);
  color: #3a3f47; text-decoration: none; white-space: nowrap;
}
.site-nav__drop a:hover { background: var(--tint-orange); color: var(--orange-ink); }
.site-nav__cta { min-height: 44px; color: var(--white); white-space: nowrap; }
.site-menu-toggle .icon-close { display: none; }
.site-menu-toggle[aria-expanded="true"] .icon-open { display: none; }
.site-menu-toggle[aria-expanded="true"] .icon-close { display: block; }

@media (max-width: 1080px) {
  .site-menu-toggle { display: block; min-width: 44px; min-height: 44px; }
  .site-nav {
    display: none; position: absolute; top: 100%; left: 0; right: 0; z-index: 45;
    flex-direction: column; align-items: stretch; gap: 0; padding: 8px 20px 20px;
    max-height: calc(100vh - 80px); overflow-y: auto;
    background: var(--white); border-bottom: 1px solid var(--line); box-shadow: var(--shadow-lift);
  }
  .site-nav.open { display: flex; }
  .site-nav__list { flex-direction: column; align-items: stretch; gap: 0; }
  .site-nav__list > li { border-bottom: 1px solid var(--line); }
  .site-nav__link { width: 100%; justify-content: space-between; min-height: 52px; }
  .site-nav__drop { position: static; min-width: 0; padding: 0 0 10px 12px; border: 0; border-radius: 0; box-shadow: none; }
  .site-nav__drop a { white-space: normal; }
  .site-nav__cta { margin-top: 16px; min-height: 50px; }
}

/* ---------- Shared bits for redesigned pages ---------- */
.section-cta { margin-top: 32px; text-align: center; }
.section-cta .btn svg { width: 20px; height: 20px; }
/* Text-only hero (Gallery, Booking): centred, no photo */
.hero-simple { position: relative; z-index: 1; max-width: 760px; text-align: center; }
.hero-simple .eyebrow { margin-bottom: 0; }
.hero-simple .lead { margin: 0 auto; }
.hero-simple .hero-note { justify-content: center; }
/* Card grids with 4 or 2 columns (About, Schools, Events) */
.card-grid--4 { grid-template-columns: repeat(4, 1fr); }
.card-grid--2 { grid-template-columns: repeat(2, 1fr); }
@media (max-width: 980px) { .card-grid--4 { grid-template-columns: 1fr 1fr; } }
@media (max-width: 720px) { .card-grid--4, .card-grid--2 { grid-template-columns: 1fr; } }

/* Hero checklist ("What we deliver", "What to expect") */
.deliver-title { font-size: var(--type-h4-size); line-height: var(--leading-heading); margin: 0 0 4px; }
.deliver-list { margin: 10px 0 0; }
.deliver-list li { color: var(--color-heading); font-weight: var(--weight-semibold); }
.deliver-note { margin: 14px 0 24px; font-size: var(--type-small-size); color: var(--color-body); }

/* Photo cards with a details list (Events adult workshops, Kids workshops) */
.workshop { padding: 0 0 22px; overflow: hidden; }
.workshop > :not(.workshop-img) { margin-left: 22px; margin-right: 22px; }
.workshop-img { width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover; margin-bottom: 6px; }
.workshop h3 { font-size: var(--type-h4-size); line-height: var(--leading-heading); }
.workshop-details { margin: 4px 0 6px; display: grid; gap: 0; }
.workshop-details div { display: flex; justify-content: space-between; gap: 12px; padding: 8px 0; border-top: 1px solid var(--line); font-size: var(--type-small-size); }
.workshop-details dt { color: var(--color-body); }
.workshop-details dd { margin: 0; color: var(--color-heading); font-weight: var(--weight-semibold); text-align: right; }
.workshop .btn { margin-top: auto; align-self: stretch; }

/* Jump links under a hero (Gallery, Kids) */
.jump-links { justify-content: center; margin-top: 26px; }
.jump-links a { display: inline-flex; align-items: center; min-height: 44px; padding: 0 4px; color: var(--color-heading); text-decoration: none; }
.jump-links li { padding: 0 14px; }
.jump-links li:hover { box-shadow: var(--shadow-lift); }
.jump-links a:hover { color: var(--orange-ink); }

/* Closing box after a white section needs no top padding */
.closing-section { padding-top: 0; }
.btn:disabled { opacity: .55; cursor: not-allowed; transform: none; }

/* ---------- Footer ---------- */
.footer-full .footer-inner { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 18px 32px; }
.footer-full .brand { min-height: 44px; }
.footer-full .brand img { width: 40px; height: 40px; }
.footer-full .footer-links { justify-content: center; gap: 4px 20px; }
.footer-full .footer-links a { display: inline-flex; align-items: center; min-height: 44px; }
.social-links { display: flex; gap: 8px; margin: 0; padding: 0; list-style: none; }
.social-link { width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; color: #3a3f47; border: 1.5px solid var(--line); background: var(--white); transition: color .2s ease, border-color .2s ease, background .2s ease; }
.social-link:hover { color: var(--orange-ink); border-color: var(--orange); background: var(--tint-orange); }
.social-link svg { width: 20px; height: 20px; }
.footer-copy { grid-column: 1 / -1; padding-top: 16px; border-top: 1px solid var(--line); }

/* Shop pages: legal links and GST note in the bottom row */
.footer-copy--shop { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 0 18px; }
.footer-copy--shop a { display: inline-flex; align-items: center; min-height: 44px; color: inherit; font-weight: var(--weight-semibold); }
.footer-copy--shop a:hover { color: var(--orange-ink); }

/* Extra header item (the shop's Cart button): right of the menu; on phones before the menu button */
.nav-extra { flex: none; }
@media (max-width: 1080px) {
  .nav .nav-extra { order: 2; margin-left: auto; }
  .nav .site-menu-toggle { order: 3; }
}

@media (max-width: 980px) {
  .footer-full .footer-inner { grid-template-columns: 1fr; justify-items: start; }
  .footer-full .footer-links { justify-content: flex-start; }
}

/* ---------- Floating buttons: back to top + WhatsApp ---------- */
.fab-stack { position: fixed; right: 16px; bottom: calc(16px + env(safe-area-inset-bottom)); z-index: 60; display: flex; flex-direction: column; align-items: center; gap: 12px; }
.fab { display: grid; place-items: center; border-radius: 50%; cursor: pointer; text-decoration: none; transition: transform .2s ease, opacity .2s ease, visibility .2s ease, background .2s ease; }
.fab:hover { transform: translateY(-2px); }
.fab-wa { width: 56px; height: 56px; background: var(--whatsapp); color: var(--white); box-shadow: var(--shadow-lift); }
.fab-wa:hover { background: #064c44; }
.fab-wa svg { width: 30px; height: 30px; }
.fab-top { width: 48px; height: 48px; background: var(--white); color: var(--orange-ink); border: 1.5px solid var(--line); box-shadow: var(--shadow-card); opacity: 0; visibility: hidden; transform: translateY(8px); }
.fab-top.show { opacity: 1; visibility: visible; transform: none; }
.fab-top:hover { border-color: var(--orange); background: var(--tint-orange); }
.fab-top svg { width: 22px; height: 22px; }
.menu-open .fab-stack { display: none; }

@media (max-width: 720px) {
  .topline-more { margin-left: 4px; }
  .site-footer.footer-full { padding-bottom: 150px; }
}
@media (prefers-reduced-motion: reduce) {
  .fab, .site-nav__toggle svg { transition: none; }
}
