.price-block-section {
  text-align: center;
  padding: 40px 0;
  background-color: #b4abaa8f;
  background-image: url('https://www.highchaparral.se/wp-content/uploads/2025/01/paper-texture-web.jpg');
  background-size: calc(100% + 1px) auto;
  background-repeat: repeat-y; /* Prevents the image from repeating */
  background-position: center; /* Centers the image */
  background-blend-mode: darken;
  position: relative;
  overflow: hidden;
}

.price-block-section__header,
.price-block-cards,
.price-block-cta {
  max-width: 1200px;
  margin: 50px auto;
  position: relative;
  z-index: 2;
}

.price-block-section__header h2 {
  font-size: 1.4rem;
}

.price-block-section__header p {
  font-size: 1.1rem;
  max-width: 800px;
  margin: auto;
}

.price-block-cards {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2em;
  flex-wrap: wrap;
  padding: 0;
  list-style: none; /* remove bullets from UL wrapper */
}

.price-block-card {
  width: auto;
  box-shadow: 8px 11px 20.1px 0 rgba(0, 0, 0, 0.25);
  color: #f7f2e7;
  position: relative;
  list-style: none; /* remove bullets from LI */
  background-color: #534440;
  background-image: url('https://www.highchaparral.se/wp-content/uploads/2025/01/paper-texture-web.jpg');
  background-size: cover; /* Ensures the image covers the entire background */
  background-position: center; /* Centers the image */
  background-repeat: no-repeat; /* Prevents the image from repeating */
  background-blend-mode: multiply;  
  display: flex;
  flex-direction: column;
}

.price-block-card-info {
  padding: 3em 2.3em;
  display: flex;
  flex-direction: column;
  justify-content: space-between; 
  height: 100%;
}

.price-block-card h3 {
  font-size: 1.4rem;
}
.price-flex-container {
  display: flex;
  gap: 12px;
  margin: 24px 0;
  border-top: 1px solid #ffffff79;
  border-bottom: 1px solid #ffffff79;
}
.price-flex-container .price {
  flex: 1;
  font-size: 1.3em;
  margin: 0;
  padding: 1rem 0;
  border: none;  
}

.price-block-note {
  font-size: 1.1rem;
  opacity: 0.85;
  padding-top: 1rem;
}

.feature-list {
  margin: 1em 0;
  text-align: left;
}

.feature-list ul {
  margin: 0.75rem 0 0;
  padding-left: 0;
}

.feature-list li {
  text-align: left;
  margin: 0.5em 0;
  list-style: none;
}

.feature-list .check-icon {
  margin-right: 0.6rem;
  color: #f7f2e7;
}

.price-block-cta p {
  font-size: 2rem;
}

.price-block-card-Corner_tr_dark,
.price-block-card-Corner_tl_dark,
.price-block-card-Corner_br_dark,
.price-block-card-Corner_bl_dark {
  position: absolute;
  width: 60px;
  height: auto;
  pointer-events: none; /* decorative */
}

.price-block-card-Corner_tr_dark {
  top: 10px;
  right: 10px;
}

.price-block-card-Corner_tl_dark {
  top: 10px;
  left: 10px;
}

.price-block-card-Corner_br_dark {
  bottom: 10px;
  right: 10px;
}

.price-block-card-Corner_bl_dark {
  bottom: 10px;
  left: 10px;
}

/* CTA button container */
.price-block-cta h3 {
  margin-bottom: 1rem;
}

/* Responsive */
@media (min-width: 768px) and (max-width: 1024px) {
  /* Tablet-specific styles go here */
  .price-block-cards {
    grid-template-columns: repeat(2, 1fr);
  }
}


@media (max-width: 768px) {
  .price-block-section {
    padding: 25px;
  }
  .price-block-cards {
    grid-template-columns: repeat(1, 1fr);
  }
  .price-block-card:last-child {
    grid-column: unset;
    display: flex;
  }
  .price-block-section__header h2 {
    font-size: 1.7rem;
  }
  .price-block-card h3 {
    font-size: 1.2rem; 
  }
  .price-block-section__header p {
    font-size: 1rem;
  }
  .price-block-section__header {
    text-align: left;
  }
}

/* Card image styling */
.price-block-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  aspect-ratio: 16 / 9;
  -webkit-mask-image: url(https://www.highchaparral.se/wp-content/themes/hc-theme/img/ripped-paper-mask-bottom.png);
  mask-image: url(https://www.highchaparral.se/wp-content/themes/hc-theme/img/ripped-paper-mask-bottom.png);
  -webkit-mask-repeat: no-repeat;
  mask-repeat: no-repeat;
  -webkit-mask-size: 100% 100%;
  mask-size: 100% 100%;
  -webkit-mask-position: center;
  mask-position: center;
}

/* ===========================
   WCAG 2.2 ADDITIONS
=========================== */

/* Visually hidden text (e.g., "Price:" or "(opens in new tab)") */
.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0);
  white-space: nowrap; border: 0;
}

/* Focus visible outline */
.price-block-section a.button:focus-visible,
.price-block-section .cta-button:focus-visible {
  outline: 3px solid currentColor;
  outline-offset: 3px;
  scroll-margin: 1rem; /* prevents being hidden under sticky nav */
}

/* Comfortable targets for links/buttons */
.price-block-section a.button,
.price-block-section .cta-button {
  min-height: 44px;
  min-width: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  max-width: max-content;
  margin: 0 auto;
}

/* Decorative dirt images pointer-events none */
.image-text-Dirt_light-top,
.image-text-Dirt_light-right,
.image-text-Dirt_light-left,
.image-text-Dirt_light-bottom {
  pointer-events: none;
}
.price-block-section .image-text-Dirt_light-left, .price-block-section .image-text-Dirt_light-right {
  display: none !important;
}
.description-flex-container .description-text {
  text-align: left !important;
}
