/*
Theme Name: Farmers Livestock Exchange
Theme URI: https://staging.farmerslivestockva.com/
Author: Farmers Livestock Exchange
Description: Lightweight, accessible block theme for Farmers Livestock Exchange.
Version: 0.1.7
Requires at least: 7.0
Requires PHP: 8.1
Text Domain: farmers-livestock
*/

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  text-wrap: pretty;
}

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

.wp-site-blocks {
  min-height: 100vh;
}

.fle-announcement {
  letter-spacing: 0.02em;
}

.fle-hero {
  min-height: clamp(34rem, 72vh, 48rem);
}

.fle-hero .wp-block-cover__image-background {
  filter: saturate(0.86) contrast(1.05);
}

.fle-hero-card {
  backdrop-filter: blur(8px);
  box-shadow: 0 1.25rem 4rem rgba(19, 35, 24, 0.24);
}

.fle-eyebrow {
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.fle-card {
  height: 100%;
  box-shadow: 0 0.8rem 2.2rem rgba(23, 49, 31, 0.08);
  transition: transform 180ms ease, box-shadow 180ms ease;
}

.fle-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 1rem 2.6rem rgba(23, 49, 31, 0.13);
}

.fle-card .wp-block-image img {
  aspect-ratio: 16 / 10;
  object-fit: cover;
}

.fle-essentials-grid {
  align-items: stretch;
}

.fle-essentials-grid > .wp-block-column {
  display: flex;
  min-width: 0;
}

.fle-essentials-grid .fle-card {
  display: flex;
  flex-direction: column;
  width: 100%;
}

.fle-essentials-grid > .wp-block-column:nth-child(2) .fle-card {
  background-color: var(--wp--preset--color--paper) !important;
  border: 1px solid #d9ddda;
}

.fle-essentials-grid .fle-card > .fle-link-arrow:last-child {
  margin-top: auto;
  padding-top: var(--wp--preset--spacing--20);
}

.fle-link-arrow a::after {
  content: "  →";
}

.fle-stat {
  border-left: 3px solid var(--wp--preset--color--harvest);
  padding-left: var(--wp--preset--spacing--30);
}

.has-pine-background-color a:not(.wp-element-button) {
  color: var(--wp--preset--color--paper) !important;
  text-decoration-color: currentColor;
}

.has-pine-background-color.has-link-color a:not(.wp-element-button) {
  color: var(--wp--preset--color--harvest) !important;
}

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

  .fle-card {
    transition: none;
  }
}

@media (max-width: 781px) {
  .fle-hero {
    min-height: 42rem;
  }

  .fle-hero-card {
    margin-top: 8rem !important;
  }

  .fle-card:hover {
    transform: none;
  }
}
