/* ============================================
   CRESCENT KNOX — Design System
   Fonts: Outfit (display) + DM Sans (body)
   Colors: Navy #011936, Blue #4169E1, Orange #FF8C00
   ============================================ */

:root {
  /* Brand Colors */
  --navy: #011936;
  --navy-light: #0a2d5e;
  --navy-90: rgba(1, 25, 54, 0.9);
  --blue: #4169E1;
  --blue-light: #6b8cf0;
  --blue-dark: #2c4db3;
  --blue-10: rgba(65, 105, 225, 0.1);
  --blue-20: rgba(65, 105, 225, 0.2);
  --orange: #FF8C00;
  --orange-light: #ffab42;
  --orange-dark: #cc7000;
  --orange-10: rgba(255, 140, 0, 0.1);
  --lavender: #E1E6F5;
  --lavender-light: #eef1fa;

  /* Neutrals */
  --bg: #F7F8FC;
  --bg-warm: #FAFBFE;
  --white: #FFFFFF;
  --ink: #1a2b42;
  --ink-light: #5a6a7e;
  --ink-lighter: #8a95a5;
  --ink-faint: #b8c0cc;
  --border: rgba(1, 25, 54, 0.08);
  --border-strong: rgba(1, 25, 54, 0.15);

  /* Semantic */
  --success: #10b981;
  --success-bg: #ecfdf5;
  --warning: #f59e0b;
  --warning-bg: #fffbeb;
  --error: #ef4444;
  --error-bg: #fef2f2;

  /* Typography */
  --font-display: 'Outfit', sans-serif;
  --font-body: 'DM Sans', sans-serif;

  /* Shadows — tinted to navy */
  --shadow-xs: 0 1px 2px rgba(1, 25, 54, 0.04);
  --shadow-sm: 0 2px 8px rgba(1, 25, 54, 0.06);
  --shadow-md: 0 4px 16px rgba(1, 25, 54, 0.08);
  --shadow-lg: 0 8px 32px rgba(1, 25, 54, 0.1);
  --shadow-xl: 0 16px 48px rgba(1, 25, 54, 0.14);
  --shadow-card: 0 1px 3px rgba(1, 25, 54, 0.06), 0 4px 12px rgba(1, 25, 54, 0.04);
  --shadow-card-hover: 0 4px 12px rgba(1, 25, 54, 0.08), 0 12px 32px rgba(1, 25, 54, 0.08);

  /* Spacing */
  --space-2xs: 0.25rem;
  --space-xs: 0.5rem;
  --space-sm: 0.75rem;
  --space-md: 1rem;
  --space-lg: 1.5rem;
  --space-xl: 2rem;
  --space-2xl: 3rem;
  --space-3xl: 4rem;
  --space-4xl: 6rem;

  /* Radius */
  --radius-sm: 0.5rem;
  --radius-md: 0.75rem;
  --radius-lg: 1rem;
  --radius-xl: 1.25rem;
  --radius-2xl: 1.5rem;
  --radius-full: 9999px;

  /* Transitions */
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
  --duration-fast: 150ms;
  --duration-base: 250ms;
  --duration-slow: 400ms;

  /* Layout */
  --navbar-height: 4rem;
  --mobile-nav-height: 4.25rem;
  --container-max: 1200px;
  --container-wide: 1400px;
}

/* ============================================
   RESET & BASE
   ============================================ */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.6;
  color: var(--ink);
  background-color: var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
  padding-bottom: var(--mobile-nav-height);
}

@media (min-width: 769px) {
  body { padding-bottom: 0; }
}

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

a {
  color: inherit;
  text-decoration: none;
}

button {
  font-family: inherit;
  cursor: pointer;
  border: none;
  background: none;
}

input, select, textarea {
  font-family: inherit;
  font-size: 1rem;
}

ul, ol { list-style: none; }

:focus-visible {
  outline: 2px solid var(--blue);
  outline-offset: 2px;
}

::selection {
  background: var(--blue-20);
  color: var(--navy);
}

/* ============================================
   TYPOGRAPHY
   ============================================ */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.02em;
  color: var(--navy);
}

h1 { font-size: clamp(2rem, 5vw, 3.25rem); font-weight: 800; }
h2 { font-size: clamp(1.5rem, 3.5vw, 2.25rem); }
h3 { font-size: clamp(1.25rem, 2.5vw, 1.5rem); font-weight: 600; }
h4 { font-size: 1.125rem; font-weight: 600; }

p { max-width: 65ch; }

.text-sm { font-size: 0.875rem; }
.text-xs { font-size: 0.75rem; }
.text-lg { font-size: 1.125rem; }
.text-muted { color: var(--ink-light); }
.text-faint { color: var(--ink-lighter); }
.text-orange { color: var(--orange); }
.text-blue { color: var(--blue); }
.text-center { text-align: center; }
.font-display { font-family: var(--font-display); }
.font-semibold { font-weight: 600; }
.font-bold { font-weight: 700; }

/* ============================================
   LAYOUT
   ============================================ */
.container {
  width: 100%;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 var(--space-lg);
}

.container-wide {
  max-width: var(--container-wide);
  margin: 0 auto;
  padding: 0 var(--space-lg);
}

.section {
  padding: var(--space-3xl) 0;
}

.section-sm {
  padding: var(--space-2xl) 0;
}

@media (min-width: 769px) {
  .section { padding: var(--space-4xl) 0; }
}

/* ============================================
   NAVBAR — Desktop
   ============================================ */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  height: var(--navbar-height);
  background: var(--white);
  border-bottom: 1px solid var(--border);
  transition: background var(--duration-base) var(--ease-out),
              box-shadow var(--duration-base) var(--ease-out);
}

@media (min-width: 769px) {
  .navbar {
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(16px) saturate(180%);
    -webkit-backdrop-filter: blur(16px) saturate(180%);
  }
}

.navbar.scrolled {
  background: rgba(255, 255, 255, 0.95);
  box-shadow: var(--shadow-sm);
}

.navbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
  max-width: var(--container-wide);
  margin: 0 auto;
  padding: 0 var(--space-lg);
}

.navbar-logo {
  display: flex;
  align-items: center;
  flex-shrink: 0;
}

.navbar-logo svg,
.navbar-logo img {
  height: 2rem;
  width: auto;
}

.navbar-links {
  display: none;
  align-items: center;
  gap: var(--space-xs);
}

@media (min-width: 769px) {
  .navbar-links { display: flex; }
}

.nav-link {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 0.9375rem;
  padding: 0.5rem 1rem;
  border-radius: var(--radius-full);
  color: var(--ink-light);
  transition: color var(--duration-fast) var(--ease-out),
              background var(--duration-fast) var(--ease-out);
  position: relative;
}

.nav-link:hover,
.nav-link.active {
  color: var(--navy);
  background: var(--blue-10);
}

.nav-link.active {
  color: var(--blue);
  font-weight: 600;
}

/* Directory dropdown */
.nav-dropdown {
  position: relative;
}

.nav-dropdown .nav-link {
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

.nav-dropdown .nav-link i {
  font-size: 0.75rem;
  transition: transform var(--duration-fast);
}

.nav-dropdown:hover .nav-link i {
  transform: rotate(180deg);
}

.nav-dropdown-menu {
  display: none;
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  padding-top: 0.5rem;
  z-index: 100;
}

.nav-dropdown:hover .nav-dropdown-menu {
  display: block;
}

.nav-dropdown-inner {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  padding: var(--space-sm);
  min-width: 220px;
  max-height: 400px;
  overflow-y: auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2px;
}

.nav-dropdown-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 0.75rem;
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--ink);
  border-radius: var(--radius-sm);
  white-space: nowrap;
  transition: background var(--duration-fast);
}

.nav-dropdown-item:hover {
  background: var(--blue-10);
  color: var(--blue);
}

.nav-dropdown-item i {
  font-size: 1rem;
  color: var(--ink-lighter);
  flex-shrink: 0;
}

.nav-dropdown-item:hover i {
  color: var(--blue);
}

.nav-dropdown-all {
  grid-column: 1 / -1;
  border-top: 1px solid var(--border);
  margin-top: 0.25rem;
  padding-top: 0.5rem;
  font-weight: 600;
  color: var(--blue);
}

.navbar-cta {
  display: none;
}

@media (min-width: 769px) {
  .navbar-cta { display: inline-flex; }
}

.navbar-hamburger {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 2.5rem;
  height: 2.5rem;
  padding: 0.5rem;
  border-radius: var(--radius-sm);
}

@media (min-width: 769px) {
  .navbar-hamburger { display: none; }
}

.navbar-hamburger span {
  display: block;
  width: 100%;
  height: 2px;
  background: var(--navy);
  border-radius: 1px;
  transition: transform var(--duration-base) var(--ease-out),
              opacity var(--duration-fast);
}

.navbar-hamburger.open span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
.navbar-hamburger.open span:nth-child(2) {
  opacity: 0;
}
.navbar-hamburger.open span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* Mobile Menu Overlay */
.mobile-menu {
  position: fixed;
  top: var(--navbar-height);
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 99;
  background: var(--white);
  padding: var(--space-xl);
  transform: translateX(100%);
  transition: transform var(--duration-slow) var(--ease-out);
  overflow-y: auto;
}

.mobile-menu.open {
  transform: translateX(0);
}

.mobile-menu a {
  display: flex;
  align-items: center;
  gap: var(--space-md);
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 600;
  padding: var(--space-md) 0;
  border-bottom: 1px solid var(--border);
  color: var(--navy);
}

.mobile-menu a i {
  font-size: 1.5rem;
  color: var(--blue);
  width: 2rem;
}

/* ============================================
   MOBILE BOTTOM NAV
   ============================================ */
.mobile-nav {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 100;
  height: var(--mobile-nav-height);
  background: var(--white);
  border-top: 1px solid var(--border);
  display: flex;
  align-items: stretch;
  box-shadow: 0 -4px 20px rgba(1, 25, 54, 0.06);
  padding-bottom: env(safe-area-inset-bottom, 0);
}

@media (min-width: 769px) {
  .mobile-nav { display: none; }
}

.mobile-nav-item {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.2rem;
  font-family: var(--font-display);
  font-size: 0.625rem;
  font-weight: 500;
  color: var(--ink-lighter);
  transition: color var(--duration-fast);
  padding: 0.5rem 0;
  -webkit-tap-highlight-color: transparent;
  position: relative;
}

.mobile-nav-item i {
  font-size: 1.375rem;
  transition: transform var(--duration-fast) var(--ease-spring);
}

.mobile-nav-item.active {
  color: var(--blue);
}

.mobile-nav-item.active::before {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 2rem;
  height: 2px;
  background: var(--blue);
  border-radius: 0 0 2px 2px;
}

.mobile-nav-item:active i {
  transform: scale(0.9);
}

/* ============================================
   BUTTONS
   ============================================ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-xs);
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.9375rem;
  padding: 0.75rem 1.5rem;
  border-radius: var(--radius-full);
  transition: all var(--duration-base) var(--ease-out);
  white-space: nowrap;
  min-height: 2.75rem;
  border: none;
  cursor: pointer;
}

.btn:active {
  transform: scale(0.97);
}

.btn-primary {
  background: var(--orange);
  color: var(--white);
  box-shadow: 0 2px 8px rgba(255, 140, 0, 0.3);
}

.btn-primary:hover {
  background: var(--orange-dark);
  box-shadow: 0 4px 16px rgba(255, 140, 0, 0.35);
  transform: translateY(-1px);
}

.btn-secondary {
  background: var(--blue);
  color: var(--white);
  box-shadow: 0 2px 8px rgba(65, 105, 225, 0.25);
}

.btn-secondary:hover {
  background: var(--blue-dark);
  box-shadow: 0 4px 16px rgba(65, 105, 225, 0.3);
  transform: translateY(-1px);
}

.btn-outline {
  background: transparent;
  color: var(--navy);
  border: 1.5px solid var(--border-strong);
}

.btn-outline:hover {
  background: var(--navy);
  color: var(--white);
  border-color: var(--navy);
}

.btn-ghost {
  background: var(--blue-10);
  color: var(--blue);
}

.btn-ghost:hover {
  background: var(--blue-20);
}

.btn-sm {
  font-size: 0.8125rem;
  padding: 0.5rem 1rem;
  min-height: 2.25rem;
}

.btn-lg {
  font-size: 1.0625rem;
  padding: 1rem 2rem;
  min-height: 3.25rem;
}

.btn-icon {
  width: 2.75rem;
  height: 2.75rem;
  padding: 0;
  border-radius: var(--radius-md);
}

.btn-icon i {
  font-size: 1.25rem;
}

/* ============================================
   HERO SECTION
   ============================================ */
.hero {
  position: relative;
  min-height: min(85vh, 680px);
  display: flex;
  align-items: center;
  padding-top: calc(var(--navbar-height) + var(--space-2xl));
  padding-bottom: var(--space-3xl);
  background: linear-gradient(160deg, var(--navy) 0%, var(--navy-light) 40%, #0f3a7a 100%);
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -20%;
  width: 80%;
  height: 200%;
  background: radial-gradient(ellipse at center, rgba(65, 105, 225, 0.15) 0%, transparent 70%);
  animation: heroGlow 8s ease-in-out infinite alternate;
  pointer-events: none;
}

.hero::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 120px;
  background: linear-gradient(to top, var(--bg), transparent);
  pointer-events: none;
}

.hero-pattern {
  position: absolute;
  inset: 0;
  opacity: 0.04;
  background-image: url('/assets/pattern.svg');
  background-size: 200px;
  animation: patternDrift 30s linear infinite;
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 640px;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: var(--space-xs);
  font-family: var(--font-display);
  font-size: 0.8125rem;
  font-weight: 600;
  padding: 0.4rem 1rem;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: var(--radius-full);
  color: var(--orange-light);
  margin-bottom: var(--space-lg);
  backdrop-filter: blur(4px);
}

.hero h1 {
  color: var(--white);
  font-size: clamp(2.25rem, 6vw, 3.5rem);
  line-height: 1.1;
  margin-bottom: var(--space-lg);
  letter-spacing: -0.03em;
}

.hero h1 .accent {
  color: var(--orange);
}

.hero-subtitle {
  color: rgba(255, 255, 255, 0.7);
  font-size: clamp(1rem, 2.5vw, 1.1875rem);
  line-height: 1.6;
  margin-bottom: var(--space-2xl);
  max-width: 520px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-md);
  margin-bottom: var(--space-2xl);
}

.hero-stats {
  display: flex;
  gap: var(--space-2xl);
}

.hero-stat {
  text-align: left;
}

.hero-stat-number {
  font-family: var(--font-display);
  font-size: 1.75rem;
  font-weight: 800;
  color: var(--white);
  letter-spacing: -0.02em;
}

.hero-stat-label {
  font-size: 0.8125rem;
  color: rgba(255, 255, 255, 0.5);
  margin-top: 0.125rem;
}

/* ============================================
   CATEGORIES
   ============================================ */
.categories-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: var(--space-md);
}

@media (min-width: 769px) {
  .categories-grid {
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  }
}

.category-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-sm);
  padding: var(--space-lg) var(--space-md);
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  transition: all var(--duration-base) var(--ease-out);
  cursor: pointer;
  text-align: center;
  -webkit-tap-highlight-color: transparent;
}

.category-card:hover {
  border-color: var(--blue);
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

.category-card:active {
  transform: scale(0.97);
}

.category-card.active {
  background: var(--blue-10);
  border-color: var(--blue);
}

.category-icon {
  width: 3rem;
  height: 3rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-md);
  background: var(--blue-10);
  color: var(--blue);
  font-size: 1.375rem;
  transition: all var(--duration-base) var(--ease-out);
}

.category-card:hover .category-icon {
  background: var(--blue);
  color: var(--white);
  transform: scale(1.05);
}

.category-name {
  font-family: var(--font-display);
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--navy);
  line-height: 1.3;
}

.category-count {
  font-size: 0.6875rem;
  color: var(--ink-lighter);
  font-weight: 500;
}

/* Category chips (horizontal scroll) */
.category-chips {
  display: flex;
  gap: var(--space-xs);
  overflow-x: auto;
  scrollbar-width: none;
  -ms-overflow-style: none;
  padding: var(--space-xs) 0;
  -webkit-overflow-scrolling: touch;
}

.category-chips::-webkit-scrollbar { display: none; }

.category-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  padding: 0.5rem 1rem;
  border-radius: var(--radius-full);
  font-family: var(--font-display);
  font-size: 0.8125rem;
  font-weight: 500;
  white-space: nowrap;
  border: 1px solid var(--border-strong);
  color: var(--ink-light);
  background: var(--white);
  transition: all var(--duration-fast) var(--ease-out);
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}

.category-chip i {
  font-size: 1rem;
}

.category-chip:hover {
  border-color: var(--blue);
  color: var(--blue);
  background: var(--blue-10);
}

.category-chip.active {
  background: var(--blue);
  color: var(--white);
  border-color: var(--blue);
}

/* ============================================
   BUSINESS CARDS
   ============================================ */
.cards-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-lg);
}

@media (min-width: 540px) {
  .cards-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 1024px) {
  .cards-grid { grid-template-columns: repeat(3, 1fr); }
}

.business-card {
  background: var(--white);
  border-radius: var(--radius-xl);
  border: 1px solid var(--border);
  overflow: hidden;
  transition: all var(--duration-base) var(--ease-out);
  position: relative;
  display: flex;
  flex-direction: column;
  cursor: pointer;
}

.business-card:hover {
  box-shadow: var(--shadow-card-hover);
  transform: translateY(-3px);
  border-color: transparent;
}

.business-card:active {
  transform: translateY(-1px);
}

.card-image {
  position: relative;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: var(--lavender);
}

.card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--duration-slow) var(--ease-out);
}

.business-card:hover .card-image img {
  transform: scale(1.04);
}

.card-image-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--lavender) 0%, var(--lavender-light) 100%);
  color: var(--ink-lighter);
  font-size: 2.5rem;
}

.card-badges {
  position: absolute;
  top: var(--space-sm);
  left: var(--space-sm);
  display: flex;
  flex-wrap: wrap;
  gap: 0.375rem;
}

.card-badge {
  font-family: var(--font-display);
  font-size: 0.6875rem;
  font-weight: 600;
  padding: 0.25rem 0.625rem;
  border-radius: var(--radius-full);
  background: var(--white);
  color: var(--blue);
  box-shadow: var(--shadow-sm);
  backdrop-filter: blur(4px);
}

.card-badge.halal {
  background: var(--success);
  color: var(--white);
}

.card-badge.halal-partial {
  background: var(--warning);
  color: var(--navy);
}

.card-body {
  padding: var(--space-lg);
}

.card-title {
  font-family: var(--font-display);
  font-size: 1.0625rem;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 0.375rem;
  line-height: 1.3;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.card-address {
  font-size: 0.8125rem;
  color: var(--ink-light);
  display: flex;
  align-items: flex-start;
  gap: 0.375rem;
  margin-bottom: var(--space-md);
  line-height: 1.4;
}

.card-address i {
  color: var(--ink-lighter);
  margin-top: 2px;
  flex-shrink: 0;
}

.card-categories {
  display: flex;
  flex-wrap: wrap;
  gap: 0.375rem;
  margin-bottom: var(--space-md);
}

.card-cat-tag {
  font-size: 0.6875rem;
  font-weight: 500;
  padding: 0.2rem 0.5rem;
  border-radius: var(--radius-full);
  background: var(--blue-10);
  color: var(--blue-dark);
}

.card-actions {
  display: flex;
  gap: var(--space-xs);
  padding: 0 var(--space-lg) var(--space-lg);
  margin-top: auto;
  border-top: 1px solid var(--border);
  padding-top: var(--space-md);
  margin-left: var(--space-lg);
  margin-right: var(--space-lg);
  padding-left: 0;
  padding-right: 0;
}

.card-link {
  display: block;
  text-decoration: none;
  color: inherit;
  flex: 1;
}

.card-link:hover .card-title {
  color: var(--blue);
}

.card-action {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.375rem;
  padding: 0.5rem;
  border-radius: var(--radius-sm);
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--ink-light);
  transition: all var(--duration-fast) var(--ease-out);
  min-height: 2.5rem;
  -webkit-tap-highlight-color: transparent;
}

.card-action i {
  font-size: 1.125rem;
}

.card-action:hover {
  background: var(--blue-10);
  color: var(--blue);
}

.card-action.call:hover {
  background: var(--success-bg);
  color: var(--success);
}

.card-action.directions:hover {
  background: var(--orange-10);
  color: var(--orange);
}

/* ============================================
   SEARCH & FILTERS
   ============================================ */
.search-bar {
  position: relative;
  max-width: 600px;
  width: 100%;
}

.search-bar input {
  width: 100%;
  padding: 0.875rem 1.25rem 0.875rem 3rem;
  border-radius: var(--radius-full);
  border: 1.5px solid var(--border-strong);
  background: var(--white);
  font-size: 0.9375rem;
  color: var(--ink);
  transition: all var(--duration-fast) var(--ease-out);
  min-height: 3rem;
}

.search-bar input:focus {
  outline: none;
  border-color: var(--blue);
  box-shadow: 0 0 0 3px var(--blue-10);
}

.search-bar input::placeholder {
  color: var(--ink-lighter);
}

.search-bar i {
  position: absolute;
  left: 1.125rem;
  top: 50%;
  transform: translateY(-50%);
  color: var(--ink-lighter);
  font-size: 1.125rem;
  pointer-events: none;
}

.search-clear {
  position: absolute;
  right: 0.75rem;
  top: 50%;
  transform: translateY(-50%);
  width: 1.75rem;
  height: 1.75rem;
  display: none;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-full);
  color: var(--ink-lighter);
  font-size: 0.875rem;
}

.search-clear.visible { display: flex; }
.search-clear:hover { background: var(--border); }

.filter-bar {
  display: flex;
  align-items: center;
  gap: var(--space-md);
  flex-wrap: wrap;
}

.filter-group {
  display: flex;
  align-items: center;
  gap: var(--space-xs);
}

.filter-select {
  padding: 0.5rem 2rem 0.5rem 0.75rem;
  border: 1.5px solid var(--border-strong);
  border-radius: var(--radius-sm);
  background: var(--white);
  font-size: 0.8125rem;
  font-family: var(--font-display);
  font-weight: 500;
  color: var(--ink);
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath d='M3 5l3 3 3-3' stroke='%235a6a7e' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.75rem center;
  min-height: 2.25rem;
}

.results-count {
  font-size: 0.875rem;
  color: var(--ink-light);
  font-weight: 500;
}

.results-count strong {
  color: var(--navy);
  font-weight: 700;
}

.clear-filters {
  font-size: 0.8125rem;
  color: var(--blue);
  font-weight: 500;
  cursor: pointer;
  display: none;
  align-items: center;
  gap: 0.25rem;
}

.clear-filters.visible { display: inline-flex; }

.clear-filters:hover {
  text-decoration: underline;
}

.view-toggle {
  display: flex;
  background: var(--border);
  border-radius: var(--radius-sm);
  padding: 2px;
}

.view-toggle-btn {
  padding: 0.375rem 0.625rem;
  border-radius: calc(var(--radius-sm) - 2px);
  font-size: 1rem;
  color: var(--ink-lighter);
  transition: all var(--duration-fast);
}

.view-toggle-btn.active {
  background: var(--white);
  color: var(--navy);
  box-shadow: var(--shadow-xs);
}

/* List view */
.cards-list {
  display: flex;
  flex-direction: column;
  gap: var(--space-xs);
}

.cards-list .business-card {
  flex-direction: row;
  align-items: center;
  border-radius: var(--radius-md);
  padding: var(--space-sm) var(--space-md);
  gap: var(--space-md);
}

.cards-list .business-card:hover {
  transform: none;
  box-shadow: var(--shadow-sm);
}

.cards-list .card-link {
  display: flex;
  align-items: center;
  gap: var(--space-md);
  flex: 1;
  min-width: 0;
}

.cards-list .card-image {
  width: 3rem;
  height: 3rem;
  aspect-ratio: 1;
  border-radius: var(--radius-sm);
  flex-shrink: 0;
}

.cards-list .card-image img {
  border-radius: var(--radius-sm);
}

.cards-list .card-image-placeholder {
  font-size: 1.25rem;
  border-radius: var(--radius-sm);
}

.cards-list .card-badges {
  display: none;
}

.cards-list .card-body {
  padding: 0;
  min-width: 0;
}

.cards-list .card-title {
  font-size: 0.875rem;
  margin-bottom: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  display: block;
  -webkit-line-clamp: unset;
}

.cards-list .card-address {
  font-size: 0.75rem;
  margin-bottom: 0;
}

.cards-list .card-categories {
  display: none;
}

.cards-list .card-actions {
  border-top: none;
  margin: 0;
  padding: 0;
  gap: var(--space-xs);
  flex-shrink: 0;
}

.cards-list .card-action {
  padding: 0.375rem 0.5rem;
  font-size: 0.6875rem;
  min-height: unset;
}

.cards-list .card-action span {
  display: none;
}

@media (max-width: 768px) {
  .cards-list .card-actions {
    display: none;
  }
}

/* ============================================
   DIRECTORY PAGE
   ============================================ */
.directory-header {
  padding-top: calc(var(--navbar-height) + var(--space-2xl));
  padding-bottom: var(--space-xl);
  background: var(--white);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: var(--navbar-height);
  z-index: 50;
}

@media (max-width: 768px) {
  .directory-header {
    position: relative;
    top: 0;
  }
}

.directory-toolbar {
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
}

.directory-toolbar .directory-title h1 {
  font-size: 1.75rem;
  margin-bottom: 0.25rem;
}

.directory-toolbar .directory-title p {
  font-size: 0.875rem;
}

.filter-controls {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  flex-wrap: wrap;
}

.directory-title-row {
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
}

@media (min-width: 769px) {
  .directory-toolbar {
    gap: var(--space-lg);
  }
  .directory-title-row {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: var(--space-lg);
  }
  .directory-toolbar .directory-title {
    flex-shrink: 0;
  }
  .directory-toolbar .search-bar {
    max-width: 320px;
  }
}

@media (max-width: 768px) {
  .directory-toolbar .directory-title h1 {
    font-size: 1.5rem;
  }
  .filter-controls {
    justify-content: space-between;
  }
}

.directory-body {
  padding: var(--space-xl) 0 var(--space-3xl);
}

/* ============================================
   MAP PAGE
   ============================================ */
.map-page {
  padding-top: var(--navbar-height);
  height: 100vh;
  height: 100dvh;
  display: flex;
  flex-direction: column;
}

.map-categories {
  background: var(--white);
  border-bottom: 1px solid var(--border);
  padding: var(--space-xs) var(--space-md);
  overflow-x: auto;
  scrollbar-width: none;
  -ms-overflow-style: none;
  flex-shrink: 0;
  z-index: 5;
}

.map-categories::-webkit-scrollbar { display: none; }

.map-categories .category-chip {
  padding: 0.375rem 0.75rem;
  font-size: 0.75rem;
}

.map-categories .category-chip i {
  font-size: 0.875rem;
}

.map-wrapper {
  flex: 1;
  display: flex;
  position: relative;
  min-height: 0;
}

.map-container {
  flex: 1;
  min-height: 400px;
}

.map-sidebar {
  display: none;
  width: 380px;
  background: var(--white);
  border-left: 1px solid var(--border);
  overflow-y: auto;
  flex-shrink: 0;
}

@media (min-width: 1024px) {
  .map-sidebar { display: flex; flex-direction: column; }
}

.map-sidebar-header {
  padding: var(--space-lg);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  background: var(--white);
  z-index: 5;
}

.map-sidebar-list {
  flex: 1;
  overflow-y: auto;
  padding: var(--space-sm);
}

.map-list-item {
  display: flex;
  gap: var(--space-md);
  padding: var(--space-md);
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: background var(--duration-fast);
  border: 1px solid transparent;
}

.map-list-item:hover {
  background: var(--lavender-light);
}

.map-list-item.active {
  background: var(--blue-10);
  border-color: var(--blue-20);
}

.map-list-thumb {
  width: 4rem;
  height: 4rem;
  border-radius: var(--radius-sm);
  object-fit: cover;
  flex-shrink: 0;
  background: var(--lavender);
}

.map-list-info h4 {
  font-size: 0.875rem;
  margin-bottom: 0.25rem;
}

.map-list-info p {
  font-size: 0.75rem;
  color: var(--ink-light);
}

/* Mobile map bottom sheet */
.map-sheet {
  display: none;
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: var(--white);
  border-radius: var(--radius-xl) var(--radius-xl) 0 0;
  box-shadow: 0 -8px 32px rgba(1, 25, 54, 0.12);
  max-height: 50vh;
  overflow-y: auto;
  z-index: 10;
  padding: var(--space-md) var(--space-lg) var(--space-xl);
  transition: transform var(--duration-slow) var(--ease-out);
}

@media (max-width: 1023px) {
  .map-sheet { display: block; }
}

.map-sheet-handle {
  width: 2rem;
  height: 0.25rem;
  background: var(--border-strong);
  border-radius: var(--radius-full);
  margin: 0 auto var(--space-md);
}

/* Map info window */
.map-popup {
  font-family: var(--font-body);
  min-width: 220px;
}

.map-popup h4 {
  font-family: var(--font-display);
  font-size: 0.9375rem;
  font-weight: 700;
  margin-bottom: 0.375rem;
}

.map-popup p {
  font-size: 0.8125rem;
  color: var(--ink-light);
  margin-bottom: 0.5rem;
}

.map-popup-actions {
  display: flex;
  gap: 0.5rem;
}

.map-popup-actions a {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--blue);
  padding: 0.25rem 0.5rem;
  border-radius: var(--radius-sm);
  background: var(--blue-10);
}

/* ============================================
   ABOUT PAGE
   ============================================ */
.about-hero {
  padding-top: calc(var(--navbar-height) + var(--space-3xl));
  padding-bottom: var(--space-3xl);
  background: linear-gradient(160deg, var(--navy) 0%, var(--navy-light) 100%);
  position: relative;
  overflow: hidden;
}

.about-hero h1 {
  color: var(--white);
  margin-bottom: var(--space-lg);
}

.about-hero p {
  color: rgba(255, 255, 255, 0.7);
  font-size: 1.125rem;
  line-height: 1.7;
}

.about-values {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-xl);
}

@media (min-width: 769px) {
  .about-values { grid-template-columns: repeat(3, 1fr); }
}

.value-card {
  padding: var(--space-xl);
  background: var(--white);
  border-radius: var(--radius-xl);
  border: 1px solid var(--border);
}

.value-icon {
  width: 3.5rem;
  height: 3.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-lg);
  font-size: 1.5rem;
  margin-bottom: var(--space-lg);
}

.value-icon.blue {
  background: var(--blue-10);
  color: var(--blue);
}

.value-icon.orange {
  background: var(--orange-10);
  color: var(--orange);
}

.value-icon.green {
  background: var(--success-bg);
  color: var(--success);
}

.value-card h3 {
  margin-bottom: var(--space-sm);
}

.value-card p {
  color: var(--ink-light);
  font-size: 0.9375rem;
  line-height: 1.6;
}

/* How It Works */
.how-it-works {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-xl);
}

@media (min-width: 769px) {
  .how-it-works { grid-template-columns: repeat(3, 1fr); }
}

.step-card {
  text-align: center;
  padding: var(--space-xl);
  background: var(--white);
  border-radius: var(--radius-xl);
  border: 1px solid var(--border);
}

.step-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: var(--radius-full);
  background: var(--blue-10);
  color: var(--blue);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.125rem;
  margin-bottom: var(--space-md);
}

.step-card h3 {
  margin-bottom: var(--space-sm);
}

.step-card p {
  color: var(--ink-light);
  font-size: 0.9375rem;
  line-height: 1.6;
}

/* Contact Section */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-2xl);
}

@media (min-width: 769px) {
  .contact-grid { grid-template-columns: 1fr 1fr; }
}

.contact-info {
  display: flex;
  flex-direction: column;
  gap: var(--space-lg);
}

.contact-item {
  display: flex;
  align-items: flex-start;
  gap: var(--space-md);
}

.contact-item i {
  flex-shrink: 0;
  margin-top: 2px;
}

.contact-item h4 {
  font-size: 0.9375rem;
  margin-bottom: var(--space-2xs);
}

.contact-item p,
.contact-item a {
  color: var(--ink-light);
  font-size: 0.875rem;
}

.contact-item a:hover {
  color: var(--blue);
}

.contact-form-wrapper {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: var(--space-xl);
}

/* ============================================
   FORM
   ============================================ */
.form-page {
  padding-top: calc(var(--navbar-height) + var(--space-2xl));
  padding-bottom: var(--space-3xl);
}

.form-container {
  max-width: 640px;
  margin: 0 auto;
  background: var(--white);
  border-radius: var(--radius-xl);
  border: 1px solid var(--border);
  padding: var(--space-2xl);
}

@media (max-width: 540px) {
  .form-container {
    border-radius: 0;
    border-left: none;
    border-right: none;
    margin: 0 calc(-1 * var(--space-lg));
    padding: var(--space-xl) var(--space-lg);
  }
}

.form-header {
  margin-bottom: var(--space-2xl);
}

.form-header h1 {
  margin-bottom: var(--space-sm);
}

.form-header p {
  color: var(--ink-light);
}

.form-group {
  margin-bottom: var(--space-lg);
}

.form-row {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-lg);
}

@media (min-width: 540px) {
  .form-row { grid-template-columns: 1fr 1fr; }
}

.form-row-3 {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-lg);
}

@media (min-width: 540px) {
  .form-row-3 { grid-template-columns: 2fr 1fr 1fr; }
}

.form-label {
  display: block;
  font-family: var(--font-display);
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--navy);
  margin-bottom: 0.375rem;
}

.form-label .required {
  color: var(--error);
  margin-left: 0.125rem;
}

.form-input,
.form-select,
.form-textarea {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 1.5px solid var(--border-strong);
  border-radius: var(--radius-md);
  font-size: 0.9375rem;
  color: var(--ink);
  background: var(--bg-warm);
  transition: all var(--duration-fast) var(--ease-out);
  min-height: 2.75rem;
}

.form-input:focus,
.form-select:focus,
.form-textarea:focus {
  outline: none;
  border-color: var(--blue);
  box-shadow: 0 0 0 3px var(--blue-10);
  background: var(--white);
}

.form-input.error,
.form-select.error,
.form-textarea.error {
  border-color: var(--error);
  box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.1);
}

.form-textarea {
  resize: vertical;
  min-height: 100px;
}

.form-help {
  font-size: 0.75rem;
  color: var(--ink-lighter);
  margin-top: 0.375rem;
}

.form-error {
  font-size: 0.75rem;
  color: var(--error);
  margin-top: 0.375rem;
  display: none;
}

.form-error.visible { display: block; }

.form-hint {
  font-size: 0.8125rem;
  color: var(--ink-lighter);
  margin-bottom: var(--space-sm);
}

.form-checkbox-group,
.category-checkbox-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: var(--space-sm);
}

.form-checkbox,
.category-checkbox {
  display: flex;
  align-items: center;
  gap: var(--space-xs);
  padding: 0.5rem 0.75rem;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: all var(--duration-fast);
  font-size: 0.8125rem;
  -webkit-tap-highlight-color: transparent;
}

.form-checkbox input,
.category-checkbox input {
  display: none;
}

.form-checkbox:has(input:checked),
.category-checkbox:has(input:checked) {
  background: var(--blue-10);
  border-color: var(--blue);
  color: var(--blue);
  font-weight: 500;
}

.form-checkbox i,
.category-checkbox i,
.category-checkbox-label i {
  font-size: 1.125rem;
}

.category-checkbox-label {
  display: flex;
  align-items: center;
  gap: var(--space-xs);
}

.form-divider {
  border: none;
  border-top: 1px solid var(--border);
  margin: var(--space-2xl) 0;
}

.form-success {
  display: none;
  text-align: center;
  padding: var(--space-3xl) var(--space-xl);
}

.form-success.visible { display: block; }

.form-success i {
  font-size: 3rem;
  color: var(--success);
  margin-bottom: var(--space-lg);
}

.form-success h2 {
  margin-bottom: var(--space-sm);
}

.form-success p {
  color: var(--ink-light);
  margin: 0 auto;
}

/* ============================================
   FOOTER
   ============================================ */
.footer {
  background: var(--navy);
  color: rgba(255, 255, 255, 0.6);
  padding: var(--space-3xl) 0 var(--space-xl);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-2xl);
  margin-bottom: var(--space-2xl);
}

@media (min-width: 769px) {
  .footer-grid {
    grid-template-columns: 2fr 1fr 1fr 1fr;
  }
}

.footer-brand {
  max-width: 300px;
}

.footer-brand img,
.footer-brand svg {
  height: 1.75rem;
  margin-bottom: var(--space-md);
  filter: brightness(0) invert(1);
}

.footer-brand p {
  font-size: 0.875rem;
  line-height: 1.6;
}

.footer-col h4 {
  color: var(--white);
  font-size: 0.8125rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: var(--space-md);
}

.footer-col a {
  display: block;
  font-size: 0.875rem;
  padding: 0.375rem 0;
  transition: color var(--duration-fast);
}

.footer-col a:hover {
  color: var(--white);
}

.footer-bottom {
  padding-top: var(--space-xl);
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
  align-items: center;
  text-align: center;
  font-size: 0.8125rem;
}

@media (min-width: 769px) {
  .footer-bottom {
    flex-direction: row;
    justify-content: space-between;
    text-align: left;
  }
}

.footer-social {
  display: flex;
  gap: var(--space-sm);
}

.footer-social a {
  width: 2.25rem;
  height: 2.25rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.08);
  color: rgba(255, 255, 255, 0.6);
  font-size: 1.125rem;
  transition: all var(--duration-fast);
}

.footer-social a:hover {
  background: var(--blue);
  color: var(--white);
}

/* ============================================
   LOADING SKELETONS
   ============================================ */
.skeleton {
  background: linear-gradient(90deg, var(--lavender) 25%, var(--lavender-light) 50%, var(--lavender) 75%);
  background-size: 200% 100%;
  animation: shimmer 1.5s ease-in-out infinite;
  border-radius: var(--radius-sm);
}

.skeleton-card {
  background: var(--white);
  border-radius: var(--radius-xl);
  border: 1px solid var(--border);
  overflow: hidden;
}

.skeleton-image {
  aspect-ratio: 16 / 10;
  background: linear-gradient(90deg, var(--lavender) 25%, var(--lavender-light) 50%, var(--lavender) 75%);
  background-size: 200% 100%;
  animation: shimmer 1.5s ease-in-out infinite;
}

.skeleton-line {
  height: 0.875rem;
  margin-bottom: 0.5rem;
  border-radius: var(--radius-sm);
  background: linear-gradient(90deg, var(--lavender) 25%, var(--lavender-light) 50%, var(--lavender) 75%);
  background-size: 200% 100%;
  animation: shimmer 1.5s ease-in-out infinite;
}

.skeleton-line.w-75 { width: 75%; }
.skeleton-line.w-50 { width: 50%; }
.skeleton-line.w-33 { width: 33%; }

/* ============================================
   EMPTY & ERROR STATES
   ============================================ */
.empty-state {
  text-align: center;
  padding: var(--space-4xl) var(--space-xl);
}

.empty-state i {
  font-size: 3rem;
  color: var(--ink-faint);
  margin-bottom: var(--space-lg);
}

.empty-state h3 {
  margin-bottom: var(--space-sm);
  color: var(--ink-light);
}

.empty-state p {
  color: var(--ink-lighter);
  margin: 0 auto var(--space-xl);
}

.error-banner {
  background: var(--error-bg);
  border: 1px solid rgba(239, 68, 68, 0.2);
  border-radius: var(--radius-md);
  padding: var(--space-md) var(--space-lg);
  display: flex;
  align-items: center;
  gap: var(--space-md);
  color: var(--error);
  font-size: 0.875rem;
  font-weight: 500;
}

/* ============================================
   ANIMATIONS
   ============================================ */
@keyframes shimmer {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

@keyframes heroGlow {
  0% { transform: translate(0, 0) scale(1); opacity: 0.15; }
  100% { transform: translate(-5%, 3%) scale(1.1); opacity: 0.25; }
}

@keyframes patternDrift {
  0% { transform: translate(0, 0); }
  100% { transform: translate(-200px, -200px); }
}

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes scaleIn {
  from { opacity: 0; transform: scale(0.95); }
  to { opacity: 1; transform: scale(1); }
}

@keyframes slideInRight {
  from { opacity: 0; transform: translateX(20px); }
  to { opacity: 1; transform: translateX(0); }
}

@keyframes countUp {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.7; }
}

/* Scroll-triggered animations */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity var(--duration-slow) var(--ease-out),
              transform var(--duration-slow) var(--ease-out);
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

.reveal-stagger > * {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity var(--duration-slow) var(--ease-out),
              transform var(--duration-slow) var(--ease-out);
}

.reveal-stagger.visible > *:nth-child(1) { transition-delay: 0ms; opacity: 1; transform: translateY(0); }
.reveal-stagger.visible > *:nth-child(2) { transition-delay: 60ms; opacity: 1; transform: translateY(0); }
.reveal-stagger.visible > *:nth-child(3) { transition-delay: 120ms; opacity: 1; transform: translateY(0); }
.reveal-stagger.visible > *:nth-child(4) { transition-delay: 180ms; opacity: 1; transform: translateY(0); }
.reveal-stagger.visible > *:nth-child(5) { transition-delay: 240ms; opacity: 1; transform: translateY(0); }
.reveal-stagger.visible > *:nth-child(6) { transition-delay: 300ms; opacity: 1; transform: translateY(0); }
.reveal-stagger.visible > *:nth-child(7) { transition-delay: 360ms; opacity: 1; transform: translateY(0); }
.reveal-stagger.visible > *:nth-child(8) { transition-delay: 420ms; opacity: 1; transform: translateY(0); }
.reveal-stagger.visible > *:nth-child(9) { transition-delay: 480ms; opacity: 1; transform: translateY(0); }
.reveal-stagger.visible > *:nth-child(10) { transition-delay: 540ms; opacity: 1; transform: translateY(0); }
.reveal-stagger.visible > *:nth-child(n+11) { transition-delay: 600ms; opacity: 1; transform: translateY(0); }

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
  .reveal, .reveal-stagger > * {
    opacity: 1;
    transform: none;
  }
}

/* ============================================
   UTILITIES
   ============================================ */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: absolute;
  top: -40px;
  left: 0;
  background: var(--navy);
  color: var(--white);
  padding: 0.5rem 1rem;
  z-index: 1000;
  font-size: 0.875rem;
}

.skip-link:focus {
  top: 0;
}

.flex { display: flex; }
.flex-col { flex-direction: column; }
.items-center { align-items: center; }
.justify-between { justify-content: space-between; }
.gap-sm { gap: var(--space-sm); }
.gap-md { gap: var(--space-md); }
.gap-lg { gap: var(--space-lg); }
.gap-xl { gap: var(--space-xl); }
.mt-sm { margin-top: var(--space-sm); }
.mt-md { margin-top: var(--space-md); }
.mt-lg { margin-top: var(--space-lg); }
.mt-xl { margin-top: var(--space-xl); }
.mb-md { margin-bottom: var(--space-md); }
.mb-lg { margin-bottom: var(--space-lg); }
.mb-xl { margin-bottom: var(--space-xl); }
.hidden { display: none; }

@media (max-width: 768px) {
  .hide-mobile { display: none !important; }
}

@media (min-width: 769px) {
  .hide-desktop { display: none !important; }
}

/* Back to top */
.back-to-top {
  position: fixed;
  bottom: calc(var(--mobile-nav-height) + var(--space-md));
  right: var(--space-md);
  width: 2.75rem;
  height: 2.75rem;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-full);
  box-shadow: var(--shadow-md);
  color: var(--navy);
  font-size: 1.25rem;
  opacity: 0;
  pointer-events: none;
  transition: all var(--duration-base) var(--ease-out);
  z-index: 90;
}

@media (min-width: 769px) {
  .back-to-top {
    bottom: var(--space-xl);
    right: var(--space-xl);
  }
}

.back-to-top.visible {
  opacity: 1;
  pointer-events: auto;
}

.back-to-top:hover {
  background: var(--navy);
  color: var(--white);
  transform: translateY(-2px);
}

/* Toast notification */
.toast {
  position: fixed;
  bottom: calc(var(--mobile-nav-height) + var(--space-lg));
  left: 50%;
  transform: translateX(-50%) translateY(20px);
  background: var(--navy);
  color: var(--white);
  padding: 0.75rem 1.5rem;
  border-radius: var(--radius-full);
  font-size: 0.875rem;
  font-weight: 500;
  box-shadow: var(--shadow-xl);
  z-index: 1000;
  opacity: 0;
  pointer-events: none;
  transition: all var(--duration-base) var(--ease-spring);
  white-space: nowrap;
}

@media (min-width: 769px) {
  .toast { bottom: var(--space-2xl); }
}

.toast.visible {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
  pointer-events: auto;
}

/* Main content spacer */
main {
  min-height: calc(100vh - var(--navbar-height));
  min-height: calc(100dvh - var(--navbar-height));
}

/* Card link styles moved to card section above */

/* ============================================
   BREADCRUMB
   ============================================ */

.breadcrumb {
  display: flex;
  align-items: center;
  gap: var(--space-xs);
  padding: var(--space-md) 0;
  font-size: 0.875rem;
  color: var(--ink-lighter);
}

.breadcrumb a {
  color: var(--ink-light);
  text-decoration: none;
}

.breadcrumb a:hover {
  color: var(--blue);
}

.breadcrumb i {
  font-size: 0.75rem;
}

/* ============================================
   BUSINESS DETAIL PAGE
   ============================================ */

.business-detail {
  padding-top: calc(var(--navbar-height) + var(--space-lg));
  padding-bottom: var(--space-2xl);
}

.business-detail-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-xl);
}

@media (min-width: 769px) {
  .business-detail-layout {
    grid-template-columns: 1fr 320px;
  }
}

@media (min-width: 1024px) {
  .business-detail-layout {
    grid-template-columns: 1fr 360px;
  }
}

.business-detail-main {
  min-width: 0;
}

.business-detail-image {
  border-radius: var(--radius-lg);
  overflow: hidden;
  margin-bottom: var(--space-lg);
  background: var(--lavender-light);
}

.business-detail-image img {
  width: 100%;
  height: auto;
  max-height: 400px;
  object-fit: cover;
  display: block;
}

.business-detail-image-placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 200px;
  color: var(--ink-lighter);
  font-size: 4rem;
}

.business-detail-info {
  margin-bottom: var(--space-xl);
}

.business-detail-badges {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-xs);
  margin-bottom: var(--space-md);
}

.business-detail-info h1 {
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: var(--space-sm);
}

.business-detail-address {
  display: flex;
  align-items: center;
  gap: var(--space-xs);
  color: var(--ink-light);
  font-size: 1rem;
  margin-bottom: var(--space-md);
}

.business-detail-address i {
  color: var(--blue);
}

.business-detail-description {
  color: var(--ink-light);
  line-height: 1.7;
  font-size: 1rem;
}

.business-detail-map-container {
  margin-top: var(--space-xl);
}

.business-detail-map-container h3 {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: var(--space-md);
}

/* Detail sidebar cards */
.business-detail-sidebar {
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
}

.detail-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: var(--space-lg);
}

.detail-card h3 {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: var(--space-md);
  color: var(--ink);
}

.detail-contact-list {
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
}

.detail-contact-item {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  color: var(--ink-light);
  text-decoration: none;
  font-size: 0.9375rem;
  padding: var(--space-xs) 0;
  transition: color var(--duration-fast);
}

.detail-contact-item:hover {
  color: var(--blue);
}

.detail-contact-item i {
  font-size: 1.125rem;
  color: var(--blue);
  width: 1.5rem;
  flex-shrink: 0;
}

.detail-action-buttons {
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
}

.detail-action-buttons .btn {
  width: 100%;
  justify-content: center;
}

.detail-categories {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-xs);
}

.detail-category-tag {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 6px 12px;
  background: var(--blue-10);
  color: var(--blue);
  border-radius: var(--radius-full);
  font-size: 0.8125rem;
  font-weight: 500;
  text-decoration: none;
  transition: background var(--duration-fast);
}

.detail-category-tag:hover {
  background: var(--blue-20);
}

.detail-edit-card {
  background: var(--lavender-light);
  border-color: var(--lavender);
  text-align: center;
}

.detail-edit-card p {
  color: var(--ink-light);
  font-size: 0.875rem;
  margin-bottom: var(--space-sm);
}

/* ============================================
   LEAFLET OVERRIDES
   ============================================ */

.leaflet-marker-custom {
  background: none !important;
  border: none !important;
}

.leaflet-popup-content-wrapper {
  border-radius: var(--radius-lg) !important;
  box-shadow: var(--shadow-lg) !important;
  font-family: var(--font-body) !important;
  border: 1px solid var(--border) !important;
}

.leaflet-popup-content {
  margin: 12px 16px !important;
  font-size: 0.875rem !important;
  line-height: 1.5 !important;
}

.leaflet-popup-tip {
  box-shadow: var(--shadow-sm) !important;
}

.leaflet-popup-close-button {
  color: var(--ink-light) !important;
  font-size: 1.25rem !important;
}

/* Custom Leaflet controls to match site design */
.leaflet-control-zoom a {
  font-family: var(--font-display) !important;
  color: var(--ink) !important;
  border-color: var(--border) !important;
  background: var(--white) !important;
  width: 36px !important;
  height: 36px !important;
  line-height: 36px !important;
  font-size: 1rem !important;
  border-radius: 0 !important;
}

.leaflet-control-zoom a:hover {
  background: var(--lavender-light) !important;
  color: var(--blue) !important;
}

.leaflet-control-zoom {
  border: 1px solid var(--border) !important;
  border-radius: var(--radius-md) !important;
  overflow: hidden;
  box-shadow: var(--shadow-sm) !important;
}

.leaflet-control-zoom-in {
  border-bottom: 1px solid var(--border) !important;
}

.leaflet-control-attribution {
  font-family: var(--font-body) !important;
  font-size: 0.625rem !important;
  background: rgba(255, 255, 255, 0.85) !important;
  color: var(--ink-lighter) !important;
  padding: 2px 6px !important;
}

.leaflet-control-attribution a {
  color: var(--blue) !important;
}

/* Leaflet tile filter for custom light feel */
.leaflet-tile-pane {
  filter: saturate(0.85) brightness(1.03);
}

/* Footer link styles */
.footer-bottom a {
  color: inherit;
  text-decoration: none;
  font-weight: 500;
}

.footer-bottom a:hover {
  color: var(--blue);
}
