/* Work+Play Hub responsive layer
   Shared mobile/tablet improvements for all uploaded pages. */

:root {
  --mobile-edge: clamp(20px, 5vw, 48px);
  --tablet-edge: clamp(28px, 6vw, 48px);
  --nav-height: 64px;
}

html {
  -webkit-text-size-adjust: 100%;
}

body {
  width: 100%;
}

img, svg, video, iframe {
  max-width: 100%;
  height: auto;
}

a, button, input, select, textarea {
  -webkit-tap-highlight-color: transparent;
}

button, .btn-primary, .btn-secondary, .btn-ghost, .nav-cta, .drawer-cta,
.filter-btn, .aud-btn, .amount-btn, .tab-btn, input, select, textarea {
  min-height: 44px;
}

/* Navigation */

.nav-hamburger {
  display: none;
  border: 0;
  background: transparent;
}

.nav-hamburger {
  border: 0;
  background: transparent;
}

.nav-mobile-drawer {
  position: fixed;
  inset: 0 0 0 auto;
  width: min(88vw, 380px);
  min-height: 100dvh;
  padding: 28px;
  background: var(--charcoal, #1C1C1C);
  color: white;
  z-index: 1000;
  display: flex;
  flex-direction: column;
  gap: 4px;
  transform: translateX(105%);
  transition: transform .32s cubic-bezier(.25,.46,.45,.94);
  box-shadow: -24px 0 60px rgba(0,0,0,.28);
}

.nav-mobile-drawer.open,
.nav-mobile-drawer.is-open {
  transform: translateX(0);
}

.nav-mobile-drawer a {
  color: rgba(255,255,255,.84);
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: .06em;
  font-size: .88rem;
  padding: 15px 0;
  border-bottom: 1px solid rgba(255,255,255,.08);
}

.nav-mobile-drawer a:hover {
  color: var(--orange-light, #FF6B35);
}

.nav-mobile-drawer .drawer-cta {
  margin-top: 18px;
  padding: 14px 18px;
  border: 0;
  background: var(--orange, #E8400A);
  color: #fff;
  text-align: center;
}

.drawer-close {
  align-self: flex-end;
  width: 44px;
  height: 44px;
  border: 1px solid rgba(255,255,255,.18);
  border-radius: 999px;
  background: transparent;
  color: white;
  font-size: 1rem;
  cursor: pointer;
  margin-bottom: 12px;
}

body.drawer-open {
  overflow: hidden;
}

/* Shared rhythm */
@media (max-width: 1100px) {
  nav,
  nav.scrolled {
    padding-left: var(--tablet-edge) !important;
    padding-right: var(--tablet-edge) !important;
  }

  .nav-links {
    gap: 18px !important;
  }

  .nav-links a {
    font-size: .76rem !important;
  }

  .hero,
  .page-hero,
  .policy-hero,
  .ways,
  .events-section,
  .amount-section,
  .impact-story,
  .regular-giving,
  .other-ways,
  .employers-intro,
  .funders-intro,
  .contact-section,
  .services-intro,
  .membership-section,
  .inclusions,
  .employ-intro,
  .mh-intro,
  .register-interest,
  .intro,
  .partnership,
  .origin,
  .values,
  .team,
  .blog-section,
  .booking-main,
  footer {
    padding-left: var(--tablet-edge) !important;
    padding-right: var(--tablet-edge) !important;
  }

  .hero-headline,
  .page-title,
  .hero-headline,
  .policy-hero h1,
  .page-hero h1 {
    text-wrap: balance;
  }

  .events-grid,
  .blog-grid,
  .values-grid,
  .team-grid,
  .benefits-grid,
  .steps-grid,
  .tiers-grid,
  .principles-grid,
  .wellbeing-grid,
  .donate-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }

  .impact-grid,
  .other-grid,
  .payg-grid,
  .inclusions-grid,
  .amount-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }

  .service-detail-grid,
  .featured-post,
  .booking-layout,
  .impact-story,
  .amount-section-header,
  .regular-giving,
  .employers-intro,
  .funders-intro,
  .contact-section,
  .featured-event,
  .host-section,
  .ways-grid,
  .volunteer-section,
  .donate-section,
  .services-intro,
  .froebel-callout,
  .membership-header,
  .employ-intro,
  .mh-intro,
  .register-interest,
  .intro,
  .partnership,
  .origin,
  .founder,
  .policy-layout,
  div[style*="grid-template-columns:1fr 1fr"],
  div[style*="grid-template-columns: 1fr 1fr"] {
    grid-template-columns: 1fr !important;
    gap: 40px !important;
  }

  .policy-sidebar,
  .origin-left {
    position: static !important;
  }

  .page-hero-number {
    font-size: clamp(10rem, 30vw, 22rem) !important;
    right: -20px !important;
    opacity: .8;
  }
}

@media (max-width: 860px) {
  nav,
  nav.scrolled {
    padding: 14px 22px !important;
    background: var(--warm-white, #FFFDF9) !important;
    box-shadow: 0 1px 0 var(--light-grey, #E8E4DE) !important;
  }

  .nav-logo,
  nav.scrolled .nav-logo {
    color: var(--charcoal, #1C1C1C) !important;
    font-size: 1.08rem !important;
  }

  .nav-links {
    display: none !important;
  }

  .nav-hamburger {
    display: flex !important;
  }

  .nav-hamburger span,
  nav.scrolled .nav-hamburger span {
    background: var(--charcoal, #1C1C1C) !important;
  }

  .hero,
  .page-hero {
    min-height: auto !important;
    padding: 120px var(--mobile-edge) 56px !important;
  }

  .policy-hero,
  .page-hero[style],
  .page-hero {
    padding-left: var(--mobile-edge) !important;
    padding-right: var(--mobile-edge) !important;
  }

  .hero-headline,
  .page-title,
  .hero-headline,
  .policy-hero h1,
  .page-hero h1 {
    font-size: clamp(2.15rem, 10vw, 3.25rem) !important;
    line-height: 1.08 !important;
  }

  .hero-subtext,
  .hero-sub,
  .page-subtitle,
  .policy-hero p,
  .page-hero p {
    font-size: .98rem !important;
    line-height: 1.65 !important;
  }

  .hero-actions,
  .cta-actions,
  .form-actions,
  .event-actions,
  .donate-actions {
    flex-direction: column !important;
    align-items: stretch !important;
    gap: 12px !important;
  }

  .btn-primary,
  .btn-secondary,
  .btn-ghost,
  .nav-cta,
  .drawer-cta {
    width: 100%;
    justify-content: center;
    text-align: center;
  }

  .filter-bar,
  .audience-tabs,
  .notice-banner {
    position: static !important;
    padding-left: var(--mobile-edge) !important;
    padding-right: var(--mobile-edge) !important;
    overflow-x: auto;
    justify-content: flex-start !important;
    -webkit-overflow-scrolling: touch;
  }

  .audience-tabs {
    display: flex !important;
    gap: 0;
  }

  .aud-btn,
  .filter-btn {
    flex: 0 0 auto;
    white-space: nowrap;
  }

  .booking-layout,
  .featured-post,
  .impact-story,
  .amount-section-header,
  .regular-giving,
  .other-grid,
  .contact-section,
  .featured-event,
  .host-section,
  .volunteer-section,
  .donate-section,
  .services-intro,
  .service-detail-grid,
  .froebel-callout,
  .membership-header,
  .employ-intro,
  .mh-intro,
  .register-interest,
  .intro,
  .partnership,
  .origin,
  .founder,
  .policy-layout {
    grid-template-columns: 1fr !important;
  }

  .events-grid,
  .blog-grid,
  .values-grid,
  .team-grid,
  .benefits-grid,
  .steps-grid,
  .tiers-grid,
  .principles-grid,
  .wellbeing-grid,
  .donate-grid,
  .employ-grid,
  .ways-grid {
    grid-template-columns: 1fr !important;
  }

  .impact-grid,
  .other-grid,
  .payg-grid,
  .inclusions-grid,
  .amount-grid,
  .cookie-types-grid,
  .form-row {
    grid-template-columns: 1fr !important;
  }

  .events-header,
  .section-header,
  .amount-section-header {
    display: block !important;
  }

  .feat-post-img,
  .event-img,
  .story-img,
  .service-img,
  .intro-img,
  .partnership-img,
  .founder-img,
  .donate-visual,
  .regular-visual,
  .login-left {
    min-height: 260px !important;
    height: auto !important;
  }

  .policy-sidebar {
    display: none !important;
  }

  .policy-content,
  .policy-main,
  .booking-form,
  .booking-sidebar {
    padding-left: var(--mobile-edge) !important;
    padding-right: var(--mobile-edge) !important;
  }

  .booking-sidebar {
    order: -1;
  }

  footer,
  .footer-content,
  .footer-bottom {
    text-align: left !important;
  }
}

@media (max-width: 640px) {
  :root { --mobile-edge: 20px; }

  .hero,
  .page-hero {
    padding-top: 108px !important;
    padding-bottom: 48px !important;
  }

  section,
  .ways,
  .events-section,
  .amount-section,
  .impact-story,
  .regular-giving,
  .other-ways,
  .employers-intro,
  .funders-intro,
  .contact-section,
  .services-intro,
  .membership-section,
  .inclusions,
  .employ-intro,
  .mh-intro,
  .register-interest,
  .intro,
  .partnership,
  .origin,
  .values,
  .team,
  .blog-section,
  .booking-main,
  footer,
  div[style*="padding:64px 48px"],
  div[style*="padding: 64px 48px"],
  div[style*="padding:80px 48px"],
  div[style*="padding: 80px 48px"],
  div[style*="padding:100px 48px"],
  div[style*="padding: 100px 48px"] {
    padding-left: var(--mobile-edge) !important;
    padding-right: var(--mobile-edge) !important;
  }

  .hero-eyebrow,
  .page-eyebrow,
  .section-label,
  .policy-eyebrow,
  .filter-label {
    letter-spacing: .14em !important;
  }

  .hero-headline br,
  .mission-strip br {
    display: none;
  }

  .hero-actions a,
  .btn-primary,
  .btn-secondary,
  .btn-ghost,
  input,
  select,
  textarea,
  button[type="submit"] {
    width: 100%;
  }

  .nav-mobile-drawer {
    width: 100vw;
  }

  .page-hero-number,
  .scroll-hint {
    display: none !important;
  }

  .notice-banner {
    margin-top: var(--nav-height) !important;
    flex-direction: row !important;
    align-items: flex-start !important;
  }

  .login-left {
    display: none !important;
  }

  body:has(.login-right) {
    display: block !important;
    background: var(--warm-white, #FFFDF9) !important;
  }

  .login-right {
    min-height: 100dvh !important;
    padding: 96px 20px 40px !important;
  }

  .login-card {
    width: 100% !important;
    max-width: none !important;
  }
}


@media (min-width: 861px) {
  .nav-links {
    display: flex !important;
  }

  .nav-hamburger {
    display: none !important;
  }
}

/* Homepage service cards — mobile/tablet polish
   Keeps the upgraded homepage service boxes consistent on smaller screens. */
.services-grid.service-cards-premium {
  align-items: stretch;
}

.services-grid.service-cards-premium .service-card-link {
  min-height: 100%;
}

.services-grid.service-cards-premium .service-image-wrap {
  position: relative;
  overflow: hidden;
}

.services-grid.service-cards-premium .service-image,
.services-grid.service-cards-premium .service-image-wrap img {
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
  display: block;
}

.services-grid.service-cards-premium .service-read-more {
  opacity: 1 !important;
  transform: none !important;
}

@media (max-width: 1100px) {
  .services-grid.service-cards-premium {
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    gap: 18px !important;
    background: transparent !important;
  }

  .services-grid.service-cards-premium .service-image-wrap {
    height: 148px !important;
    min-height: 148px !important;
    aspect-ratio: 16 / 7.5 !important;
  }

  .services-grid.service-cards-premium .service-body {
    padding: 24px 22px 26px !important;
  }

  .services-grid.service-cards-premium .service-title {
    font-size: 1.18rem !important;
    line-height: 1.2 !important;
  }
}

@media (max-width: 860px) {
  .services {
    padding-top: 36px !important;
    padding-bottom: 78px !important;
  }

  .services-intro {
    margin-bottom: 32px !important;
  }

  .services-grid.service-cards-premium {
    grid-template-columns: 1fr !important;
    gap: 22px !important;
  }

  .services-grid.service-cards-premium .service-card {
    border-radius: 8px !important;
    box-shadow: 0 10px 28px rgba(28, 28, 28, 0.04) !important;
  }

  .services-grid.service-cards-premium .service-card:hover {
    transform: none !important;
  }

  .services-grid.service-cards-premium .service-image-wrap {
    height: auto !important;
    min-height: 190px !important;
    aspect-ratio: 16 / 8.75 !important;
  }

  .services-grid.service-cards-premium .service-body {
    padding: 24px 24px 26px !important;
  }

  .services-grid.service-cards-premium .service-kicker {
    margin-bottom: 9px !important;
  }

  .services-grid.service-cards-premium .service-title {
    font-size: 1.28rem !important;
    margin-bottom: 10px !important;
  }

  .services-grid.service-cards-premium .service-desc {
    font-size: .9rem !important;
    line-height: 1.65 !important;
    margin-bottom: 18px !important;
  }

  .services-cta {
    flex-direction: column !important;
    align-items: stretch !important;
    gap: 18px !important;
    margin-top: 34px !important;
    padding-top: 28px !important;
  }

  .services-cta p {
    text-align: left !important;
  }
}

@media (max-width: 640px) {
  .services-grid.service-cards-premium .service-image-wrap {
    min-height: 168px !important;
    aspect-ratio: 16 / 9 !important;
  }

  .service-tab {
    top: 10px !important;
    left: 10px !important;
    min-width: 28px !important;
    height: 23px !important;
    font-size: .62rem !important;
  }

  .services-grid.service-cards-premium .service-body {
    padding: 22px 20px 24px !important;
  }

  .services-grid.service-cards-premium .service-title {
    font-size: 1.18rem !important;
  }
}
