.hive-page {
  --yellow: #f3c64e;
  --soft-yellow: #fff0bd;
  --pink: #ff7f73;
  --soft-pink: #ffe2df;
  --hive-hex-mask: url("../../assets/shared/icons/shapes/hexagon.svg");
}

.brand--hive {
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.site-header .brand--hive .brand-logo {
  display: block;
  width: clamp(58px, 6vw, 76px);
  height: clamp(58px, 6vw, 76px);
  object-fit: contain;
}

.hive-page .site-header > .brand--hive {
  left: 50vw;
}

.hive-hero {
  background-color: rgba(16, 45, 66, 0.68);
  background-image: url("../../assets/hive/photos/treatments/head-spa-1280w.webp");
  background-position: center 45%;
  background-blend-mode: multiply;
}

.hive-hero::after {
  display: none;
}

.hive-hero .hero-copy {
  position: relative;
  z-index: 1;
  max-width: 720px;
}

.hive-intro__bee,
.hive-card-icon,
.hive-products__art,
.hive-cta__art {
  object-fit: contain;
  pointer-events: none;
  user-select: none;
}

.hive-intro {
  position: relative;
  display: grid;
  grid-template-columns: minmax(280px, 0.86fr) minmax(320px, 1.14fr);
  gap: clamp(28px, 5vw, 72px);
  align-items: center;
  padding: clamp(58px, 7vw, 96px) clamp(18px, 5vw, 72px);
  background: var(--paper);
  border-bottom: 1px solid rgba(23, 63, 95, 0.1);
  z-index: 3;
}

.hive-intro::after {
  display: none;
}

.hive-intro__copy {
  position: relative;
  z-index: 4;
  max-width: 620px;
}

.hive-intro__copy p:not(.eyebrow) {
  color: var(--muted);
}

.hive-intro__bee {
  display: none;
}

.hive-photo-stack {
  position: relative;
  z-index: 4;
  min-height: clamp(420px, 52vw, 620px);
}

.hive-photo-stack img {
  border-radius: 8px;
  box-shadow: 0 8px 22px rgba(23, 63, 95, 0.08);
}

.hive-photo-main {
  height: clamp(380px, 48vw, 560px);
}

.hive-photo-secondary {
  position: absolute;
  right: 0;
  bottom: 0;
  width: min(46%, 280px);
  aspect-ratio: 667 / 732;
  border: 0;
  -webkit-mask: var(--hive-hex-mask) center / contain no-repeat;
  mask: var(--hive-hex-mask) center / contain no-repeat;
}

.hive-team {
  position: relative;
  overflow: hidden;
  display: grid;
  grid-template-columns: minmax(260px, 0.38fr) minmax(420px, 0.62fr);
  gap: clamp(24px, 5vw, 64px);
  align-items: center;
  padding-block: clamp(56px, 7vw, 94px);
  background:
    linear-gradient(180deg, rgba(255, 253, 248, 0.98), rgba(255, 248, 242, 0.96)),
    var(--paper);
}

.hive-profile-testimonials {
  background:
    linear-gradient(180deg, rgba(255, 253, 248, 0.98), rgba(246, 248, 241, 0.96)),
    var(--paper);
}

.hive-profile-testimonials .profile-testimonial-card__stars {
  color: var(--clay);
}

.hive-profile-testimonials .profile-testimonial-card__avatar {
  background: var(--soft-yellow);
}

.hive-team::before {
  content: "";
  position: absolute;
  inset: auto clamp(18px, 5vw, 72px) 0;
  height: 1px;
  background: rgba(23, 63, 95, 0.1);
}

.hive-team__intro {
  position: relative;
  z-index: 1;
  max-width: 500px;
}

.hive-team__intro p:not(.eyebrow) {
  max-width: 470px;
  color: var(--muted);
}

.hive-team__intro h2 {
  font-family: var(--display-font);
  font-size: clamp(2.2rem, 4.2vw, 3.5rem);
  letter-spacing: 0;
}

.hive-team__intro .eyebrow {
  color: var(--clay);
}

.hive-team__strip {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(16px, 2.2vw, 26px);
}

.hive-team-card {
  position: relative;
  display: grid;
  grid-template-columns: minmax(116px, 0.48fr) minmax(0, 0.52fr);
  align-items: stretch;
  min-height: 210px;
  overflow: hidden;
  border: 1px solid rgba(23, 63, 95, 0.1);
  border-radius: 8px;
  background: rgba(255, 253, 248, 0.94);
  box-shadow: var(--premium-shadow);
}

.hive-team-card:nth-child(2) {
  background: rgba(246, 248, 241, 0.95);
}

.hive-team-card::before {
  content: attr(data-initials);
  grid-column: 1;
  grid-row: 1;
  display: grid;
  place-items: center;
  min-height: 210px;
  color: var(--deep-blue);
  background:
    linear-gradient(135deg, rgba(246, 248, 241, 0.94), rgba(255, 248, 242, 0.98)),
    var(--paper);
  font-family: var(--display-font);
  font-size: clamp(2.2rem, 5vw, 3.5rem);
  line-height: 1;
}

.hive-team-card img {
  position: relative;
  z-index: 1;
  grid-column: 1;
  grid-row: 1;
  width: 100%;
  height: 100%;
  min-height: 210px;
  object-fit: cover;
  object-position: center 24%;
  filter: saturate(0.96) contrast(1.02);
}

.hive-team-card--image-missing img {
  display: none;
}

.hive-team-card__copy {
  grid-column: 2;
  display: grid;
  align-content: center;
  gap: 8px;
  padding: clamp(18px, 2.6vw, 28px);
}

.hive-team-card h3 {
  color: var(--deep-blue);
  font-family: var(--display-font);
  font-size: clamp(1.24rem, 2.2vw, 1.72rem);
  line-height: 1.08;
  letter-spacing: 0;
}

.hive-team-card p {
  margin: 0;
  color: var(--muted);
  font-size: 0.92rem;
  font-weight: 700;
  line-height: 1.45;
}

.hive-team__bee {
  position: absolute;
  right: clamp(18px, 4vw, 58px);
  bottom: clamp(18px, 3vw, 42px);
  width: clamp(62px, 8vw, 110px);
  opacity: 0.24;
  transform: rotate(-10deg);
}

.hive-pricing {
  padding-block: clamp(36px, 5vw, 64px);
  color: var(--paper);
  background: var(--navy);
  scroll-margin-top: 90px;
}

.hive-pricing .section-heading {
  margin-bottom: 28px;
}

.hive-pricing .section-heading h2 {
  margin: 0;
  color: var(--paper);
  font-size: clamp(2rem, 4vw, 3.25rem);
}

.hive-pricing-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  align-items: start;
  gap: 16px;
}

.hive-price-card {
  container-type: inline-size;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: start;
  gap: 18px 12px;
  min-width: 0;
  padding: 24px;
  border: 1px solid #e5dbc8;
  border-top: 3px solid #c7a45b;
  border-radius: 6px;
  color: var(--deep-blue);
  background: var(--paper);
}

.hive-price-card__heading {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: baseline;
  gap: 16px 12px;
  grid-column: 1 / -1;
  padding-bottom: 18px;
  border-bottom: 1px solid #e5dbc8;
}

.hive-price-card__heading h3 {
  grid-column: 1 / -1;
  margin: 0;
  color: var(--deep-blue);
  font-family: var(--display-font);
  font-size: clamp(1.25rem, 1.75vw, 1.625rem);
  font-weight: 400;
  line-height: 1.3;
}

.hive-price-card__duration,
.hive-price-card__cost {
  margin: 0;
  white-space: nowrap;
}

.hive-price-card__duration {
  color: #6a5733;
  font-size: 1rem;
  font-weight: 600;
}

.hive-price-card__cost {
  font-family: var(--display-font);
  font-size: 2rem;
  line-height: 1.1;
  font-variant-numeric: tabular-nums;
}

.hive-price-card__description {
  grid-column: 1 / -1;
  min-height: 4.5em;
  margin: 0;
  font-size: 1rem;
  line-height: 1.5;
}

.hive-price-card__details-trigger {
  grid-column: 1;
  justify-self: start;
  text-align: left;
}

html:has(.hive-service-dialog) {
  scrollbar-gutter: stable;
}

html:has(.hive-service-dialog[open]) {
  overflow: hidden;
}

.hive-service-dialog {
  box-sizing: border-box;
  width: min(480px, calc(100% - 32px));
  max-height: calc(100dvh - 48px);
  padding: clamp(20px, 4vw, 32px);
  border: 1px solid #e5dbc8;
  border-top: 3px solid #c7a45b;
  border-radius: 6px;
  color: var(--deep-blue);
  background: var(--paper);
  overscroll-behavior: contain;
}

.hive-service-dialog::backdrop {
  background: rgb(10 34 50 / 68%);
}

.hive-service-dialog__header {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px 16px;
}

.hive-service-dialog__header h2 {
  margin: 0;
  font: 400 1.625rem/1.3 var(--display-font);
  overflow-wrap: anywhere;
}

.hive-service-dialog__header form {
  margin: 0 0 0 auto;
}

.hive-service-dialog__meta {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px 16px;
  margin: 16px 0 0;
  padding-bottom: 20px;
  border-bottom: 1px solid #e5dbc8;
  font-size: 1rem;
}

.hive-service-dialog__meta span {
  font: 400 2rem/1.1 var(--display-font);
}

.hive-service-dialog ul {
  display: grid;
  gap: 12px;
  margin: 24px 0;
  padding-left: 20px;
  font-size: 1rem;
  line-height: 1.5;
}

.hive-service-dialog li::marker {
  color: #92713b;
}

.hive-service-dialog__book {
  width: 100%;
}

.hive-price-card__book {
  grid-column: 2;
}

.hive-price-card--botanical {
  grid-template-columns: minmax(220px, 0.8fr) minmax(0, 1.4fr) auto;
  gap: 12px 32px;
  margin-top: 20px;
  background: #f4f0e6;
}

.hive-price-card--botanical .hive-price-card__heading {
  grid-column: 1;
  grid-row: 1 / span 3;
  align-self: center;
  padding: 0 32px 0 0;
  border-right: 1px solid #d9ccb2;
  border-bottom: 0;
}

.hive-price-card--botanical .hive-price-card__description {
  grid-column: 2 / -1;
  min-height: 0;
  align-self: center;
}

.hive-price-card--botanical .hive-price-card__details-trigger {
  grid-column: 2;
}


.hive-price-card--botanical .hive-price-card__book {
  grid-column: 3;
}

.hive-pricing__notes {
  max-width: 820px;
  margin-top: 24px;
}

.hive-pricing__notes p {
  margin: 0;
  font-size: 1rem;
  line-height: 1.6;
}

.hive-pricing__notes .hive-pricing__note {
  margin-top: 10px;
  color: #c5d0d7;
  font-size: 0.875rem;
}

.hive-pricing__sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

@media (max-width: 1100px) {
  .hive-pricing-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .hive-price-card__heading h3 {
    font-size: 1.5rem;
  }

  .hive-price-card__description {
    min-height: 3em;
  }
}

@media (max-width: 720px) {
  .hive-pricing {
    padding-inline: 20px;
  }

  .hive-pricing .section-heading {
    margin-bottom: 20px;
  }

  .hive-pricing-grid {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .hive-price-card,
  .hive-price-card--botanical {
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 12px 16px;
    padding: 18px 20px;
  }

  .hive-price-card__heading,
  .hive-price-card--botanical .hive-price-card__heading {
    grid-column: 1 / -1;
    grid-row: auto;
    gap: 4px 12px;
    padding: 0;
    border: 0;
  }

  .hive-price-card__heading h3 {
    grid-column: 1;
    font-size: 1.375rem;
  }

  .hive-price-card__duration {
    grid-column: 1;
    font-size: 0.875rem;
  }

  .hive-price-card__cost {
    grid-column: 2;
    grid-row: 1 / span 2;
    align-self: center;
    font-size: 1.875rem;
  }

  .hive-price-card__description,
  .hive-price-card--botanical .hive-price-card__description {
    grid-column: 1 / -1;
    min-height: 0;
  }

  .hive-price-card--botanical .hive-price-card__details-trigger {
    grid-column: 1;
  }


  .hive-price-card--botanical .hive-price-card__book {
    grid-column: 2;
  }
}

@container (max-width: 12rem) {
  .hive-price-card__heading h3 {
    grid-column: 1 / -1;
    overflow-wrap: anywhere;
  }

  .hive-price-card__duration,
  .hive-price-card__cost {
    grid-row: 2;
  }

  .hive-price-card .hive-price-card__details-trigger,
  .hive-price-card .hive-price-card__book {
    grid-column: 1 / -1;
  }

  .hive-price-card__book {
    justify-self: stretch;
  }
}

.hive-foot-spa {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  align-items: center;
  gap: 24px clamp(24px, 5vw, 64px);
  padding-block: clamp(32px, 4vw, 48px);
  border-bottom: 1px solid #e5dbc8;
  color: var(--deep-blue);
  background: var(--paper);
}

.hive-foot-spa__copy h2 {
  margin: 0 0 10px;
  font: 400 clamp(1.75rem, 3vw, 2.25rem)/1.3 var(--display-font);
}

.hive-foot-spa__copy p {
  margin: 0;
  font-size: 1rem;
}

.hive-foot-spa__price {
  display: grid;
  gap: 6px;
  margin: 0;
  white-space: nowrap;
}

.hive-foot-spa__price span {
  color: #6a5733;
  font-size: 1rem;
  font-weight: 600;
}

.hive-foot-spa__price strong {
  font: 400 2rem/1.1 var(--display-font);
}

@media (max-width: 720px) {
  .hive-foot-spa {
    grid-template-columns: auto minmax(0, 1fr);
    padding-inline: 20px;
  }

  .hive-foot-spa__copy {
    grid-column: 1 / -1;
  }

  .hive-foot-spa__book {
    justify-self: end;
  }
}

.hive-benefits {
  background-color: var(--cream);
  background-image: linear-gradient(180deg, rgba(255, 248, 242, 0.98), rgba(255, 253, 248, 0.98));
}

.hive-card-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
  padding-top: clamp(38px, 5vw, 56px);
}

.hive-card-grid article,
.hive-products__panel {
  border: 1px solid rgba(23, 63, 95, 0.12);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 8px 22px rgba(23, 63, 95, 0.035);
}

.hive-card-grid article {
  position: relative;
  min-height: 100%;
  padding: clamp(50px, 6vw, 68px) clamp(18px, 3vw, 26px) clamp(18px, 3vw, 26px);
  border-top: 5px solid var(--yellow);
  overflow: visible;
  text-align: center;
}

.hive-card-grid article::after {
  display: none;
}

.hive-card-icon {
  position: absolute;
  top: 0;
  left: 50%;
  width: clamp(92px, 8.6vw, 114px);
  height: auto;
  aspect-ratio: 1.16 / 1;
  margin: 0;
  padding: clamp(9px, 1.1vw, 12px) clamp(11px, 1.4vw, 15px);
  background: var(--soft-yellow);
  border-radius: 8px;
  clip-path: none;
  box-shadow: none;
  filter: drop-shadow(0 10px 16px rgba(23, 63, 95, 0.14));
  transform: translate(-50%, -50%);
  z-index: 2;
}

.hive-card-grid article::before {
  position: absolute;
  top: 0;
  left: 50%;
  width: clamp(100px, 9.2vw, 124px);
  height: auto;
  aspect-ratio: 1.16 / 1;
  background: var(--paper);
  border-radius: 8px;
  clip-path: none;
  content: "";
  transform: translate(-50%, -50%);
  z-index: 1;
}

.hive-card-grid h3 {
  color: var(--deep-blue);
  font-family: var(--display-font);
  font-size: clamp(1.35rem, 2.4vw, 1.8rem);
}

.hive-card-grid p {
  margin-bottom: 0;
  color: var(--muted);
}

.hive-products {
  display: grid;
  grid-template-columns: minmax(320px, 1.05fr) minmax(280px, 0.95fr);
  gap: clamp(24px, 5vw, 60px);
  align-items: stretch;
  background: linear-gradient(135deg, rgba(255, 253, 248, 0.98) 0%, rgba(247, 251, 253, 0.92) 100%);
}

.hive-products__panel {
  position: relative;
  overflow: hidden;
  padding: clamp(24px, 4vw, 38px);
  border-top: 5px solid var(--yellow);
}

.hive-products__panel p:not(.eyebrow) {
  position: relative;
  z-index: 1;
  color: var(--muted);
}

.hive-products__panel h2,
.hive-products__panel .eyebrow,
.hive-products__panel .check-list {
  position: relative;
  z-index: 1;
}

.hive-products .hive-products__art {
  position: absolute;
  right: -18px;
  top: 18px;
  width: clamp(74px, 10vw, 112px);
  min-height: 0;
  height: auto;
  opacity: 0.14;
  transform: rotate(6deg);
}

.hive-products__feature {
  position: relative;
  display: grid;
  min-height: 420px;
  align-content: center;
  justify-items: center;
  overflow: hidden;
  padding: clamp(28px, 5vw, 52px);
  border: 1px solid rgba(23, 63, 95, 0.12);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.82);
  box-shadow: var(--premium-shadow);
  text-align: center;
}

.hive-products__feature p {
  position: relative;
  z-index: 1;
  max-width: 420px;
  margin-bottom: 12px;
  color: var(--deep-blue);
  font-family: var(--display-font);
  font-size: clamp(2.4rem, 5vw, 4.9rem);
  line-height: 0.96;
}

.hive-products__feature span {
  position: relative;
  z-index: 1;
  max-width: 360px;
  color: var(--muted);
  font-weight: 700;
}

.hive-products__feature img {
  position: absolute;
  right: clamp(-18px, -2vw, -8px);
  bottom: clamp(-18px, -2vw, -8px);
  width: clamp(150px, 18vw, 230px);
  opacity: 0.08;
  transform: rotate(-8deg);
}

.hive-cta {
  position: relative;
  overflow: hidden;
  display: grid;
  grid-template-columns: minmax(260px, 0.9fr) minmax(340px, 1.1fr);
  gap: clamp(30px, 6vw, 88px);
  align-items: center;
  min-height: clamp(410px, 40vw, 520px);
  padding-block: clamp(54px, 7vw, 86px);
  background-color: var(--soft-yellow);
  background-image:
    radial-gradient(circle at 15% 22%, rgba(255, 253, 248, 0.86) 0 18%, transparent 40%),
    linear-gradient(135deg, rgba(255, 253, 248, 0.96) 0%, rgba(255, 240, 189, 0.9) 100%);
  border-block: 1px solid rgba(23, 63, 95, 0.1);
}

.hive-cta::after {
  position: absolute;
  inset: 0;
  background-image: url("../../assets/hive/textures/patterns/honeycomb-grid.svg");
  background-position: center;
  background-repeat: repeat;
  background-size: clamp(520px, 64vw, 920px) auto;
  content: "";
  opacity: 0.38;
  pointer-events: none;
}

.hive-cta__mark,
.hive-cta__copy {
  position: relative;
  z-index: 1;
}

.hive-cta__mark {
  display: grid;
  place-items: center;
  min-height: clamp(250px, 34vw, 430px);
}

.hive-cta h2 {
  max-width: 560px;
  margin-bottom: clamp(14px, 2vw, 18px);
  color: var(--deep-blue);
  font-family: var(--sans-font);
  font-size: clamp(1.65rem, 2.25vw, 2.25rem);
  font-weight: 800;
  line-height: 1.16;
}

.hive-cta__copy {
  max-width: 600px;
}

.hive-cta__copy .eyebrow {
  color: var(--clay);
}

.hive-cta__copy p:not(.eyebrow) {
  max-width: 530px;
  margin: 0 0 clamp(22px, 3vw, 34px);
  color: var(--muted);
  font-size: clamp(1rem, 1.35vw, 1.16rem);
  font-weight: 600;
  line-height: 1.65;
}

.hive-cta__art {
  width: clamp(250px, 32vw, 460px);
  filter: drop-shadow(0 22px 34px rgba(16, 45, 66, 0.12));
}

.site-footer {
  position: relative;
  margin-top: 0;
  padding-top: clamp(46px, 7vw, 72px);
}

.site-footer::before {
  display: none;
}

.site-footer .hive-updates {
  position: relative;
  z-index: 1;
  margin: 0 auto clamp(26px, 5vw, 48px);
}

@media (max-width: 980px) {
  .hive-intro,
  .hive-products,
  .hive-cta {
    grid-template-columns: 1fr;
  }

  .hive-team {
    grid-template-columns: 1fr;
  }

  .hive-team__intro,
  .hive-team__intro p:not(.eyebrow) {
    max-width: 720px;
  }

  .hive-cta {
    gap: clamp(20px, 5vw, 36px);
    text-align: center;
  }

  .hive-cta::after {
    background-size: 620px auto;
    opacity: 0.32;
  }

  .hive-cta__copy,
  .hive-cta__copy p:not(.eyebrow),
  .hive-cta h2 {
    margin-inline: auto;
  }

  .hive-cta__art {
    order: -1;
    width: clamp(210px, 52vw, 340px);
  }

  .hive-card-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 720px) {
  .hive-hero {
    background-position: 58% center;
  }

  .hive-intro__bee {
    display: none;
  }

  .hive-team {
    padding-top: 104px;
  }

  .hive-team__strip {
    grid-template-columns: 1fr;
  }

  .hive-team-card {
    grid-template-columns: minmax(108px, 0.42fr) minmax(0, 0.58fr);
    min-height: 176px;
  }

  .hive-team-card::before,
  .hive-team-card img {
    min-height: 176px;
  }

  .hive-team-card__copy {
    padding: 18px;
  }

  .hive-team-card h3 {
    font-size: 1.2rem;
  }

  .hive-team__bee {
    top: 24px;
    right: 16px;
    bottom: auto;
    width: 70px;
  }

  .hive-photo-stack {
    min-height: 0;
  }

  .hive-photo-main {
    height: auto;
    aspect-ratio: 4 / 5;
  }

  .hive-photo-secondary {
    position: static;
    width: 72%;
    margin: -54px auto 0;
  }

  .hive-card-grid {
    grid-template-columns: 1fr;
  }

}
