/* ==========================================================================
   Base
   Modern reset, root typography, shared keyframes and small utilities.
   Depends on tokens.css.
   ========================================================================== */

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--nav-offset);
  -webkit-text-size-adjust: 100%;
  min-height: 100%;
  background-color: var(--c-cream); /* explicit root color: iOS 26 Safari falls back to an opaque white bar when the root is transparent */
}

body {
  margin: 0;
  min-height: 100%;
  background: var(--c-cream);
  color: var(--c-ink);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img,
svg {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
}

button {
  font-family: inherit;
}

h1, h2, h3, h4 {
  font-family: var(--font-display);
  color: var(--c-ink);
  margin: 0;
}

p {
  margin: 0;
}

/* Figures (used for the review cards) carry a 40px UA margin by default —
   reset it so card spacing is controlled by gap, not the browser default. */
figure {
  margin: 0;
}

:focus-visible {
  outline: 2px solid var(--c-coral);
  outline-offset: 3px;
}

/* --- Shared keyframes -------------------------------------------------- */

/* Pulsing coral glow used on accent rules and pins. */
@keyframes bt-neon {
  0%, 100% {
    opacity: 0.9;
    box-shadow: 0 0 10px rgba(244, 135, 107, 0.32),
                0 0 20px rgba(255, 154, 122, 0.16);
  }
  50% {
    opacity: 1;
    box-shadow: 0 0 14px rgba(244, 135, 107, 0.46),
                0 0 28px rgba(255, 154, 122, 0.24);
  }
}

/* Radar "ping" used by location map pins. */
@keyframes bt-ping {
  0%   { box-shadow: 0 0 12px rgba(244, 135, 107, 0.7), 0 0 0 0   rgba(244, 135, 107, 0.35); }
  100% { box-shadow: 0 0 12px rgba(244, 135, 107, 0.7), 0 0 0 14px rgba(244, 135, 107, 0);    }
}

/* --- Scroll-reveal ----------------------------------------------------- */
/* Elements tagged [data-reveal] start hidden and animate in once observed.
   Toggled by assets/js/reveal.js via the .is-visible class. */
[data-reveal] {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.7s var(--ease-out), transform 0.7s var(--ease-out);
}

[data-reveal].is-visible {
  opacity: 1;
  transform: none;
}

/* Respect users who prefer less motion: no animations, nothing left hidden. */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }
  [data-reveal] {
    opacity: 1;
    transform: none;
  }
}

/* --- Utilities --------------------------------------------------------- */

.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.container--text {
  max-width: var(--container-text);
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  border: 0;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  overflow: hidden;
  white-space: nowrap;
}
