/* First Shop Nashville — Custom design layer
   Brand tokens live in tailwind.config (default.html). This file:
   - global resets / typographic feel
   - animations & motion
   - accessibility helpers
*/

:root {
  --navy: #0B1B2B;
  --forest: #1F3D2A;
  --gold: #C9A86A;
  --tan: #E8D9B8;
  --cream: #FAF7F0;
  --charcoal: #1A1A1A;
}

html { scroll-behavior: smooth; }

body {
  font-feature-settings: "ss01", "cv11";
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

/* Display headings: tight tracking, optical sizing */
h1, h2, h3, .font-display {
  font-optical-sizing: auto;
  font-variation-settings: "opsz" 96;
}

/* Reveal-on-scroll */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 700ms cubic-bezier(0.22, 1, 0.36, 1),
              transform 700ms cubic-bezier(0.22, 1, 0.36, 1);
}
.reveal.in {
  opacity: 1;
  transform: none;
}

/* Marquee for trust strip */
@keyframes marquee {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}
.marquee {
  display: flex;
  width: max-content;
  animation: marquee 40s linear infinite;
}
.marquee:hover { animation-play-state: paused; }

/* Subtle float for floating accent shapes */
@keyframes float {
  0%,100% { transform: translateY(0) rotate(0); }
  50%     { transform: translateY(-12px) rotate(2deg); }
}
.float-slow { animation: float 8s ease-in-out infinite; }

/* Underline-on-hover link style */
.link-gold {
  background-image: linear-gradient(currentColor, currentColor);
  background-size: 0 1px;
  background-repeat: no-repeat;
  background-position: 0 100%;
  transition: background-size 300ms;
}
.link-gold:hover { background-size: 100% 1px; }

/* Section divider — gold thin line with diamond */
.divider-gold {
  display: flex; align-items: center; justify-content: center;
  gap: 14px; color: var(--gold);
}
.divider-gold::before,
.divider-gold::after {
  content: "";
  height: 1px; width: 56px;
  background: currentColor; opacity: 0.5;
}

/* Reduce motion */
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  .marquee { animation: none; }
  .float-slow { animation: none; }
  html { scroll-behavior: auto; }
}

/* Alpine cloak */
[x-cloak] { display: none !important; }

/* Custom focus ring */
*:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 3px;
  border-radius: 4px;
}

/* Business card image enhancement — lifts dark indoor shots */
.biz-card-img {
  filter: brightness(1.2) saturate(1.1) contrast(1.02);
}

/* Category tile max-height on mobile so portrait tiles don't tower */
@media (max-width: 639px) {
  .category-tile-wrap {
    max-height: 340px;
  }
}

/* Section visual accent — thin gold rule */
.section-rule {
  width: 48px; height: 2px;
  background: var(--gold);
  border-radius: 1px;
  margin-bottom: 1rem;
}

/* Subtle texture utility */
.texture-grain {
  position: relative;
}
.texture-grain::after {
  content: "";
  position: absolute; inset: 0;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='200' height='200'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/></filter><rect width='100%25' height='100%25' filter='url(%23n)' opacity='0.5'/></svg>");
  opacity: 0.05;
  mix-blend-mode: overlay;
  pointer-events: none;
}
