/* ==========================================================================
   WoodWellness — Custom CSS (loaded after TT25 parent theme)
   ========================================================================== */

/* --- Global --- */
html {
  scroll-behavior: smooth;
}

::selection {
  background-color: var(--wp--preset--color--accent-1);
  color: var(--wp--preset--color--white);
}

/* --- Reusable Utility Classes --- */
.label-text {
  font-size: clamp(0.75rem, 0.7rem + 0.25vw, 0.875rem) !important;
  font-weight: 600 !important;
  letter-spacing: 0.1em !important;
  text-transform: uppercase !important;
}

.subtitle {
  font-size: clamp(1.125rem, 1rem + 0.5vw, 1.375rem) !important;
  font-weight: 300 !important;
  letter-spacing: 0.02em !important;
}

/* --- Info Box Pattern --- */
.info-box {
  background-color: var(--wp--preset--color--accent-5);
  border-left: 4px solid var(--wp--preset--color--accent-6);
  border-radius: 0 12px 12px 0;
  padding: 1.5rem 2rem;
}

.info-box h4,
.info-box .wp-block-heading {
  margin-bottom: 0.5rem;
}

/* --- Sticky Header --- */
.site-header-sticky {
  position: sticky !important;
  top: 0;
  z-index: 1000;
  border-bottom: 1px solid var(--wp--preset--color--accent-3);
}

/* --- Cover Block Overlay Refinements --- */
.page-hero .wp-block-cover__background {
  background: linear-gradient(180deg, rgba(46,61,42,0.4) 0%, rgba(46,61,42,0.6) 100%) !important;
}

.cta-cover .wp-block-cover__background {
  background: rgba(44,36,32,0.5) !important;
}

/* --- Promo Banner --- */
.promo-banner-block {
  background: linear-gradient(135deg, var(--wp--preset--color--accent-1), var(--wp--preset--color--accent-4)) !important;
  border-radius: 16px;
  padding: 2rem clamp(2rem, 2rem + 4vw, 5rem);
  color: var(--wp--preset--color--white);
  position: relative;
  overflow: hidden;
}

.promo-banner-block::before {
  content: "";
  position: absolute;
  top: -30%;
  right: -10%;
  width: 250px;
  height: 250px;
  background: rgba(255, 255, 255, 0.06);
  border-radius: 50%;
  pointer-events: none;
}

.promo-banner-block h3,
.promo-banner-block .wp-block-heading {
  color: var(--wp--preset--color--white) !important;
}

.promo-banner-block p {
  color: rgba(255, 255, 255, 0.85) !important;
}

.promo-badge {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background-color: var(--wp--preset--color--accent-6);
  font-size: 2rem;
  flex-shrink: 0;
}

/* --- Pricing Table --- */
.pricing-table-section .wp-block-table {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.pricing-table-section .wp-block-table table {
  border-collapse: separate;
  border-spacing: 0;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 4px 24px rgba(44, 36, 32, 0.08);
  background-color: var(--wp--preset--color--white);
  width: 100%;
}

.pricing-table-section .wp-block-table thead th {
  background-color: var(--wp--preset--color--accent-4);
  color: var(--wp--preset--color--white);
  font-family: var(--wp--preset--font-family--playfair-display);
  font-weight: 600;
  font-size: var(--wp--preset--font-size--small);
  letter-spacing: 0.03em;
  padding: 1.1rem 1.25rem;
  text-align: center;
}

.pricing-table-section .wp-block-table thead th:first-child {
  text-align: left;
  border-radius: 16px 0 0 0;
}

.pricing-table-section .wp-block-table thead th:last-child {
  border-radius: 0 16px 0 0;
}

.pricing-table-section .wp-block-table td {
  padding: 1rem 1.25rem;
  text-align: center;
  border-bottom: 1px solid var(--wp--preset--color--accent-5);
}

.pricing-table-section .wp-block-table td:first-child {
  font-weight: 600;
  text-align: left;
  color: var(--wp--preset--color--contrast);
  white-space: nowrap;
}

.pricing-table-section .wp-block-table td:not(:first-child) {
  font-family: var(--wp--preset--font-family--playfair-display);
  font-size: var(--wp--preset--font-size--large);
  font-weight: 600;
}

.pricing-table-section .wp-block-table tbody tr:last-child td {
  border-bottom: none;
}

.pricing-table-section .wp-block-table tbody tr:last-child td:first-child {
  border-radius: 0 0 0 16px;
}

.pricing-table-section .wp-block-table tbody tr:last-child td:last-child {
  border-radius: 0 0 16px 0;
}

.pricing-table-section .wp-block-table tbody tr:hover {
  background-color: var(--wp--preset--color--accent-5);
}

/* Highlighted column (4 uur) — apply via table cell inline styles or nth-child */
.pricing-table-section .wp-block-table td:nth-child(4) {
  background-color: rgba(74, 103, 65, 0.08);
}

.pricing-table-section .wp-block-table thead th:nth-child(4) {
  background-color: var(--wp--preset--color--accent-1);
}

.pricing-table-section .wp-block-table tbody tr:hover td:nth-child(4) {
  background-color: rgba(74, 103, 65, 0.14);
}

.pricing-footnote {
  font-size: clamp(0.75rem, 0.7rem + 0.25vw, 0.875rem);
  color: rgba(44, 36, 32, 0.6);
  margin-top: 0.75rem;
}

/* --- Package Cards --- */
.package-card-block {
  border-radius: 16px !important;
  overflow: hidden;
  box-shadow: 0 2px 12px rgba(44, 36, 32, 0.06);
  transition: box-shadow 0.3s ease, transform 0.3s ease;
  background-color: var(--wp--preset--color--white);
}

.package-card-block:hover {
  box-shadow: 0 8px 40px rgba(44, 36, 32, 0.12);
  transform: translateY(-3px);
}

.package-card-block .wp-block-image img {
  aspect-ratio: 16 / 10;
  object-fit: cover;
  width: 100%;
}

.package-card-meta {
  display: flex;
  gap: 1rem;
  font-size: var(--wp--preset--font-size--small);
  color: var(--wp--preset--color--accent-2);
  font-weight: 600;
}

/* --- Price Cards (gift vouchers) --- */
.price-card-block {
  background-color: var(--wp--preset--color--white);
  border: 1px solid var(--wp--preset--color--accent-3);
  border-radius: 16px;
  padding: 2rem;
  text-align: center;
  transition: box-shadow 0.3s ease, transform 0.3s ease;
}

.price-card-block:hover {
  box-shadow: 0 4px 24px rgba(44, 36, 32, 0.08);
  transform: translateY(-3px);
}

.price-card-block.featured {
  border-top: 4px solid var(--wp--preset--color--accent-1);
  box-shadow: 0 4px 24px rgba(44, 36, 32, 0.08);
}

.price-amount {
  font-family: var(--wp--preset--font-family--playfair-display);
  font-size: var(--wp--preset--font-size--xx-large);
  font-weight: 700;
  color: var(--wp--preset--color--accent-2);
  margin: 1rem 0;
}

/* --- Step Numbers (How It Works) --- */
.step-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background-color: var(--wp--preset--color--accent-1);
  color: var(--wp--preset--color--white);
  font-family: var(--wp--preset--font-family--playfair-display);
  font-size: var(--wp--preset--font-size--x-large);
  font-weight: 700;
  margin: 0 auto 1rem;
}

/* --- Gallery Grid --- */
.gallery-grid .wp-block-image img {
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: 12px;
}

.gallery-grid .wp-block-image figure {
  overflow: hidden;
  border-radius: 12px;
}

/* --- Separator (short decorative line) --- */
.wp-block-separator.short-line {
  max-width: 120px;
  margin-left: auto;
  margin-right: auto;
  border-color: var(--wp--preset--color--accent-3);
}

/* --- Card Styles (value props, about page) --- */
.card-block {
  background-color: var(--wp--preset--color--accent-5);
  border-radius: 16px;
  padding: 2rem;
  transition: box-shadow 0.3s ease, transform 0.3s ease;
}

.card-block:hover {
  box-shadow: 0 4px 24px rgba(44, 36, 32, 0.08);
  transform: translateY(-2px);
}

.card-block-dark {
  background-color: var(--wp--preset--color--accent-1) !important;
  color: var(--wp--preset--color--white);
}

.card-block-dark h3,
.card-block-dark .wp-block-heading,
.card-block-dark p {
  color: var(--wp--preset--color--white) !important;
}

/* --- Footer Styles --- */
.footer-social-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background-color: rgba(255, 255, 255, 0.1);
  transition: background-color 0.3s ease;
}

.footer-social-icon:hover {
  background-color: var(--wp--preset--color--accent-6);
}

/* --- Image Radius Helper --- */
.rounded-image img {
  border-radius: 16px !important;
}

.rounded-image figure {
  overflow: hidden;
  border-radius: 16px;
}

/* --- Responsive --- */
@media (max-width: 768px) {
  .promo-banner-block {
    text-align: center;
    padding: 2rem !important;
  }

  .pricing-table-section .wp-block-table th,
  .pricing-table-section .wp-block-table td {
    padding: 0.75rem;
    font-size: var(--wp--preset--font-size--small);
  }

  .pricing-table-section .wp-block-table td:not(:first-child) {
    font-size: var(--wp--preset--font-size--medium);
  }
}
