/* ── Performance & Accessibility additions ── */
:focus-visible {
  outline: 3px solid #2563EB;
  outline-offset: 2px;
}
html {
  scroll-behavior: smooth;
}
img {
  max-width: 100%;
  height: auto;
}
/* Screen reader only utility */
.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;
}
/* Print styles — hide interactive UI */
@media print {
  header, .bottom-nav, .filters-section, #mobile-menu { display: none !important; }
  .agency-card { break-inside: avoid; }
}
/* ── END additions ── */

/* ==========================================================================
   MY AGENCY FINDS - STYLESHEET
   Description: Premium enterprise-grade recruitment directory
   Design Tokens: Trust Blue (#2563EB) & Growth Teal (#14B8A6), Inter & Plus Jakarta Sans,
                  glowing border cards, and responsive spacing.
   ========================================================================== */

/* Import Google Fonts - Inter and Plus Jakarta Sans */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&family=Plus+Jakarta+Sans:wght@400;500;600;700;800&display=swap');

/* --- CSS Variables & Design System --- */
:root {
  /* Colors */
  --primary: #2563EB; /* Trust Blue */
  --primary-light: #3B82F6; /* Hover Blue */
  --primary-gradient: linear-gradient(135deg, #2563EB 0%, #1D4ED8 100%);
  --primary-gradient-hover: linear-gradient(135deg, #1D4ED8 0%, #1E40AF 100%);
  --secondary: #14B8A6; /* Growth Teal */
  --secondary-gradient: linear-gradient(135deg, #14B8A6 0%, #0F766E 100%);
  
  --bg-main: #F8FAFC; /* Clean Slate Tint */
  --bg-card: #FFFFFF;
  --bg-badge: #EFF6FF; /* Soft Blue badge background */
  --bg-badge-teal: #F0FDFA; /* Soft Teal badge background */
  --bg-card-subtext: #ffffff;
  --bg-form-card: rgba(255, 255, 255, 0.85);
  --bg-form-input: rgba(255, 255, 255, 0.6);
  --bg-form-input-focus: #ffffff;
  
  --text-dark: #0F172A; /* Slate 900 */
  --text-muted: #475569; /* Slate 600 */
  --text-light: #FFFFFF;
  
  --accent-green: #10B981;
  --accent-green-bg: rgba(16, 185, 129, 0.1);
  --accent-blue: #3B82F6;
  --accent-blue-bg: rgba(59, 130, 246, 0.1);
  
  /* Borders & Shadows */
  --border-color: #E2E8F0;
  --border-radius-sm: 8px;
  --border-radius-md: 14px;
  --border-radius-lg: 24px;
  --border-radius-pill: 9999px;
  --border-radius-btn: 8px;
  
  --shadow-sm: 0 4px 10px rgba(0, 0, 0, 0.02);
  --shadow-md: 0 12px 30px rgba(15, 23, 42, 0.04);
  --shadow-lg: 0 20px 40px rgba(37, 99, 235, 0.06), 0 4px 12px rgba(0, 0, 0, 0.02);
  --shadow-glow: 0 12px 24px rgba(37, 99, 235, 0.20);
  
  /* Transitions */
  --transition-fast: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-normal: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow: 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Manual & Preference-based Dark Mode Override */
body.theme-dark {
  --bg-main: #0B0F19;
  --bg-card: #131926;
  --bg-badge: rgba(37, 99, 235, 0.15);
  --bg-badge-teal: rgba(20, 184, 166, 0.15);
  --text-dark: #F1F5F9;
  --text-muted: #94A3B8;
  --border-color: #1E293B;
  --shadow-sm: 0 4px 10px rgba(0, 0, 0, 0.15);
  --shadow-md: 0 12px 30px rgba(0, 0, 0, 0.25);
  --shadow-lg: 0 20px 40px rgba(0, 0, 0, 0.35);
  --shadow-glow: 0 12px 24px rgba(37, 99, 235, 0.15);
  --bg-card-subtext: #131926;
  --bg-form-card: rgba(19, 25, 38, 0.85);
  --bg-form-input: rgba(30, 41, 59, 0.6);
  --bg-form-input-focus: #1e293b;
}

/* Dark mode disabled — light theme enforced */

/* --- Reset & Global Styles --- */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  background-color: var(--bg-main);
  color: var(--text-dark);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  letter-spacing: -0.02em;
  font-weight: 700;
}

a {
  text-decoration: none;
  color: inherit;
  transition: var(--transition-fast);
}

button, input, select, textarea {
  font-family: 'Inter', sans-serif;
  border: none;
  background: none;
  outline: none;
}

button {
  cursor: pointer;
}

img {
  max-width: 100%;
  height: auto;
}

/* Scrollbar Customization */
::-webkit-scrollbar {
  width: 10px;
}
::-webkit-scrollbar-track {
  background: #F1F1F1;
}
::-webkit-scrollbar-thumb {
  background: #BFDBFE;
  border-radius: 10px;
  border: 2px solid #F1F1F1;
}
::-webkit-scrollbar-thumb:hover {
  background: var(--primary);
}

/* --- Container --- */
.container {
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 24px;
}

/* --- Header & Navigation --- */
header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  transition: var(--transition-normal);
  border-bottom: 1px solid transparent;
  background: rgba(248, 249, 253, 0.7);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

header.scrolled {
  background: rgba(255, 255, 255, 0.85);
  border-bottom: 1px solid var(--border-color);
  box-shadow: var(--shadow-sm);
}

.nav-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 80px;
  transition: var(--transition-normal);
}

header.scrolled .nav-container {
  height: 70px;
}

/* Logo */
.logo {
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 800;
  font-size: 1.25rem;
  color: var(--text-dark);
}

/* Emotive Logo Dot */
.emotive-logo-dot {
  position: relative;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  perspective: 800px;
}

.logo:hover .emotive-logo-dot .emotive-dot-body,
.footer-logo:hover .emotive-logo-dot .emotive-dot-body {
  animation: logoSquashStretch 0.8s cubic-bezier(0.25, 1, 0.5, 1) both, logoMorphSlow 4s linear infinite;
  box-shadow: 0 8px 25px rgba(37, 99, 235, 0.5), 0 0 15px rgba(20, 184, 166, 0.3);
}

.logo:hover .emotive-logo-dot .emotive-dot-inner,
.footer-logo:hover .emotive-logo-dot .emotive-dot-inner {
  transform: scale(1.3) translateZ(5px);
  background: #ffffff;
  box-shadow: 0 0 10px rgba(255, 255, 255, 0.8);
}

.logo:hover .emotive-logo-dot .emotive-dot-pulse,
.footer-logo:hover .emotive-logo-dot .emotive-dot-pulse {
  animation: logoPulseFast 1s cubic-bezier(0.25, 0, 0, 1) infinite;
}

.emotive-dot-pulse {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  background: var(--primary-gradient);
  opacity: 0.4;
  transform: scale(1);
  animation: logoPulse 3s cubic-bezier(0.25, 0, 0, 1) infinite;
  pointer-events: none;
  z-index: 1;
}

.emotive-dot-body {
  position: absolute;
  width: 28px;
  height: 28px;
  background: var(--primary-gradient);
  border-radius: 50%;
  box-shadow: 0 4px 15px rgba(37, 99, 235, 0.3);
  z-index: 2;
  transition: transform 0.6s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.6s ease;
  animation: logoMorphSlow 8s ease-in-out infinite alternate;
}

.emotive-dot-inner {
  position: absolute;
  width: 10px;
  height: 10px;
  background: rgba(255, 255, 255, 0.95);
  border-radius: 50%;
  z-index: 3;
  transition: transform 0.5s cubic-bezier(0.34, 1.56, 0.64, 1), background-color 0.5s ease, box-shadow 0.5s ease;
  pointer-events: none;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
  transform: translateZ(2px);
}

/* Footer-specific dot size adjustment */
.footer-logo-dot {
  width: 28px;
  height: 28px;
}

.footer-logo-dot .emotive-dot-body {
  width: 22px;
  height: 22px;
}

.footer-logo-dot .emotive-dot-inner {
  width: 8px;
  height: 8px;
}

/* Animations for Emotive Logo Dot */
@keyframes logoPulse {
  0% {
    transform: scale(1);
    opacity: 0.5;
  }
  50% {
    opacity: 0.2;
  }
  100% {
    transform: scale(2.2);
    opacity: 0;
  }
}

@keyframes logoPulseFast {
  0% {
    transform: scale(1);
    opacity: 0.7;
  }
  100% {
    transform: scale(2.5);
    opacity: 0;
  }
}

@keyframes logoMorphSlow {
  0% {
    border-radius: 50% 50% 50% 50% / 50% 50% 50% 50%;
    transform: rotate(0deg);
  }
  33% {
    border-radius: 42% 58% 45% 55% / 48% 42% 58% 52%;
    transform: rotate(120deg) scale(0.98);
  }
  66% {
    border-radius: 55% 45% 58% 42% / 45% 55% 42% 58%;
    transform: rotate(240deg) scale(1.02);
  }
  100% {
    border-radius: 50% 50% 50% 50% / 50% 50% 50% 50%;
    transform: rotate(360deg);
  }
}

@keyframes logoSquashStretch {
  0% {
    transform: scale(1) rotate(0deg);
  }
  15% {
    transform: scale(1.3, 0.7) rotate(20deg);
  }
  30% {
    transform: scale(0.8, 1.25) rotate(-15deg);
  }
  45% {
    transform: scale(1.15, 0.9) rotate(10deg);
  }
  60% {
    transform: scale(0.95, 1.05) rotate(-5deg);
  }
  75% {
    transform: scale(1.05, 0.98) rotate(2deg);
  }
  100% {
    transform: scale(1.1) rotate(0deg);
  }
}

/* Verified Badge */
.verified-badge {
  display: flex;
  align-items: center;
  gap: 6px;
  background-color: var(--bg-card);
  border: 1px solid var(--border-color);
  padding: 6px 14px;
  border-radius: var(--border-radius-pill);
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-dark);
  box-shadow: var(--shadow-sm);
}

.verified-icon {
  display: inline-flex;
  color: var(--primary);
}

.verified-icon svg {
  width: 16px;
  height: 16px;
}

/* Mobile Nav Toggles */
.nav-actions {
  display: flex;
  align-items: center;
  gap: 16px;
}

.desktop-nav {
  display: flex;
  align-items: center;
  gap: 8px;
}

.desktop-nav .nav-link {
  color: var(--text-muted);
  font-weight: 600;
  font-size: 0.9rem;
  transition: all var(--transition-fast);
  padding: 8px 16px;
  border-radius: var(--border-radius-btn);
}

.desktop-nav .nav-link:hover,
.desktop-nav .nav-link.active {
  color: var(--primary);
  background: rgba(37, 99, 235, 0.05);
}

.btn-nav-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--primary-gradient);
  color: #FFFFFF !important;
  font-weight: 700;
  font-size: 0.85rem;
  padding: 8px 18px;
  border-radius: var(--border-radius-btn);
  box-shadow: var(--shadow-sm);
  transition: all var(--transition-normal);
}

.btn-nav-cta:hover {
  background: var(--primary-gradient-hover);
  transform: translateY(-1px);
  box-shadow: var(--shadow-glow);
}

@media (max-width: 991px) {
  .desktop-nav {
    display: none;
  }
}

/* Premium Theme Toggler Button */
.theme-toggle-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: var(--border-radius-pill);
  background-color: var(--bg-card);
  border: 1px solid var(--border-color);
  color: var(--text-dark);
  box-shadow: var(--shadow-sm);
  transition: transform var(--transition-fast), background-color var(--transition-normal), border-color var(--transition-normal);
  cursor: pointer;
}

.theme-toggle-btn:hover {
  transform: scale(1.05);
  border-color: var(--primary-light);
}

.theme-toggle-btn svg {
  width: 18px;
  height: 18px;
  stroke: currentColor;
  fill: none;
}

/* Toggle visibility of sun/moon depending on dark mode state */
.theme-toggle-btn .sun-icon {
  display: none;
}

.theme-toggle-btn .moon-icon {
  display: block;
}

body.theme-dark .theme-toggle-btn .sun-icon {
  display: block;
}

body.theme-dark .theme-toggle-btn .moon-icon {
  display: none;
}

@media (prefers-color-scheme: dark) {
  body:not(.theme-light) .theme-toggle-btn .sun-icon {
    display: block;
  }
  body:not(.theme-light) .theme-toggle-btn .moon-icon {
    display: none;
  }
}

/* --- Hero Section --- */
.hero {
  padding-top: 160px;
  padding-bottom: 80px;
  position: relative;
  overflow: hidden;
}

/* Decorative Background Blobs */
.hero::before {
  content: '';
  position: absolute;
  top: -10%;
  right: -5%;
  width: 450px;
  height: 450px;
  background: radial-gradient(circle, rgba(37, 99, 235, 0.08) 0%, rgba(59, 130, 246, 0) 70%);
  z-index: -1;
  border-radius: 50%;
}

.hero::after {
  content: '';
  position: absolute;
  bottom: -5%;
  left: -5%;
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(59, 130, 246, 0.05) 0%, rgba(37, 99, 235, 0) 70%);
  z-index: -1;
  border-radius: 50%;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr;
  align-items: center;
  text-align: left;
  gap: 48px;
  max-width: 1200px;
  margin: 0 auto;
}

@media (min-width: 992px) {
  .hero-grid {
    grid-template-columns: 1.15fr 0.85fr;
  }
}

/* Left side content */
.hero-content {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.hero-content h1 {
  font-size: clamp(2.5rem, 5vw, 4rem);
  font-weight: 800;
  line-height: 1.1;
  color: var(--text-dark);
  margin-bottom: 20px;
  letter-spacing: -0.03em;
}

.hero-content h1 span {
  background: var(--primary-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  position: relative;
  display: inline-block;
}

.hero-subtitle {
  font-size: 1.125rem;
  color: var(--text-muted);
  max-width: 720px;
  margin-bottom: 32px;
  line-height: 1.6;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(37, 99, 235, 0.06);
  border: 1px solid rgba(37, 99, 235, 0.15);
  color: var(--primary);
  padding: 6px 14px;
  border-radius: var(--border-radius-pill);
  font-size: 0.8rem;
  font-weight: 700;
  margin-bottom: 24px;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.hero-stats-column {
  display: flex;
  flex-direction: column;
  gap: 16px;
  width: 100%;
}

@media (max-width: 991px) {
  .hero-stats-column {
    flex-direction: row;
    gap: 16px;
    margin-top: 16px;
  }
  .hero-stats-column .stat-card {
    flex: 1;
  }
}

@media (max-width: 768px) {
  .hero-stats-column {
    flex-direction: column;
    gap: 12px;
  }
}

.stat-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  padding: 16px;
  border-radius: var(--border-radius-md);
  box-shadow: var(--shadow-sm);
  transition: all var(--transition-normal);
  display: flex;
  flex-direction: column;
  gap: 4px;
}

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

.stat-card .stat-number {
  font-size: 1.8rem;
  font-weight: 800;
  color: var(--primary);
  line-height: 1.1;
  font-variant-numeric: tabular-nums;
}

.stat-card .stat-label {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--text-dark);
}

.stat-card .stat-sub {
  font-size: 0.72rem;
  color: var(--text-muted);
  font-weight: 500;
}

.hero-social-proof {
  grid-column: 1 / -1;
  margin-top: 48px;
  border-top: 1px solid var(--border-color);
  padding-top: 32px;
}

.social-proof-title {
  display: block;
  font-size: 0.7rem;
  font-weight: 700;
  color: var(--text-muted);
  letter-spacing: 0.08em;
  margin-bottom: 20px;
  text-transform: uppercase;
  text-align: center;
}

.social-proof-logos {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 48px;
  opacity: 0.6;
  filter: grayscale(1);
  transition: opacity var(--transition-fast);
}

.social-proof-logos:hover {
  opacity: 0.9;
}

.social-logo-item {
  display: inline-flex;
  align-items: center;
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--text-dark);
  letter-spacing: -0.03em;
}



/* Right side Phone Card Mockup */
.hero-mockup {
  display: flex;
  justify-content: center;
  align-items: center;
  perspective: 1000px;
}

.phone-container {
  position: relative;
  width: 100%;
  max-width: 275px;
  aspect-ratio: 1 / 2.05;
  perspective: 2000px;
  transform-style: preserve-3d;
  margin: 0 auto;
}

.phone-shadow {
  position: absolute;
  bottom: -25px;
  left: 5%;
  width: 90%;
  height: 25px;
  background: radial-gradient(ellipse at center, rgba(15, 23, 42, 0.4) 0%, rgba(15, 23, 42, 0) 70%);
  filter: blur(8px);
  z-index: 1;
  pointer-events: none;
  transform: translateZ(-40px);
  transition: transform 0.3s ease;
}

.phone-chassis {
  position: relative;
  width: 100%;
  height: 100%;
  background: #0d1527; /* Dark metallic navy base */
  border-radius: 46px;
  padding: 8px; /* outer border thickness */
  box-shadow: 
    0 0 0 1px rgba(255, 255, 255, 0.12) inset,
    0 0 18px rgba(10, 24, 52, 0.85) inset,
    0 25px 50px -12px rgba(10, 16, 32, 0.45),
    0 12px 24px -10px rgba(0, 0, 0, 0.3);
  border: 3px solid #1a2f52; /* Outer metallic bezel edge */
  box-sizing: border-box;
  transform-style: preserve-3d;
  transform: translateZ(0);
  transition: transform 0.25s cubic-bezier(0.25, 0.8, 0.25, 1);
  animation: float 6s ease-in-out infinite;
}

.phone-chassis.calling-active {
  box-shadow: 
    0 0 0 1px rgba(255, 255, 255, 0.12) inset,
    0 0 20px rgba(139, 92, 246, 0.5) inset,
    0 0 35px rgba(139, 92, 246, 0.3),
    0 25px 50px -12px rgba(10, 16, 32, 0.45);
  border-color: #5c35b6;
}

.phone-glare {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border-radius: 43px;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.12) 0%, rgba(255, 255, 255, 0.02) 40%, rgba(255, 255, 255, 0) 50%, rgba(255, 255, 255, 0.04) 100%);
  z-index: 10;
  pointer-events: none;
}

.phone-bezel {
  position: relative;
  width: 100%;
  height: 100%;
  background: #000000;
  border-radius: 39px;
  padding: 4px; /* Thin bezel */
  box-shadow: 0 0 0 1px rgba(0,0,0,0.9);
  overflow: hidden;
}

.phone-screen-container {
  position: relative;
  width: 100%;
  height: 100%;
  background: radial-gradient(circle at 80% 20%, #17123d 0%, #040814 100%);
  border-radius: 36px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  padding: 32px 14px 14px 14px;
}

.phone-screen-container::before {
  content: '';
  position: absolute;
  top: -20%;
  left: -20%;
  width: 140%;
  height: 140%;
  background: radial-gradient(circle at 15% 20%, rgba(139, 92, 246, 0.14), transparent 45%),
              radial-gradient(circle at 85% 80%, rgba(217, 70, 239, 0.14), transparent 45%);
  pointer-events: none;
  z-index: 1;
}

.screen-particles {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 2;
  pointer-events: none;
  overflow: hidden;
}

.particle {
  position: absolute;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.35) 0%, rgba(255, 255, 255, 0) 70%);
  border-radius: 50%;
  pointer-events: none;
  animation: floatParticle 8s infinite linear;
}

@keyframes floatParticle {
  0% {
    transform: translateY(110%) translateX(0) scale(1);
    opacity: 0;
  }
  10% {
    opacity: 0.6;
  }
  90% {
    opacity: 0.6;
  }
  100% {
    transform: translateY(-10%) translateX(25px) scale(0.4);
    opacity: 0;
  }
}

.dynamic-island-container {
  position: absolute;
  top: 10px;
  left: 0;
  width: 100%;
  display: flex;
  justify-content: center;
  z-index: 20;
  pointer-events: none;
}

.dynamic-island {
  width: 82px;
  height: 22px;
  background: #000000;
  border-radius: 11px;
  transition: all 0.5s cubic-bezier(0.19, 1, 0.22, 1);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  box-shadow: 0 4px 10px rgba(0,0,0,0.5), inset 0 0 1px rgba(255,255,255,0.25);
}

.island-camera {
  width: 7px;
  height: 7px;
  background: #101921;
  border-radius: 50%;
  position: absolute;
  right: 10px;
  box-shadow: inset 0 1px 2px rgba(255,255,255,0.2);
}

.island-content {
  display: flex;
  align-items: center;
  gap: 5px;
  opacity: 0;
  transform: scale(0.85);
  transition: all 0.3s ease;
  color: #ffffff;
  font-size: 0.62rem;
  font-weight: 700;
  pointer-events: none;
  padding-right: 12px;
}

.island-call-icon {
  color: #10B981;
  display: inline-block;
  animation: shakeCall 1.5s infinite;
}

/* Dynamic Island Expanded State */
.dynamic-island.calling-expanded {
  width: 120px;
  height: 26px;
  border-radius: 13px;
}

.dynamic-island.calling-expanded .island-content {
  opacity: 1;
  transform: scale(1);
}

.dynamic-island.calling-expanded .island-camera {
  right: 12px;
  opacity: 0.35;
}

@keyframes shakeCall {
  0%, 100% { transform: rotate(0); }
  10%, 90% { transform: rotate(-5deg); }
  20%, 80% { transform: rotate(5deg); }
  30%, 50%, 70% { transform: rotate(-10deg); }
  40%, 60% { transform: rotate(10deg); }
}

.screen-status-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  z-index: 15;
  color: rgba(255, 255, 255, 0.85);
  font-size: 0.7rem;
  font-weight: 600;
  padding: 0 6px;
  margin-bottom: 22px;
}

.status-icons {
  display: flex;
  align-items: center;
  gap: 5px;
}

.status-icon {
  width: 13px;
  height: 13px;
  color: rgba(255, 255, 255, 0.85);
}

.phone-ui-wrapper {
  position: relative;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  z-index: 5;
}

/* Featured Card Glassmorphism styling */
.featured-agency-card {
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(25px);
  -webkit-backdrop-filter: blur(25px);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 22px;
  padding: 18px 14px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  height: 100%;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.25);
  opacity: 0;
  transform: translateY(15px);
  transition: opacity 0.7s cubic-bezier(0.16, 1, 0.3, 1), 
              transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}

.featured-agency-card.visible {
  opacity: 1;
  transform: translateY(0);
}

.featured-badge {
  display: inline-block;
  font-size: 0.58rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: #a78bfa;
  background: rgba(139, 92, 246, 0.16);
  border: 1px solid rgba(139, 92, 246, 0.22);
  padding: 3px 8px;
  border-radius: 9999px;
  text-transform: uppercase;
  margin-bottom: 8px;
}

.agency-title {
  font-size: 1.25rem;
  font-weight: 800;
  color: #ffffff;
  letter-spacing: -0.01em;
  margin-bottom: 6px;
}

.tag-row {
  display: flex;
  gap: 5px;
  flex-wrap: wrap;
}

.mockup-tag {
  font-size: 0.62rem;
  font-weight: 600;
  padding: 2.5px 7px;
  border-radius: 9999px;
  display: inline-flex;
  align-items: center;
  gap: 3px;
}

.tag-city {
  background: rgba(59, 130, 246, 0.12);
  color: #93c5fd;
  border: 1px solid rgba(59, 130, 246, 0.18);
}

.tag-city svg {
  stroke: currentColor;
}

.tag-sector {
  background: rgba(20, 184, 166, 0.12);
  color: #2dd4bf;
  border: 1px solid rgba(20, 184, 166, 0.18);
}

.status-bar-ready {
  display: flex;
  align-items: center;
  gap: 6px;
  margin: 10px 0;
  padding-bottom: 10px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.ready-dot {
  width: 6px;
  height: 6px;
  background-color: var(--accent-green);
  border-radius: 50%;
  position: relative;
}

.ready-dot::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: var(--accent-green);
  border-radius: 50%;
  animation: pulseGreen 1.8s infinite;
}

.ready-text {
  font-size: 0.7rem;
  font-weight: 600;
  color: #34d399;
}

.agency-description {
  font-size: 0.72rem;
  line-height: 1.45;
  color: rgba(255, 255, 255, 0.75);
  margin-bottom: 14px;
  font-weight: 300;
}

.call-btn-gradient {
  width: 100%;
  padding: 11px;
  border-radius: 12px;
  background: linear-gradient(135deg, #7c3aed 0%, #a21caf 100%);
  color: #ffffff;
  font-weight: 700;
  font-size: 0.8rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: none;
  box-shadow: 0 8px 16px rgba(124, 58, 237, 0.3);
  cursor: pointer;
  position: relative;
  overflow: hidden;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

.call-btn-gradient svg {
  width: 13px;
  height: 13px;
  fill: currentColor;
}

.call-btn-gradient::after {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.25) 0%, transparent 60%);
  opacity: 0;
  transform: scale(0.5);
  transition: opacity 0.4s, transform 0.4s;
  pointer-events: none;
}

/* Simulated interactive states */
.call-btn-gradient.simulated-hover {
  transform: translateY(-1.5px);
  box-shadow: 0 10px 20px rgba(162, 28, 175, 0.4), 0 0 12px rgba(124, 58, 237, 0.5);
}

.call-btn-gradient.simulated-hover::after {
  opacity: 1;
  transform: scale(1);
}

.call-btn-gradient.simulated-click {
  transform: scale(0.95) translateY(0);
  box-shadow: 0 4px 8px rgba(124, 58, 237, 0.25);
}

/* Custom Virtual Cursor */
.virtual-cursor {
  position: absolute;
  width: 22px;
  height: 22px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%23ffffff' stroke='%23000000' stroke-width='1.5' d='M5.5 3.2L19 12.2l-5.6.8L19 20l-2.7 1.2-5.6-7-4.2 4.2V3.2z'/%3E%3C/svg%3E");
  background-size: contain;
  background-repeat: no-repeat;
  pointer-events: none;
  z-index: 100;
  opacity: 0;
  transform: translate(0, 0) scale(1);
  transition: opacity 0.3s ease, transform 0.2s ease;
}

.virtual-cursor.active {
  opacity: 1;
}

.virtual-cursor.clicking {
  transform: scale(0.8);
}

/* Calling Screen Overlay styling */
.calling-screen-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(circle at center, #0e1122 0%, #030409 100%);
  border-radius: 22px;
  z-index: 30;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  visibility: hidden;
  transform: scale(0.96);
  transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
  box-sizing: border-box;
}

.calling-screen-overlay.active {
  opacity: 1;
  visibility: visible;
  transform: scale(1);
}

.caller-avatar-container {
  position: relative;
  width: 104px;
  height: 104px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
}

.caller-avatar {
  width: 90px;
  height: 90px;
  background: linear-gradient(135deg, #6d28d9 0%, #db2777 100%);
  border-radius: 50%;
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 30px rgba(139, 92, 246, 0.55), inset 0 0 15px rgba(255, 255, 255, 0.15);
  border: 2.5px solid rgba(255, 255, 255, 0.12);
  z-index: 5;
}

.caller-logo-svg {
  width: 48px;
  height: 48px;
  display: block;
  animation: logoSoftGlow 3s ease-in-out infinite alternate;
}

@keyframes logoSoftGlow {
  0% {
    filter: drop-shadow(0 0 4px rgba(255, 255, 255, 0.35)) drop-shadow(0 0 10px rgba(192, 132, 252, 0.3));
    transform: scale(0.97);
  }
  100% {
    filter: drop-shadow(0 0 10px rgba(255, 255, 255, 0.65)) drop-shadow(0 0 20px rgba(192, 132, 252, 0.55));
    transform: scale(1.03);
  }
}

.ring-pulse {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) scale(0.85);
  width: 108px;
  height: 108px;
  border-radius: 50%;
  border: 1px solid rgba(139, 92, 246, 0.35);
  opacity: 0;
  z-index: 1;
}

.ring-pulse.pulse-1 {
  animation: ringPulse 2s infinite linear;
}

.ring-pulse.pulse-2 {
  animation: ringPulse 2s infinite linear 1s;
}

@keyframes ringPulse {
  0% {
    transform: translate(-50%, -50%) scale(0.85);
    opacity: 0.8;
  }
  100% {
    transform: translate(-50%, -50%) scale(1.75);
    opacity: 0;
  }
}

.caller-name {
  font-size: 1.3rem;
  font-weight: 800;
  color: #ffffff;
  margin-bottom: 4px;
}

.calling-status {
  font-size: 0.78rem;
  color: #10B981;
  font-weight: 600;
  margin-bottom: 24px;
  letter-spacing: 0.05em;
  animation: blinkText 1.5s infinite ease-in-out;
}

@keyframes blinkText {
  0%, 100% { opacity: 0.55; }
  50% { opacity: 1; }
}

.soundwave-container {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 3.5px;
  height: 36px;
  margin-bottom: 36px;
}

.sound-bar {
  width: 3.5px;
  border-radius: 1.5px;
  background: linear-gradient(to top, #7c3aed, #d946ef);
  animation: soundWave 1.2s infinite ease-in-out;
  transform-origin: bottom;
  height: 10px;
}

.sound-bar.bar-1 { animation-delay: 0.1s; height: 12px; }
.sound-bar.bar-2 { animation-delay: 0.4s; height: 24px; }
.sound-bar.bar-3 { animation-delay: 0.2s; height: 32px; }
.sound-bar.bar-4 { animation-delay: 0.5s; height: 18px; }
.sound-bar.bar-5 { animation-delay: 0.3s; height: 10px; }

@keyframes soundWave {
  0%, 100% {
    transform: scaleY(0.35);
  }
  50% {
    transform: scaleY(1.0);
  }
}

.end-call-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: rgba(255, 255, 255, 0.55);
  padding: 5px 12px;
  border-radius: 9999px;
  font-size: 0.68rem;
  font-weight: 500;
}

.end-call-badge svg {
  width: 11px;
  height: 11px;
  color: #10B981;
}



/* --- Filter Section --- */
.filters-section {
  padding-bottom: 40px;
}

.filters-wrapper {
  background: var(--bg-card);
  border-radius: var(--border-radius-lg);
  padding: 36px;
  box-shadow: var(--shadow-md);
  border: 1px solid rgba(0, 0, 0, 0.01);
}

.filter-row {
  margin-bottom: 28px;
}

.filter-row:last-child {
  margin-bottom: 0;
}

.filter-title {
  font-size: 0.9rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-dark);
  margin-bottom: 16px;
}

.filter-buttons-group {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

/* Filter Button */
.btn-filter {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 28px;
  padding: 0 12px;
  border-radius: var(--border-radius-btn);
  font-weight: 600;
  font-size: 0.8rem;
  border: 1px solid var(--border-color);
  background-color: var(--bg-card);
  color: var(--text-muted);
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  box-sizing: border-box;
  gap: 6px;
  cursor: pointer;
}

.btn-filter:hover {
  border-color: var(--primary);
  color: var(--primary);
  transform: translateY(-1.5px);
}

.btn-filter:active {
  transform: none;
}

.btn-filter.active {
  background: var(--primary-gradient);
  border-color: transparent;
  color: var(--text-light);
  box-shadow: var(--shadow-glow);
  transform: none;
}

.btn-filter.active:hover {
  transform: translateY(-1.5px);
}

.btn-filter.active svg {
  stroke: var(--text-light);
}

.btn-filter svg {
  width: 14px;
  height: 14px;
  stroke: var(--text-muted);
  stroke-width: 2.2;
  fill: none;
  transition: var(--transition-fast);
}

/* --- Results Section --- */
.results-section {
  padding-bottom: 32px;
}

.results-meta-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
}

.results-count {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text-dark);
}

.results-count span {
  color: var(--primary);
}

.active-tags-container {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  flex-grow: 1;
  margin-left: 20px;
}

@media (max-width: 768px) {
  .active-tags-container {
    margin-left: 0;
    width: 100%;
  }
}

.active-filters-label {
  font-size: 0.75rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-muted);
  margin-right: 8px;
  user-select: none;
}

.tag-active {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 28px;
  gap: 6px;
  background-color: var(--bg-card);
  border: 1px solid var(--border-color);
  padding: 0 12px;
  border-radius: var(--border-radius-btn);
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--primary);
  box-shadow: var(--shadow-sm);
  transition: var(--transition-fast);
  box-sizing: border-box;
}

.tag-active:hover {
  border-color: var(--primary);
  transform: translateY(-1.5px);
}

.tag-close-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background-color: var(--bg-badge);
  color: var(--primary);
  font-size: 0.7rem;
  transition: var(--transition-fast);
}

.tag-close-btn:hover {
  background-color: var(--primary);
  color: var(--text-light);
}

.btn-clear-all {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--primary);
  transition: var(--transition-fast);
  padding: 4px 8px;
  border-radius: var(--border-radius-sm);
}

.btn-clear-all:hover {
  background-color: var(--bg-badge);
}

/* --- Agency Cards Grid --- */
.agencies-grid-section {
  padding-bottom: 80px;
}

.agencies-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  transition: all 0.3s ease;
}

/* Media Queries for Grid Layout */
@media (max-width: 1024px) {
  .agencies-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
  }
}

@media (max-width: 640px) {
  .agencies-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
}

/* No Results State */
.no-results {
  grid-column: 1 / -1;
  text-align: center;
  padding: 80px 24px;
  background: var(--bg-card);
  border-radius: var(--border-radius-lg);
  box-shadow: var(--shadow-md);
  border: 1px solid var(--border-color);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
}

.no-results-icon {
  width: 64px;
  height: 64px;
  background-color: var(--bg-badge);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary);
  margin-bottom: 8px;
}

.no-results-icon svg {
  width: 32px;
  height: 32px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
}

.no-results h3 {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--text-dark);
}

.no-results p {
  color: var(--text-muted);
  max-width: 400px;
}

.btn-reset-filters {
  margin-top: 8px;
  background: var(--primary-gradient);
  color: var(--text-light);
  padding: 10px 24px;
  border-radius: var(--border-radius-pill);
  font-weight: 700;
  font-size: 0.9rem;
  box-shadow: var(--shadow-glow);
  transition: var(--transition-normal);
}

.btn-reset-filters:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 30px rgba(37, 99, 235, 0.4);
}

/* --- Agency Card Design --- */
.agency-card {
  background: var(--bg-card);
  border-radius: var(--border-radius-lg);
  padding: 32px 28px;
  box-shadow: var(--shadow-md);
  border: 1px solid rgba(0, 0, 0, 0.01);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  height: 100%;
  min-height: 380px;
  position: relative;
  transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  cursor: pointer;
}

.agency-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
  border-color: rgba(37, 99, 235, 0.15);
}

/* Top Area */
.card-top {
  display: flex;
  flex-direction: column;
  flex-grow: 1;
  margin-bottom: 24px;
}

.card-header-flex {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
  margin-bottom: 16px;
  width: 100%;
}

.card-header-left {
  display: flex;
  align-items: flex-start;
  flex: 1;
  min-width: 0;
}

/* Avatar / Logo Design */
.agency-avatar {
  width: 68px;
  height: 68px;
  border-radius: 16px;
  background: linear-gradient(135deg, #EFF6FF 0%, #DBEAFE 100%);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 1.55rem;
  box-shadow: inset 0 2px 4px rgba(255, 255, 255, 0.95), inset 0 -2px 4px rgba(37, 99, 235, 0.06), var(--shadow-sm);
  flex-shrink: 0;
  border: 1px solid rgba(37, 99, 235, 0.15);
  transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.3s ease, border-color 0.3s ease;
}

.agency-avatar-container {
  display: flex;
  flex-direction: column;
  width: 100%;
}

.agency-card .agency-title {
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--text-dark);
  line-height: 1.25;
}

.card-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 8px;
}

.card-desc {
  font-size: 0.875rem;
  color: var(--text-muted);
  line-height: 1.6;
  min-height: 72px;
  margin-bottom: 16px;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* Actions at the bottom of the card */
.card-actions {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.btn-card-call {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: var(--primary-gradient);
  color: var(--text-light);
  padding: 12px 20px;
  border-radius: var(--border-radius-md);
  font-weight: 700;
  font-size: 0.9rem;
  transition: var(--transition-normal);
  box-shadow: var(--shadow-sm);
}

.btn-card-call:hover {
  background: var(--primary-gradient-hover);
  box-shadow: var(--shadow-glow);
}

.btn-card-call svg {
  width: 16px;
  height: 16px;
  fill: currentColor;
}

.secondary-actions {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 8px;
}

.btn-card-sec {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  background-color: var(--bg-main);
  border: 1px solid var(--border-color);
  color: var(--text-dark);
  padding: 10px 10px;
  border-radius: var(--border-radius-md);
  font-weight: 600;
  font-size: 0.8rem;
  transition: var(--transition-fast);
}

.btn-card-sec:hover {
  background-color: var(--bg-card);
  border-color: var(--primary);
  color: var(--primary);
}

.btn-card-sec svg {
  width: 14px;
  height: 14px;
  stroke: currentColor;
  stroke-width: 2.2;
  fill: none;
}

/* Nearby separator label between exact results and proximity fill */
.nearby-separator {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--text-muted);
  padding: 0;
  letter-spacing: 0.02em;
}

.nearby-sep-icon {
  display: flex;
  align-items: center;
  color: var(--text-muted);
}

/* Nearby city tag inside nearby cards */
.nearby-city-tag {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 0.7rem;
  font-weight: 700;
  color: var(--primary);
  background: rgba(37, 99, 235, 0.07);
  border: 1px solid rgba(37, 99, 235, 0.15);
  border-radius: 20px;
  padding: 3px 10px 3px 7px;
  margin-bottom: 12px;
  width: fit-content;
}

.nearby-city-tag svg {
  flex-shrink: 0;
  stroke: var(--primary);
}

/* Nearby card — same as normal but slightly muted border */
.agency-card.nearby-card {
  border-color: rgba(37, 99, 235, 0.08);
}

/* Website button — blue tint */
.btn-card-website {
  background-color: #EFF6FF;
  border-color: #BFDBFE;
  color: #1D4ED8;
}
.btn-card-website svg {
  fill: #2563EB;
  stroke: none;
}
.btn-card-website:hover {
  background-color: #DBEAFE;
  border-color: #93C5FD;
  color: #1D4ED8;
}

/* Maps button — green tint */
.btn-card-maps {
  background-color: #F0FDF4;
  border-color: #BBF7D0;
  color: #166534;
}
.btn-card-maps svg {
  fill: #16A34A;
  stroke: none;
}
.btn-card-maps:hover {
  background-color: #DCFCE7;
  border-color: #86EFAC;
  color: #166534;
}

/* Reviews button — amber tint */
.btn-card-reviews {
  background-color: #FFFBEB;
  border-color: #FDE68A;
  color: #92400E;
}
.btn-card-reviews svg {
  fill: none;
  stroke: #D97706;
}
.btn-card-reviews:hover {
  background-color: #FEF3C7;
  border-color: #FCD34D;
  color: #92400E;
}

/* --- Footer --- */
/* --- Footer --- */
footer {
  position: relative;
  background-color: #0A0E17; /* Deep Navy Apple/SaaS style background */
  color: var(--text-muted);
  padding: 80px 0 60px; /* Increased padding top/bottom */
  border-top: 1px solid rgba(255, 255, 255, 0.06); /* Thin top border */
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  overflow: hidden;
}

footer::before {
  content: '';
  position: absolute;
  top: -150px;
  left: 20%;
  width: 450px;
  height: 450px;
  background: radial-gradient(circle, rgba(37, 99, 235, 0.07) 0%, rgba(37, 99, 235, 0) 70%);
  filter: blur(80px);
  pointer-events: none;
  animation: footerGlow 15s infinite alternate ease-in-out;
  z-index: 0;
}

@keyframes footerGlow {
  0% {
    transform: translate(0, 0) scale(1);
    opacity: 0.8;
  }
  50% {
    transform: translate(80px, 30px) scale(1.15);
    opacity: 1;
  }
  100% {
    transform: translate(-40px, -20px) scale(0.9);
    opacity: 0.7;
  }
}

.footer-container {
  position: relative;
  z-index: 1;
}

/* Top Row */
.footer-top {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: 32px;
  margin-bottom: 48px;
}

.footer-brand-column {
  display: flex;
  justify-content: center;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 1.4rem;
  font-weight: 800;
  color: var(--text-light);
  text-decoration: none;
  letter-spacing: -0.02em;
}

.footer-logo-dot-accent {
  color: var(--primary);
  font-weight: 800;
  display: inline-block;
  line-height: 1;
}

.footer-desc-column {
  flex: 2 1 450px;
  max-width: 600px;
}

.footer-description {
  font-size: 0.95rem;
  line-height: 1.6;
  color: #94A3B8; /* Higher text contrast slate color */
  margin: 0;
  text-align: right;
}

/* Middle Row: Navigation Links */
.footer-middle {
  display: flex;
  justify-content: center;
  margin-bottom: 48px;
}

.footer-nav {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: 40px;
}

.footer-nav-link {
  color: #94A3B8;
  font-weight: 500;
  font-size: 0.95rem;
  text-decoration: none;
  position: relative;
  transition: color var(--transition-fast), text-shadow var(--transition-fast);
  padding: 6px 0;
}

.footer-nav-link:hover {
  color: var(--text-light);
  text-shadow: 0 0 10px rgba(37, 99, 235, 0.6);
}

.footer-nav-link::after {
  content: '';
  position: absolute;
  width: 100%;
  transform: scaleX(0);
  height: 2px;
  bottom: 0;
  left: 0;
  background: linear-gradient(90deg, transparent, var(--primary), transparent);
  transform-origin: bottom center;
  transition: transform var(--transition-normal);
}

.footer-nav-link:hover::after {
  transform: scaleX(1);
}

/* Bottom Row */
.footer-bottom-divider {
  width: 100%;
  height: 1px;
  background: linear-gradient(90deg, rgba(255, 255, 255, 0.01), rgba(255, 255, 255, 0.08) 50%, rgba(255, 255, 255, 0.01));
  margin-bottom: 24px;
}

.footer-bottom-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 24px;
  font-size: 0.85rem;
  color: #64748B;
  width: 100%;
}

.footer-bottom-left {
  display: flex;
  flex-direction: column;
  gap: 8px;
  max-width: 60%;
  flex: 1 1 300px;
}

.footer-bottom-right {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 10px;
  flex: 0 0 auto;
}

.footer-address {
  display: flex;
  align-items: center;
  gap: 6px;
  color: #64748B;
  font-size: 0.825rem;
  text-align: right;
}

.footer-address svg {
  color: var(--primary);
  flex-shrink: 0;
}

.footer-social-link {
  color: #64748B;
  transition: color var(--transition-fast), transform var(--transition-fast);
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.footer-social-link:hover {
  color: #0077b5; /* LinkedIn Blue */
  transform: translateY(-2px);
}

.footer-copyright {
  margin: 0;
}

.footer-tagline {
  margin: 0;
}

/* Responsive Overrides */
@media (max-width: 768px) {
  footer {
    padding: 60px 0 100px; /* Extra padding bottom for mobile stick nav helper */
  }
  .footer-top {
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 16px;
    margin-bottom: 36px;
  }
  .footer-description {
    text-align: center;
    font-size: 0.9rem;
  }
  .footer-middle {
    margin-bottom: 36px;
  }
  .footer-nav {
    gap: 20px 24px;
  }
  .footer-nav-link {
    font-size: 0.9rem;
  }
  .footer-bottom-content {
    flex-direction: column;
    text-align: center;
    gap: 12px;
  }
  .footer-bottom-left {
    max-width: 100%;
    text-align: center;
  }
  .footer-bottom-right {
    align-items: center;
    text-align: center;
    margin-top: 8px;
  }
  .footer-address {
    text-align: center;
    justify-content: center;
  }
}

/* --- Animations --- */
@keyframes float {
  0% {
    transform: translateY(0px) rotate(0deg);
  }
  50% {
    transform: translateY(-12px) rotate(0.5deg);
  }
  100% {
    transform: translateY(0px) rotate(0deg);
  }
}

@keyframes pulseGreen {
  0% {
    transform: scale(0.9);
    box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.5);
  }
  70% {
    transform: scale(1);
    box-shadow: 0 0 0 8px rgba(16, 185, 129, 0);
  }
  100% {
    transform: scale(0.9);
    box-shadow: 0 0 0 0 rgba(16, 185, 129, 0);
  }
}

/* Reveal transition classes (used by JS or just standard load) */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

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

/* Snappy card fade/scale transitions for real-time filtering updates */
.agency-card.reveal {
  opacity: 0;
  transform: translateY(15px) scale(0.98);
  transition: opacity 0.3s cubic-bezier(0.4, 0, 0.2, 1), transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.agency-card.reveal.active {
  opacity: 1;
  transform: translateY(0) scale(1);
}

/* --- Interactive Bottom Navigation --- */
.bottom-nav {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 68px;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-top: 1px solid var(--border-color);
  display: none; /* Hidden on desktop */
  justify-content: space-around;
  align-items: center;
  z-index: 1000;
  box-shadow: 0 -4px 30px rgba(0, 0, 0, 0.03);
  padding: 0 10px;
}

.bottom-nav-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  gap: 4px;
  font-size: 0.72rem;
  font-weight: 700;
  text-decoration: none;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  flex: 1;
  height: 100%;
  position: relative;
}

.bottom-nav-item svg {
  width: 20px;
  height: 20px;
  stroke: var(--text-muted);
  stroke-width: 2.2;
  fill: none;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

.bottom-nav-item::after {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%) scaleX(0);
  width: 32px;
  height: 3px;
  background: var(--primary-gradient);
  border-bottom-left-radius: 3px;
  border-bottom-right-radius: 3px;
  transition: transform 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

.bottom-nav-item:hover,
.bottom-nav-item.active {
  color: var(--primary);
}

.bottom-nav-item.active::after {
  transform: translateX(-50%) scaleX(1);
}

.bottom-nav-item.active svg {
  stroke: var(--primary);
  transform: translateY(-2px);
}

/* --- Mobile responsive tweaks & Drawer Menu --- */
.hamburger-btn {
  display: none;
  flex-direction: column;
  justify-content: space-between;
  width: 24px;
  height: 18px;
  background: transparent;
  border: none;
  cursor: pointer;
  z-index: 1010;
}

.hamburger-btn span {
  width: 100%;
  height: 2.5px;
  background-color: var(--text-dark);
  border-radius: 4px;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  transform-origin: center;
}

/* Mobile Drawer Menu */
.mobile-menu-drawer {
  position: fixed;
  top: 0;
  right: -100%;
  width: 85%;
  max-width: 380px;
  height: 100vh;
  background: var(--bg-card);
  z-index: 1005;
  transition: right 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: -10px 0 40px rgba(0, 0, 0, 0.08);
  display: flex;
  flex-direction: column;
  padding-top: 90px;
}

.mobile-menu-drawer.active {
  right: 0;
}

/* Dark backdrop behind the drawer */
#mobile-menu-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.45);
  z-index: 1004;
  opacity: 0;
  transition: opacity 0.35s ease;
}

#mobile-menu-overlay.active {
  display: block;
  opacity: 1;
}

/* Close (back) button inside drawer */
.mobile-menu-close-btn {
  position: absolute;
  top: 20px;
  left: 20px;
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--bg-main);
  border: 1px solid var(--border-color);
  border-radius: 50px;
  padding: 8px 16px 8px 12px;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-dark);
  cursor: pointer;
  transition: var(--transition-fast);
}

.mobile-menu-close-btn:hover {
  background: var(--border-color);
}

.mobile-menu-close-btn svg {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
}

.mobile-menu-content {
  display: flex;
  flex-direction: column;
  height: 100%;
  padding: 30px 24px;
  justify-content: space-between;
}

.mobile-menu-brand {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text-dark);
  letter-spacing: -0.3px;
  margin-bottom: 20px;
}

.mobile-menu-links {
  list-style: none;
  display: flex;
  flex-direction: column;
}

.mobile-menu-links li {
  border-bottom: 1px solid var(--border-color);
}

.mobile-menu-links li:last-child {
  border-bottom: none;
}

.mobile-menu-links a {
  display: block;
  padding: 14px 0;
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text-dark);
  transition: var(--transition-fast);
}

.mobile-menu-links a:hover {
  color: var(--primary);
  transform: translateX(6px);
}

.mobile-menu-footer {
  font-size: 0.8rem;
  color: var(--text-muted);
  border-top: 1px solid var(--border-color);
  padding-top: 20px;
}

@media (max-width: 768px) {
  body {
    padding-bottom: 74px; /* Prevents sticky bottom bar from covering content */
  }

  .bottom-nav {
    display: flex;
  }

  .hamburger-btn {
    display: flex;
  }

  /* Morph to X shape when active */
  .hamburger-btn.active span:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
  }
  
  .hamburger-btn.active span:nth-child(2) {
    opacity: 0;
  }
  
  .hamburger-btn.active span:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
  }

  .hero {
    padding-top: 130px;
    padding-bottom: 48px;
  }
  
  .hero-grid {
    grid-template-columns: 1fr;
    gap: 40px;
    text-align: left;
  }
  
  .hero-content {
    align-items: flex-start;
  }
  

  
  .filters-wrapper {
    padding: 24px 16px;
  }
  
  .filter-buttons-group {
    gap: 8px;
  }
  
  .btn-filter {
    height: 24px;
    padding: 0 10px;
    font-size: 0.72rem;
  }
  
  .tag-active {
    height: 24px;
    padding: 0 10px;
    font-size: 0.72rem;
  }
  
  .nav-container {
    height: 70px;
  }
}

/* ==========================================================================
   WHY USE MY AGENCY FINDS SECTION
   ========================================================================== */
.why-us-section {
  position: relative;
  padding: 100px 0 0;
  background: radial-gradient(circle at 50% 0%, #ffffff 0%, #f6f8fb 100%);
  overflow: hidden;
  border-top: 1px solid var(--border-color);
}

/* Ambient Backdrop Glows */
.why-us-glow-1 {
  position: absolute;
  top: 10%;
  left: 5%;
  width: 300px;
  height: 300px;
  background: radial-gradient(circle, rgba(37, 99, 235, 0.04) 0%, rgba(59, 130, 246, 0) 70%);
  filter: blur(80px);
  pointer-events: none;
  z-index: 1;
}

.why-us-glow-2 {
  position: absolute;
  bottom: 10%;
  right: 5%;
  width: 300px;
  height: 300px;
  background: radial-gradient(circle, rgba(59, 130, 246, 0.04) 0%, rgba(59, 130, 246, 0) 70%);
  filter: blur(80px);
  pointer-events: none;
  z-index: 1;
}

.why-us-section .container {
  position: relative;
  z-index: 5;
}

/* Header */
.why-us-header {
  text-align: center;
  max-width: 680px;
  margin: 0 auto 60px auto;
}

.why-us-header h2 {
  font-size: clamp(2rem, 4vw, 2.75rem);
  font-weight: 800;
  color: var(--text-dark);
  line-height: 1.2;
  margin-bottom: 20px;
  letter-spacing: -0.02em;
}

.why-us-header h2 span {
  background: var(--primary-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.why-us-subtitle {
  font-size: 1.1rem;
  color: var(--text-muted);
  line-height: 1.6;
}

/* Grid Layout */
.why-us-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 30px;
}

/* Glassmorphic Feature Card */
.why-us-card {
  position: relative;
  background: rgba(255, 255, 255, 0.65);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(37, 99, 235, 0.08);
  border-radius: 24px;
  padding: 32px 24px;
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.02);
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.why-us-card h3 {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text-dark);
  margin-top: 20px;
  margin-bottom: 12px;
  z-index: 2;
}

.why-us-card p {
  font-size: 0.92rem;
  color: var(--text-muted);
  line-height: 1.6;
  z-index: 2;
}

/* Icon Container */
.why-us-icon-wrapper {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  background: linear-gradient(135deg, rgba(37, 99, 235, 0.08) 0%, rgba(59, 130, 246, 0.03) 100%);
  border: 1px solid rgba(37, 99, 235, 0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary);
  transition: all 0.3s ease;
  z-index: 2;
}

.why-us-icon-wrapper svg {
  width: 22px;
  height: 22px;
  stroke: var(--primary);
  stroke-width: 2;
  transition: transform 0.3s ease;
}

/* Card Glow Overlay */
.card-glow-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(300px circle at var(--x, 0px) var(--y, 0px), rgba(37, 99, 235, 0.08), transparent 60%);
  opacity: 0;
  transition: opacity 0.4s ease;
  pointer-events: none;
  z-index: 1;
}

/* Hover States */
.why-us-card:hover {
  transform: translateY(-8px);
  border-color: rgba(37, 99, 235, 0.25);
  box-shadow: 
    0 20px 40px rgba(15, 23, 42, 0.04),
    0 0 20px rgba(37, 99, 235, 0.05);
}

.why-us-card:hover .why-us-icon-wrapper {
  background: var(--primary-gradient);
  border-color: transparent;
  color: var(--text-light);
  box-shadow: 0 8px 20px rgba(37, 99, 235, 0.25);
}

.why-us-card:hover .why-us-icon-wrapper svg {
  stroke: var(--text-light);
  transform: scale(1.1);
}

.why-us-card:hover .card-glow-overlay {
  opacity: 1;
}

/* Responsive Grid Media Queries */
@media (max-width: 1024px) {
  .why-us-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
  }
  .why-us-section {
    padding: 80px 0 0;
  }
}

@media (max-width: 640px) {
  .why-us-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  .why-us-section {
    padding: 60px 0 0;
  }
  .why-us-header {
    margin-bottom: 40px;
  }
}

/* --- Curated Featured Agency Styling & Badges --- */

/* General Badge Base */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  border-radius: var(--border-radius-pill);
  font-size: 0.75rem;
  font-weight: 600;
  line-height: 1;
  transition: var(--transition-fast);
}

.badge svg {
  flex-shrink: 0;
}

/* Badge City Variant */
.badge-city {
  background-color: var(--bg-badge);
  color: var(--primary);
  border: 1px solid rgba(37, 99, 235, 0.08);
}

.badge-city svg {
  stroke: var(--primary);
}

/* Badge Category Variant */
.badge-cat {
  background-color: rgba(15, 23, 42, 0.04);
  color: var(--text-dark);
  border: 1px solid rgba(0, 0, 0, 0.04);
}

/* Badge Featured Variant */
.badge-featured {
  background: linear-gradient(135deg, rgba(20, 184, 166, 0.15) 0%, rgba(37, 99, 235, 0.1) 100%);
  color: #0f766e;
  border: 1px solid rgba(20, 184, 166, 0.25);
  font-weight: 700;
  letter-spacing: 0.02em;
}

.badge-featured svg {
  stroke: #14b8a6;
  fill: rgba(20, 184, 166, 0.2);
}

/* Featured Card Highlights */
.agency-card.featured {
  border: 1px solid rgba(37, 99, 235, 0.18);
  box-shadow: 
    0 10px 30px rgba(37, 99, 235, 0.03),
    var(--shadow-md);
}

.agency-card.featured::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 5px;
  background: linear-gradient(90deg, #2563EB, #14B8A6);
  border-top-left-radius: var(--border-radius-lg);
  border-top-right-radius: var(--border-radius-lg);
}

.agency-card.featured:hover {
  border-color: rgba(37, 99, 235, 0.35);
  box-shadow: 
    0 20px 40px rgba(37, 99, 235, 0.08),
    0 0 20px rgba(37, 99, 235, 0.04);
}

/* --- Recommended Card Highlights & Badges (Premium Redesign) --- */

.agency-card.recommended {
  background: radial-gradient(120% 120% at 50% 0%, #0F172A 0%, #020617 100%);
  border: 1px solid rgba(37, 99, 235, 0.25);
  box-shadow: 
    0 20px 40px rgba(15, 23, 42, 0.3),
    0 0 20px rgba(37, 99, 235, 0.08);
  padding: 36px 32px;
  overflow: hidden;
  transition: all 0.45s cubic-bezier(0.16, 1, 0.3, 1);
}

.agency-card.recommended.active {
  transform: translateY(0);
}

/* Glowing Neon Top Accent Bar */
.agency-card.recommended::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 5px;
  background: linear-gradient(90deg, #2563EB, #14B8A6);
  border-top-left-radius: var(--border-radius-lg);
  border-top-right-radius: var(--border-radius-lg);
  z-index: 10;
}

/* Glossy Skew Shimmer Reflection Overlay on Hover */
.agency-card.recommended::after {
  content: '';
  position: absolute;
  top: 0;
  left: -150%;
  width: 60%;
  height: 100%;
  background: linear-gradient(
    to right,
    rgba(255, 255, 255, 0) 0%,
    rgba(255, 255, 255, 0.12) 30%,
    rgba(255, 255, 255, 0.25) 50%,
    rgba(255, 255, 255, 0.12) 70%,
    rgba(255, 255, 255, 0) 100%
  );
  transform: skewX(-25deg);
  transition: 0.8s;
  pointer-events: none;
  z-index: 5;
}

.agency-card.recommended:hover::after {
  left: 150%;
  transition: 0.8s ease-in-out;
}

.agency-card.recommended:hover {
  transform: translateY(-10px) scale(1.01) !important;
  border-color: rgba(167, 139, 250, 0.45);
  box-shadow: 
    0 25px 50px rgba(0, 0, 0, 0.55),
    0 0 24px rgba(167, 139, 250, 0.2);
}

/* Custom left header element sizing */
.agency-avatar-container {
  flex: 1;
  min-width: 0;
}

/* Ensure contents on recommended cards sit above shimmer overlay */
.agency-card.recommended .card-top,
.agency-card.recommended .card-actions {
  position: relative;
  z-index: 6;
}

@media (max-width: 480px) {
  .agency-card {
    padding: 24px 20px;
  }
  .agency-card.recommended {
    padding: 28px 24px;
  }
  .card-header-flex {
    gap: 12px;
  }
  .secondary-actions {
    gap: 6px;
  }
}

/* Premium Typography Adjustments inside Recommended Cards */
.agency-card.recommended .agency-title a {
  color: #FFFFFF;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.35);
}

.agency-card.recommended .card-desc {
  color: #F1F5F9;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}
.agency-card.recommended .badge-city {
  background: rgba(59, 130, 246, 0.15);
  color: #93C5FD;
  border: 1px solid rgba(59, 130, 246, 0.35);
}

.agency-card.recommended .badge-city svg {
  color: #93C5FD;
}

.agency-card.recommended .badge-cat {
  background: rgba(20, 184, 166, 0.15);
  color: #2DD4BF;
  border: 1px solid rgba(20, 184, 166, 0.35);
}

/* Glossy Gradient Avatar */
.agency-card.recommended .agency-avatar {
  background: linear-gradient(135deg, #2563EB 0%, #14B8A6 100%);
  color: #FFFFFF;
  border: 1px solid rgba(255, 255, 255, 0.25);
  box-shadow: 0 8px 20px rgba(37, 99, 235, 0.3);
  text-shadow: 0 1px 2px rgba(0,0,0,0.15);
}

/* VIP Recommended Badge */
.card-recommended-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: linear-gradient(135deg, #2563EB 0%, #14B8A6 100%);
  color: #ffffff;
  padding: 4px 10px;
  border-radius: var(--border-radius-pill);
  font-size: 0.58rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  z-index: 10;
  box-shadow: 0 4px 10px rgba(37, 99, 235, 0.25);
  animation: recommended-glow 2.5s infinite;
  white-space: nowrap;
  flex-shrink: 0;
  margin-top: 4px;
}

.card-recommended-badge svg {
  animation: star-rotate 4s ease-in-out infinite;
  fill: #ffffff;
  flex-shrink: 0;
}

/* Primary CTA Button */
.agency-card.recommended .btn-card-call {
  background: linear-gradient(135deg, #2563EB 0%, #14B8A6 100%);
  color: #FFFFFF;
  border: 1px solid rgba(255,255,255,0.08);
  box-shadow: 0 8px 20px rgba(37, 99, 235, 0.35);
  position: relative;
  z-index: 2;
}

.agency-card.recommended .btn-card-call:hover {
  background: linear-gradient(135deg, #3B82F6 0%, #0F766E 100%);
  box-shadow: 0 12px 28px rgba(37, 99, 235, 0.55);
}

/* Dark Glass Secondary Buttons */
.agency-card.recommended .btn-card-sec {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: #E2E8F0;
}

.agency-card.recommended .btn-card-sec:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.2);
  color: #FFFFFF;
}

.agency-card.recommended .btn-card-sec svg {
  fill: currentColor;
}

/* Animations for recommended card */
@keyframes recommended-glow {
  0%, 100% {
    box-shadow: 0 4px 10px rgba(37, 99, 235, 0.25), 0 0 0 0px rgba(37, 99, 235, 0.2);
  }
  50% {
    box-shadow: 0 4px 16px rgba(37, 99, 235, 0.45), 0 0 0 4px rgba(37, 99, 235, 0.12);
  }
}

@keyframes star-rotate {
  0% { transform: scale(1) rotate(0deg); }
  50% { transform: scale(1.2) rotate(15deg); }
  100% { transform: scale(1) rotate(0deg); }
}

/* ==========================================================================
   AGENCY PROFILE VIEW & BREADCRUMBS STYLING
   ========================================================================== */
.agency-profile-section {
  padding-top: 130px;
  padding-bottom: 80px;
}

.breadcrumbs {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 24px;
  flex-wrap: wrap;
}

.breadcrumbs a {
  color: var(--text-muted);
  transition: var(--transition-fast);
}

.breadcrumbs a:hover {
  color: var(--primary);
  text-decoration: underline;
}

.breadcrumbs .separator {
  color: var(--border-color);
}

.breadcrumbs .current {
  color: var(--text-dark);
  font-weight: 600;
}

.profile-card {
  background: var(--bg-card);
  border-radius: var(--border-radius-lg);
  padding: 40px;
  box-shadow: var(--shadow-md);
  border: 1px solid var(--border-color);
  position: relative;
  overflow: hidden;
  transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

.profile-card.reveal.active {
  transform: translateY(0);
  opacity: 1;
}

.profile-card.recommended {
  background: radial-gradient(120% 120% at 50% 0%, #0F172A 0%, #020617 100%);
  border: 1px solid rgba(37, 99, 235, 0.25);
  box-shadow: 
    0 20px 50px rgba(15, 23, 42, 0.3),
    0 0 25px rgba(37, 99, 235, 0.1);
}

.profile-card.recommended::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 6px;
  background: linear-gradient(90deg, #2563EB, #14B8A6);
  z-index: 10;
}

/* Adjust text contrasts in recommended profile card */
.profile-card.recommended .profile-name,
.profile-card.recommended .profile-about h2,
.profile-card.recommended .profile-services h2,
.profile-card.recommended .profile-locations h2,
.profile-card.recommended .profile-reviews-title,
.profile-card.recommended .services-title {
  color: #FFFFFF !important;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.4);
}

.profile-card.recommended .profile-desc,
.profile-card.recommended .profile-description,
.profile-card.recommended 

.profile-card.recommended .services-list li::before {
  color: #34D399; /* Vibrant green check icon */
}

.profile-card.recommended .profile-header {
  border-bottom: 1px solid rgba(255, 255, 255, 0.22);
}

.profile-card.recommended .profile-avatar {
  background: linear-gradient(135deg, #2563EB 0%, #14B8A6 100%);
  color: #FFFFFF;
  border: 1px solid rgba(255, 255, 255, 0.25);
  box-shadow: 0 8px 20px rgba(37, 99, 235, 0.3);
}

.profile-card.recommended .badge-city {
  background: rgba(59, 130, 246, 0.15);
  color: #93C5FD;
  border: 1px solid rgba(59, 130, 246, 0.3);
}

.profile-card.recommended .badge-cat {
  background: rgba(20, 184, 166, 0.15);
  color: #2DD4BF;
  border: 1px solid rgba(20, 184, 166, 0.3);
}

.profile-card.recommended .profile-contact-btn {
  background: linear-gradient(135deg, #2563EB 0%, #14B8A6 100%) !important;
  color: #FFFFFF !important;
  box-shadow: 0 8px 20px rgba(37, 99, 235, 0.35) !important;
}

.profile-card.recommended .profile-contact-btn:hover {
  background: linear-gradient(135deg, #3B82F6 0%, #0F766E 100%) !important;
  box-shadow: 0 12px 28px rgba(37, 99, 235, 0.55) !important;
}

.profile-card.recommended .btn-profile-sec {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: #E2E8F0;
}

.profile-card.recommended .btn-profile-sec:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.2);
  color: #FFFFFF;
}

.profile-recommended-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: linear-gradient(135deg, #2563EB 0%, #14B8A6 100%);
  color: #ffffff;
  padding: 6px 14px;
  border-radius: var(--border-radius-pill);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.05em;
  box-shadow: 0 6px 18px rgba(37, 99, 235, 0.35);
  z-index: 5;
  white-space: nowrap;
  flex-shrink: 0;
  margin-top: 8px;
}

.profile-recommended-badge svg {
  fill: #ffffff;
  animation: star-rotate 4s ease-in-out infinite;
}

.profile-recommended-badge .sparkle-star {
  font-size: 0.8rem;
  color: #FFE082;
  animation: sparkle-blink 1.5s infinite alternate;
  display: inline-block;
  line-height: 1;
}

.profile-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 24px;
  margin-bottom: 32px;
  border-bottom: 1px solid var(--border-color);
  padding-bottom: 24px;
  width: 100%;
}

.profile-header-left {
  display: flex;
  align-items: center;
  gap: 24px;
  flex: 1;
  min-width: 0;
}

.profile-avatar {
  width: 80px;
  height: 80px;
  border-radius: 18px;
  background: linear-gradient(135deg, #F1EFFE 0%, #E8E5FF 100%);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 1.8rem;
  box-shadow: inset 0 2.5px 5px rgba(255, 255, 255, 0.95), inset 0 -2.5px 5px rgba(37, 99, 235, 0.08), var(--shadow-sm);
  border: 1px solid rgba(37, 99, 235, 0.15);
  flex-shrink: 0;
  transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.3s ease, border-color 0.3s ease;
}

.profile-avatar:hover {
  transform: scale(1.06) rotate(-1deg);
  box-shadow: inset 0 2.5px 5px rgba(255, 255, 255, 0.95), inset 0 -2.5px 5px rgba(37, 99, 235, 0.08), 0 10px 20px rgba(37, 99, 235, 0.12);
  border-color: rgba(37, 99, 235, 0.25);
}

.profile-title-container {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.profile-name {
  font-size: 2rem;
  font-weight: 800;
  color: var(--text-dark);
  line-height: 1.15;
}

.profile-meta-badges {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.profile-body {
  display: grid;
  grid-template-columns: 1.6fr 1fr;
  gap: 40px;
}

.profile-about h2 {
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 16px;
}

.profile-desc {
  font-size: 1rem;
  color: var(--text-muted);
  line-height: 1.7;
  margin-bottom: 24px;
}

.services-title {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 12px;
}

.services-list {
  list-style: none;
  margin-top: 16px;
}

.services-list li {
  position: relative;
  padding-left: 24px;
  margin-bottom: 12px;
  font-size: 0.95rem;
  color: var(--text-muted);
}

.services-list li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: var(--accent-green);
  font-weight: bold;
}

.profile-sidebar {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.contact-box {
  background-color: var(--bg-main);
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius-md);
  padding: 24px;
}

.contact-box h3 {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 16px;
}

.btn-profile-call {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: var(--primary-gradient);
  color: var(--text-light);
  padding: 14px 20px;
  border-radius: var(--border-radius-md);
  font-weight: 700;
  font-size: 0.95rem;
  transition: var(--transition-normal);
  box-shadow: var(--shadow-sm);
  width: 100%;
  margin-bottom: 16px;
}

.btn-profile-call:hover {
  background: var(--primary-gradient-hover);
  box-shadow: var(--shadow-glow);
}

.btn-profile-call svg {
  width: 16px;
  height: 16px;
  fill: currentColor;
}

.sidebar-links {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.btn-sidebar-link {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background-color: var(--bg-card);
  border: 1px solid var(--border-color);
  color: var(--text-dark);
  padding: 12px 14px;
  border-radius: var(--border-radius-md);
  font-weight: 600;
  font-size: 0.85rem;
  transition: var(--transition-fast);
}

.btn-sidebar-link:hover {
  border-color: var(--primary);
  color: var(--primary);
  background-color: var(--bg-badge);
}

.btn-sidebar-link svg {
  width: 16px;
  height: 16px;
  stroke: currentColor;
  stroke-width: 2.2;
  fill: none;
}

.profile-footer {
  margin-top: 32px;
  border-top: 1px solid var(--border-color);
  padding-top: 24px;
}

.back-to-directory {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--primary);
  font-weight: 700;
  font-size: 0.9rem;
}

.back-to-directory:hover {
  color: var(--primary-light);
  transform: translateX(-4px);
}

.back-to-directory svg {
  width: 16px;
  height: 16px;
  transition: var(--transition-fast);
}

@media (max-width: 768px) {
  .profile-body {
    grid-template-columns: 1fr;
    gap: 30px;
  }
  .profile-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
  }
  .profile-header-left {
    width: 100%;
    gap: 16px;
  }
  .profile-recommended-badge {
    margin-top: 0;
    margin-bottom: 8px;
  }
  .agency-profile-section {
    padding-top: 100px;
    padding-bottom: 60px;
  }
}

.agency-title-link {
  color: var(--text-dark);
  transition: var(--transition-fast);
}

.agency-title-link:hover {
  color: var(--primary);
  text-decoration: underline;
}

/* ==========================================================================
   CONTACT PAGE SPECIFIC STYLES  — Modern SaaS redesign
   ========================================================================== */

.contact-hero {
  padding-top: 140px;
  padding-bottom: 48px;
  text-align: center;
}

.contact-hero-badge {
  display: inline-flex;
  align-items: center;
  background: var(--bg-badge);
  color: var(--primary);
  font-size: 0.82rem;
  font-weight: 600;
  padding: 6px 16px;
  border-radius: var(--border-radius-pill);
  margin-bottom: 16px;
  border: 1px solid rgba(37, 99, 235, 0.12);
  letter-spacing: 0.03em;
}

.contact-hero h1 {
  font-size: clamp(2.2rem, 5vw, 3rem);
  font-weight: 800;
  color: var(--text-dark);
  letter-spacing: -0.03em;
  margin-bottom: 16px;
  line-height: 1.15;
}

.contact-hero h1 span {
  background: var(--primary-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.contact-hero-desc {
  max-width: 640px;
  margin: 0 auto;
  font-size: 1.05rem;
  line-height: 1.65;
  color: var(--text-muted);
}

/* ── Contact layout ────────────────────────────────────────────────────── */
.contact-section {
  padding: 56px 0 100px;
  background-color: var(--bg-main);
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.3fr;
  gap: 56px;
  align-items: flex-start;
}

/* ── Left sidebar ──────────────────────────────────────────────────────── */
.contact-sidebar-info {
  padding-top: 12px;
}

.contact-sidebar-info h2 {
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 28px;
  letter-spacing: -0.02em;
  line-height: 1.2;
}

.contact-info-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 22px;
}

.contact-info-item {
  display: flex;
  align-items: flex-start;
  gap: 14px;
}

.contact-info-icon-box {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: rgba(16, 185, 129, 0.10);
  color: var(--accent-green);
  flex-shrink: 0;
}

.contact-info-content h3 {
  font-size: 0.975rem;
  font-weight: 600;
  color: var(--text-dark);
  margin-bottom: 4px;
}

.contact-info-content p {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.55;
}

/* ── Form card ─────────────────────────────────────────────────────────── */
.contact-form-card {
  background: var(--bg-card, #ffffff);
  border: 1px solid var(--border-color);
  border-radius: 16px;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.06);
  padding: 40px 36px;
  position: relative;
  transition: box-shadow 0.3s ease;
}

.contact-form-card:hover {
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.09);
}

/* ── Form grid ─────────────────────────────────────────────────────────── */
.form-grid-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0 20px;
}

/* ── Single field group — label-above style ───────────────────────────── */
.form-group {
  margin-bottom: 24px;
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 7px;
}

.form-group.full-width {
  grid-column: span 2;
}

/* Label always sits above the input */
.form-label {
  position: static;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--text-dark);
  pointer-events: none;
  transition: color 0.2s;
  order: -1; /* label renders before input in DOM order */
}

/* Input styles */
.form-input {
  width: 100%;
  height: 56px;
  padding: 0 16px;
  font-family: inherit;
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--text-dark);
  background: var(--bg-card, #ffffff);
  border: 1.5px solid var(--border-color);
  border-radius: 12px;
  outline: none;
  box-sizing: border-box;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
  -webkit-appearance: none;
}

body.theme-dark .form-input {
  background: var(--bg-main);
}

.form-input::placeholder {
  color: var(--text-muted);
  font-weight: 400;
}

/* Hover */
.form-input:hover {
  border-color: var(--text-muted);
}

/* Focus */
.form-input:focus {
  border-color: #10B981;
  box-shadow: 0 0 0 4px rgba(16, 185, 129, 0.15);
  background: var(--bg-card, #ffffff);
}

body.theme-dark .form-input:focus {
  background: var(--bg-main);
}

/* Focused label colour */
.form-group:focus-within .form-label {
  color: #10B981;
}

/* Select */
select.form-input {
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  cursor: pointer;
  padding-right: 44px;
}

/* Custom dropdown arrow */
.select-arrow {
  position: absolute;
  right: 16px;
  top: 50%;
  transform: translateY(-50%);
  width: 0;
  height: 0;
  border-left: 5px solid transparent;
  border-right: 5px solid transparent;
  border-top: 5.5px solid var(--text-muted);
  pointer-events: none;
  transition: transform 0.25s ease, border-top-color 0.2s;
}

select.form-input:focus ~ .select-arrow {
  transform: translateY(-50%) rotate(180deg);
  border-top-color: #10B981;
}

/* Textarea */
textarea.form-input {
  height: auto;
  min-height: 160px;
  padding: 14px 16px;
  resize: vertical;
  line-height: 1.6;
}

/* ── Error state ───────────────────────────────────────────────────────── */
.form-input.input-error {
  border-color: #EF4444 !important;
  box-shadow: 0 0 0 4px rgba(239, 68, 68, 0.12) !important;
}

.error-text {
  display: none;
  color: #EF4444;
  font-size: 0.78rem;
  font-weight: 500;
  margin-top: 2px;
}

/* ── Submit button ─────────────────────────────────────────────────────── */
.btn-submit-container {
  margin-top: 8px;
}

.btn-submit {
  width: 100%;
  height: 54px;
  padding: 0 28px;
  font-family: inherit;
  font-size: 1rem;
  font-weight: 700;
  color: #ffffff;
  background: linear-gradient(135deg, #10B981 0%, #059669 100%);
  border: none;
  border-radius: 13px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  box-shadow: 0 4px 16px rgba(16, 185, 129, 0.30);
  transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
  letter-spacing: 0.01em;
}

.btn-submit:hover {
  background: linear-gradient(135deg, #059669 0%, #047857 100%);
  transform: translateY(-1px);
  box-shadow: 0 7px 22px rgba(16, 185, 129, 0.40);
}

.btn-submit:active {
  transform: scale(0.98);
}

.btn-submit:disabled {
  opacity: 0.7;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

/* Loading spinner */
.spinner {
  display: none;
  width: 18px;
  height: 18px;
  border: 2px solid rgba(255, 255, 255, 0.35);
  border-radius: 50%;
  border-top-color: #ffffff;
  animation: spin 0.75s linear infinite;
  flex-shrink: 0;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

/* ── Success state ─────────────────────────────────────────────────────── */
.form-success-container {
  display: none;
  text-align: center;
  padding: 40px 16px;
  animation: fadeInUp 0.45s ease forwards;
}

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

.success-icon-wrapper {
  width: 76px;
  height: 76px;
  border-radius: 50%;
  background: rgba(16, 185, 129, 0.10);
  color: var(--accent-green);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 22px;
  box-shadow: 0 8px 24px rgba(16, 185, 129, 0.15);
}

.success-icon-wrapper svg {
  width: 36px;
  height: 36px;
}

.form-success-container h3 {
  font-size: 1.7rem;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 10px;
  letter-spacing: -0.02em;
}

.form-success-container p {
  font-size: 0.975rem;
  color: var(--text-muted);
  max-width: 340px;
  margin: 0 auto 28px;
  line-height: 1.6;
}

.btn-success-back {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--primary);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.925rem;
  transition: transform 0.2s ease;
}

.btn-success-back:hover {
  transform: translateX(-4px);
}

/* ── Bottom CTA ────────────────────────────────────────────────────────── */
.contact-bottom-cta {
  background-color: #0A0E17;
  padding: 60px 0;
  text-align: center;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.contact-bottom-cta p {
  font-size: 1.1rem;
  line-height: 1.6;
  color: #94A3B8;
  max-width: 600px;
  margin: 0 auto;
}

/* ── Desktop nav (contact page) ────────────────────────────────────────── */
.desktop-nav .nav-link {
  color: var(--text-muted);
  font-weight: 500;
  font-size: 0.95rem;
  text-decoration: none;
  transition: color var(--transition-fast);
  padding: 8px 12px;
  border-radius: var(--border-radius-sm);
}

.desktop-nav .nav-link:hover {
  color: var(--text-dark);
  background: rgba(37, 99, 235, 0.05);
}

/* ── Responsive ────────────────────────────────────────────────────────── */
@media (max-width: 1024px) {
  .contact-grid { gap: 36px; }
}

@media (max-width: 768px) {
  .contact-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  .contact-sidebar-info { text-align: center; }
  .contact-info-item    { text-align: left; }
  .contact-hero         { padding-top: 120px; padding-bottom: 32px; }
  .contact-form-card    { padding: 28px 22px; }
  .form-grid-row        { grid-template-columns: 1fr; gap: 0; }
  .form-group.full-width { grid-column: span 1; }
  .contact-bottom-cta   { padding: 40px 20px; }
  .contact-bottom-cta p { font-size: 1rem; }
}

@media (max-width: 480px) {
  .contact-form-card { padding: 22px 16px; border-radius: 14px; }
}

/* ==========================================================================
   FOOTER ACTIVE STATE & PRIVACY POLICY PAGE STYLES
   ========================================================================== */

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

.footer-nav-link.active::after {
  transform: scaleX(1);
}

/* --- HERO SECTION --- */
.legal-hero {
  padding-top: 160px;
  padding-bottom: 60px;
  position: relative;
  overflow: hidden;
  text-align: center;
}

.legal-hero::before {
  content: '';
  position: absolute;
  top: -10%;
  right: -5%;
  width: 450px;
  height: 450px;
  background: radial-gradient(circle, rgba(37, 99, 235, 0.06) 0%, rgba(59, 130, 246, 0) 70%);
  z-index: -1;
  border-radius: 50%;
}

.legal-hero::after {
  content: '';
  position: absolute;
  bottom: -5%;
  left: -5%;
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(59, 130, 246, 0.04) 0%, rgba(37, 99, 235, 0) 70%);
  z-index: -1;
  border-radius: 50%;
}

.legal-hero-badge {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  color: var(--primary);
  background-color: var(--bg-badge);
  padding: 6px 16px;
  border-radius: var(--border-radius-pill);
  text-transform: uppercase;
  margin-bottom: 24px;
  box-shadow: var(--shadow-sm);
}

.legal-hero h1 {
  font-size: clamp(2.5rem, 5vw, 3.5rem);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.03em;
  color: var(--text-dark);
  margin-bottom: 20px;
}

.legal-hero h1 span {
  background: var(--primary-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  display: inline-block;
}

.legal-hero-desc {
  font-size: 1.125rem;
  color: var(--text-muted);
  max-width: 600px;
  margin: 0 auto 32px auto;
  line-height: 1.6;
}

/* --- MOBILE STICKY QUICK NAVIGATION --- */
.mobile-quick-nav {
  position: sticky;
  top: 80px;
  z-index: 990;
  background: var(--glass-bg);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-color);
  display: none;
  padding: 0 16px;
  overflow-x: auto;
  scrollbar-width: none; /* Firefox */
  transition: background-color var(--transition-normal), border-color var(--transition-normal), top var(--transition-normal);
}

.mobile-quick-nav::-webkit-scrollbar {
  display: none; /* Chrome/Safari */
}

header.scrolled ~ .mobile-quick-nav {
  top: 70px;
}

.mobile-quick-nav-list {
  display: flex;
  gap: 12px;
  padding: 12px 8px;
  list-style: none;
  width: max-content;
}

.mobile-quick-nav-link {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-muted);
  padding: 8px 16px;
  border-radius: var(--border-radius-pill);
  border: 1px solid var(--border-color);
  background-color: var(--bg-card);
  white-space: nowrap;
  transition: var(--transition-fast);
}

.mobile-quick-nav-link.active {
  background-color: var(--primary);
  color: #FFFFFF;
  border-color: var(--primary);
  box-shadow: 0 4px 12px rgba(37, 99, 235, 0.2);
}

@media (max-width: 991px) {
  .mobile-quick-nav {
    display: block;
  }
}

/* --- TWO-COLUMN CONTENT AREA LAYOUT --- */
.legal-layout-section {
  padding-bottom: 100px;
}

.legal-grid {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 48px;
  align-items: start;
}

@media (max-width: 991px) {
  .legal-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }
}

/* Sticky Sidebar Navigation (Desktop) */
.legal-sidebar {
  position: sticky;
  top: 120px;
  z-index: 10;
}

@media (max-width: 991px) {
  .legal-sidebar {
    display: none; /* Use mobile quick-nav tabs instead */
  }
}

.sidebar-nav-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius-lg);
  padding: 24px;
  box-shadow: var(--card-shadow);
  transition: background-color var(--transition-normal), border-color var(--transition-normal);
}

.sidebar-nav-title {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-muted);
  margin-bottom: 16px;
  padding-left: 12px;
}

.sidebar-menu {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.sidebar-menu-link {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-muted);
  padding: 12px 16px;
  border-radius: var(--border-radius-md);
  transition: var(--transition-fast);
  position: relative;
}

.sidebar-menu-link:hover {
  color: var(--text-dark);
  background-color: var(--bg-main);
}

.sidebar-menu-link.active {
  color: var(--sidebar-nav-active-text);
  background-color: var(--sidebar-nav-active-bg);
}

.sidebar-menu-link.active::before {
  content: '';
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 4px;
  height: 16px;
  background-color: var(--primary);
  border-radius: 0 4px 4px 0;
}

.sidebar-menu-icon {
  width: 18px;
  height: 18px;
  display: inline-flex;
}

/* Content Cards (Right Column) */
.legal-content-area {
  display: flex;
  flex-direction: column;
  gap: 56px;
}

.legal-section-block {
  scroll-margin-top: 120px; /* Offset for desktop headers */
}

@media (max-width: 991px) {
  .legal-section-block {
    scroll-margin-top: 150px; /* Offset for mobile + sticky sub-header */
  }
}

/* Card Layout */
.legal-card-header {
  margin-bottom: 24px;
  display: flex;
  align-items: center;
  gap: 16px;
}

.legal-card-icon-box {
  width: 48px;
  height: 48px;
  border-radius: var(--border-radius-md);
  background-color: var(--bg-badge);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary);
  transition: background-color var(--transition-normal);
}

.legal-card-icon-box svg {
  width: 24px;
  height: 24px;
}

.legal-card-header-text h2 {
  font-size: 1.75rem;
  font-weight: 800;
  color: var(--text-dark);
  letter-spacing: -0.02em;
}

.legal-card-header-text p {
  font-size: 0.9rem;
  color: var(--text-muted);
  font-weight: 500;
}

.legal-card {
  background: var(--glass-bg);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--glass-border);
  border-radius: var(--border-radius-lg);
  padding: 40px;
  box-shadow: var(--card-shadow);
  transition: background-color var(--transition-normal), border-color var(--transition-normal);
}

@media (max-width: 768px) {
  .legal-card {
    padding: 24px 18px;
  }
}

/* Numbered Legal Item Row */
.legal-item {
  display: flex;
  gap: 24px;
  padding: 36px 0;
  border-bottom: 1px solid var(--border-color);
  transition: border-color var(--transition-normal);
}

.legal-item:first-child {
  padding-top: 8px;
}

.legal-item:last-child {
  border-bottom: none;
  padding-bottom: 8px;
}

@media (max-width: 576px) {
  .legal-item {
    flex-direction: column;
    gap: 12px;
    padding: 24px 0;
  }
}

.legal-num {
  font-size: 1.15rem;
  font-weight: 800;
  font-family: inherit;
  color: var(--primary);
  background-color: var(--bg-badge);
  width: 44px;
  height: 44px;
  border-radius: var(--border-radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  box-shadow: var(--shadow-sm);
  transition: background-color var(--transition-normal);
}

.legal-content {
  flex-grow: 1;
}

.legal-content h3 {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 12px;
  letter-spacing: -0.01em;
}

.legal-content p {
  font-size: 0.95rem;
  color: var(--text-muted);
  line-height: 1.7;
  margin-bottom: 16px;
}

.legal-content p:last-child {
  margin-bottom: 0;
}

.legal-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 12px;
}

.legal-list li {
  position: relative;
  padding-left: 24px;
  font-size: 0.925rem;
  color: var(--text-muted);
  line-height: 1.6;
}

.legal-list li::before {
  content: '✦';
  position: absolute;
  left: 0;
  top: 0;
  color: var(--primary);
  font-size: 0.85rem;
}

.legal-list li strong {
  color: var(--text-dark);
  font-weight: 600;
}

.legal-content a {
  color: var(--primary);
  font-weight: 600;
  border-bottom: 2px solid rgba(37, 99, 235, 0.15);
  padding-bottom: 1px;
}

.legal-content a:hover {
  color: var(--primary-light);
  border-bottom-color: var(--primary-light);
}

/* --- CONTACT / CONNECT CARD --- */
.connect-card {
  background: linear-gradient(135deg, rgba(37, 99, 235, 0.05) 0%, rgba(59, 130, 246, 0.05) 100%);
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius-lg);
  padding: 40px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  box-shadow: var(--shadow-sm);
  transition: background-color var(--transition-normal), border-color var(--transition-normal);
}

@media (max-width: 576px) {
  .connect-card {
    padding: 32px 20px;
  }
}

.connect-icon-wrapper {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: var(--primary-gradient);
  color: #FFFFFF;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 20px rgba(37, 99, 235, 0.25);
}

.connect-icon-wrapper svg {
  width: 26px;
  height: 26px;
}

.connect-card h2 {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--text-dark);
  letter-spacing: -0.02em;
}

.connect-card p {
  font-size: 0.95rem;
  color: var(--text-muted);
  max-width: 500px;
  line-height: 1.6;
}

.btn-connect {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--primary-gradient);
  color: #FFFFFF;
  font-weight: 600;
  font-size: 0.95rem;
  padding: 14px 28px;
  border-radius: var(--border-radius-pill);
  box-shadow: 0 8px 20px rgba(37, 99, 235, 0.2);
  transition: transform var(--transition-fast), box-shadow var(--transition-fast);
}

.btn-connect:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 25px rgba(37, 99, 235, 0.3);
  background: var(--primary-gradient-hover);
}

/* ==========================================================================
   FEATURED READABILITY OVERRIDES & HIRING PARTNERS SECTION
   ========================================================================== */

/* --- Readability Fixes for Featured Cards --- */
.featured-agency-card {
  color: #ffffff !important;
}

.featured-agency-card .agency-title {
  color: #ffffff !important;
}

.featured-agency-card .agency-description {
  color: rgba(255, 255, 255, 0.85) !important;
}

.featured-agency-card .ready-text {
  color: #34d399 !important;
}

.featured-agency-card .featured-badge {
  color: #a78bfa !important;
  background: rgba(139, 92, 246, 0.16) !important;
  border-color: rgba(139, 92, 246, 0.22) !important;
}

/* --- Dynamic Hiring Partners Section (Grid Cards) --- */




/* Glassmorphism Logo Box */





/* Individual Brand Color Overrides on Hover (Grayscale to Color) */

/* Recommended Cards - Hiring Partners Dark Glass variations */
.agency-card.recommended 

.agency-card.recommended 

.agency-card.recommended 

.agency-card.recommended 
.agency-card.recommended 
.agency-card.recommended 
.agency-card.recommended 
.agency-card.recommended 
.agency-card.recommended 
.agency-card.recommended 
.agency-card.recommended 
.agency-card.recommended 
.agency-card.recommended 


/* Profile Pages - Hiring Partners Layout */


/* Glassmorphism Mini-Cards for Logos */



/* Profile hover brand colors */

/* Recommended Profile - Hiring Partners dark theme variations */
.profile-card.recommended 

.profile-card.recommended 

.profile-card.recommended 
.profile-card.recommended 
.profile-card.recommended 
.profile-card.recommended 
.profile-card.recommended 
.profile-card.recommended 
.profile-card.recommended 
.profile-card.recommended 
.profile-card.recommended 
.profile-card.recommended 


/* ==========================================================================
   AGENCY REVIEWS SIDEBAR SECTION
   ========================================================================== */
.reviews-box {
  background-color: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius-md);
  padding: 24px;
  box-shadow: var(--shadow-sm);
  position: relative;
  overflow: hidden;
  transition: all 0.3s ease;
}

/* Recommended Review Card styling: Deep Navy Blue and growth accents */
.reviews-box.recommended {
  background: radial-gradient(120% 120% at 50% 0%, #0F172A 0%, #020617 100%);
  border: 1px solid rgba(37, 99, 235, 0.25);
  box-shadow: 
    0 12px 24px rgba(0, 0, 0, 0.25),
    0 0 16px rgba(37, 99, 235, 0.08);
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.reviews-box.recommended:hover {
  border-color: rgba(20, 184, 166, 0.45);
  box-shadow: 
    0 20px 40px rgba(0, 0, 0, 0.35),
    0 0 24px rgba(37, 99, 235, 0.2),
    0 0 0 1px rgba(20, 184, 166, 0.2) inset;
  transform: translateY(-4px);
}

/* Glowing Neon Top Accent Bar for recommended reviews box */
.reviews-box.recommended::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, #2563EB, #14B8A6);
  z-index: 2;
}

.reviews-header {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 20px;
}

.rating-header-row {
  display: flex;
  align-items: center;
  gap: 14px;
}

.rating-summary {
  display: flex;
  align-items: baseline;
}

.rating-score {
  font-size: 2.2rem;
  font-weight: 850;
  color: var(--text-dark);
  line-height: 1;
}

.reviews-box.recommended .rating-score {
  color: #FFFFFF;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.rating-max {
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--text-muted);
  margin-left: 2px;
}

.reviews-box.recommended .rating-max {
  color: rgba(255, 255, 255, 0.4);
}

.rating-stars-container {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.rating-stars {
  display: flex;
  gap: 3px;
}

.star-icon {
  width: 16px;
  height: 16px;
  fill: var(--border-color);
  transition: transform 0.2s ease;
}

.star-icon.filled {
  fill: #FBBF24;
  filter: drop-shadow(0 0 3px rgba(251, 191, 36, 0.5));
}

.reviews-count {
  font-size: 0.78rem;
  font-weight: 500;
  color: var(--text-muted);
}

.reviews-box.recommended .reviews-count {
  color: #B4C6FC;
}

/* Verified Trusted Recruiter Badge */
.verified-recruiter-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: rgba(16, 185, 129, 0.1);
  color: #10B981;
  padding: 4px 10px;
  border-radius: var(--border-radius-pill);
  font-size: 0.72rem;
  font-weight: 700;
  border: 1px solid rgba(16, 185, 129, 0.2);
  align-self: flex-start;
  transition: all 0.2s ease;
}

.reviews-box.recommended .verified-recruiter-badge {
  background: rgba(16, 185, 129, 0.15);
  border-color: rgba(16, 185, 129, 0.3);
  box-shadow: 0 0 10px rgba(16, 185, 129, 0.1);
}

.verified-check-icon {
  width: 10px;
  height: 10px;
}

/* Testimonials list */
.testimonials-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  border-top: 1px solid var(--border-color);
  padding-top: 16px;
}

.reviews-box.recommended .testimonials-list {
  border-top-color: rgba(255, 255, 255, 0.08);
}

.testimonial-card {
  background: rgba(0, 0, 0, 0.02);
  border: 1px solid var(--border-color);
  padding: 12px 14px;
  border-radius: var(--border-radius-md);
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Dark mode overrides for standard testimonial background */
@media (prefers-color-scheme: dark) {
  .testimonial-card {
    background: rgba(255, 255, 255, 0.02);
    border-color: rgba(255, 255, 255, 0.04);
  }
}

.reviews-box.recommended .testimonial-card {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.testimonial-card:hover {
  transform: translateY(-2px);
  background: rgba(0, 0, 0, 0.04);
  box-shadow: var(--shadow-sm);
  border-color: rgba(37, 99, 235, 0.15);
}

@media (prefers-color-scheme: dark) {
  .testimonial-card:hover {
    background: rgba(255, 255, 255, 0.04);
    border-color: rgba(255, 255, 255, 0.08);
  }
}

.reviews-box.recommended .testimonial-card:hover {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(167, 139, 250, 0.35);
  box-shadow: 
    0 8px 16px rgba(0, 0, 0, 0.4),
    0 0 12px rgba(167, 139, 250, 0.15);
}

.testimonial-text {
  font-size: 0.82rem;
  font-style: italic;
  font-weight: 500;
  line-height: 1.45;
  color: var(--text-dark);
  margin-bottom: 8px;
}

.reviews-box.recommended .testimonial-text {
  color: #FFFFFF;
}

.testimonial-author {
  display: flex;
  align-items: center;
  gap: 8px;
}

.author-avatar {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--primary-gradient);
  color: #FFFFFF;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.65rem;
  font-weight: 800;
  flex-shrink: 0;
}

.reviews-box.recommended .author-avatar {
  background: linear-gradient(135deg, #2563EB 0%, #14B8A6 100%);
  box-shadow: 0 2px 6px rgba(37, 99, 235, 0.3);
}

.author-info {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}

.author-name {
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--text-dark);
}

.reviews-box.recommended .author-name {
  color: #FFFFFF;
}

.author-title {
  font-size: 0.68rem;
  color: var(--text-muted);
}

.reviews-box.recommended .author-title {
  color: #B4C6FC;
}


/* Reviews wrapper transition and scrolling height control */
.reviews-wrapper {
  position: relative;
  transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
  overflow: hidden;
}

.reviews-wrapper.collapsed {
  max-height: 275px;
}

.reviews-wrapper.expanded {
  max-height: 420px;
  overflow-y: auto;
  padding-right: 6px;
}

/* Custom Scrollbar for expanded list */
.reviews-wrapper.expanded::-webkit-scrollbar {
  width: 5px;
}
.reviews-wrapper.expanded::-webkit-scrollbar-track {
  background: rgba(255, 255, 255, 0.01);
  border-radius: var(--border-radius-pill);
}
.reviews-wrapper.expanded::-webkit-scrollbar-thumb {
  background: var(--border-color);
  border-radius: var(--border-radius-pill);
}
.reviews-box.recommended .reviews-wrapper.expanded::-webkit-scrollbar-thumb {
  background: rgba(167, 139, 250, 0.3);
}
.reviews-box.recommended .reviews-wrapper.expanded::-webkit-scrollbar-thumb:hover {
  background: rgba(167, 139, 250, 0.5);
}

/* Fade overlay for collapsed state */
.reviews-fade-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 60px;
  background: linear-gradient(to top, var(--bg-card) 0%, rgba(255, 255, 255, 0) 100%);
  pointer-events: none;
  transition: opacity 0.3s ease;
  z-index: 5;
}

/* Dark mode override for collapsed fade background */
@media (prefers-color-scheme: dark) {
  .reviews-fade-overlay {
    background: linear-gradient(to top, var(--bg-card) 0%, rgba(15, 23, 42, 0) 100%);
  }
}

/* Recommended reviews box overlay matches dark slate background */
.reviews-box.recommended .reviews-fade-overlay {
  background: linear-gradient(to top, #020617 0%, rgba(2, 6, 23, 0) 100%);
}

.reviews-wrapper.expanded .reviews-fade-overlay {
  opacity: 0;
}

/* Button Styling */
.btn-toggle-reviews {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  padding: 10px;
  margin-top: 14px;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius-md);
  color: var(--text-dark);
  font-size: 0.85rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.25s ease;
}

.btn-toggle-reviews:hover {
  background: rgba(255, 255, 255, 0.05);
  border-color: var(--primary);
  color: var(--primary);
}

.reviews-box.recommended .btn-toggle-reviews {
  background: rgba(255, 255, 255, 0.04);
  border-color: rgba(255, 255, 255, 0.08);
  color: #FFFFFF;
}

.reviews-box.recommended .btn-toggle-reviews:hover {
  background: rgba(167, 139, 250, 0.1);
  border-color: rgba(167, 139, 250, 0.4);
  color: #FFE082;
}

.toggle-chevron {
  width: 14px;
  height: 14px;
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.btn-toggle-reviews.active .toggle-chevron {
  transform: rotate(180deg);
}

/* Testimonial Individual Rating Row */
.testimonial-top-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
}

.testimonial-stars {
  display: flex;
  gap: 2px;
}

.testimonial-stars .star-icon {
  width: 12px;
  height: 12px;
}

.verified-reviewer {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  color: var(--accent-green);
  font-size: 0.68rem;
  font-weight: 700;
}

.reviews-box.recommended .verified-reviewer {
  color: #10B981;
}

.verified-badge-icon {
  width: 10px;
  height: 10px;
  fill: currentColor;
}


/* ==========================================================================
   AGENCY REVIEWS POPUP MODAL
   ========================================================================== */
.reviews-modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(10, 8, 21, 0.4);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  padding: 20px;
}

.reviews-modal-overlay.open {
  opacity: 1;
  pointer-events: auto;
}

.reviews-modal-content {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius-lg);
  width: 100%;
  max-width: 580px;
  max-height: 85vh;
  display: flex;
  flex-direction: column;
  position: relative;
  box-shadow: 
    0 24px 60px rgba(0, 0, 0, 0.25),
    0 0 32px rgba(37, 99, 235, 0.05);
  transform: scale(0.92);
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  overflow: hidden;
}

.reviews-modal-overlay.open .reviews-modal-content {
  transform: scale(1);
}

/* Recommended/Featured modal stylings */
.reviews-modal-overlay.recommended .reviews-modal-content {
  background: radial-gradient(120% 120% at 50% 0%, #0F172A 0%, #020617 100%);
  border: 1px solid rgba(20, 184, 166, 0.3);
  box-shadow: 
    0 30px 70px rgba(0, 0, 0, 0.6),
    0 0 40px rgba(37, 99, 235, 0.15);
}

.reviews-modal-overlay.recommended .reviews-modal-content::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 5px;
  background: linear-gradient(90deg, #2563EB, #14B8A6);
  z-index: 10;
}

.reviews-modal-close {
  position: absolute;
  top: 20px;
  right: 20px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-color);
  color: var(--text-dark);
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s ease;
  z-index: 100;
}

.reviews-modal-overlay.recommended .reviews-modal-close {
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(255, 255, 255, 0.1);
  color: #FFFFFF;
}

.reviews-modal-close:hover {
  background-color: var(--border-color);
  transform: rotate(90deg);
}

.reviews-modal-overlay.recommended .reviews-modal-close:hover {
  background-color: rgba(255, 255, 255, 0.15);
  border-color: rgba(20, 184, 166, 0.4);
}

.reviews-modal-close svg {
  width: 16px;
  height: 16px;
}

.reviews-modal-header {
  padding: 30px;
  border-bottom: 1px solid var(--border-color);
  display: flex;
  flex-direction: column;
  gap: 20px;
  flex-shrink: 0;
}

.reviews-modal-overlay.recommended .reviews-modal-header {
  border-bottom: 1px solid rgba(255, 255, 255, 0.15);
}

.reviews-modal-brand {
  display: flex;
  align-items: center;
  gap: 16px;
}

.modal-avatar {
  width: 52px;
  height: 52px;
  border-radius: 12px;
  background: var(--primary-gradient);
  color: #FFFFFF;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 1.25rem;
}

.reviews-modal-overlay.recommended .modal-avatar {
  background: linear-gradient(135deg, #2563EB 0%, #14B8A6 100%);
  box-shadow: 0 4px 14px rgba(37, 99, 235, 0.4);
}

.modal-brand-info h2 {
  font-size: 1.3rem;
  font-weight: 800;
  color: var(--text-dark);
  margin-bottom: 4px;
}

.reviews-modal-overlay.recommended .modal-brand-info h2 {
  color: #FFFFFF;
}

.modal-verified-row {
  display: flex;
  align-items: center;
  gap: 8px;
}

.modal-badge-cat {
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--primary);
  background: rgba(37, 99, 235, 0.08);
  padding: 3px 8px;
  border-radius: 4px;
}

.reviews-modal-overlay.recommended .modal-badge-cat {
  color: #2DD4BF;
  background: rgba(20, 184, 166, 0.15);
}

.reviews-modal-score-box {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(0, 0, 0, 0.02);
  border: 1px solid var(--border-color);
  padding: 16px 20px;
  border-radius: var(--border-radius-md);
}

@media (prefers-color-scheme: dark) {
  .reviews-modal-score-box {
    background: rgba(255, 255, 255, 0.01);
    border-color: rgba(255, 255, 255, 0.03);
  }
}

.reviews-modal-overlay.recommended .reviews-modal-score-box {
  background: rgba(255, 255, 255, 0.02);
  border-color: rgba(255, 255, 255, 0.06);
}

.modal-score-summary {
  display: flex;
  align-items: center;
  gap: 10px;
}

.modal-score {
  font-size: 1.8rem;
  font-weight: 850;
  color: var(--text-dark);
}

.reviews-modal-overlay.recommended .modal-score {
  color: #FFFFFF;
}

.modal-stars {
  display: flex;
  gap: 2px;
}

.modal-stars .star-icon {
  width: 18px;
  height: 18px;
}

.modal-reviews-count {
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--text-muted);
}

.reviews-modal-overlay.recommended .modal-reviews-count {
  color: #B4C6FC;
}

.reviews-modal-body {
  padding: 30px;
  overflow-y: auto;
  flex-grow: 1;
}

.reviews-modal-body::-webkit-scrollbar {
  width: 6px;
}

.reviews-modal-body::-webkit-scrollbar-track {
  background: transparent;
}

.reviews-modal-body::-webkit-scrollbar-thumb {
  background: var(--border-color);
  border-radius: var(--border-radius-pill);
}

.reviews-modal-overlay.recommended .reviews-modal-body::-webkit-scrollbar-thumb {
  background: rgba(167, 139, 250, 0.3);
}

.reviews-modal-overlay.recommended .reviews-modal-body::-webkit-scrollbar-thumb:hover {
  background: rgba(167, 139, 250, 0.5);
}

/* Sidebar rating card CTA see reviews button */
.btn-see-reviews {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  padding: 12px 20px;
  margin-top: 16px;
  background: var(--primary-gradient);
  color: var(--text-light);
  border: none;
  border-radius: var(--border-radius-md);
  font-weight: 700;
  font-size: 0.9rem;
  cursor: pointer;
  box-shadow: var(--shadow-sm);
  transition: all 0.25s ease;
}

.btn-see-reviews:hover {
  background: var(--primary-gradient-hover);
  box-shadow: var(--shadow-glow);
  transform: translateY(-1px);
}

.btn-see-reviews svg {
  width: 16px;
  height: 16px;
  stroke: currentColor;
  transition: transform 0.25s ease;
}

.btn-see-reviews:hover svg {
  transform: translateX(4px);
}

.reviews-box.recommended .btn-see-reviews {
  background: linear-gradient(135deg, #2563EB 0%, #14B8A6 100%);
  box-shadow: 0 8px 20px rgba(37, 99, 235, 0.35);
}

.reviews-box.recommended .btn-see-reviews:hover {
  background: linear-gradient(135deg, #3B82F6 0%, #0F766E 100%);
  box-shadow: 0 12px 24px rgba(37, 99, 235, 0.55);
}

/* Badge rating styling on grid cards */
.badge-rating {
  cursor: pointer;
  background: rgba(251, 191, 36, 0.08);
  color: #D97706;
  border: 1px solid rgba(251, 191, 36, 0.2);
  display: flex;
  align-items: center;
  gap: 4px;
}

@media (prefers-color-scheme: dark) {
  .badge-rating {
    background: rgba(251, 191, 36, 0.1);
    color: #FBBF24;
    border-color: rgba(251, 191, 36, 0.25);
  }
}

.badge-rating svg {
  fill: currentColor;
}

.badge-rating:hover {
  background: rgba(251, 191, 36, 0.15);
  border-color: rgba(251, 191, 36, 0.45);
  box-shadow: 0 0 8px rgba(251, 191, 36, 0.2);
}

.agency-card.recommended .badge-rating {
  background: rgba(251, 191, 36, 0.12);
  color: #FBBF24;
  border-color: rgba(251, 191, 36, 0.35);
}

.agency-card.recommended .badge-rating:hover {
  background: rgba(251, 191, 36, 0.2);
  border-color: rgba(251, 191, 36, 0.6);
  box-shadow: 0 0 12px rgba(251, 191, 36, 0.35);
}

@media (max-width: 576px) {
  .reviews-modal-content {
    max-height: 90vh;
  }
  .reviews-modal-header {
    padding: 20px;
    gap: 15px;
  }
  .reviews-modal-body {
    padding: 20px;
  }
  .reviews-modal-score-box {
    padding: 12px 16px;
  }
  .modal-score {
    font-size: 1.5rem;
  }
}

/* Adjust secondary-actions to repeat columns automatically */
.secondary-actions {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(65px, 1fr));
  gap: 8px;
}
.btn-card-sec {
  padding: 10px 8px;
}


/* Cohesive Dark Glass Sidebar Contact Box for Recommended Profiles */
.profile-card.recommended .contact-box {
  background: rgba(255, 255, 255, 0.03);
  border-color: rgba(255, 255, 255, 0.08);
  box-shadow: 
    0 12px 24px rgba(0, 0, 0, 0.35),
    0 0 16px rgba(167, 139, 250, 0.05);
}

.profile-card.recommended .contact-box h3 {
  color: #FFFFFF;
}

.profile-card.recommended .contact-box .btn-sidebar-link {
  color: #B4C6FC;
  border-color: rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.02);
}

.profile-card.recommended .contact-box .btn-sidebar-link:hover {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(167, 139, 250, 0.35);
  color: #FFFFFF;
}

/* Cohesive Dark Glass Testimonial Cards for Recommended reviews modals */
.reviews-modal-overlay.recommended .testimonial-card {
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(255, 255, 255, 0.08);
}

.reviews-modal-overlay.recommended .testimonial-card:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(167, 139, 250, 0.45);
  box-shadow: 
    0 8px 16px rgba(0, 0, 0, 0.4),
    0 0 12px rgba(167, 139, 250, 0.15);
}

.reviews-modal-overlay.recommended .testimonial-text {
  color: #FFFFFF !important;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

.reviews-modal-overlay.recommended .author-name {
  color: #FFFFFF !important;
}

.reviews-modal-overlay.recommended .author-title {
  color: #E2E8F0 !important;
}

.reviews-modal-overlay.recommended .verified-reviewer {
  color: #10B981;
}

.reviews-modal-overlay.recommended .author-avatar {
  background: linear-gradient(135deg, #2563EB 0%, #14B8A6 100%);
  box-shadow: 0 2px 6px rgba(37, 99, 235, 0.3);
}

/* ==========================================================================
   COUNTRY-TO-CITY SELECTOR SECTION
   ========================================================================== */
.country-selector-group {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 20px;
  border-bottom: 1px solid var(--border-color);
  padding-bottom: 16px;
}

@media (prefers-color-scheme: dark) {
  .country-selector-group {
    border-bottom-color: rgba(255, 255, 255, 0.08);
  }
}

.btn-country {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 28px;
  padding: 0 12px;
  border-radius: var(--border-radius-btn);
  font-weight: 700;
  font-size: 0.8rem;
  border: 1px solid var(--border-color);
  background-color: var(--bg-card);
  color: var(--text-muted);
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  cursor: pointer;
  box-sizing: border-box;
}

@media (prefers-color-scheme: dark) {
  .btn-country {
    background-color: rgba(255, 255, 255, 0.02);
    border-color: rgba(255, 255, 255, 0.05);
  }
}

.btn-country:hover {
  border-color: var(--primary);
  color: var(--primary);
  transform: translateY(-1.5px);
}

.btn-country.active {
  background: var(--primary-gradient);
  border-color: transparent;
  color: var(--text-light);
  box-shadow: var(--shadow-glow);
  transform: none;
}

/* Dynamic city list container */
.city-buttons-wrapper {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  height: 96px; /* Adjusted to fit 28px buttons neatly */
  overflow-y: auto;
  padding-right: 8px;
  transition: opacity 0.2s ease, transform 0.2s ease;
  align-content: flex-start;
}

.city-buttons-wrapper.fade-out {
  opacity: 0;
  transform: translateY(4px);
}

/* Consistent Rounded Rectangle Pill styling for City Cards */
.city-buttons-wrapper .btn-filter {
  display: flex;
  justify-content: center;
  align-items: center;
  height: 28px;
  padding: 0 12px; /* Better horizontal padding to prevent text clipping */
  border-radius: var(--border-radius-btn); /* Reduced border radius for rounded rectangle style */
  font-size: 0.7rem; /* Reduced font size a little to fit text cleanly */
  font-weight: 600;
  text-align: center;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  box-sizing: border-box;
  border: 1px solid var(--border-color);
  background-color: var(--bg-card);
  color: var(--text-muted);
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  cursor: pointer;
  flex: 0 0 auto; /* Allow buttons to expand to content size */
  min-width: 70px; /* Keeps short names visually consistent */
  max-width: 100%; /* Prevents overflow */
}

@media (prefers-color-scheme: dark) {
  .city-buttons-wrapper .btn-filter {
    background-color: rgba(255, 255, 255, 0.02);
    border-color: rgba(255, 255, 255, 0.05);
  }
}

.city-buttons-wrapper .btn-filter:hover {
  border-color: var(--primary);
  color: var(--primary);
  transform: translateY(-1.5px);
  box-shadow: 0 4px 10px rgba(37, 99, 235, 0.08);
}

.city-buttons-wrapper .btn-filter.active {
  background: var(--primary-gradient);
  border-color: transparent;
  color: var(--text-light);
  box-shadow: var(--shadow-glow);
  transform: none; /* Keep identical shape and prevent scaling */
}

.city-buttons-wrapper .btn-filter.active:hover {
  transform: translateY(-1.5px);
}

/* Custom scrollbar matching agency reviews */
.city-buttons-wrapper::-webkit-scrollbar {
  width: 6px;
}
.city-buttons-wrapper::-webkit-scrollbar-track {
  background: rgba(0, 0, 0, 0.02);
  border-radius: var(--border-radius-pill);
}
@media (prefers-color-scheme: dark) {
  .city-buttons-wrapper::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.01);
  }
}
.city-buttons-wrapper::-webkit-scrollbar-thumb {
  background: var(--border-color);
  border-radius: var(--border-radius-pill);
}
@media (prefers-color-scheme: dark) {
  .city-buttons-wrapper::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.1);
  }
}
.city-buttons-wrapper::-webkit-scrollbar-thumb:hover {
  background: var(--primary);
}

@media (max-width: 576px) {
  .city-buttons-wrapper {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
    padding-right: 4px;
    height: 82px;
    align-content: flex-start;
  }
  .city-buttons-wrapper .btn-filter {
    height: 24px;
    font-size: 0.62rem;
    padding: 0 10px;
    border-radius: var(--border-radius-btn);
    min-width: 55px;
  }
  .country-selector-group {
    gap: 8px;
    margin-bottom: 16px;
    padding-bottom: 12px;
  }
  .btn-country {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 24px;
    padding: 0 10px;
    font-size: 0.72rem;
  }
}


/* ==========================================================================
   HORIZONTAL SCROLLABLE CHIP NAVIGATION
   ========================================================================== */

/* --- Filter Height Reduction & Spacing Optimization --- */
.filters-wrapper {
  padding: 20px 24px !important;
}

.filter-row {
  margin-bottom: 20px !important;
}

.filter-row:last-child {
  margin-bottom: 0 !important;
}

.filter-row-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 10px;
}

.filter-label {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-muted);
  margin: 0;
}

.country-selector-group {
  display: flex;
  gap: 6px;
  margin-bottom: 0 !important;
  border-bottom: none !important;
  padding-bottom: 0 !important;
}

.btn-country {
  height: 28px !important;
  font-size: 0.75rem !important;
  padding: 0 12px !important;
  border-radius: var(--border-radius-pill) !important;
}

/* --- Horizontal Scrollable Chips Row Component --- */
.scroll-chips-row-wrapper {
  position: relative;
  width: 100%;
  display: flex;
  align-items: center;
  margin: 0 -24px; /* bleed container margins so fades touch edge of wrapper padding */
  padding: 0 24px;
}

.scroll-chips-viewport {
  overflow-x: auto;
  overflow-y: hidden;
  width: 100%;
  scrollbar-width: none; /* Firefox */
  -ms-overflow-style: none; /* IE 10+ */
  cursor: grab;
  scroll-behavior: smooth;
  padding: 4px 0;
}

.scroll-chips-viewport::-webkit-scrollbar {
  display: none; /* Chrome, Safari, Opera */
}

.scroll-chips-viewport.dragging {
  cursor: grabbing;
  scroll-behavior: auto;
}

.scroll-chips-viewport.dragging a,
.scroll-chips-viewport.dragging button {
  pointer-events: none; /* Prevent accidental clicking while dragging */
}

.scroll-chips-container {
  display: flex !important;
  flex-wrap: nowrap !important;
  align-items: center;
  gap: 8px !important;
  width: max-content;
  padding: 2px 24px !important; /* matches wrapper bleed padding */
}

/* Overriding default wrappers to act as content-size scrollers */
.city-buttons-wrapper.scroll-chips-container {
  height: auto !important;
  overflow: visible !important;
  padding-right: 24px !important;
}

.filter-buttons-group.scroll-chips-container {
  overflow: visible !important;
}

/* --- Premium Pill Chips Styling --- */
.scroll-chips-container .btn-filter {
  height: 32px !important; /* slightly taller for premium touch */
  padding: 0 16px !important;
  border-radius: var(--border-radius-pill) !important; /* Force pill shape */
  font-size: 0.78rem !important;
  font-weight: 500 !important;
  white-space: nowrap !important;
  flex: 0 0 auto !important;
  box-shadow: var(--shadow-sm);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border: 1px solid var(--border-color);
  background-color: var(--bg-card);
  color: var(--text-dark);
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.scroll-chips-container .btn-filter svg {
  width: 14px;
  height: 14px;
  opacity: 0.7;
  transition: opacity 0.2s ease;
  fill: currentColor;
}

.scroll-chips-container .btn-filter:hover {
  transform: translateY(-1px) scale(1.02);
  border-color: var(--primary-light);
  color: var(--primary);
  box-shadow: var(--shadow-md);
}

.scroll-chips-container .btn-filter:hover svg {
  opacity: 1;
}

.scroll-chips-container .btn-filter.active {
  background: var(--primary-gradient) !important;
  border-color: transparent !important;
  color: var(--text-light) !important;
  box-shadow: var(--shadow-glow) !important;
  font-weight: 600 !important;
}

.scroll-chips-container .btn-filter.active svg {
  opacity: 1;
}

/* --- Left & Right Fade Indicators --- */
.scroll-fade-mask {
  position: absolute;
  top: 0;
  bottom: 0;
  width: 48px;
  z-index: 5;
  pointer-events: none;
  transition: opacity 0.3s ease;
  opacity: 1;
}

.scroll-fade-mask.left-mask {
  left: 0;
  background: linear-gradient(to right, var(--bg-card) 20%, transparent 100%);
}

.scroll-fade-mask.right-mask {
  right: 0;
  background: linear-gradient(to left, var(--bg-card) 20%, transparent 100%);
}

.scroll-fade-mask.hidden {
  opacity: 0;
  pointer-events: none;
}

/* --- Circular Nav Arrow Buttons --- */
.scroll-arrow-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background-color: var(--bg-card);
  border: 1px solid var(--border-color);
  color: var(--text-dark);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 10;
  box-shadow: var(--shadow-md);
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  opacity: 1;
}

.scroll-arrow-btn.prev-btn {
  left: 12px;
}

.scroll-arrow-btn.next-btn {
  right: 12px;
}

.scroll-arrow-btn:hover {
  background-color: var(--bg-badge);
  border-color: var(--primary-light);
  color: var(--primary);
  transform: translateY(-50%) scale(1.1);
  box-shadow: var(--shadow-lg);
}

.scroll-arrow-btn.hidden {
  opacity: 0;
  pointer-events: none;
  visibility: hidden;
}

.scroll-arrow-btn svg {
  width: 16px;
  height: 16px;
}

/* --- Responsive Adjustments --- */
@media (max-width: 991px) {
  .scroll-chips-row-wrapper {
    margin: 0 -16px;
    padding: 0 16px;
  }
  .scroll-chips-container {
    padding: 2px 16px !important;
  }
}

@media (max-width: 768px) {
  .filter-row-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }
  .scroll-arrow-btn {
    display: none !important; /* Hide arrows on mobile/tablet, rely on direct swipe scroll */
  }
  .scroll-fade-mask {
    width: 32px; /* Smaller fades on small devices */
  }
  .scroll-chips-container .btn-filter {
    height: 28px !important;
    padding: 0 12px !important;
    font-size: 0.72rem !important;
  }
}











/* ==========================================================================
   AGENCY SPOTLIGHT — premium locked card
   Inherits .agency-card for all shell styles. Only overrides listed here.
   ========================================================================== */

/* Disable hover lift — card is not clickable */
.premium-spot-card {
  cursor: default;
}
.premium-spot-card:hover {
  transform: none;
  box-shadow: var(--shadow-md);
  border-color: rgba(0, 0, 0, 0.01);
}
.premium-spot-card:hover .agency-avatar {
  transform: none;
  box-shadow: inset 0 2px 4px rgba(255, 255, 255, 0.95),
              inset 0 -2px 4px rgba(37, 99, 235, 0.06),
              var(--shadow-sm);
  border-color: rgba(37, 99, 235, 0.15);
}

/* Avatar: show lock icon instead of initials */
.premium-spot-avatar-lock {
  font-size: 0;
}
.premium-spot-avatar-lock svg {
  width: 26px;
  height: 26px;
  stroke: var(--primary);
}

/* ── BLURRED DESCRIPTION BODY ─────────────────────────────────────────── */
.premium-spot-body {
  position: relative;
  min-height: 72px;
  margin-bottom: 16px;
  flex-grow: 1;
}

.premium-spot-blur-layer {
  filter: blur(6px);
  user-select: none;
  pointer-events: none;
  opacity: 0.5;
}

.premium-spot-bar {
  height: 13px;
  border-radius: 6px;
  background: var(--border-color);
  margin-bottom: 10px;
}

.premium-spot-bar-sm {
  height: 13px;
  border-radius: 6px;
  background: var(--border-color);
  opacity: 0.6;
  margin-bottom: 10px;
}

/* Lock circle + label centred over the blur */
.premium-spot-lock-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  z-index: 2;
}

.premium-spot-lock-circle {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: rgba(59, 130, 246, 0.06);
  border: 1px solid rgba(59, 130, 246, 0.18);
  display: flex;
  align-items: center;
  justify-content: center;
}

.premium-spot-lock-circle svg {
  width: 18px;
  height: 18px;
  stroke: var(--primary);
}

.premium-spot-lock-label {
  font-size: 0.7rem;
  font-weight: 700;
  color: var(--primary);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

/* ── BLURRED ACTIONS ──────────────────────────────────────────────────── */
.premium-spot-actions-blur {
  filter: blur(4px);
  user-select: none;
  pointer-events: none;
  opacity: 0.5;
}

.premium-spot-fake-btn {
  cursor: default !important;
  pointer-events: none;
}

/* ── MOBILE ──────────────────────────────────────────────────────────── */
@media (max-width: 640px) {
  .premium-spot-lock-circle {
    width: 36px;
    height: 36px;
  }
  .premium-spot-lock-circle svg {
    width: 16px;
    height: 16px;
  }
}
