:root {
  --ff-blue: #4a57bf;
  --ff-blue-dark: #343e9d;
  --ff-navy: #1e1f3a;
  --ff-mist: #f1f1fb;
  --ff-soft: #f8f7fc;
  --ff-line: #e1e1ef;
  --ff-shadow: 0 18px 55px rgba(49, 54, 116, 0.12);
  --ff-shadow-small: 0 10px 30px rgba(49, 54, 116, 0.08);
}

html { scroll-behavior: smooth; }
body { text-rendering: optimizeLegibility; }
body.admin-bar .ff-site-header { top: 32px; }

.ff-site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  border-bottom: 1px solid rgba(30, 31, 58, 0.08);
  box-shadow: 0 2px 18px rgba(30, 31, 58, 0.04);
}

.ff-brand-title {
  font-size: clamp(1.55rem, 2.5vw, 2rem);
  font-weight: 500;
  letter-spacing: 0.01em;
  line-height: 1.2;
}

.ff-brand-title a { color: var(--ff-navy); text-decoration: none; }
.ff-main-nav .wp-block-navigation-item__content { color: var(--ff-navy); }
.ff-main-nav .current-menu-item > .wp-block-navigation-item__content,
.ff-main-nav .wp-block-navigation-item__content:hover { color: var(--ff-blue); }
.ff-header__inner > .wp-block-woocommerce-customer-account,
.ff-header__inner > .wp-block-woocommerce-mini-cart { display: none !important; }

.ff-legacy-hero {
  background:
    radial-gradient(circle at 8% 92%, rgba(250, 222, 164, 0.8), transparent 34%),
    radial-gradient(circle at 90% 18%, rgba(202, 210, 255, 0.72), transparent 38%),
    linear-gradient(135deg, #f9f6f7 0%, #f5f3fb 54%, #ececff 100%);
  overflow: hidden;
}

.ff-legacy-hero__columns { min-height: 570px; }
.ff-legacy-hero__title { max-width: 650px; }
.ff-legacy-hero p { max-width: 600px; }
.ff-legacy-hero__image { margin: -2rem -5rem -4rem 0; }
.ff-legacy-hero__image img {
  display: block;
  filter: drop-shadow(0 24px 34px rgba(30, 31, 58, 0.16));
  height: auto;
  max-height: 620px;
  object-fit: contain;
  width: 100%;
}

.wp-block-button__link { box-shadow: 0 7px 18px rgba(74, 87, 191, 0.18); }
.wp-block-button__link:hover { background: var(--ff-blue-dark); color: #fff; transform: translateY(-1px); }
.wp-block-button.is-style-outline .wp-block-button__link {
  background: transparent;
  border-color: var(--ff-blue);
  color: var(--ff-blue);
  box-shadow: none;
}
.wp-block-button.is-style-outline .wp-block-button__link:hover { background: var(--ff-blue); color: #fff; }

.ff-eyebrow {
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.ff-section-heading { max-width: 760px; }
.ff-brands h2 { margin-bottom: 0.5rem; }
.ff-brand-cloud {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  justify-content: center;
  margin: 2.6rem auto 2rem;
  max-width: 980px;
}
.ff-brand-cloud span {
  background: #fff;
  border: 1px solid var(--ff-line);
  border-radius: 999px;
  box-shadow: var(--ff-shadow-small);
  color: var(--ff-navy);
  font-size: 1.05rem;
  font-weight: 700;
  padding: 0.75rem 1.2rem;
}

.ff-service-card {
  border: 1px solid var(--ff-line);
  border-radius: 1rem;
  box-shadow: var(--ff-shadow-small);
  height: 100%;
  transition: transform 180ms ease, box-shadow 180ms ease;
}
.ff-service-card:hover { box-shadow: var(--ff-shadow); transform: translateY(-3px); }
.ff-contact-band { border-top: 5px solid var(--ff-blue); }
.ff-contact-band .wp-block-button__link { background: var(--ff-blue); }

.ff-inventory-placeholder {
  align-items: center;
  background: var(--ff-soft);
  border: 1px solid var(--ff-line);
  border-radius: 1rem;
  color: var(--ff-navy);
  display: flex;
  flex-direction: column;
  margin-top: 2rem;
  padding: 3rem 1.5rem;
  text-align: center;
}
.ff-inventory-placeholder span { color: #626477; margin-top: 0.35rem; }

.ff-page-title {
  background:
    radial-gradient(circle at 85% 20%, rgba(201, 210, 255, 0.65), transparent 34%),
    linear-gradient(135deg, #faf3e7 0%, #f3f1fb 100%);
  border-bottom: 1px solid var(--ff-line);
}

.ff-footer a { color: #fff; }
.ff-footer a:hover { color: #ccd2ff; }

/* Match the public warehouse to the established blue/lilac visual language. */
.ff-inventory-filter { background: var(--ff-navy) !important; box-shadow: var(--ff-shadow) !important; }
.ff-inventory-filter__eyebrow { color: #cbd1ff !important; }
.ff-inventory-filter button { background: var(--ff-blue) !important; }
.ff-inventory-filter button:hover,
.ff-inventory-filter button:focus-visible { background: var(--ff-blue-dark) !important; }
.ff-product-card { border-color: var(--ff-line) !important; }
.ff-product-card:hover { border-color: #bdc2e7 !important; box-shadow: var(--ff-shadow-small) !important; }
.ff-product-card__image { background: var(--ff-soft) !important; }
.ff-product-card__placeholder { background: var(--ff-blue) !important; font-family: inherit !important; }
.ff-product-card__title { font-family: inherit !important; }
.ff-product-card__title a { color: var(--ff-navy) !important; }
.ff-product-card__link { color: var(--ff-blue) !important; }
.ff-inventory__pagination .current { background: var(--ff-blue) !important; border-color: var(--ff-blue) !important; }
.ff-inventory__notice { background: var(--ff-mist) !important; border-left-color: var(--ff-blue) !important; }

.woocommerce .button,
.woocommerce button.button,
.woocommerce input.button { background: var(--ff-blue); border-radius: 999px; color: #fff; }

@media (max-width: 900px) {
  .ff-legacy-hero__columns { min-height: auto; }
  .ff-legacy-hero__image { margin: 0; }
}

@media (max-width: 782px) {
  body.admin-bar .ff-site-header { top: 46px; }
  .ff-site-header { position: relative; }
  .ff-header__inner { align-items: center !important; }
  .ff-brand-title { text-align: left !important; }
  .ff-main-nav { justify-content: flex-end; margin-top: -2.4rem !important; }
  .ff-legacy-hero__columns { flex-direction: column-reverse; }
  .ff-legacy-hero__image img { max-height: 390px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { scroll-behavior: auto !important; transition-duration: 0.01ms !important; }
}
