/*
 * FSX Product Hero Module v1.0.5
 *
 * Scope:
 * - This plugin only styles the right-side ACF-driven Hero content.
 * - WoodMart / WooCommerce product gallery and Elementor two-column layout are managed separately.
 *
 * Shortcode:
 * [fsx_product_hero_content]
 */

/* =====================================================
   TOKENS & RESET
===================================================== */

.fsx-hero-module,
.fsx-hero-module * {
  box-sizing: border-box;
}

.fsx-hero-module {
  --fsx-hero-navy: #14244F;
  --fsx-hero-brand: #1E336D;
  --fsx-hero-cyan: #00A3C4;
  --fsx-hero-text: #4B5563;
  --fsx-hero-muted: #64748B;
  --fsx-hero-border: #D8E0EC;
  --fsx-hero-light: #F4F7FC;

  width: 100%;
  min-width: 0;
  height: auto;
  min-height: 0;
  margin: 0;
  padding: 0;
  overflow: visible;
  font-family: inherit;
}

.fsx-hero-module a {
  text-decoration: none !important;
}

/* =====================================================
   TYPOGRAPHY
===================================================== */

.fsx-hero-module__kicker {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 12px;

  margin: 0 0 16px;
  color: var(--fsx-hero-cyan);

  font-size: 12px;
  line-height: 1.2;
  font-weight: 800;
  letter-spacing: 2px;
  text-transform: uppercase;
}

.fsx-hero-module__kicker::before {
  content: "";
  display: block;
  width: 36px;
  height: 2px;
  flex: 0 0 36px;
  background: var(--fsx-hero-cyan);
}

.fsx-hero-module__title,
body .fsx-hero-module .fsx-hero-module__title {
  margin: 0 !important;
  color: var(--fsx-hero-navy);

  font-size: 40px !important;
  line-height: 1.08 !important;
  font-weight: 800 !important;
  letter-spacing: -1px !important;

  overflow-wrap: anywhere;
}

.fsx-hero-module__description {
  max-width: 760px;
  margin-top: 22px;

  color: var(--fsx-hero-text);
  font-size: 17px;
  line-height: 1.7;
}

.fsx-hero-module__description p {
  margin: 0;
}

/* =====================================================
   BADGES
===================================================== */

.fsx-hero-module__badges {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;

  width: 100%;
  margin-top: 28px;
  margin-bottom: 0;
}

.fsx-hero-module__badge {
  min-width: 0;
  min-height: 68px;
  padding: 14px 14px 13px;

  background: var(--fsx-hero-light);
  border: 1px solid var(--fsx-hero-border);
  border-radius: 0;

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

.fsx-hero-module__badge strong,
.fsx-hero-module__badge span {
  display: block;
  overflow-wrap: anywhere;
}

.fsx-hero-module__badge strong {
  color: var(--fsx-hero-navy);
  font-size: 14px;
  line-height: 1.3;
  font-weight: 800;
}

.fsx-hero-module__badge span {
  margin-top: 4px;
  color: var(--fsx-hero-muted);
  font-size: 12px;
  line-height: 1.35;
}

.fsx-hero-module__badge:hover {
  transform: translateY(-2px);
  border-color: rgba(0, 163, 196, .7);
  box-shadow: 0 12px 24px rgba(20, 36, 79, .08);
}

.fsx-hero-module__badge:active {
  transform: translateY(0);
  box-shadow: none;
}

/* =====================================================
   BUTTONS
===================================================== */

.fsx-hero-module__actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, max-content));
  gap: 12px;

  width: 100%;
  height: auto;
  min-height: 0;

  margin-top: 24px;
  margin-bottom: 0;
  padding-bottom: 0;

  overflow: visible;
}

.fsx-hero-module__button {
  display: inline-flex;
  align-items: center;
  justify-content: center;

  min-height: 52px;
  padding: 13px 22px;

  border: 1px solid var(--fsx-hero-brand);
  border-radius: 0;

  font-size: 15px;
  line-height: 1.2;
  font-weight: 800;
  text-align: center;
  text-decoration: none !important;
  white-space: normal;

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

.fsx-hero-module__button--primary {
  color: #FFFFFF !important;
  background: var(--fsx-hero-brand);
}

.fsx-hero-module__button--secondary {
  color: var(--fsx-hero-brand) !important;
  background: #FFFFFF;
}

.fsx-hero-module__button:hover,
.fsx-hero-module__button:focus-visible {
  color: #FFFFFF !important;
  background: var(--fsx-hero-cyan);
  border-color: var(--fsx-hero-cyan);

  transform: translateY(-2px);
  box-shadow: 0 12px 22px rgba(0, 163, 196, .18);
}

.fsx-hero-module__button:active {
  transform: translateY(0);
  box-shadow: none;
}

/* =====================================================
   OPTIONAL DARK MODE
   [fsx_product_hero_content theme="dark"]
===================================================== */

.fsx-hero-module--dark .fsx-hero-module__title,
.fsx-hero-module--dark .fsx-hero-module__description,
.fsx-hero-module--dark .fsx-hero-module__description p {
  color: #FFFFFF;
}

.fsx-hero-module--dark .fsx-hero-module__badge {
  background: rgba(255, 255, 255, .06);
  border-color: rgba(255, 255, 255, .24);
}

.fsx-hero-module--dark .fsx-hero-module__badge strong {
  color: #FFFFFF;
}

.fsx-hero-module--dark .fsx-hero-module__badge span {
  color: rgba(255, 255, 255, .75);
}

.fsx-hero-module--dark .fsx-hero-module__button--primary {
  color: var(--fsx-hero-navy) !important;
  background: #FFFFFF;
  border-color: #FFFFFF;
}

.fsx-hero-module--dark .fsx-hero-module__button--secondary {
  color: #FFFFFF !important;
  background: transparent;
  border-color: #FFFFFF;
}

/* =====================================================
   COMPACT DESKTOP / TABLET
===================================================== */

@media (max-width: 1280px) {
  .fsx-hero-module__badges {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 768px) and (max-width: 1180px) {
  body .fsx-hero-module .fsx-hero-module__title {
    font-size: 36px !important;
  }
}

/* =====================================================
   MOBILE
===================================================== */

@media (max-width: 767px) {
  .fsx-hero-module__kicker {
    margin-bottom: 12px;
    font-size: 10.5px;
    letter-spacing: 1.7px;
  }

  .fsx-hero-module__kicker::before {
    width: 28px;
    flex-basis: 28px;
  }

  body .fsx-hero-module .fsx-hero-module__title {
    font-size: 30px !important;
    line-height: 1.1 !important;
    letter-spacing: -.6px !important;
  }

  .fsx-hero-module__description {
    margin-top: 14px;
    font-size: 14.5px;
    line-height: 1.62;
  }

  .fsx-hero-module__badges {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;

    margin-top: 16px;
    margin-bottom: 0;
  }

  .fsx-hero-module__badge {
    min-height: 72px;
    padding: 12px;
  }

  .fsx-hero-module__badge strong {
    font-size: 13px;
  }

  .fsx-hero-module__badge span {
    font-size: 11.5px;
  }

  .fsx-hero-module__actions {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;

    width: 100%;
    height: auto;
    min-height: 48px;

    margin-top: 16px;
    margin-bottom: 0;
    padding-bottom: 0;

    overflow: visible;
  }

  .fsx-hero-module__button {
    width: 100%;
    min-width: 0;
    min-height: 48px;

    margin: 0;
    padding: 11px 8px;

    font-size: 13px;
  }
}

/* =====================================================
   VERY SMALL MOBILE
===================================================== */

@media (max-width: 380px) {
  .fsx-hero-module__badge strong {
    font-size: 12px;
  }

  .fsx-hero-module__badge span {
    font-size: 10.5px;
  }

  .fsx-hero-module__button {
    font-size: 12px;
  }
}

/* =====================================================
   ACCESSIBILITY
===================================================== */

@media (prefers-reduced-motion: reduce) {
  .fsx-hero-module__badge,
  .fsx-hero-module__button {
    transition: none !important;
  }

  .fsx-hero-module__badge:hover,
  .fsx-hero-module__button:hover,
  .fsx-hero-module__button:focus-visible {
    transform: none !important;
  }
}
