/* ============================================================================
   PrimeDoggy v2 — assets/css/support.css
   Destination: /wp-content/themes/primedoggy-v2/assets/css/support.css
   Loaded only on the Support page (templates/page-support.php).

   Same gentle motion as Breed Match (rise and fade, slow image drift, a paw
   trail that lights up). Every class starts with "sp-" so nothing here can
   touch the rest of the site. Colours come from tokens.css. Motion stops for
   visitors who have asked their device for reduced motion.
   ========================================================================== */
.pd-sp {
  --sp-wash: #DCE8DF;
  --sp-pale: #c8dbd0;
  --sp-panel: #FBF9F4;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  background: linear-gradient(180deg, var(--sp-wash) 0, var(--cream) 560px) no-repeat var(--cream);
  color: var(--charcoal);
  font-family: var(--font-ui);
  line-height: 1.6;
  overflow-x: clip;
}
.pd-sp, .pd-sp * { box-sizing: border-box; }
:where(.pd-sp) h1, :where(.pd-sp) h2, :where(.pd-sp) h3 { font-family: var(--font-display); font-weight: 600; margin: 0; text-wrap: balance; line-height: 1.12; color: var(--charcoal); }
:where(.pd-sp) p { margin: 0; }
:where(.pd-sp) a { color: var(--sage-emphasis); }
.pd-sp :focus-visible { outline: 3px solid var(--sage-emphasis); outline-offset: 3px; border-radius: 6px; }
.sp-wrap { max-width: var(--container); margin: 0 auto; padding: 0 24px; }

/* ---- Hero ---- */
.sp-hero { padding: 64px 0 56px; }
.sp-hero-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); gap: 56px; align-items: center; }
.sp-hero-copy > * { animation: sp-fade-up 620ms var(--ease) both; }
.sp-hero-copy > *:nth-child(2) { animation-delay: 80ms; }
.sp-hero-copy > *:nth-child(3) { animation-delay: 160ms; }
.sp-hero-copy > *:nth-child(4) { animation-delay: 240ms; }
.sp-eyebrow { font-size: 12px; font-weight: 600; letter-spacing: 0.22em; text-transform: uppercase; color: var(--sage-emphasis); margin-bottom: 16px; display: inline-flex; align-items: center; gap: 10px; }
.sp-eyebrow::before { content: ""; width: 28px; height: 1px; background: var(--sage); }
.pd-sp .sp-hero h1 { font-size: clamp(42px, 6vw, 68px); margin-bottom: 18px; }
.sp-lead { font-size: 19px; max-width: 46ch; color: #3f4a44; margin-bottom: 28px; }
.sp-hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 20px; }
.sp-hours { font-size: 14px; color: var(--muted); }

.sp-btn { display: inline-flex; align-items: center; gap: 10px; background: #7B9584; color: #ffffff !important; border-radius: 999px; padding: 16px 30px; font-size: 16px; font-weight: 600; text-decoration: none; box-shadow: 0 10px 24px rgba(74, 99, 85, 0.22); transition: transform 200ms var(--ease), background-color 200ms ease, box-shadow 200ms ease; }
.sp-btn:hover, .sp-btn:focus-visible { background: #5a7363; transform: translateY(-2px); box-shadow: 0 14px 28px rgba(74, 99, 85, 0.28); }
.sp-btn .sp-arrow { width: 18px; height: 18px; transition: transform 200ms var(--ease); }
.sp-btn:hover .sp-arrow { transform: translateX(3px); }

.sp-hero-art { margin: 0; border-radius: 22px; overflow: hidden; box-shadow: 0 22px 50px rgba(74, 99, 85, 0.22); aspect-ratio: 5 / 4; background: var(--sp-pale); animation: sp-settle 800ms var(--ease) both; }
.sp-hero-art img { width: 100%; height: 100%; object-fit: cover; object-position: 66% 50%; display: block; animation: sp-drift 26s ease-in-out infinite alternate; }

/* ---- Sections ---- */
.sp-section { padding: 72px 0; }
.sp-section-tint { background: var(--sp-panel); border-block: 1px solid var(--border); }
.pd-sp .sp-section h2 { font-size: clamp(30px, 4vw, 44px); text-align: center; margin-bottom: 14px; }
.sp-sub { text-align: center; color: #4a554f; max-width: 58ch; margin: 0 auto 40px; font-size: 17px; }

/* ---- Topic cards ---- */
.sp-cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.sp-card { display: flex; flex-direction: column; align-items: flex-start; gap: 12px; background: var(--white); border: 1px solid var(--border); border-radius: 18px; padding: 32px 28px; text-decoration: none; color: inherit !important; transition: transform 260ms var(--ease), box-shadow 260ms ease, border-color 200ms ease; }
.sp-card:hover, .sp-card:focus-visible { transform: translateY(-6px); box-shadow: 0 22px 40px rgba(74, 99, 85, 0.16); border-color: var(--sage); }
.sp-icon { width: 54px; height: 54px; border-radius: 16px; background: var(--sage-light); color: var(--sage-emphasis); display: inline-flex; align-items: center; justify-content: center; transition: background-color 200ms ease, color 200ms ease, transform 260ms var(--ease); }
.sp-icon svg { width: 26px; height: 26px; }
.sp-card:hover .sp-icon { background: var(--sage); color: #ffffff; transform: scale(1.06) rotate(-4deg); }
.pd-sp .sp-card h3 { font-size: 27px; text-align: left; }
.sp-card p { color: #4a554f; font-size: 16px; flex: 1; }
.sp-go { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; font-size: 15px; color: var(--sage-emphasis); }
.sp-go .sp-arrow { width: 17px; height: 17px; transition: transform 200ms var(--ease); }
.sp-card:hover .sp-go .sp-arrow { transform: translateX(5px); }

/* ---- Steps and paw trail ---- */
.sp-trail { display: flex; justify-content: center; gap: 22px; margin: 18px auto 34px; }
.sp-trail .sp-paw { width: 20px; height: 23px; fill: var(--sage); opacity: 0.18; transition: opacity 400ms ease, transform 500ms var(--ease); }
.sp-trail .sp-paw:nth-child(odd) { transform: translateY(-7px) rotate(-8deg); }
.sp-trail .sp-paw:nth-child(even) { transform: translateY(7px) rotate(8deg); }
.sp-trail.is-in .sp-paw { opacity: 0.85; }
.sp-trail.is-in .sp-paw:nth-child(1) { transition-delay: 100ms; } .sp-trail.is-in .sp-paw:nth-child(2) { transition-delay: 220ms; }
.sp-trail.is-in .sp-paw:nth-child(3) { transition-delay: 340ms; } .sp-trail.is-in .sp-paw:nth-child(4) { transition-delay: 460ms; }
.sp-trail.is-in .sp-paw:nth-child(5) { transition-delay: 580ms; } .sp-trail.is-in .sp-paw:nth-child(6) { transition-delay: 700ms; }
.sp-trail.is-in .sp-paw:nth-child(7) { transition-delay: 820ms; } .sp-trail.is-in .sp-paw:nth-child(8) { transition-delay: 940ms; }
.sp-trail.is-in .sp-paw:nth-child(9) { transition-delay: 1060ms; }

.sp-steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.sp-step { background: var(--white); border: 1px solid var(--border); border-radius: 18px; padding: 30px 28px; }
.sp-num { width: 42px; height: 42px; border-radius: 50%; background: var(--sage-emphasis); color: #ffffff; display: inline-flex; align-items: center; justify-content: center; font-size: 17px; font-weight: 600; margin-bottom: 16px; }
.pd-sp .sp-step h3 { font-size: 25px; margin-bottom: 8px; }
.sp-step p { color: #4a554f; font-size: 16px; }

/* ---- What to include ---- */
.sp-include { display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); gap: 48px; align-items: center; }
.pd-sp .sp-include h2 { text-align: left; }
.sp-include .sp-sub { text-align: left; margin: 0; }
.sp-checks { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 14px; }
.sp-checks li { display: flex; align-items: flex-start; gap: 14px; background: var(--sp-panel); border: 1px solid var(--border); border-radius: 14px; padding: 16px 18px; font-size: 16px; }
.sp-checks svg { width: 24px; height: 24px; padding: 4px; flex-shrink: 0; margin-top: 1px; color: #ffffff; background: var(--sage); border-radius: 50%; }
.sp-note { text-align: center; margin-top: 28px; font-size: 15px; color: var(--sage-emphasis); font-weight: 500; }

/* ---- FAQ ---- */
.sp-faq-wrap { max-width: 820px; }
.sp-faq { display: flex; flex-direction: column; gap: 12px; margin-top: 30px; }
.sp-faq details { background: var(--white); border: 1px solid var(--border); border-radius: 14px; padding: 0 22px; transition: border-color 200ms ease, box-shadow 200ms ease; }
.sp-faq details[open] { border-color: var(--sage); box-shadow: 0 10px 24px rgba(74, 99, 85, 0.1); }
.sp-faq summary { list-style: none; cursor: pointer; padding: 20px 0; font-weight: 600; font-size: 17px; display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.sp-faq summary::-webkit-details-marker { display: none; }
.sp-faq summary::after { content: "+"; font-size: 26px; font-weight: 400; color: var(--sage-emphasis); transition: transform 250ms var(--ease); flex-shrink: 0; }
.sp-faq details[open] summary::after { transform: rotate(45deg); }
.sp-faq details p { padding: 0 0 20px; color: #4a554f; font-size: 16px; max-width: 64ch; animation: sp-fade-up 320ms var(--ease) both; }

/* ---- Sign-off ---- */
.sp-signoff { padding: 64px 0 88px; }
.sp-sign { text-align: center; }
.sp-sign-line { font-family: var(--font-display); font-style: italic; font-size: 26px; color: var(--muted); }
.sp-sign-name { font-family: var(--font-display); font-size: clamp(30px, 4vw, 40px); font-weight: 600; color: var(--charcoal); margin: 4px 0 10px; }
.sp-sign-hours { font-size: 15px; color: var(--muted); }

/* ---- Scroll reveal (script adds .sp-js, then .is-in as items appear) ---- */
.pd-sp.sp-js .sp-reveal { opacity: 0; transform: translateY(18px); transition: opacity 600ms ease, transform 700ms var(--ease); transition-delay: var(--d, 0ms); }
.pd-sp.sp-js .sp-reveal.is-in { opacity: 1; transform: none; }
.pd-sp.sp-js .sp-card.sp-reveal.is-in { transition: opacity 600ms ease var(--d, 0ms), transform 260ms var(--ease), box-shadow 260ms ease, border-color 200ms ease; }

@keyframes sp-fade-up { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
@keyframes sp-settle { from { transform: scale(0.97); opacity: 0.4; } to { transform: none; opacity: 1; } }
@keyframes sp-drift { from { transform: scale(1); } to { transform: scale(1.06); } }

/* ---- Small screens ---- */
@media (max-width: 920px) {
  .sp-hero { padding: 40px 0 40px; }
  .sp-hero-grid { grid-template-columns: 1fr; gap: 32px; }
  .sp-hero-art { aspect-ratio: 4 / 3; }
  .sp-cards, .sp-steps { grid-template-columns: 1fr; }
  .sp-include { grid-template-columns: 1fr; gap: 28px; }
  .pd-sp .sp-include h2, .sp-include .sp-sub { text-align: center; }
  .sp-section { padding: 52px 0; }
  .sp-trail { gap: 14px; }
}

@media (prefers-reduced-motion: reduce) {
  .sp-hero-copy > *, .sp-hero-art, .sp-hero-art img, .sp-faq details p { animation: none; }
  .pd-sp.sp-js .sp-reveal { opacity: 1; transform: none; transition: none; }
  .sp-trail .sp-paw { opacity: 0.85; transition: none; }
  .sp-card, .sp-btn, .sp-icon, .sp-arrow { transition: none; }
}
