/* Happy Monster responsive refinement — v4.
   Loaded AFTER both the original stylesheet and Elementor compatibility rules.
   Intentionally keeps all existing colours, artwork, content and structure. */

/* Consistent shrink-to-fit behaviour for nested WordPress/Elementor containers. */
.hm-whole-site,
.hm-page-content,
.hm-elementor,
.hm-elementor .e-con {min-width:0;max-width:100%;}
.hm-container > *,
.hm-party-hero > *,
.hm-book-layout > *,
.hm-simple-form-section > *,
.hm-package-grid > *,
.hm-location-grid > *,
.hm-elementor .hm-party-hero > *,
.hm-elementor .hm-book-layout > *,
.hm-elementor .hm-simple-form-section > * {min-width:0;}
.hm-form-card input,
.hm-form-card select,
.hm-form-card textarea {max-width:100%;}

/* Smaller, deliberately compact Request a Quote controls on all 3 party cards.
   Select by location rather than Elementor widget ID, so existing edited pages
   update without re-importing their saved Elementor layouts. */
.hm-package-grid article a,
.hm-elementor .hm-package-grid article a {
  display:inline-flex!important;
  align-items:center;
  justify-content:center;
  align-self:center;
  flex:0 0 auto;
  width:auto!important;
  max-width:100%;
  min-height:38px;
  padding:8px 15px!important;
  margin-top:13px;
  border-radius:100px;
  border:1px solid #eec2da;
  background:#fff;
  color:#ad2179!important;
  font-size:13px!important;
  line-height:1.25;
  font-weight:900;
  text-align:center;
  white-space:normal;
  box-shadow:0 3px 9px #a65c8420;
  text-decoration:none!important;
}
.hm-package-grid article a:hover,
.hm-elementor .hm-package-grid article a:hover {
  background:#fff0f7;
  border-color:#e6a8c9;
}

/* Mid-sized tablets can run out of space in the five-link header. Switch to
   the existing accessible hamburger just before the navigation gets cramped. */
@media (min-width:821px) and (max-width:960px) {
  .hm-site-header,.hm-elementor .hm-site-header {padding-inline:16px;top:10px;}
  .hm-header-pill,.hm-elementor .hm-header-pill {height:64px;gap:10px;padding:5px 12px 5px 17px;}
  .hm-logo-link img,.hm-elementor .hm-logo-link img {width:158px;}
  .hm-nav-cta,.hm-elementor .hm-nav-cta {margin-left:auto;font-size:12px;padding:10px 13px;}
  .hm-main-nav,.hm-elementor .hm-main-nav {
    display:none!important;position:absolute;top:75px;left:18px;right:18px;
    margin:0!important;padding:16px 21px;background:#fff;
    box-shadow:0 12px 24px #603b7b2b;border-radius:24px;
    flex-direction:column!important;align-items:stretch;gap:0;
    max-height:calc(100dvh - 98px);overflow-y:auto;
  }
  .hm-main-nav.hm-nav-open,.hm-elementor .hm-main-nav.hm-nav-open {display:flex!important;flex-direction:column!important;}
  .hm-main-nav a,.hm-elementor .hm-main-nav a {font-size:16px;padding:10px 5px;}
  .hm-mobile-only,.hm-elementor .hm-mobile-only {display:block!important;}
  .hm-menu-toggle,.hm-elementor .hm-menu-toggle {
    display:flex!important;flex:none;flex-direction:column!important;
    align-items:center;justify-content:center;gap:4px;
    width:44px;height:44px;background:#fff4fb;border:1px solid #d6bbdb;
    border-radius:50%;cursor:pointer;
  }
  .hm-menu-toggle span,.hm-elementor .hm-menu-toggle span {width:19px;height:2px;display:block;background:#62268e;border-radius:2px;}
}

@media (max-width:820px) {
  /* Elementor previously opened its hamburger menu as a horizontal row. */
  .hm-main-nav.hm-nav-open,.hm-elementor .hm-main-nav.hm-nav-open {
    display:flex!important;flex-direction:column!important;align-items:stretch!important;
    gap:0!important;overflow-y:auto;
  }
  .hm-main-nav a,.hm-elementor .hm-main-nav a {display:flex;align-items:center;min-height:44px;width:100%;}
  .hm-package-grid,.hm-elementor .hm-package-grid {
    grid-template-columns:repeat(2,minmax(0,1fr));gap:17px;
  }
  .hm-package-grid article,.hm-elementor .hm-package-grid article {
    padding:23px 19px;
  }
  .hm-package-grid > :last-child,.hm-elementor .hm-package-grid > :last-child {
    grid-column:1 / -1;justify-self:center;width:min(100%,380px);
  }
  .hm-party-options > h2,.hm-elementor .hm-party-options h2 {font-size:clamp(31px,5vw,42px);}
  .hm-elementor .hm-form-card,.hm-form-card {max-width:100%;}
}

@media (max-width:760px) {
  /* Keep form and photo columns comfortably readable on small tablets. */
  .hm-party-hero,.hm-book-layout,.hm-simple-form-section,
  .hm-elementor .hm-party-hero,.hm-elementor .hm-book-layout,.hm-elementor .hm-simple-form-section {
    grid-template-columns:minmax(0,1fr)!important;
    gap:23px;
  }
  .hm-party-hero,.hm-elementor .hm-party-hero {padding-top:22px;}
  .hm-party-photo,.hm-party-photo img,
  .hm-elementor .hm-party-photo,.hm-elementor .hm-party-photo img {max-width:100%;}
  .hm-party-photo img,.hm-elementor .hm-party-photo img {height:clamp(220px,52vw,335px);}
  .hm-book-layout > div,.hm-elementor .hm-book-layout > .e-con {min-width:0;}
  .hm-simple-form-section > div > img,.hm-elementor .hm-simple-form-section img {max-width:200px;}
  .hm-elementor .hm-soon-layout {
    display:flex!important;flex-direction:column!important;align-items:stretch;
  }
  .hm-elementor .hm-soon-copy{text-align:center;padding:0;width:100%;}
  .hm-elementor .hm-soon-copy p{margin-inline:auto;}
  .hm-elementor .hm-soon-actions{justify-content:center;}
  .hm-elementor .hm-soon-image{height:315px;max-width:440px;align-self:center;}
  .hm-elementor .hm-soon-image > .hm-oval-photo{height:285px;width:95%;}
  .hm-elementor .hm-soon-image > .elementor-widget-hm-image {bottom:0;}
}

/* Retain the compact Opening Soon art proportions from the v3 phone layout. */
@media (max-width:670px) {
  .hm-elementor .hm-soon-image {height:270px;max-width:400px;}
  .hm-elementor .hm-soon-image > .hm-oval-photo {height:238px;width:92%;}
  .hm-elementor .hm-soon-image > .elementor-widget-hm-image {width:35%;max-width:148px;bottom:0;left:0;}
}

@media (max-width:600px) {
  /* A single party card per row is more legible and easier to tap on phones. */
  .hm-package-grid,.hm-elementor .hm-package-grid {grid-template-columns:minmax(0,1fr);gap:15px;}
  .hm-package-grid article,.hm-elementor .hm-package-grid article {
    width:min(100%,410px);justify-self:center;padding:20px 20px 22px;
  }
  .hm-package-grid > :last-child,.hm-elementor .hm-package-grid > :last-child {grid-column:auto;width:min(100%,410px);}
  .hm-package-grid article a,
  .hm-elementor .hm-package-grid article a {min-height:44px;font-size:13px!important;padding:9px 16px!important;}
  .hm-section-heading,.hm-elementor .hm-section-heading {padding-top:107px;padding-bottom:58px;}
  .hm-party-hero h2,.hm-elementor .hm-party-hero h2 {font-size:clamp(33px,8.5vw,43px);}
  .hm-simple-form-section > div > h2,
  .hm-elementor .hm-simple-form-section div h2 {font-size:clamp(30px,8vw,38px);}
  .hm-book-layout > div > h2,.hm-elementor .hm-book-layout div h2 {font-size:clamp(32px,8vw,40px);}
  .hm-form-card,.hm-elementor .hm-form-card {padding:20px 16px;border-radius:25px;}
  .hm-form-heading h2,.hm-elementor .hm-form-heading h2 {font-size:clamp(27px,7vw,35px);}
  .hm-form-card form input:not([type=submit]):not([type=checkbox]),
  .hm-form-card form select,.hm-form-card form textarea,
  .hm-elementor .hm-form-card form input:not([type=submit]):not([type=checkbox]),
  .hm-elementor .hm-form-card form select,.hm-elementor .hm-form-card form textarea {font-size:16px;}
  .hm-cta-flex,.hm-elementor .hm-cta-flex {flex-direction:column!important;gap:5px;text-align:center;}
  .hm-cta-flex>img,.hm-elementor .hm-cta-flex>img {width:min(190px,54vw);}
  .hm-cta-flex h2,.hm-elementor .hm-cta-flex h2 {font-size:clamp(31px,8vw,38px);}
  .hm-safe-band,.hm-elementor .hm-safe-band {grid-template-columns:1fr;gap:4px;}
  .hm-safe-art img,.hm-elementor .hm-safe-art img {width:min(165px,42vw);}
  .hm-safe-copy h2,.hm-elementor .hm-safe-copy h2 {font-size:clamp(29px,8vw,36px);}
  .hm-safe-copy ul,.hm-safe-copy > p,
  .hm-elementor .hm-safe-copy ul,.hm-elementor .hm-safe-copy > p {font-size:14px;}
  .hm-footer-inner,.hm-elementor .hm-footer-inner {flex-direction:column!important;gap:10px;text-align:center;}
  .hm-footer-copy,.hm-elementor .hm-footer-copy {flex-direction:column!important;gap:4px;font-size:12px;}
  .hm-footer-copy > span + span,.hm-footer-copy > a,
  .hm-elementor .hm-footer-copy > span + span,.hm-elementor .hm-footer-copy > a {
    padding:0;border:0;
  }
  .hm-socials,.hm-elementor .hm-socials {justify-content:center;}
}

@media (max-width:420px) {
  .hm-site-header,.hm-elementor .hm-site-header {padding-inline:6px;}
  .hm-header-pill,.hm-elementor .hm-header-pill {padding:5px 7px;gap:4px;min-width:0;}
  .hm-logo-link img,.hm-elementor .hm-logo-link img {width:clamp(105px,31vw,125px);}
  .hm-nav-cta,.hm-elementor .hm-nav-cta {font-size:10px;padding:7px 8px;gap:3px;min-width:0;min-height:42px;}
  .hm-menu-toggle,.hm-elementor .hm-menu-toggle {width:38px;height:38px;flex:none;}
  .hm-main-nav,.hm-elementor .hm-main-nav {left:9px;right:9px;}
  .hm-home-hero,.hm-elementor .hm-home-hero {padding-top:103px;}
  .hm-hero-actions,.hm-elementor .hm-hero-actions {gap:9px;}
  .hm-hero-actions .hm-button,.hm-elementor .hm-hero-actions .hm-button {
    min-width:0;flex:1 1 130px;min-height:49px;font-size:12px;padding:9px 6px;
  }
  .hm-hero-visual,.hm-elementor .hm-hero-visual {max-width:100%;}
  .hm-hero-photo,.hm-elementor .hm-hero-photo {height:255px;}
  .hm-feature-grid,.hm-elementor .hm-feature-grid {grid-template-columns:minmax(0,1fr);gap:14px;}
  .hm-feature,.hm-elementor .hm-feature-grid > .e-con {
    display:grid!important;grid-template-columns:72px minmax(0,1fr);
    align-items:center;text-align:left;gap:2px 12px;
  }
  .hm-feature img,.hm-elementor .hm-feature img,
  .hm-elementor .hm-feature-grid > .e-con img {grid-row:1 / span 2;width:70px;height:70px;object-fit:contain;}
  .hm-feature h2,.hm-elementor .hm-feature h2,
  .hm-elementor .hm-feature-grid > .e-con h2 {font-size:21px;margin:0;}
  .hm-feature p,.hm-elementor .hm-feature p,
  .hm-elementor .hm-feature-grid > .e-con p {font-size:13px;margin:0;}
  .hm-birthday-band,.hm-elementor .hm-birthday-band {
    grid-template-columns:minmax(0,1fr)!important;text-align:center;padding:13px 17px 39px;
  }
  .hm-birthday-art,.hm-elementor .hm-birthday-art {height:125px;}
  .hm-birthday-art img,.hm-elementor .hm-birthday-art img {height:136px;}
  .hm-birthday-text h2,.hm-elementor .hm-birthday-text h2 {font-size:29px;}
  .hm-birthday-text p,.hm-elementor .hm-birthday-text p {font-size:13px;}
  .hm-birthday-text .hm-button,.hm-elementor .hm-birthday-text .hm-button {
    font-size:13px;min-height:44px;padding:10px 13px;
  }
  .hm-attractions-grid,.hm-elementor .hm-attractions-grid {gap:24px 12px;}
  .hm-attraction h2,.hm-elementor .hm-attraction h2 {font-size:19px;}
  .hm-attraction p,.hm-elementor .hm-attraction p {font-size:12px;}
  .hm-form-card,.hm-elementor .hm-form-card {padding-inline:13px;}
  .hm-hours-card h3,.hm-elementor .hm-hours-card h3 {font-size:21px;white-space:normal;}
  .hm-soon-copy h1,.hm-elementor .hm-soon-copy h1 {font-size:clamp(42px,12vw,53px);}
  .hm-soon-actions,.hm-elementor .hm-soon-actions {gap:8px;justify-content:center;}
  .hm-soon-actions .hm-button,.hm-elementor .hm-soon-actions .hm-button {
    font-size:12px;padding:9px 11px;min-width:0;min-height:44px;
  }
}

@media (max-width:390px) {
  .hm-elementor .hm-soon-image {height:236px;}
  .hm-elementor .hm-soon-image > .hm-oval-photo {height:210px;}
  .hm-elementor .hm-soon-image > .elementor-widget-hm-image {width:34%;}
}
