/* Fixology Hub launch-polish layer.
 * Kept separate from the legacy theme stylesheet so launch QA changes remain
 * easy to audit and remove. Loaded after style.css from functions.php.
 */

/* Keyboard and interaction quality */
:where(a,button,input,textarea,select,summary):focus-visible {
  outline: 3px solid #008DD2;
  outline-offset: 3px;
}
:where(a,button,summary,.fx-photo,.fx-service-card,.fx-article-card) {
  -webkit-tap-highlight-color: transparent;
}
.fx-primary,.fx-secondary-button,.fx-text-link,.fx-service-card,.fx-article-card,
.fx-page-card,.fx-related-links a {
  transition-property: transform,box-shadow,border-color,color,background-color;
  transition-duration: .18s;
  transition-timing-function: ease;
}
.fx-desktop-nav a[aria-current="page"],.fx-bookings-link[aria-current="page"],
.fx-mobile-menu a[aria-current="page"],.fx-subnav a[aria-current="page"] {
  color: #006b9f;
  font-weight: 850;
}

/* Keep long customer content from creating accidental horizontal overflow. */
.fx-hero-copy,.fx-intake-card,.fx-page-hero-copy,.fx-feature-copy,
.fx-visual-story-copy,.fx-card-body,.fx-article-card div,.fx-page-card,
.fx-page-narrative-copy {
  min-width: 0;
}
.fx-page-hero h1,.fx-article-hero h1,.fx-hero h1,.fx-section-heading h2,
.fx-page-narrative h2 {
  overflow-wrap: break-word;
}

/* More deliberate image behavior while external staging photography loads. */
.fx-editorial-image img,.fx-page-hero-image img,.fx-card-image img,
.fx-article-card img,.fx-fixologist-photo img,.fx-article-cover img {
  background: #e7edf1;
}
.fx-page-hero-image {
  aspect-ratio: 4 / 3;
  overflow: hidden;
}
.fx-page-hero-image img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Shared page-library finish pass. */
.fx-page-hero {
  border-bottom: 1px solid rgba(16,42,67,.06);
}
.fx-page-hero-action {
  margin: 28px 0 0;
}
.fx-page-hero-action .fx-secondary-button {
  min-height: 46px;
}
.fx-page-hero-image {
  isolation: isolate;
}
.fx-page-hero-image img {
  transition: transform .35s ease;
}
.fx-page-card {
  position: relative;
  overflow: hidden;
  box-shadow: 0 8px 22px rgba(16,42,67,.04);
}
.fx-page-card::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 3px;
  background: linear-gradient(180deg,#008DD2,#E31D24);
  opacity: .5;
}
.fx-page-card:hover {
  transform: translateY(-2px);
  border-color: #c8dbe7;
  box-shadow: 0 14px 32px rgba(16,42,67,.08);
}
.fx-page-narrative-copy p:last-child {
  margin-bottom: 0;
}
.fx-page-cta {
  margin-top: 28px;
  padding: 22px;
  border: 1px solid #d9e8f0;
  border-radius: 16px;
  background: #f5fafc;
  box-shadow: 0 10px 28px rgba(16,42,67,.05);
}
.fx-page-cta p {
  margin: 0 0 16px;
  max-width: 650px;
}
.fx-page-cta .fx-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  width: fit-content;
}
.fx-status-panel {
  max-width: 660px;
  border: 1px solid #f2dfb8;
  border-left: 4px solid #f5bd5d;
  box-shadow: 0 8px 20px rgba(102,82,45,.05);
}
.fx-related {
  border: 1px solid #dce7ed;
}
.fx-related-links a {
  min-height: 42px;
  display: inline-flex;
  align-items: center;
  border: 1px solid transparent;
}
.fx-related-links a:hover {
  transform: translateY(-1px);
  border-color: #bfd5e2;
  color: #006b9f;
}
.fx-article-body {
  text-wrap: pretty;
}
.fx-article-body > p:first-child {
  padding: 18px 20px;
  border-left: 3px solid #008DD2;
  background: #f1f8fc;
  border-radius: 0 12px 12px 0;
}
.fx-article-cta {
  box-shadow: 0 12px 30px rgba(16,42,67,.06);
}

/* Tablet: collapse dense layouts before they become cramped. */
@media (max-width: 980px) {
  .fx-hero {
    grid-template-columns: 1fr;
    gap: 42px;
    padding-top: 52px;
    padding-bottom: 62px;
  }
  .fx-hero-copy { max-width: 760px; }
  .fx-intake-card { max-width: 760px; width: 100%; }
  .fx-proof { margin-bottom: 78px; }
  .fx-visual-story,.fx-feature-split,.fx-feature-split-reverse,.fx-trust,
  .fx-page-hero,.fx-page-narrative {
    grid-template-columns: 1fr;
    gap: 42px;
  }
  .fx-feature-split-reverse .fx-feature-copy,
  .fx-feature-split-reverse .fx-editorial-image { order: initial; }
  .fx-service-cards { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .fx-article-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .fx-trust-list { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .fx-page-card-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .fx-page-hero-copy { max-width: 760px; }
  .fx-page-hero-image { width: min(100%,760px); }
  .fx-page-narrative { gap: 22px; }
  .fx-editorial-image img,.fx-editorial-image-large img { height: min(58vw,520px); }
}

/* Mobile: preserve the one-action booking hierarchy and comfortable touch targets. */
@media (max-width: 680px) {
  html { scroll-padding-top: 18px; }
  body { overflow-x: hidden; }
  .fx-preview { padding: 7px 14px; font-size: 10px; line-height: 1.4; }
  .fx-hero { padding: 38px 18px 48px; gap: 30px; }
  .fx-hero h1 { font-size: clamp(42px,13vw,62px); line-height: .98; }
  .fx-lede { margin-top: 20px; font-size: 17px; line-height: 1.58; }
  .fx-hero-notes { margin-top: 18px; }
  .fx-intake-card { padding: 20px; border-radius: 22px; }
  textarea { min-height: 128px; padding: 15px 16px; font-size: 16px; }
  .fx-inline-fields { grid-template-columns: 1fr; }
  .fx-location,.fx-photo,.fx-primary,.fx-secondary-button,
  .fx-confirm input,.fx-confirm .fx-confirm-button { min-height: 48px; }
  .fx-photo { justify-content: center; }
  .fx-confirm-row { grid-template-columns: 1fr; }
  .fx-confirm .fx-confirm-button { width: 100%; }
  .fx-result-grid { grid-template-columns: 1fr; }
  .fx-result-wide { grid-column: auto; }

  .fx-mobile-menu summary { min-width: 48px; min-height: 48px; }
  .fx-mobile-menu nav a { min-height: 48px; display: flex; align-items: center; }
  .fx-mobile-menu nav .fx-mobile-request {
    justify-content: center;
    margin-top: 8px;
    border-radius: 12px;
    background: #E31D24;
    color: #fff;
    font-weight: 850;
  }
  .fx-mobile-menu nav .fx-mobile-request:focus-visible { outline-color: #008DD2; }

  .fx-proof { grid-template-columns: 1fr; gap: 1px; padding: 0 18px; margin-bottom: 70px; }
  .fx-proof>div { padding: 22px; }
  .fx-proof>div:first-child { border-radius: 16px 16px 0 0; }
  .fx-proof>div:last-child { border-radius: 0 0 16px 16px; }

  .fx-visual-story,.fx-feature-split,.fx-feature-split-reverse,
  .fx-audience-grid,.fx-trust { padding-left: 18px; padding-right: 18px; }
  .fx-visual-story,.fx-feature-split { margin-bottom: 78px; }
  .fx-visual-story h2,.fx-feature-copy h2,.fx-trust h2 { font-size: clamp(36px,10vw,48px); }
  .fx-editorial-image { border-radius: 20px; }
  .fx-editorial-image img,.fx-editorial-image-large img { height: 74vw; max-height: 430px; min-height: 280px; }

  .fx-service-band,.fx-how,.fx-guides-home { padding-left: 18px; padding-right: 18px; }
  .fx-service-band,.fx-how,.fx-guides-home { padding-top: 76px; padding-bottom: 76px; }
  .fx-section-heading-row { display: block; }
  .fx-section-heading-row>p { margin-top: 16px; }
  .fx-service-cards,.fx-steps,.fx-article-grid,.fx-trust-list,.fx-page-card-grid { grid-template-columns: 1fr; }
  .fx-card-body span { min-height: 0; }
  .fx-steps { margin-top: 38px; }
  .fx-steps article { min-height: 0; padding: 24px; }
  .fx-steps h3 { margin-top: 24px; }

  .fx-audience-grid { grid-template-columns: 1fr; margin-top: 76px; margin-bottom: 76px; }
  .fx-audience-card { min-height: 420px; border-radius: 20px; }
  .fx-audience-card>div { left: 24px; right: 24px; bottom: 24px; }
  .fx-audience-card h2 { font-size: 38px; }
  .fx-mini-points { grid-template-columns: 1fr; }
  .fx-trust { padding-top: 76px; padding-bottom: 76px; }

  .fx-page-hero {
    padding: 38px 18px 54px;
    gap: 28px;
  }
  .fx-page-hero h1 { font-size: clamp(40px,12vw,52px); }
  .fx-page-hero-action { margin-top: 22px; }
  .fx-page-hero-action .fx-secondary-button { width: 100%; }
  .fx-page-hero-image { width: 100%; border-radius: 20px; }
  .fx-page-section { padding: 64px 18px; }
  .fx-page-card { padding: 21px 20px 21px 23px; }
  .fx-page-narrative {
    margin: 0 18px 72px;
    padding: 0;
    gap: 18px;
  }
  .fx-page-narrative-copy p { font-size: 16px; line-height: 1.68; }
  .fx-page-cta { margin-top: 24px; padding: 20px; }
  .fx-page-cta .fx-primary { width: 100%; }
  .fx-status-panel { margin-top: 18px; padding: 15px 16px; }
  .fx-related {
    margin: 0 18px 72px;
    padding: 20px;
  }
  .fx-related-links { display: grid; grid-template-columns: 1fr; }
  .fx-related-links a { min-height: 48px; padding: 12px 14px; }
  .fx-article-meta { flex-wrap: wrap; }
  .fx-article-cover { margin-bottom: 40px; }
  .fx-article-cover img { border-radius: 18px; min-height: 250px; }
  .fx-article-body > p:first-child { padding: 16px 17px; }
  .fx-article-body h2 { margin-top: 42px; font-size: 30px; }
  .fx-article-cta { padding: 22px; }
  .fx-article-cta .fx-secondary-button { width: 100%; }

  .fx-primary-inline { width: 100%; min-width: 0; }
}

/* Do not create hover-motion noise on touch-first devices. */
@media (hover: none) {
  .fx-page-card:hover,.fx-related-links a:hover,.fx-service-card:hover {
    transform: none;
  }
}

/* Respect reduced-motion preferences without changing layout or meaning. */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *,*::before,*::after {
    scroll-behavior: auto !important;
    transition-duration: .01ms !important;
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
  }
}