/*
Theme Name: Alaven Framework
Theme URI: https://themediaco.co.za/
Author: Mandy Papenfus / The Media Company
Author URI: https://themediaco.co.za/
Description: A private, lightweight WordPress block theme for flexible company websites and WooCommerce shops.
Version: 1.0.0
Requires at least: 6.6
Tested up to: 7.1
Requires PHP: 8.0
Text Domain: alaven-framework
Tags: block-patterns, block-styles, full-site-editing, e-commerce, accessibility-ready
License: Private use
*/

html {
  scroll-behavior: smooth;
}

body {
  text-wrap: pretty;
}

a {
  text-underline-offset: 0.18em;
}

:where(a, button, input, textarea, select, summary):focus-visible {
  outline: 3px solid var(--wp--preset--color--accent);
  outline-offset: 3px;
}

.wp-site-blocks {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.wp-site-blocks > main {
  flex: 1;
}

.alaven-sticky-header {
  position: sticky;
  top: 0;
  z-index: 100;
  backdrop-filter: blur(14px);
}

.alaven-card {
  height: 100%;
  transition: transform 180ms ease, box-shadow 180ms ease;
}

.alaven-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--wp--preset--shadow--lifted);
}

.alaven-eyebrow {
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.alaven-hero {
  overflow: hidden;
}

.alaven-hero-media img,
.alaven-rounded-image img {
  border-radius: var(--wp--custom--radius--large);
}

.alaven-product-grid .wc-block-product,
.woocommerce ul.products li.product {
  background: var(--wp--preset--color--surface);
  border: 1px solid var(--wp--preset--color--border);
  border-radius: var(--wp--custom--radius--medium);
  overflow: hidden;
  padding-bottom: var(--wp--preset--spacing--40);
}

.woocommerce ul.products li.product > :not(a),
.woocommerce ul.products li.product .woocommerce-loop-product__title,
.woocommerce ul.products li.product .price {
  margin-left: var(--wp--preset--spacing--30);
  margin-right: var(--wp--preset--spacing--30);
}

.woocommerce div.product div.images img,
.woocommerce ul.products li.product a img {
  border-radius: var(--wp--custom--radius--small);
}

.woocommerce .quantity .qty,
.woocommerce form .form-row input.input-text,
.woocommerce form .form-row textarea,
.woocommerce form .form-row select {
  border: 1px solid var(--wp--preset--color--border);
  border-radius: var(--wp--custom--radius--small);
  padding: 0.75rem;
}

.woocommerce-message,
.woocommerce-info,
.woocommerce-error {
  border-radius: var(--wp--custom--radius--small);
  background: var(--wp--preset--color--surface-alt);
}

@media (max-width: 781px) {
  .alaven-sticky-header {
    position: relative;
  }

  .alaven-mobile-stack {
    gap: var(--wp--preset--spacing--40) !important;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }
}
