@import 'tailwindcss' theme(static);
@import './fonts.css';
@import './nav.css';
@import './content.css';

@config "../../tailwind.config.js";

@source "../../app/**/*.php";
@source "../**/*.blade.php";
@source "../**/*.js";

@layer base {
  :root,
  .editor-styles-wrapper {
    --app-layout-wide-max: 96rem;
    --app-image-shadow-color: color-mix(
      in srgb,
      var(--wp--custom--color--black) 12%,
      transparent
    );
  }

  :where(a, button, .wp-element-button, input[type='submit']) {
    transition:
      color 0.2s ease-in-out,
      background-color 0.2s ease-in-out,
      border-color 0.2s ease-in-out;
  }

  @media (prefers-reduced-motion: reduce) {
    :where(a, button, .wp-element-button, input[type='submit']) {
      transition: none;
    }
  }
}

@utility surface-glass {
  border: 1px solid rgb(255 255 255 / 70%);
  border-radius: var(--wp--custom--radius--image);
  background: var(--wp--custom--color--liquid-white, rgb(255 255 255 / 35%));
  box-shadow: inset 0.125rem 0.125rem 0.75rem 0.125rem rgb(229 229 229 / 25%);
  backdrop-filter: blur(0.3125rem);
}

@utility image-shadow-soft {
  box-shadow: 0 0 0.5rem 0 var(--app-image-shadow-color);
}

@utility layout-wide {
  width: min(100%, var(--app-layout-wide-max));
  margin-inline: auto;
  padding-inline: clamp(1rem, 2vw, 1.5rem);
}

@utility image-card {
  @apply image-shadow-soft;

  display: block;
  width: 100%;
  height: auto;
  border-radius: var(--wp--custom--radius--image);
  background-color: var(--wp--custom--color--white);
}

@utility showcase-card {
  @apply surface-glass;

  position: relative;
  z-index: 0;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  height: 100%;
  border-color: transparent;
  background: var(--wp--custom--gradient--fond-degrade);
  color: var(--wp--custom--color--primary);
}

@utility showcase-card-icon {
  position: absolute;
  top: -1.5rem;
  right: 1.5rem;
  display: grid;
  place-items: center;
  border-radius: var(--wp--custom--radius--button);
  background: var(--wp--custom--color--white);
  box-shadow: inset 0 0.25rem 0.75rem 0 rgb(255 255 255 / 25%);
}

@utility showcase-card-icon-media {
  display: block;
  width: 100%;
  max-width: inherit;
  height: auto;
  object-fit: contain;
}

@utility tag-pill {
  border-radius: var(--wp--custom--radius--full);
  background: var(--wp--custom--gradient--purple-to-blue);
  color: var(--wp--custom--color--blue);
  font-size: 1rem;
  font-weight: 500;
  line-height: 1.2;
  padding: 0.5rem 1.5rem;
}

@layer components {
  .section-intro-copy > :where(p) {
    margin: 0;
  }

  .section-intro-copy > :where(p + p) {
    margin-top: 0.75rem;
  }

  .text-subtitle {
    font-size: clamp(1.2rem, 1.06rem + 0.47vw, 1.5rem);
    line-height: clamp(1.75rem, 1.63rem + 0.39vw, 2rem);
  }

  .button-sweep {
    --button-sweep-border-width: 0;

    position: relative;
    display: inline-block;
    vertical-align: middle;
    isolation: isolate;
    overflow: hidden;
    transition:
      color 0.3s ease-out,
      border-color 0.3s ease-out,
      background-color 0.3s ease-out;
  }

  .button-sweep::before {
    content: '';
    position: absolute;
    z-index: -1;
    inset: calc(-1 * var(--button-sweep-border-width));
    border-radius: inherit;
    background: var(--button-sweep-fill, currentcolor);
    transition: transform 0.3s ease-out;
  }

  .button-sweep--filled::before {
    transform: scaleY(1);
    transform-origin: 50% 0;
  }

  .button-sweep--filled {
    --button-sweep-border-width: 0.0625rem;
    --button-sweep-fill: var(--wp--custom--color--blue);

    background-color: var(--wp--custom--color--blue);
  }

  .button-sweep--filled:hover::before,
  .button-sweep--filled:focus-visible::before,
  .button-sweep--filled:active::before {
    transform: scaleY(0);
  }

  .button-sweep--outline::before {
    transform: scaleY(0);
    transform-origin: 50% 100%;
  }

  .button-sweep--outline {
    --button-sweep-border-width: 0.0625rem;
    --button-sweep-fill: var(--wp--custom--color--blue);
  }

  .button-sweep--outline:hover::before,
  .button-sweep--outline:focus-visible::before,
  .button-sweep--outline:active::before {
    transform: scaleY(1);
  }

  @media (prefers-reduced-motion: reduce) {
    .button-sweep,
    .button-sweep::before {
      transition: none;
    }
  }
}

@utility sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
  border-width: 0;
}
