/*
Theme Name: Kateva Custom
Theme URI: https://example.com/
Author: Kateva, Inc.
Description: A lightweight custom WordPress block theme with responsive layouts, design tokens, and Site Editor support.
Version: 1.2.1
Requires at least: 6.5
Tested up to: 6.8
Requires PHP: 8.0
Text Domain: kateva-custom
*/

html {
  scroll-behavior: smooth;
}

body {
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

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

.wp-block-button__link {
  transition: transform .18s ease, box-shadow .18s ease, opacity .18s ease;
}

.wp-block-button__link:hover {
  transform: translateY(-1px);
}

.no-margin-block-start {

  margin-block-start: 0 !important;

}

.no-margin-block-start-on-children > * {

  margin-block-start: 0 !important;

}

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

.wp-block-navigation .wp-block-navigation__submenu-container {
    min-width: 220px;
    width:220px !important;

    padding: 0.75rem 0;

    background: var(--wp--preset--color--paper);
    border: 1px solid var(--wp--preset--color--border-neutral);
    border-radius: 0.5rem;

    box-shadow:  0 12px 30px
      color-mix(
        in srgb,
        var(--wp--preset--color--ink) 8%,
        transparent
      );

    overflow: hidden;
}

.wp-block-navigation .wp-block-navigation__submenu-container
.wp-block-navigation-item__content {
    display: flex;
    align-items: center;
    justify-content: space-between;

    width: 100%;

    padding: 0.85rem 1.25rem;

    color: inherit;
    text-decoration: none;

    transition:
        background-color 0.2s ease,
        color 0.2s ease,
        padding-left 0.2s ease;
}

.wp-block-navigation .wp-block-navigation__submenu-container
.wp-block-navigation-item__content:hover {
    background: var(--wp--preset--color--mist);
    color: var(--wp--preset--color--brand);

    padding-left: 1.5rem;
}

.wp-block-navigation .wp-block-navigation__submenu-container
.wp-block-navigation-item__content::after {
    content: "→";

    opacity: 0;
    transform: translateX(-0.25rem);

    transition:
        opacity 0.2s ease,
        transform 0.2s ease;
}

.wp-block-navigation .wp-block-navigation__submenu-container
.wp-block-navigation-item__content:hover::after {
    opacity: 1;
    transform: translateX(0);
}

@media (max-width: 781px) {
  .site-header .wp-block-group {
    gap: 1rem;
  }
}

/* Header presentation stays in CSS to avoid block serializer mismatches. */
.site-header {
  background: color-mix(
    in srgb,
    var(--wp--preset--color--paper) 93%,
    transparent
  );
  border-bottom: 1px solid var(--wp--preset--color--border-neutral);
}

/* WooCommerce equipment catalog */
.equipment-catalog,
.equipment-single {
  padding-top: clamp(1.5rem, 4vw, 3rem);
  padding-bottom: clamp(3rem, 7vw, 6rem);
}

.equipment-catalog-toolbar {
  margin-top: 1.5rem;
  margin-bottom: 1.5rem;
  padding: 0.85rem 1rem;
  border: 1px solid var(--wp--preset--color--border-neutral);
  border-radius: 10px;
  background: var(--wp--preset--color--mist);
}

.equipment-catalog .wc-block-product {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--wp--preset--color--border-neutral);
  border-radius: 12px;
  box-shadow: 0 8px 28px rgba(23, 32, 51, 0.06);
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}

.equipment-catalog .wc-block-product:hover {
  transform: translateY(-2px);
  border-color: var(--wp--preset--color--border-neutral);
  box-shadow: 0 12px 34px color-mix( in srgb, var(--wp--preset--color--ink) 10%, transparent );
}

.equipment-catalog .wc-block-product > :not(.wc-block-components-product-image) {
  margin-left: 1rem;
  margin-right: 1rem;
}

.equipment-catalog .wc-block-product .wc-block-components-product-image {
  margin-bottom: 1rem;
  background: var(--wp--preset--color--mist);
}

.equipment-catalog .wc-block-product .wc-block-components-product-image img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.equipment-catalog .wc-block-product .wp-block-post-title {
  margin-top: .55rem;
  margin-bottom: .55rem;
}

.gsec-equipment-badge {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  margin: .2rem 0 .45rem;
  padding: .28rem .55rem;
  border-radius: 999px;
  background: var(--wp--preset--color--mist);
  color: var(--wp--preset--color--brand-dark);
  font-size: .74rem;
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: .035em;
  text-transform: uppercase;
}

.gsec-equipment-badge.is-reserved {
  background: var(--wp--preset--color--warning-soft);
  color: var(--wp--preset--color--warning);
}

.gsec-equipment-badge.is-sold {
  background: var(--wp--preset--color--mist);
  color: var(--wp--preset--color--ink-light);
}

.gsec-equipment-badge.is-new {
  background: var(--wp--preset--color--success-soft);
  color: var(--wp--preset--color--success);
}

.gsec-equipment-card-meta {
  display: flex;
  flex-wrap: wrap;
  gap: .35rem .75rem;
  margin-top: 0;
  margin-bottom: .8rem;
  color: var(--wp--preset--color--ink-light);
  font-size: .875rem;
}

.gsec-equipment-card-meta span + span::before {
  content: "•";
  margin-right: .75rem;
  color: var(--wp--preset--color--border-neutral);
}

.equipment-product-hero {
  gap: clamp(2rem, 5vw, 4.5rem);
  margin-top: 1.5rem;
  margin-bottom: clamp(3rem, 6vw, 5rem);
}

.gsec-equipment-specs {
  display: grid;
  grid-template-columns: minmax(8rem, max-content) 1fr;
  gap: .55rem 1rem;
  margin: 1.5rem 0;
  padding: 1rem 0;
  border-top: 1px solid var(--wp--preset--color--border-neutral);
  border-bottom: 1px solid var(--wp--preset--color--border-neutral);
}

.gsec-equipment-specs dt {
  font-weight: 700;
  color: var(--wp--preset--color--ink);
}

.gsec-equipment-specs dd {
  margin: 0;
  color: var(--wp--preset--color--ink-light);
}

.gsec-product-ctas {
  display: flex;
  flex-wrap: wrap;
  gap: .75rem;
  margin-top: 1.5rem;
}

.gsec-product-ctas .button,
.gsec-product-ctas .wp-element-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: .75rem 1.15rem;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 700;
}

.gsec-call-button {
  background: var(--wp--preset--color--brand);
  color: var(--wp--preset--color--paper);
}

.gsec-finance-button {
  background: var(--wp--preset--color--accent);
  color: var(--wp--preset--color--ink);
}

.gsec-quote-button {
  border: 1px solid var(--wp--preset--color--brand);
  background: var(--wp--preset--color--paper);
  color: var(--wp--preset--color--brand);
}

.gsec-quote-form input,
.gsec-quote-form textarea {
  box-sizing: border-box;
  width: 100%;
  max-width: 46rem;
  padding: .75rem .85rem;
  border: 1px solid var(--wp--preset--color--border-neutral);
  border-radius: 8px;
  background: var(--wp--preset--color--paper);
  font: inherit;
}

.gsec-brand-fallback-gallery {
    position: relative;
}

.gsec-brand-fallback-gallery .woocommerce-product-gallery__image {
    position: relative;
}

.gsec-brand-fallback-image {
    display: block;
    width: 100%;
    height: auto;
}

.gsec-brand-fallback-label {
    position: absolute;
    left: 1rem;
    bottom: 1rem;

    padding: 0.4rem 0.7rem;

    background:
        color-mix(
            in srgb,
            var(--wp--preset--color--ink) 82%,
            transparent
        );

    color: var(--wp--preset--color--paper);

    font-size: 0.8rem;
    line-height: 1;
    border-radius: 0.25rem;
}

.hero-section {
    position: relative;
    color: var(--wp--preset--color--mist);
    background-color: var(--wp--preset--color--ink);

    background-image: url('/wp-content/uploads/hero.webp');
    background-size: cover;
    background-position: center;

    padding: 3rem 1.5rem 5rem;
}

.gs-overlap-section {
  --gs-overlap: 10rem;

  position: relative;
  overflow: visible;

  display: flex;
  flex-direction: column;
  gap: 2rem;

}

.gs-overlap-item {

  position: relative;
  z-index: 10;
  transform: translateY(var(--gs-overlap));
  margin-top: calc(var(--gs-overlap) * -1);
  box-shadow: 0 1.5rem 3rem color-mix( in srgb, var(--wp--preset--color--ink) 18%, transparent );

}

.gs-overlap-next {
    padding-top: var(--gs-overlap);
}

.gs-overlap-next--sm {
    padding-top: 4rem;
}

.gs-overlap-next--md {
    padding-top: 6rem;
}

.gs-overlap-next--lg {
    padding-top: 8rem;
}

.gs-solution-card {
  position: relative;
  padding: 2rem;
  background: var(--wp--preset--color--paper);
  border: 1px solid var(--wp--preset--color--border-neutral);
  border-radius: 0.75rem;
  background: linear-gradient(
    145deg,
    color-mix(
      in srgb,
      var(--wp--preset--color--ink) 4%,
      transparent
    ),
    color-mix(
      in srgb,
      var(--wp--preset--color--brand) 2.5%,
      transparent
    )
  ); 
  transition:
    transform 0.25s ease,
    box-shadow 0.25s ease,
    border-color 0.25s ease;
}

.gs-solution-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 2rem;
  right: 2rem;
  height: 3px;
  background: var(--wp--preset--color--brand);
  border-radius: 0 0 3px 3px;
}

.gs-solution-card:hover {
  transform: translateY(-4px);
  /* box-shadow: 0 1rem 2rem rgba(15, 30, 50, 0.08); */
  box-shadow: 0 1rem 2rem rgba(42, 34, 34, 0.08);
  /* border-color: rgba(45, 99, 215, 0.25); */
  border-color: var(--wp--preset--color--brand);
}

.gs-solution-card__label {
  display: inline-block;
  margin-bottom: 1.25rem;

  font-size: .75rem;
  font-weight: 700;
  line-height: 1;
  letter-spacing: .12em;

  color: var(--wp--preset--color--brand);
}

.gs-solution-card h3 {
  margin: 0 0 1rem;
}

.gs-solution-card p {
  margin: 0;
  line-height: 1.65;
}

.gs-solution-card .wp-block-button__link {
  padding: 0;
  background: transparent;
  color: var(--wp--preset--color--brand);
  font-weight: 600;
  text-decoration: none;
}

.gs-solution-card .wp-block-button__link::after {
  content: " →";
}

.gs-eyebrow {
  margin: 0 0 1rem;

  font-size: 0.85rem;
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: 0.08em;
  text-transform: uppercase;

  color: var(--wp--preset--color--brand);
}

.gs-eyebrow--light {
  color: color-mix( in srgb, var(--wp--preset--color--paper) 82%, transparent);
}

.gs-eyebrow::before {
  content: "";
  display:block;
  width: 2rem;
  height: 2px;
  background-color: var(--wp--preset--color--brand-dark);
  flex: 0 0 auto;
}

.gs-featured-inventory {
  padding-block: clamp(4rem, 7vw, 7rem);
}

.gs-featured-inventory .wp-block-woocommerce-product-collection {
  margin-top: 2.5rem;
}

.gs-featured-inventory__footer {
  margin-top: 2rem;
}

.gs-featured-inventory .wc-block-product {
  display: flex;
  flex-direction: column;

  border: 1px solid var(--wp--preset--color--border-neutral);
  border-radius: .75rem;
  overflow: hidden;
  background: var(--wp--preset--color--mist);

  transition:
    transform .25s ease,
    border-color .25s ease,
    box-shadow .25s ease;
}

.gs-featured-inventory .wc-block-product:hover {
  transform: translateY(-3px);
  border-color: color-mix(
    in srgb,
    var(--wp--preset--color--brand) 22%,
    transparent
  );
  box-shadow:
    0 1rem 2rem
    color-mix(
      in srgb,
      var(--wp--preset--color--ink) 6%,
      transparent
  );
}

.gs-featured-inventory .wc-block-components-product-image {
  /* aspect-ratio: 4 / 3; */
  padding: 1.25rem;
  background: var(--wp--preset--color--mist);
}

.gs-featured-inventory .wc-block-components-product-image img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.gs-featured-inventory .wc-block-components-product-button__button {
  margin-top: auto;
  padding: 1rem 1.25rem 1.25rem;
  background: transparent;
  color: var(--wp--preset--color--brand);
  font-weight: 600;
  border: 0;
  box-shadow: none;
}

.gs-featured-inventory .wc-block-components-product-button__button::after {
  content: " →";
}

.gs-featured-product__content .gs-inventory-type {
  margin: 0;

  font-size: .72rem;
  font-weight: 700;
  line-height: 1;
  letter-spacing: .08em;
  text-transform: uppercase;
  text-decoration:none;

  color: var(--wp--preset--color--brand);
}

.is-style-text-link .wp-block-button__link {
  display: inline-flex;
  align-items: center;
  gap: .35rem;

  padding: 0;
  background: transparent;
  border: 0;
  border-radius: 0;

  font-weight: 600;
  text-decoration: none;
  box-shadow: none;

  transition:
    gap .2s ease,
    color .2s ease;
}

.is-style-text-link .wp-block-button__link::after {
  content: "→";
  line-height: 1;
  display: inline-block;
  transition: transform .2s ease;  
}

.is-style-text-link .wp-block-button__link:hover {
  gap: .55rem;
  background: transparent;
}

.is-style-text-link .wp-block-button__link:hover::after {
  transform: translateX(.25rem);
}

@media (max-width: 781px) {
  .equipment-product-hero {
    gap: 1.5rem;
  }

  .gsec-equipment-specs {
    grid-template-columns: 1fr;
    gap: .15rem;
  }

  .gsec-equipment-specs dd {
    margin-bottom: .7rem;
  }

  .gs-overlap-item {
      transform: translateY(2rem);
      margin-top: 0;
  }

}

:root {
    --gs-overlap: 10rem;
}

.forklift-light {
    position: absolute;
    width: 0.8rem;
    height: 0.8rem;
    border-radius: 50%;

    background: rgba(255, 138, 0, 0.7);

    box-shadow:
        0 0 0.4rem rgba(255, 138, 0, 1),
        0 0 1rem rgba(255, 138, 0, 0.85),
        0 0 2.2rem rgba(255, 138, 0, 0.6),
        0 0 3.5rem rgba(255, 138, 0, 0.3);

    animation: forklift-beacon 1.2s ease-in-out infinite;
    pointer-events: none;
}

.forklift-light::after {
    content: "";
    position: absolute;
    inset: -1.8rem;
    border-radius: 50%;

    background: radial-gradient(
        circle,
        rgba(255, 153, 0, 0.6) 0%,
        rgba(255, 153, 0, 0.35) 30%,
        rgba(255, 153, 0, 0.15) 55%,
        rgba(255, 153, 0, 0) 80%
    );

    animation: forklift-halo 1.2s ease-in-out infinite;
}

.credibility-section {
    display: grid;
    grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
    gap: clamp(3rem, 7vw, 8rem);
    align-items: start;
}

.credibility-section__intro {
    max-width: 38rem;
}

.credibility-proof {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    border-top: 1px solid currentColor;
    border-left: 1px solid currentColor;

}

.credibility-proof__item {
    display: flex;
    flex-direction: column;
    gap: 0.65rem;

    padding: 2rem;

    border-right: 1px solid currentColor;
    border-bottom: 1px solid currentColor;
    margin-block-start:0;

}

.credibility-proof__item strong {
    font-size: 1.15rem;
}

.credibility-proof__item p {
    opacity: 0.75;
}

.credibility-section__cta {
    grid-column: 1 / -1;
}

@media (max-width: 781px) {

    .credibility-section {
        grid-template-columns: 1fr;
    }

    .credibility-proof {
        grid-template-columns: 1fr;
    }

}

@keyframes forklift-beacon {
    0%,
    100% {
        opacity: 0.5;
        transform: scale(0.95);
        filter: brightness(1);
    }

    50% {
        opacity: 1;
        transform: scale(1.2);
        filter: brightness(1.6);
    }
}

@keyframes forklift-halo {
    0%,
    100% {
        transform: scale(0.9);
        opacity: 0.3;
    }

    50% {
        transform: scale(2.4);
        opacity: 1;
    }
}