/* ===================================================
   modern.css — Aesthetic enhancements (no content changes)
   Scroll-reveal, hover refinements, smooth scroll, header shadow
   =================================================== */

/* ── Smooth scroll ── */
html { scroll-behavior: smooth; }

/* ── Scroll-reveal base ── */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.75s cubic-bezier(0.16, 1, 0.3, 1),
              transform 0.75s cubic-bezier(0.16, 1, 0.3, 1);
}
.reveal.is-visible {
  opacity: 1;
  transform: none;
}

/* ── Staggered children (trust strip, why-grid, process-grid) ── */
.reveal-stagger > * {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s cubic-bezier(0.16, 1, 0.3, 1),
              transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}
.reveal-stagger.is-visible > *:nth-child(1)  { opacity: 1; transform: none; transition-delay: 0.00s; }
.reveal-stagger.is-visible > *:nth-child(2)  { opacity: 1; transform: none; transition-delay: 0.08s; }
.reveal-stagger.is-visible > *:nth-child(3)  { opacity: 1; transform: none; transition-delay: 0.16s; }
.reveal-stagger.is-visible > *:nth-child(4)  { opacity: 1; transform: none; transition-delay: 0.24s; }
.reveal-stagger.is-visible > *:nth-child(5)  { opacity: 1; transform: none; transition-delay: 0.32s; }
.reveal-stagger.is-visible > *:nth-child(6)  { opacity: 1; transform: none; transition-delay: 0.40s; }

/* ── Header: shadow when page scrolled ── */
.site-header { transition: box-shadow 0.3s ease; }
.site-header.is-scrolled {
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.07);
}

/* ── Why-cards: lift on hover ── */
.why-card {
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1),
              box-shadow 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}
.why-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 40px -16px rgba(0, 0, 0, 0.14);
}

/* ── Process steps: accent highlight on hover ── */
.process-grid li {
  transition: background 0.2s ease, padding-left 0.2s ease;
  border-radius: var(--radius);
}
.process-grid li:hover { background: var(--surface); padding-left: 6px; }
.process-grid li:hover .step-num { color: var(--accent-dark); }
.step-num { transition: color 0.2s ease; }

/* ── FAQ: smoother open/close ── */
.faq-item p {
  animation: fadeDown 0.25s ease forwards;
}
@keyframes fadeDown {
  from { opacity: 0; transform: translateY(-6px); }
  to   { opacity: 1; transform: none; }
}

/* ── Buttons: micro press feedback ── */
.btn:active { transform: scale(0.97); }

/* ── Trust strip items: subtle hover ── */
.trust-strip ul { list-style: none; }
.trust-strip li { transition: color 0.2s ease; }
.trust-strip li:hover { color: var(--ink); }
.trust-strip li:hover .trust-icon { color: var(--accent-dark); }
.trust-icon { transition: color 0.2s ease; }

/* ── Pull-quote ornament pulse ── */
.pull-quote .ornament {
  display: inline-block;
  animation: pulse 3s ease-in-out infinite;
}
@keyframes pulse {
  0%, 100% { opacity: 0.6; transform: scale(1); }
  50%       { opacity: 1;   transform: scale(1.15); }
}

/* ── Hero image: very subtle float ── */
@media (prefers-reduced-motion: no-preference) {
  .hero-media img:not(.placeholder) {
    animation: floatY 6s ease-in-out infinite;
  }
}
@keyframes floatY {
  0%, 100% { transform: translateY(0); }
  50%       { transform: translateY(-6px); }
}

/* ── Respect reduced-motion preference ── */
@media (prefers-reduced-motion: reduce) {
  .reveal, .reveal-stagger > * {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }
  .hero-media img { animation: none !important; }
  .pull-quote .ornament { animation: none !important; }
}
