/* ==========================================================================
   BLOCK PATTERNS - the Aurelle sections rebuilt with core blocks
   (patterns/*.php). Also loaded in the editor.
   ========================================================================== */

.aurelle-section,
.aurelle-hero {
  padding: var(--section-py) var(--bs-gutter-x);

  > * + * {
    margin-block-start: 0;
  }

  .wp-block-heading {
    margin-bottom: var(--space-4);
  }
}

.aurelle-section-head {
  margin-bottom: var(--space-5);

  .wp-block-heading {
    margin-bottom: 0;
  }
}

/* Pill label */
.aurelle-pill {
  display: inline-flex;
  align-items: center;
  gap: var(--space-1);
  margin-bottom: var(--space-3);
  padding: var(--space-0-5) var(--space-1-5) var(--space-0-5) var(--space-1);
  border: var(--border-width) solid var(--color-border);
  border-radius: var(--radius-pill);
  background-color: var(--color-surface);
  font-size: var(--font-size-xs);
  font-weight: var(--fw-semibold);

  &::before {
    content: '';
    width: 0.5rem;
    height: 0.5rem;
    border-radius: var(--radius-round);
    background-color: var(--color-success);
  }
}

/* Hero */
.aurelle-hero {
  padding-top: var(--space-4);

  &__grid {
    gap: var(--space-6);
  }

  &__title {
    font-size: var(--font-size-display) !important;
    line-height: 1.02;
    letter-spacing: -0.02em;
  }

  &__text {
    max-width: 32rem;
    margin-bottom: var(--space-4);
    font-size: var(--font-size-md);
    color: var(--color-text-muted);
  }

  &__image img {
    width: 100%;
    aspect-ratio: 6 / 5;
    object-fit: cover;
  }
}

/* Collections */
.aurelle-collections {
  gap: var(--space-2);
}

.aurelle-collection-card {
  border-radius: var(--radius-xl);
  overflow: hidden;

  .wp-block-cover__background {
    background: linear-gradient(0deg, rgba(20, 42, 37, 0.8) 0%, rgba(20, 42, 37, 0) 55%) !important;
    opacity: 1 !important;
  }

  .wp-block-cover__image-background {
    transition: transform 0.9s var(--ease-out);
  }

  h3 {
    margin: 0 !important;
    font-size: var(--font-size-xl);
    color: var(--color-white);

    a {
      color: inherit;
      text-decoration: none;

      &::after {
        content: '';
        position: absolute;
        inset: 0;
      }
    }
  }
}

/* Statement */
.aurelle-statement__text {
  font-family: var(--font-heading);
  font-size: var(--font-size-statement);
  line-height: 1.25;
  letter-spacing: var(--ls-tight);
}

/* Story */
.aurelle-story {
  gap: var(--space-6);

  .wp-block-media-text__media img {
    border-radius: var(--radius-2xl);
    aspect-ratio: 6 / 7;
    object-fit: cover;
  }

  .wp-block-media-text__content {
    padding: 0 !important;
  }
}

/* Features */
.aurelle-features {
  gap: var(--space-2);

  &__title {
    margin-bottom: var(--space-1) !important;
    font-family: var(--font-body);
    font-size: var(--font-size-md);
    font-weight: var(--fw-semibold);
  }

  &__text {
    margin: 0;
    font-size: var(--font-size-sm);
    color: var(--color-text-muted);
  }
}

/* Testimonials */
.aurelle-testimonials {
  gap: var(--space-2);
}

.aurelle-stars {
  margin-bottom: var(--space-1-5);
  color: var(--color-rating);
  letter-spacing: 0.15em;
}

.aurelle-testimonials__quote {
  font-family: var(--font-heading);
  font-size: var(--font-size-lg);
  line-height: var(--lh-snug);
}

.aurelle-testimonials__author {
  gap: var(--space-1-5);
  margin-top: var(--space-3);
  font-size: var(--font-size-xs);
  color: var(--color-text-muted);

  figure {
    margin: 0;
  }

  p {
    margin: 0;
  }

  strong {
    font-size: var(--font-size-sm);
    color: var(--color-text);
  }
}

/* Call to action */
.aurelle-cta {
  padding: var(--space-8) var(--space-3);
  border-radius: var(--radius-2xl);
  background-image: radial-gradient(circle at 15% 20%, rgba(168, 90, 53, 0.45), transparent 40%),
    radial-gradient(circle at 85% 85%, rgba(223, 233, 184, 0.25), transparent 40%);

  &__title {
    color: var(--color-white);

    em {
      color: var(--color-highlight);
    }
  }

  p {
    color: var(--color-on-dark-muted);
  }
}

/* Hover: colour or image only, never moving buttons */
@media @hover {
  .aurelle-collection-card:hover .wp-block-cover__image-background {
    transform: scale(1.06);
  }
}

@media (max-width: 47.99em) {
  .aurelle-collections,
  .aurelle-features,
  .aurelle-testimonials {
    flex-wrap: wrap !important;

    > .wp-block-column {
      flex-basis: calc(50% - var(--space-1)) !important;
    }
  }

  .aurelle-testimonials > .wp-block-column {
    flex-basis: 100% !important;
  }
}
