/**
 * SMB HR Reviews - Premium CSS Design System
 * Inspired by Wirecutter and NerdWallet
 * Modern, trustworthy, conversion-focused
 */

/* ============================================
   GOOGLE FONTS - Inter (Clean & Professional)
   ============================================ */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&display=swap');

/* ============================================
   COLOR PALETTE
   ============================================ */
:root {
  /* Primary Colors - Deep Slate (Authority) */
  --primary: #0f172a;
  --primary-dark: #020617;
  --primary-light: #1e293b;
  --primary-lightest: #f8fafc;
  
  /* Secondary - Teal (Trust/HR Industry) */
  --secondary: #0d9488;
  --secondary-dark: #0f766e;
  --accent: #f59e0b;
  --accent-dark: #d97706;
  
  /* Brand Blue - For CTAs */
  --brand-blue: #2563eb;
  --brand-blue-dark: #1d4ed8;
  
  /* Neutrals - Softer than pure black */
  --text-primary: #1a1a1a;
  --text-secondary: #2d3748;
  --dark: #1f2937;
  --dark-gray: #374151;
  --gray: #6b7280;
  --light-gray: #9ca3af;
  --border-gray: #e5e7eb;
  --bg-gray: #f9fafb;
  --white: #ffffff;
  
  /* Semantic Colors */
  --success: #10b981;
  --warning: #f59e0b;
  --error: #ef4444;
  --info: #3b82f6;
  
  /* Badge Colors */
  --badge-best: #10b981;
  --badge-value: #f59e0b;
  --badge-premium: #8b5cf6;
  --badge-editor: #ef4444;
  
  /* Shadows - Softer, more subtle */
  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.03);
  --shadow-md: 0 2px 8px -1px rgba(0, 0, 0, 0.08), 0 2px 4px -1px rgba(0, 0, 0, 0.04);
  --shadow-lg: 0 8px 16px -4px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
  --shadow-xl: 0 16px 32px -8px rgba(0, 0, 0, 0.12), 0 8px 12px -4px rgba(0, 0, 0, 0.06);
  
  /* Border Radius */
  --radius-sm: 0.375rem;
  --radius-md: 0.5rem;
  --radius-lg: 0.75rem;
  --radius-xl: 1rem;
  
  /* Transitions */
  --transition-fast: 150ms cubic-bezier(0.4, 0, 0.2, 1);
  --transition-normal: 250ms cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow: 350ms cubic-bezier(0.4, 0, 0.2, 1);
  
  /* Typography */
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-serif: Georgia, "Times New Roman", Times, serif;
  --font-mono: "SF Mono", Monaco, "Cascadia Code", Consolas, monospace;
}

/* ============================================
   ICON UTILITIES
   ============================================ */
.icon {
  display: inline-block;
  width: 1.25rem;
  height: 1.25rem;
  vertical-align: middle;
  color: currentColor;
  fill: none;
  stroke: currentColor;
}

.icon-sm { width: 1rem; height: 1rem; }
.icon-md { width: 1.5rem; height: 1.5rem; }
.icon-lg { width: 2rem; height: 2rem; }
.icon-xl { width: 2.5rem; height: 2.5rem; }
.icon-2xl { width: 3rem; height: 3rem; }

/* ============================================
   TYPOGRAPHY - Refined & Readable
   ============================================ */
body {
  font-family: var(--font-sans);
  font-size: 17px;
  line-height: 1.7;
  color: var(--text-primary);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  font-weight: 400;
  letter-spacing: -0.01em;
}

h1, h2, h3, h4, h5, h6 {
  font-weight: 700;
  line-height: 1.25;
  margin-bottom: 1rem;
  color: var(--text-primary);
  letter-spacing: -0.02em;
}

h1 { 
  font-size: 2.5rem; 
  font-weight: 800;
  margin-bottom: 1.5rem;
}

h2 { 
  font-size: 2rem; 
  font-weight: 700;
  margin-bottom: 1.25rem;
}

h3 { 
  font-size: 1.5rem; 
  font-weight: 700;
  margin-bottom: 1rem;
}

h4 { 
  font-size: 1.25rem; 
  font-weight: 600;
}

h5 { 
  font-size: 1.125rem; 
  font-weight: 600;
}

h6 { 
  font-size: 1rem; 
  font-weight: 600;
}

p {
  margin-bottom: 1.25rem;
  color: var(--text-secondary);
}

a {
  color: var(--primary);
  text-decoration: none;
  transition: color var(--transition-fast);
  border-bottom: 1px solid transparent;
}

a:hover {
  color: var(--primary-dark);
  border-bottom-color: var(--primary-dark);
}

strong, b {
  font-weight: 600;
  color: var(--text-primary);
}

/* ============================================
   NAVIGATION - Clean & Professional
   ============================================ */
.navbar {
  background: var(--white);
  box-shadow: var(--shadow-sm);
  position: sticky;
  top: 0;
  z-index: 1000;
  border-bottom: 1px solid var(--border-gray);
}

.navbar-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 1.25rem 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.navbar-logo {
  font-size: 1.375rem;
  font-weight: 700;
  color: var(--primary);
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  border-bottom: none;
}

.navbar-logo:hover {
  color: var(--primary-dark);
  border-bottom: none;
}

.navbar-menu {
  display: flex;
  gap: 2.5rem;
  align-items: center;
  list-style: none;
  margin: 0;
  padding: 0;
}

.navbar-menu a {
  color: var(--text-secondary);
  font-weight: 500;
  text-decoration: none;
  transition: color var(--transition-fast);
  position: relative;
  padding: 0.5rem 0;
  border-bottom: none;
  font-size: 0.9375rem;
}

.navbar-menu a:hover {
  color: var(--primary);
  border-bottom: none;
}

.navbar-menu a::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--primary);
  transition: width var(--transition-normal);
}

.navbar-menu a:hover::after {
  width: 100%;
}

/* Mobile Menu Toggle */
.navbar-toggle {
  display: none;
  flex-direction: column;
  gap: 4px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
}

.navbar-toggle span {
  display: block;
  width: 24px;
  height: 3px;
  background: var(--dark);
  border-radius: 2px;
  transition: transform var(--transition-fast);
}

/* Dropdown Menu */
.dropdown {
  position: relative;
}

.dropdown-menu {
  position: absolute;
  top: 100%;
  left: 0;
  background: var(--white);
  box-shadow: var(--shadow-lg);
  border-radius: var(--radius-md);
  padding: 0.5rem 0;
  min-width: 200px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-10px);
  transition: all var(--transition-fast);
  border: 1px solid var(--border-gray);
}

.dropdown:hover .dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.dropdown-menu a {
  display: block;
  padding: 0.875rem 1.25rem;
  color: var(--text-secondary);
  white-space: nowrap;
  font-size: 0.9375rem;
}

.dropdown-menu a::after {
  display: none;
}

.dropdown-menu a:hover {
  background: var(--bg-gray);
  color: var(--primary);
}

/* ============================================
   HERO SECTION - Clean Editorial Style
   ============================================ */
.hero {
  background: var(--white);
  color: var(--primary);
  padding: 6rem 2rem;
  position: relative;
  overflow: hidden;
  border-bottom: 1px solid var(--border-gray);
}

.hero::before {
  display: none;
}

.hero::after {
  display: none;
}

.hero-container {
  max-width: 900px;
  margin: 0 auto;
  text-align: center;
  position: relative;
  z-index: 1;
}

.hero h1 {
  font-size: 3rem;
  margin-bottom: 1.5rem;
  color: var(--primary);
  line-height: 1.15;
  letter-spacing: -0.03em;
}

.hero p {
  font-size: 1.25rem;
  margin-bottom: 2.5rem;
  line-height: 1.6;
  color: var(--text-secondary);
}

.hero-badge {
  display: inline-block;
  background: rgba(13, 148, 136, 0.1);
  color: var(--secondary-dark);
  padding: 0.625rem 1.25rem;
  border-radius: var(--radius-lg);
  font-size: 0.875rem;
  margin-bottom: 1.5rem;
  font-weight: 600;
}

/* ============================================
   TRUST BAR
   ============================================ */
.trust-bar {
  background: var(--white);
  border-bottom: 1px solid var(--border-gray);
  padding: 1.5rem 2rem;
}

.trust-bar-container {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 3rem;
  flex-wrap: wrap;
}

.trust-item {
  display: flex;
  align-items: center;
  gap: 0.625rem;
  color: var(--gray);
  font-size: 0.9375rem;
  font-weight: 500;
}

/* REMOVED ::before to allow SVG icons */

/* ============================================
   SECTIONS - More Breathing Room
   ============================================ */
.section {
  margin: 4.5rem 0;
}

.section:first-child {
  margin-top: 3rem;
}

/* ============================================
   CARDS - Subtle & Premium
   ============================================ */
.card {
  background: var(--white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  padding: 2rem;
  transition: all var(--transition-normal);
  border: 1px solid rgba(0, 0, 0, 0.03);
}

.card:hover {
  box-shadow: var(--shadow-xl);
  transform: translateY(-2px);
  border-color: rgba(37, 99, 235, 0.1);
}

.card-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 1.25rem;
}

.card-title {
  font-size: 1.5rem;
  font-weight: 700;
  margin: 0;
  letter-spacing: -0.02em;
}

.card-score {
  font-size: 2rem;
  font-weight: 700;
  color: var(--primary);
}

.card-body {
  color: var(--text-secondary);
  margin-bottom: 1.5rem;
  line-height: 1.7;
}

.card-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 1.25rem;
  border-top: 1px solid var(--border-gray);
}

/* Featured Card with Border */
.card-featured {
  border-left: 4px solid var(--accent);
  position: relative;
}

.card-featured::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--accent), transparent);
}

/* ============================================
   BADGES - Polished & Readable
   ============================================ */
.badge {
  display: inline-block;
  padding: 0.375rem 0.875rem;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  border-radius: var(--radius-sm);
  white-space: nowrap;
}

.badge-best {
  background: rgba(16, 185, 129, 0.1);
  color: #065f46;
}

.badge-value {
  background: rgba(245, 158, 11, 0.1);
  color: #92400e;
}

.badge-premium {
  background: rgba(139, 92, 246, 0.1);
  color: #5b21b6;
}

.badge-editor {
  background: rgba(239, 68, 68, 0.1);
  color: #991b1b;
}

.badge-new {
  background: rgba(59, 130, 246, 0.1);
  color: #1e40af;
}

/* Tag Badges (smaller, neutral) */
.tag {
  display: inline-block;
  padding: 0.25rem 0.625rem;
  font-size: 0.75rem;
  font-weight: 500;
  background: var(--bg-gray);
  color: var(--dark-gray);
  border-radius: var(--radius-sm);
  white-space: nowrap;
}

.tag-group {
  display: flex;
  flex-wrap: wrap;
  gap: 0.625rem;
  margin-bottom: 1.25rem;
}

/* ============================================
   STAR RATINGS - Premium Look
   ============================================ */
.stars {
  display: inline-flex;
  gap: 0.125rem;
  font-size: 1.125rem;
  color: var(--accent);
  filter: drop-shadow(0 1px 2px rgba(245, 158, 11, 0.2));
}

.stars::before {
  content: '★★★★★';
  letter-spacing: 0.125rem;
  background: linear-gradient(90deg, var(--accent) var(--rating), #d1d5db var(--rating));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* Individual star sizes */
.stars-sm { font-size: 0.875rem; }
.stars-lg { font-size: 1.5rem; }
.stars-xl { font-size: 2rem; }

/* Numeric rating with stars */
.rating {
  display: flex;
  align-items: center;
  gap: 0.625rem;
}

.rating-score {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text-primary);
}

/* ============================================
   BUTTONS - Refined & Polished
   ============================================ */
.btn {
  display: inline-block;
  padding: 0.875rem 1.75rem;
  font-size: 1rem;
  font-weight: 600;

/* ============================================
   STAR DISPLAY - SVG-Based Premium Stars
   ============================================ */
.stars-display {
  display: inline-flex;
  gap: 0.125rem;
}

.star-filled {
  color: #fbbf24;
}

.star-empty {
  color: #d1d5db;
}

  text-align: center;
  text-decoration: none;
  border-radius: var(--radius-md);
  border: none;
  cursor: pointer;
  transition: all var(--transition-normal);
  white-space: nowrap;
  letter-spacing: -0.01em;
}

.btn-primary {
  background: var(--primary);
  color: var(--white);
  box-shadow: 0 1px 3px rgba(37, 99, 235, 0.3);
}

.btn-primary:hover {
  background: var(--primary-dark);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(37, 99, 235, 0.35);
  border-bottom: none;
  color: var(--white);
}

.btn-secondary {
  background: var(--white);
  color: var(--primary);
  border: 2px solid var(--primary);
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}

.btn-secondary:hover {
  background: var(--primary);
  color: var(--white);
  border-bottom: 2px solid var(--primary);
  transform: translateY(-1px);
}

.btn-accent {
  background: linear-gradient(135deg, var(--accent), var(--accent-dark));
  color: var(--white);
  box-shadow: 0 1px 3px rgba(245, 158, 11, 0.3);
}

.btn-accent:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(245, 158, 11, 0.35);
  border-bottom: none;
  color: var(--white);
}

.btn-lg {
  padding: 1.125rem 2.25rem;
  font-size: 1.125rem;
}

.btn-sm {
  padding: 0.625rem 1.25rem;
  font-size: 0.875rem;
}

.btn-block {
  display: block;
  width: 100%;
}

/* ============================================
   PRICING TABLES
   ============================================ */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2.5rem;
  margin: 3rem 0;
}

.pricing-card {
  background: var(--white);
  border: 2px solid var(--border-gray);
  border-radius: var(--radius-lg);
  padding: 2.5rem;
  text-align: center;
  transition: all var(--transition-normal);
}

.pricing-card:hover {
  border-color: var(--primary);
  box-shadow: var(--shadow-xl);
  transform: translateY(-4px);
}

.pricing-card-featured {
  border-color: var(--primary);
  position: relative;
  transform: scale(1.05);
}

.pricing-card-featured::before {
  content: 'MOST POPULAR';
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--primary);
  color: var(--white);
  padding: 0.375rem 1.25rem;
  border-radius: var(--radius-sm);
  font-size: 0.75rem;
  font-weight: 700;
}

.pricing-title {
  font-size: 1.5rem;
  margin-bottom: 1.25rem;
}

.pricing-price {
  font-size: 3rem;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 0.5rem;
  letter-spacing: -0.03em;
}

.pricing-period {
  color: var(--gray);
  font-size: 0.875rem;
  margin-bottom: 2rem;
}

.pricing-features {
  list-style: none;
  padding: 0;
  margin: 2.5rem 0;
  text-align: left;
}

.pricing-features li {
  padding: 1rem 0;
  border-bottom: 1px solid var(--border-gray);
  display: flex;
  align-items: center;
  gap: 0.75rem;
  line-height: 1.6;
}

.pricing-features li::before {
  content: '✓';
  color: var(--secondary);
  font-weight: bold;
  font-size: 1.125rem;
}

/* ============================================
   COMPARISON TABLE
   ============================================ */
.comparison-table {
  width: 100%;
  background: var(--white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
}

.comparison-table thead {
  background: var(--bg-gray);
}

.comparison-table th,
.comparison-table td {
  padding: 1.25rem 1.5rem;
  text-align: left;
  border-bottom: 1px solid var(--border-gray);
}

.comparison-table th {
  font-weight: 600;
  color: var(--text-primary);
  font-size: 0.9375rem;
}

.comparison-table tbody tr:hover {
  background: var(--primary-lightest);
}

.comparison-table tbody tr:last-child td {
  border-bottom: none;
}

/* ============================================
   FOOTER
   ============================================ */
footer {
  background: var(--dark);
  color: var(--light-gray);
  padding: 4rem 2rem 2.5rem;
  margin-top: 5rem;
}

.footer-container {
  max-width: 1200px;
  margin: 0 auto;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 3rem;
  margin-bottom: 3rem;
}

.footer-heading {
  color: var(--white);
  font-size: 1.125rem;
  font-weight: 600;
  margin-bottom: 1.25rem;
}

.footer-links {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-links li {
  margin-bottom: 0.875rem;
}

.footer-links a {
  color: var(--light-gray);
  text-decoration: none;
  transition: color var(--transition-fast);
  border-bottom: none;
  font-size: 0.9375rem;
}

.footer-links a:hover {
  color: var(--white);
  border-bottom: none;
}

.footer-bottom {
  border-top: 1px solid var(--dark-gray);
  padding-top: 2.5rem;
  text-align: center;
  font-size: 0.875rem;
}

/* ============================================
   NEWSLETTER SECTION
   ============================================ */
.newsletter {
  background: var(--primary);
  color: var(--white);
  padding: 4rem 2rem;
  border-radius: var(--radius-lg);
  text-align: center;
  margin: 4rem 0;
}

.newsletter h2 {
  color: var(--white);
  margin-bottom: 0.75rem;
}

.newsletter p {
  opacity: 0.9;
  margin-bottom: 2.5rem;
  color: var(--white);
}

.newsletter-form {
  max-width: 500px;
  margin: 0 auto;
  display: flex;
  gap: 0.75rem;
}

.newsletter-form input[type="email"] {
  flex: 1;
  padding: 0.875rem 1.25rem;
  border: none;
  border-radius: var(--radius-md);
  font-size: 1rem;
  font-family: var(--font-sans);
}

.newsletter-form button {
  background: var(--white);
  color: var(--primary);
  padding: 0.875rem 1.75rem;
  border: none;
  border-radius: var(--radius-md);
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition-fast);
  font-family: var(--font-sans);
}

.newsletter-form button:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

/* ============================================
   UTILITIES
   ============================================ */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
}

.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }

.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 2.5rem; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2.5rem; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 2.5rem; }

.flex { display: flex; }
.flex-center { display: flex; justify-content: center; align-items: center; }
.flex-between { display: flex; justify-content: space-between; align-items: center; }
.flex-wrap { flex-wrap: wrap; }
.gap-1 { gap: 0.625rem; }
.gap-2 { gap: 1.25rem; }
.gap-3 { gap: 2rem; }
.gap-4 { gap: 2.5rem; }

/* ============================================
   RESPONSIVE DESIGN (MOBILE-FIRST)
   ============================================ */
@media (max-width: 768px) {
  body {
    font-size: 16px;
  }

  .container {
    padding: 0 1.25rem;
  }
  
  .navbar-container {
    padding: 1rem 1.25rem;
  }

  .navbar-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--white);
    flex-direction: column;
    padding: 1rem;
    box-shadow: var(--shadow-lg);
    gap: 0;
  }
  
  .navbar-menu.active {
    display: flex;
  }
  
  .navbar-menu a {
    padding: 0.875rem 1rem;
    width: 100%;
  }
  
  .navbar-toggle {
    display: flex;
  }
  
  .hero {
    padding: 3.5rem 1.5rem;
  }

  .hero h1 {
    font-size: 2rem;
  }
  
  .hero p {
    font-size: 1.0625rem;
  }
  
  .card-score {
    font-size: 1.5rem;
  }
  
  .grid-2,
  .grid-3,
  .grid-4 {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
  
  .newsletter-form {
    flex-direction: column;
  }
  
  .trust-bar-container {
    gap: 1.5rem;
  }

  .trust-bar {
    padding: 1.25rem 1.25rem;
  }
  
  .comparison-table {
    font-size: 0.875rem;
  }
  
  .comparison-table th,
  .comparison-table td {
    padding: 0.875rem 0.75rem;
  }

  .section {
    margin: 3rem 0;
  }

  footer {
    padding: 3rem 1.5rem 2rem;
  }

  .footer-grid {
    gap: 2rem;
  }
}

@media (max-width: 480px) {
  h1 { font-size: 1.875rem; }
  h2 { font-size: 1.625rem; }
  h3 { font-size: 1.375rem; }
  
  .card {
    padding: 1.5rem;
  }
  
  .pricing-price {
    font-size: 2.25rem;
  }
}
