:root {
  --cream: #fff8ed;
  --paper: #fffdf8;
  --ink: #271c2d;
  --muted: #6e6271;
  --berry: #8e2859;
  --berry-dark: #641b3f;
  --coral: #f47b63;
  --butter: #ffd765;
  --sky: #b9e3f2;
  --leaf: #2f6b57;
  --line: #e9ddda;
  --shadow-soft: 0 18px 50px rgb(83 39 57 / 12%);
  --shadow-card: 0 9px 26px rgb(83 39 57 / 10%);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

html,
body {
  margin: 0;
  min-height: 100%;
}

body {
  font-family: var(--font-body);
  color: var(--ink);
  line-height: 1.5;
  background:
    radial-gradient(circle at 8% 7%, rgb(255 215 101 / 36%) 0 9rem, transparent 25rem),
    radial-gradient(circle at 96% 24%, rgb(185 227 242 / 42%) 0 11rem, transparent 29rem),
    var(--cream);
}

button,
input,
select {
  font: inherit;
}

img {
  max-width: 100%;
}

.language-gate {
  width: min(1240px, calc(100% - 2rem));
  margin: 0 auto;
  animation: rise-in 620ms ease both;
}

.site-header {
  min-height: 84px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.72rem;
  color: var(--ink);
  text-decoration: none;
  font-family: var(--font-display);
  font-size: clamp(1rem, 2vw, 1.2rem);
  font-weight: 600;
}

.brand-mark {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 50% 50% 44% 56% / 55% 47% 53% 45%;
  color: #fff;
  background: var(--berry);
  box-shadow: 5px 5px 0 var(--butter);
}

.header-cta {
  color: var(--berry-dark);
  font-size: 0.9rem;
  font-weight: 700;
  text-underline-offset: 0.3rem;
  text-decoration-thickness: 2px;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 0.88fr) minmax(420px, 1.12fr);
  gap: clamp(2rem, 6vw, 5rem);
  align-items: center;
  min-height: min(760px, calc(100vh - 84px));
  padding: clamp(2rem, 5vw, 5rem) 0 clamp(4rem, 7vw, 7rem);
}

.hero-copy {
  position: relative;
  z-index: 2;
}

.eyebrow {
  margin: 0 0 0.9rem;
  color: var(--berry);
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

h1,
.details-title {
  font-family: var(--font-display);
  letter-spacing: -0.035em;
}

h1 {
  max-width: 12ch;
  margin: 0;
  font-size: clamp(3.4rem, 7.2vw, 6.7rem);
  line-height: 0.92;
  text-wrap: balance;
}

.hero-lede {
  max-width: 38rem;
  margin: 1.6rem 0 0;
  color: var(--muted);
  font-size: clamp(1rem, 1.65vw, 1.25rem);
}

.hero-actions {
  display: flex;
  align-items: center;
  gap: 1rem 1.2rem;
  flex-wrap: wrap;
  margin-top: 2rem;
}

.hero-note {
  max-width: 18rem;
  color: var(--muted);
  font-size: 0.86rem;
}

.language-picker {
  width: fit-content;
  margin-top: 2.2rem;
  padding-top: 1.15rem;
  border-top: 1px solid var(--line);
}

.question {
  margin: 0;
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.actions {
  display: flex;
  gap: 0.5rem;
  margin-top: 0.65rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  border: 1px solid transparent;
  border-radius: 999px;
  padding: 0.72rem 1.2rem;
  color: inherit;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
  transition: transform 150ms ease, box-shadow 150ms ease, background-color 180ms ease;
}

.btn:hover {
  transform: translateY(-2px);
}

.btn-solid {
  color: #fff;
  background: var(--berry);
  box-shadow: 0 8px 18px rgb(142 40 89 / 24%);
}

.btn-solid:hover {
  background: var(--berry-dark);
}

.btn-ghost {
  min-height: 38px;
  padding: 0.45rem 0.8rem;
  border-color: var(--line);
  background: rgb(255 255 255 / 60%);
}

.btn.is-active {
  color: #fff;
  border-color: var(--berry);
  background: var(--berry);
  outline: none;
}

.feedback {
  min-height: 1.35rem;
  margin: 0.55rem 0 0;
  color: var(--muted);
  font-size: 0.86rem;
}

.hero-gallery {
  position: relative;
  min-height: 570px;
}

.hero-gallery::before {
  content: "";
  position: absolute;
  width: 78%;
  aspect-ratio: 1;
  top: 4%;
  right: 7%;
  border-radius: 47% 53% 58% 42% / 42% 45% 55% 58%;
  background: var(--sky);
  transform: rotate(-5deg);
}

.hero-photo {
  position: absolute;
  margin: 0;
  overflow: hidden;
  border: 7px solid var(--paper);
  background: var(--paper);
  box-shadow: var(--shadow-soft);
}

.hero-photo img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

.hero-photo-main {
  width: 68%;
  height: 72%;
  top: 8%;
  right: 8%;
  border-radius: 49% 49% 20px 20px;
  transform: rotate(2.5deg);
}

.hero-photo-main figcaption {
  position: absolute;
  right: 1rem;
  bottom: 1rem;
  max-width: 12rem;
  border-radius: 12px;
  padding: 0.65rem 0.8rem;
  color: var(--berry-dark);
  background: rgb(255 248 237 / 92%);
  font-family: var(--font-display);
  font-size: 1rem;
  line-height: 1.15;
}

.hero-photo-small {
  width: 35%;
  height: 29%;
  border-radius: 18px;
  z-index: 2;
}

.hero-photo-top {
  top: 1%;
  left: 1%;
  transform: rotate(-7deg);
}

.hero-photo-bottom {
  right: 1%;
  bottom: 2%;
  transform: rotate(6deg);
}

.hero-burst {
  position: absolute;
  left: 15%;
  bottom: 16%;
  z-index: 3;
  display: grid;
  place-items: center;
  width: 74px;
  height: 74px;
  border-radius: 50%;
  color: var(--berry);
  background: var(--butter);
  font-size: 2rem;
  transform: rotate(-10deg);
  box-shadow: var(--shadow-card);
}

.details-block {
  animation: rise-in 350ms ease both;
}

.details-block.is-hidden,
.bouncy-house-options.is-hidden,
.service-cards.is-hidden,
#blue-castle-theme-wrap.is-hidden,
.castle-theme-wrap.is-hidden,
.canopy-select-grid.is-hidden,
.party-tent-map.is-hidden,
.party-tent-image.is-hidden,
.qty-grid.is-hidden {
  display: none;
}

.services-builder {
  position: relative;
  margin-bottom: clamp(3rem, 7vw, 6rem);
  border: 1px solid rgb(112 78 91 / 12%);
  border-radius: 34px;
  padding: clamp(1.25rem, 4vw, 4rem);
  background: rgb(255 253 248 / 92%);
  box-shadow: var(--shadow-soft);
}

.builder-intro {
  max-width: 760px;
  margin-bottom: 2.6rem;
}

.details-title {
  margin: 0;
  font-size: clamp(2.5rem, 5vw, 4.5rem);
  line-height: 1;
}

.builder-lede {
  max-width: 34rem;
  margin: 1rem 0 0;
  color: var(--muted);
  font-size: 1.05rem;
}

.section-title {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  margin: 3.4rem 0 0.75rem;
  padding-top: 2.2rem;
  border-top: 1px solid var(--line);
  font-family: var(--font-display);
  font-size: clamp(1.55rem, 3vw, 2.15rem);
  line-height: 1.1;
}

.section-title::before {
  content: "";
  flex: 0 0 12px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--coral);
  box-shadow: 16px 0 0 var(--butter);
  margin-right: 1rem;
}

.canopy-question {
  margin: 0;
  color: var(--muted);
  font-weight: 600;
}

.canopy-toggle {
  display: flex;
  gap: 0.55rem;
  margin: 0.8rem 0 1.2rem;
}

.toggle-option {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  min-width: 76px;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0.55rem 0.82rem;
  background: var(--paper);
  cursor: pointer;
}

.toggle-option input {
  accent-color: var(--berry);
}

.toggle-option:has(input:checked) {
  border-color: var(--berry);
  color: var(--berry-dark);
  background: #fff1f6;
  box-shadow: 0 0 0 3px rgb(142 40 89 / 10%);
}

.service-cards {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(0.8rem, 2vw, 1.25rem);
}

#bouncy-house-options > .service-cards:last-child,
#bouncy-house-row-2,
#bouncy-house-row-3,
#blue-castle-theme-wrap,
#castle-color-theme-row {
  margin-top: 1.25rem;
}

#castle-color-theme-row {
  grid-template-columns: 1fr;
}

.castle-theme-wrap .service-cards {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.option-card {
  position: relative;
  display: grid;
  gap: 0.7rem;
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 0.55rem 0.55rem 0.85rem;
  background: var(--paper);
  box-shadow: 0 1px 0 rgb(83 39 57 / 4%);
  cursor: pointer;
  overflow: hidden;
  transition: transform 180ms ease, border-color 180ms ease, box-shadow 180ms ease;
}

.option-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-card);
}

.option-card img {
  width: 100%;
  aspect-ratio: 4 / 3;
  display: block;
  border-radius: 13px;
  object-fit: cover;
  background: #f4ece7;
}

.option-card span {
  padding-inline: 0.3rem;
  font-weight: 700;
}

.option-card.is-hidden {
  display: none;
}

#bouncy-house-options .option-card input {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  border: 0;
  clip: rect(0, 0, 0, 0);
  overflow: hidden;
  white-space: nowrap;
}

.option-card:has(input:checked) {
  border-color: var(--berry);
  background: #fff8fb;
  box-shadow: 0 0 0 3px rgb(142 40 89 / 12%), var(--shadow-card);
}

.option-card:has(input:checked)::after {
  content: "✓";
  position: absolute;
  top: 0.9rem;
  right: 0.9rem;
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border: 3px solid #fff;
  border-radius: 50%;
  color: #fff;
  background: var(--berry);
  font-weight: 700;
  box-shadow: 0 4px 10px rgb(39 28 45 / 22%);
}

.canopy-select-grid {
  max-width: 690px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  gap: 0.8rem;
  align-items: center;
}

.field {
  display: grid;
  gap: 0.55rem;
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 0.75rem;
  background: var(--paper);
}

.field span {
  font-size: 0.9rem;
  font-weight: 700;
}

.field input,
.canopy-dimension-field select {
  width: 100%;
  min-height: 46px;
  border: 1px solid #d9ccca;
  border-radius: 11px;
  padding: 0.65rem 0.75rem;
  color: var(--ink);
  background: #fff;
}

.field input:focus,
.canopy-dimension-field select:focus {
  border-color: var(--berry);
  outline: 3px solid rgb(142 40 89 / 12%);
}

.canopy-dimension-field {
  padding: 0.55rem;
}

.canopy-multiplier {
  color: var(--berry);
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 700;
}

.party-tent-map {
  max-width: 820px;
  margin-top: 1rem;
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 1rem;
  background: #fbf8f3;
}

.party-tent-map-title {
  margin: 0 0 0.6rem;
  font-weight: 700;
}

#party-tent-map-svg {
  width: 100%;
  max-width: 620px;
  display: block;
  margin: 0 auto;
}

.party-tent-map-caption {
  margin: 0.5rem 0 0;
  color: var(--muted);
  text-align: center;
  font-size: 0.9rem;
}

.party-tent-image {
  margin-top: 0.8rem;
  border-radius: 14px;
  padding: 0.45rem;
  background: #fff;
}

.party-tent-image-media {
  width: 100%;
  max-height: 380px;
  display: block;
  border-radius: 10px;
  object-fit: cover;
}

.qty-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

.qty-grid .field {
  align-content: start;
}

.item-thumb {
  width: 100%;
  aspect-ratio: 4 / 3;
  display: block;
  border-radius: 12px;
  object-fit: cover;
  background: #f5eeea;
}

#event-details {
  margin-top: 3.4rem;
  border-top: 1px solid var(--line);
  padding-top: 2.4rem;
}

#event-details .details-title {
  font-size: clamp(2rem, 4vw, 3rem);
}

.form-grid {
  margin-top: 1.3rem;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.9rem;
}

.field-wide {
  grid-column: 1 / -1;
}

.quote-box {
  position: relative;
  margin-top: 2rem;
  border: 0;
  border-radius: 22px;
  padding: 1.35rem 1.5rem;
  color: #fff;
  background: var(--berry);
  overflow: hidden;
}

.quote-box::after {
  content: "";
  position: absolute;
  width: 170px;
  height: 170px;
  right: -45px;
  bottom: -105px;
  border-radius: 50%;
  background: var(--coral);
}

.quote-label,
.quote-note {
  position: relative;
  z-index: 1;
}

.quote-label {
  margin: 0;
  color: rgb(255 255 255 / 78%);
  font-weight: 700;
}

.quote-amount {
  position: relative;
  z-index: 1;
  margin: 0.25rem 0 0;
  font-family: var(--font-display);
  font-size: clamp(2.2rem, 5vw, 3.5rem);
  line-height: 1;
}

.quote-note {
  margin: 0.55rem 0 0;
  color: rgb(255 255 255 / 76%);
  font-size: 0.9rem;
}

.submit-row {
  display: flex;
  justify-content: flex-end;
  margin-top: 1rem;
}

.submit-row .btn {
  min-height: 52px;
  padding-inline: 1.5rem;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  border: 0;
  clip: rect(0, 0, 0, 0);
  overflow: hidden;
  white-space: nowrap;
}

body.viewer-open {
  overflow: hidden;
}

.image-viewer {
  position: fixed;
  inset: 0;
  z-index: 2500;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 0.6rem;
  padding: 1.4rem;
  background: rgb(28 17 30 / 88%);
  backdrop-filter: blur(8px);
}

.image-viewer.is-hidden {
  display: none;
}

.image-viewer-figure {
  width: min(92vw, 980px);
  justify-self: center;
  margin: 0;
  z-index: 1;
}

.image-viewer-media {
  width: 100%;
  max-height: 78vh;
  object-fit: contain;
  border: 1px solid rgb(255 255 255 / 25%);
  border-radius: 14px;
  background: rgb(255 255 255 / 5%);
  touch-action: pan-y;
}

.image-viewer-caption {
  margin-top: 0.6rem;
  color: #fff;
  text-align: center;
  font-weight: 600;
}

.image-viewer-close,
.image-viewer-nav {
  border: 1px solid rgb(255 255 255 / 35%);
  border-radius: 999px;
  color: #fff;
  background: rgb(35 25 39 / 78%);
  cursor: pointer;
}

.image-viewer-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  padding: 0.5rem 0.85rem;
  font-size: 0.9rem;
}

.image-viewer-nav {
  position: absolute;
  top: 50%;
  z-index: 2;
  width: 46px;
  height: 46px;
  transform: translateY(-50%);
  font-size: 1.4rem;
}

.image-viewer-nav-prev {
  left: 0.75rem;
}

.image-viewer-nav-next {
  right: 0.75rem;
}

.image-viewer-nav.is-hidden {
  visibility: hidden;
}

@keyframes rise-in {
  from {
    opacity: 0;
    transform: translateY(12px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 920px) {
  .hero {
    grid-template-columns: 1fr;
    min-height: auto;
  }

  .hero-copy {
    max-width: 760px;
  }

  .hero-gallery {
    width: min(680px, 100%);
    min-height: 510px;
    margin: 0 auto;
  }

  .service-cards,
  .castle-theme-wrap .service-cards,
  .qty-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 620px) {
  .language-gate {
    width: min(100% - 1rem, 1240px);
  }

  .site-header {
    min-height: 72px;
    padding-inline: 0.35rem;
  }

  .header-cta {
    font-size: 0.78rem;
  }

  .hero {
    gap: 2rem;
    padding: 2.2rem 0 4rem;
  }

  h1 {
    font-size: clamp(3rem, 15vw, 4.5rem);
  }

  .hero-gallery {
    min-height: 390px;
  }

  .hero-photo-main {
    width: 74%;
    height: 72%;
  }

  .hero-photo-small {
    width: 39%;
  }

  .hero-burst {
    width: 58px;
    height: 58px;
    font-size: 1.5rem;
  }

  .services-builder {
    border-radius: 24px;
    padding: 1.2rem;
  }

  .service-cards,
  .castle-theme-wrap .service-cards {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.7rem;
  }

  .option-card {
    border-radius: 14px;
    padding: 0.4rem 0.4rem 0.7rem;
  }

  .option-card img {
    border-radius: 10px;
  }

  .option-card span {
    font-size: 0.88rem;
  }

  .qty-grid,
  .form-grid,
  .canopy-select-grid {
    grid-template-columns: 1fr;
  }

  .canopy-multiplier {
    justify-self: center;
  }

  .field-wide {
    grid-column: auto;
  }

  .submit-row {
    justify-content: stretch;
  }

  .submit-row .btn {
    width: 100%;
  }

  .image-viewer {
    grid-template-columns: 1fr;
    padding: 1rem;
  }

  .image-viewer-figure {
    width: 100%;
  }

  .image-viewer-nav {
    width: 42px;
    height: 42px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
