/* Public website: hover states and motion.
   Loaded last on base_website.html. Shared timing tokens come from design-system/motion.css.
   Only colour, shadow, opacity and transform change, so nothing shifts the layout. */

/* ---------- Header ---------- */
.nav-brand .brand-icon { transition: box-shadow var(--dur-base) var(--ease-out), border-color var(--dur-base) var(--ease-standard), transform var(--dur-base) var(--ease-out); }
.nav-brand:hover .brand-icon { border-color: var(--gold-500) !important; box-shadow: 0 6px 16px -6px rgba(11, 59, 44, .3) !important; }
.nav-brand-title { transition: color var(--dur-fast) var(--ease-standard); }
.nav-brand:hover .nav-brand-title { color: var(--primary-600); }

/* Desktop nav: a gold underline grows from the centre on hover; the current page keeps its emerald one. */
@media (min-width: 1200px) {
  .nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 2px;
    border-radius: var(--radius-full);
    background: var(--gold-500);
    transform: scaleX(0);
    transition: transform var(--dur-slow) var(--ease-out);
  }
  .nav-link:hover::after,
  .nav-link:focus-visible::after { transform: scaleX(1); }
  .nav-link.active::after { transform: none; background: var(--primary-600); }
}

/* ---------- Buttons: the icon nudges toward the reading direction ---------- */
.btn svg { transition: transform var(--dur-base) var(--ease-out); }

/* ---------- Cards ---------- */
.card { transition: transform var(--dur-base) var(--ease-out), box-shadow var(--dur-base) var(--ease-out), border-color var(--dur-base) var(--ease-standard), background-color var(--dur-base) var(--ease-standard); }

/* Article titles inside cards */
.card-title-link { color: inherit; text-decoration: none; text-decoration-color: transparent; text-underline-offset: 5px; transition: color var(--dur-fast) var(--ease-standard), text-decoration-color var(--dur-base) var(--ease-standard); }
.card-title-link:hover,
.card-title-link:focus-visible { color: var(--primary-600); text-decoration: underline; text-decoration-thickness: 1.5px; text-decoration-color: var(--gold-500); }

/* Service photos zoom slightly inside their card (the card clips them) */
.service-showcase-card .service-photo { transition: transform .6s var(--ease-out); }

/* Consultation step 1: the service options are labels styled as cards */
#stepPanel1 label.card:hover { box-shadow: 0 0 0 1px var(--gold-500), 0 6px 16px -10px rgba(11, 59, 44, .3); }

/* ---------- Footer ---------- */
.footer-bottom-links a { transition: color var(--dur-fast) var(--ease-standard); }
.footer-link { transition: color var(--dur-fast) var(--ease-standard), transform var(--dur-base) var(--ease-out); }

/* ---------- Movement: real pointers only, never with reduced motion ---------- */
@media (hover: hover) and (prefers-reduced-motion: no-preference) {
  .btn:not(.btn-icon):hover svg { transform: translateX(-3px); }
  [dir="ltr"] .btn:not(.btn-icon):hover svg { transform: translateX(3px); }

  /* Cards that lead somewhere lift; information-only cards stay still. */
  .service-showcase-card:hover,
  .grid > .card:has(.card-title-link):hover {
    transform: translateY(-4px);
    box-shadow: 0 0 0 1px rgba(197, 160, 89, .45), 0 18px 36px -18px rgba(11, 59, 44, .35);
  }
  .service-showcase-card:hover .service-photo { transform: scale(1.04); }

  /* The services page cards are large, so they only get the shadow, not the lift. */
  .service-card:hover { box-shadow: 0 0 0 1px rgba(197, 160, 89, .35), 0 16px 32px -20px rgba(11, 59, 44, .3); }

  .footer-link:hover { transform: translateX(-4px); }
  [dir="ltr"] .footer-link:hover { transform: translateX(4px); }
}

/* ---------- Scroll reveal (static/js/reveal.js adds these classes) ---------- */
@media (prefers-reduced-motion: no-preference) {
  .reveal-on .reveal {
    opacity: 0;
    transform: translateY(18px);
  }
  .reveal-on .reveal.is-visible {
    opacity: 1;
    transform: none;
    transition:
      opacity .55s var(--ease-out) var(--reveal-delay, 0ms),
      transform .55s var(--ease-out) var(--reveal-delay, 0ms) !important;
  }
}

@media print {
  .reveal-on .reveal { opacity: 1 !important; transform: none !important; }
}
