/* ==========================================================================
   Pickleball fitness & wellness — /pickleball-fitness-wellness/
   Loaded on this page only (after pages.css). Every rule is prefixed .fw-
   so nothing here can affect the homepage or any other page.
   ========================================================================== */

/* Hero: subtle court-line pattern behind the copy and the lead card */
.fw-hero .wrap { position: relative; z-index: 1; }
.fw-hero::after {
  content: ""; position: absolute; inset: 0; z-index: 0; pointer-events: none; opacity: .07;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1000 600' fill='none' stroke='%23183248' stroke-width='2' preserveAspectRatio='none'%3E%3Cpath d='M40 40H960V560H40Z M500 40V560 M40 190H960 M40 410H960 M270 190V410 M730 190V410'/%3E%3C/svg%3E") center / 100% 100% no-repeat;
}

/* Section 2: numbered warm-up steps */
.fw-steps { display: grid; gap: 12px; margin-top: 24px; }
.fw-step { display: grid; grid-template-columns: 38px minmax(0, 1fr); gap: 14px; align-items: start; padding: 14px 16px; border-radius: 18px; background: var(--card); border: 1px solid var(--line); transition: transform .4s var(--ease), box-shadow .3s; }
.fw-step:hover { transform: translateY(-2px); box-shadow: 0 12px 30px rgba(16,30,44,.09); }
.fw-step__n { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 50%; background: var(--lime); color: var(--ink); font-weight: 800; }
.fw-step h3 { font-size: 1.04rem; font-weight: 700; letter-spacing: -.015em; line-height: 1.25; }
.fw-step p { margin-top: 3px; font-size: .94rem; color: var(--ink-2); }

/* Section 3: three photo cards + safety note */
.fw-cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; margin-top: clamp(28px, 3.4vw, 48px); }
.fw-card { overflow: hidden; display: flex; flex-direction: column; border-radius: 24px; background: #fff; border: 1px solid var(--line); box-shadow: 0 1px 2px rgba(16,30,44,.05), 0 12px 32px rgba(16,30,44,.07); transition: transform .4s var(--ease), box-shadow .3s; }
.fw-card:hover { transform: translateY(-4px); box-shadow: 0 1px 2px rgba(16,30,44,.06), 0 18px 40px rgba(16,30,44,.12); }
.fw-card__img { aspect-ratio: 4 / 3; border-radius: 0; box-shadow: none; }
.fw-card__b { padding: 22px 22px 26px; }
.fw-card__n { font-family: var(--f-mono); font-size: .64rem; font-weight: 600; letter-spacing: .14em; color: var(--teal-ink); }
.fw-card h3 { margin-top: 8px; font-size: 1.22rem; font-weight: 700; letter-spacing: -.02em; line-height: 1.2; }
.fw-card p { margin-top: 8px; color: var(--ink-2); }
.fw-safety { max-width: 62ch; margin: clamp(24px, 3vw, 36px) auto 0; padding: 16px 20px; border-radius: 16px; background: rgba(255,255,255,.7); border: 1px solid var(--line); color: var(--ink-2); font-size: .96rem; text-align: center; }
.fw-safety b { color: var(--ink); }

/* Section 4: overhead court diagram with animated movement paths */
.fw-visual { display: grid; gap: 18px; }
.fw-diagram { margin: 0; padding: 18px 18px 14px; border-radius: 28px; background: var(--card); border: 1px solid var(--line); box-shadow: 0 1px 2px rgba(16,30,44,.05), 0 24px 56px rgba(16,30,44,.1); }
.fw-diagram svg { display: block; width: 100%; max-width: 270px; height: auto; margin: 0 auto; }
.fw-diagram figcaption { margin-top: 10px; text-align: center; font-size: .86rem; color: var(--ink-3); }
.fw-c { fill: none; stroke: var(--teal); stroke-width: 2; }
.fw-c--fill { fill: rgba(168,217,91,.22); }
.fw-net { stroke: var(--ink); stroke-width: 3; stroke-dasharray: 3 3; }
.fw-t { paint-order: stroke; stroke: #eef5dc; stroke-width: 4px; stroke-linejoin: round; fill: var(--ink-3); font-family: var(--f-mono); font-size: 8.5px; font-weight: 600; letter-spacing: .1em; }
.fw-path { fill: none; stroke: var(--ink); stroke-width: 3; stroke-linecap: round; stroke-dasharray: 7 7; animation: fwDash 1.6s linear infinite; }
.fw-path--b, .fw-path--c { stroke: var(--teal-ink); }
.fw-ah { fill: var(--ink); }
.fw-dot { fill: var(--lime); stroke: var(--ink); stroke-width: 2.5; offset-path: path("M110 405 L110 345 C110 325 100 312 80 300"); offset-rotate: 0deg; animation: fwMove 4.8s ease-in-out infinite; }
.fw-wide { aspect-ratio: 16 / 10; }
@keyframes fwDash { to { stroke-dashoffset: -28; } }
@keyframes fwMove { 0% { offset-distance: 0%; opacity: 0; } 12% { opacity: 1; } 78% { offset-distance: 100%; opacity: 1; } 100% { offset-distance: 100%; opacity: 0; } }

/* Section 5: four photo blocks inside the navy section */
.fw-dgrid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; margin-top: clamp(30px, 3.6vw, 52px); }
.fw-d { overflow: hidden; border-radius: 22px; background: rgba(247,245,239,.06); border: 1px solid var(--line-dark); transition: transform .4s var(--ease), background-color .3s; }
.fw-d:hover { transform: translateY(-4px); background: rgba(247,245,239,.1); }
.fw-d__img { aspect-ratio: 4 / 3; border-radius: 0; box-shadow: none; }
.fw-d__b { padding: 20px 20px 24px; }
.fw-d h3 { font-size: 1.12rem; font-weight: 700; letter-spacing: -.02em; line-height: 1.22; color: var(--on-dark); }
.fw-d p { margin-top: 8px; font-size: .96rem; color: var(--on-dark-2); }


@media (max-width: 1023px) {
  .fw-cards { grid-template-columns: minmax(0, 1fr); }
  .fw-card { flex-direction: row; }
  .fw-card__img { flex: 0 0 42%; aspect-ratio: auto; }
  .fw-dgrid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 640px) {
  .fw-card { flex-direction: column; }
  .fw-card__img { flex: none; aspect-ratio: 16 / 10; width: 100%; }
  .fw-dgrid { grid-template-columns: minmax(0, 1fr); }
  .fw-step { padding: 12px 14px; }
}
@media (prefers-reduced-motion: reduce) {
  .fw-path, .fw-dot { animation: none; }
  .fw-dot { offset-distance: 100%; }
  .fw-step, .fw-card, .fw-d { transition: none; }
}
