/*
 Theme Name: GeneratePress Child
 Template: generatepress
 Description: RealEstatePhotography.ai premium child theme
 Version: 1.0.0
 Author: RealEstatePhotography.ai
*/

/* ============================================================
   DESIGN TOKENS — Color & Typography System
   ============================================================ */
:root {
  --color-bg: #ffffff;
  --color-hero: #0f172a;
  --color-hero-text: #ffffff;
  --color-accent-blue: #3b82f6;
  --color-accent-blue-dark: #2563eb;
  --color-accent-blue-light: #eff6ff;
  --color-accent-orange: #f97316;
  --color-accent-orange-dark: #ea580c;
  --color-text-primary: #1e293b;
  --color-text-secondary: #64748b;
  --color-text-muted: #94a3b8;
  --color-border: #e2e8f0;
  --color-card-bg: #ffffff;
  --color-card-hover-bg: #f8fafc;
  --color-surface: #f8fafc;
  --color-rating: #f59e0b;
  --color-success: #22c55e;
  --color-footer: #0f172a;
  --color-footer-text: #94a3b8;

  --font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-size-base: 16px;
  --line-height-base: 1.6;

  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 14px;
  --radius-xl: 18px;
  --radius-full: 9999px;

  --shadow-sm: 0 1px 3px rgba(0,0,0,0.06), 0 1px 2px rgba(0,0,0,0.04);
  --shadow-md: 0 4px 12px rgba(0,0,0,0.08), 0 2px 4px rgba(0,0,0,0.04);
  --shadow-lg: 0 10px 30px rgba(0,0,0,0.12), 0 4px 10px rgba(0,0,0,0.06);
  --shadow-xl: 0 20px 50px rgba(0,0,0,0.16);

  --transition: all 0.2s ease;
  --max-w: 1200px;
  --max-w-content: 740px;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-family);
  font-size: var(--font-size-base);
  line-height: var(--line-height-base);
  color: var(--color-text-primary);
  background: var(--color-bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* ============================================================
   TYPOGRAPHY
   ============================================================ */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-family);
  font-weight: 700;
  line-height: 1.2;
  color: var(--color-text-primary);
}

h1 { font-size: clamp(28px, 5vw, 48px); }
h2 { font-size: clamp(22px, 3.5vw, 36px); }
h3 { font-size: clamp(18px, 2.5vw, 24px); }
h4 { font-size: 18px; }

p { margin-bottom: 1rem; }
p:last-child { margin-bottom: 0; }

a {
  color: var(--color-accent-blue);
  text-decoration: none;
  transition: var(--transition);
}
a:hover { color: var(--color-accent-blue-dark); }

/* ============================================================
   LAYOUT CONTAINERS
   ============================================================ */
.rep-container {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 24px;
}

.rep-section {
  padding: 80px 0;
}

@media (max-width: 768px) {
  .rep-section { padding: 48px 0; }
  .rep-container { padding: 0 16px; }
}

/* ============================================================
   HEADER / NAVIGATION
   ============================================================ */
.site-header,
#site-header {
  background: #ffffff !important;
  border-bottom: 1px solid var(--color-border);
  box-shadow: none;
  position: sticky;
  top: 0;
  z-index: 1000;
  transition: box-shadow 0.2s ease;
}

.site-header.scrolled,
#site-header.scrolled {
  box-shadow: 0 2px 20px rgba(0,0,0,0.08);
}

/* GeneratePress header inner */
.inside-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 24px;
  height: 68px;
}

/* Site logo / branding */
.site-logo,
.site-branding {
  display: flex;
  align-items: center;
  gap: 8px;
}

.site-title,
.site-title a {
  font-family: var(--font-family) !important;
  font-size: 18px !important;
  font-weight: 700 !important;
  color: var(--color-text-primary) !important;
  text-decoration: none !important;
  letter-spacing: -0.3px;
}

.site-title a:hover { color: var(--color-accent-blue) !important; }

.site-description { display: none; }

/* Navigation */
.main-navigation,
nav.main-navigation {
  background: transparent !important;
}

.main-navigation .menu > li > a,
.nav-links > li > a,
nav.navigation-branding .main-nav ul li a {
  font-family: var(--font-family) !important;
  font-size: 14px !important;
  font-weight: 500 !important;
  color: var(--color-text-primary) !important;
  padding: 8px 14px !important;
  border-radius: var(--radius-sm);
  transition: var(--transition);
}

.main-navigation .menu > li > a:hover,
.main-navigation .menu > li.current-menu-item > a {
  color: var(--color-accent-blue) !important;
  background: var(--color-accent-blue-light);
}

/* Nav submit-a-tool CTA button */
.nav-cta-btn,
.menu-item-cta a {
  background: var(--color-accent-orange) !important;
  color: #ffffff !important;
  padding: 10px 20px !important;
  border-radius: var(--radius-md) !important;
  font-weight: 600 !important;
  font-size: 14px !important;
  transition: var(--transition) !important;
}

.nav-cta-btn:hover,
.menu-item-cta a:hover {
  background: var(--color-accent-orange-dark) !important;
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
}

/* Dropdown menus */
.main-navigation .sub-menu {
  background: #ffffff !important;
  border: 1px solid var(--color-border) !important;
  border-radius: var(--radius-md) !important;
  box-shadow: var(--shadow-lg) !important;
  padding: 8px !important;
  min-width: 200px !important;
}

.main-navigation .sub-menu li a {
  border-radius: var(--radius-sm) !important;
  font-size: 14px !important;
  padding: 8px 12px !important;
  color: var(--color-text-primary) !important;
}

.main-navigation .sub-menu li a:hover {
  background: var(--color-accent-blue-light) !important;
  color: var(--color-accent-blue) !important;
}

/* ============================================================
   BUTTONS — Global System
   ============================================================ */
.btn,
.wp-block-button__link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-family);
  font-weight: 600;
  font-size: 15px;
  padding: 12px 24px;
  border-radius: var(--radius-md);
  border: none;
  cursor: pointer;
  transition: var(--transition);
  text-decoration: none;
  line-height: 1;
  min-height: 44px;
}

.btn-primary,
.wp-block-button:not(.is-style-outline) .wp-block-button__link {
  background: var(--color-accent-blue) !important;
  color: #ffffff !important;
  box-shadow: var(--shadow-sm);
}

.btn-primary:hover,
.wp-block-button:not(.is-style-outline) .wp-block-button__link:hover {
  background: var(--color-accent-blue-dark) !important;
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.btn-orange,
.wp-block-button.is-style-fill .wp-block-button__link {
  background: var(--color-accent-orange) !important;
  color: #ffffff !important;
}

.btn-orange:hover { background: var(--color-accent-orange-dark) !important; }

.btn-ghost {
  background: transparent;
  color: var(--color-accent-blue);
  border: 2px solid var(--color-accent-blue);
}

.btn-ghost:hover {
  background: var(--color-accent-blue-light);
}

/* ============================================================
   CARDS — Global Card System
   ============================================================ */
.rep-card {
  background: var(--color-card-bg);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-xl);
  padding: 24px;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}

.rep-card:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-3px);
  background: var(--color-card-hover-bg);
}

/* ============================================================
   CATEGORY CHIPS / TAGS
   ============================================================ */
.rep-chip,
.tool-category-chip,
.category-chip {
  display: inline-flex;
  align-items: center;
  background: var(--color-accent-blue-light);
  color: var(--color-accent-blue);
  font-size: 12px;
  font-weight: 600;
  padding: 4px 12px;
  border-radius: var(--radius-full);
  text-decoration: none;
  transition: var(--transition);
  letter-spacing: 0.2px;
  white-space: nowrap;
}

.rep-chip:hover {
  background: var(--color-accent-blue);
  color: #ffffff;
}

.rep-chip.chip-orange {
  background: #fff7ed;
  color: var(--color-accent-orange);
}

.rep-chip.chip-green {
  background: #f0fdf4;
  color: var(--color-success);
}

/* ============================================================
   RATING STARS
   ============================================================ */
.rep-rating {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 14px;
}

.rep-rating .stars {
  color: var(--color-rating);
  letter-spacing: 1px;
  font-size: 15px;
}

.rep-rating .score {
  font-weight: 700;
  color: var(--color-text-primary);
  font-size: 14px;
}

.rep-rating .max {
  color: var(--color-text-secondary);
  font-size: 12px;
}

/* ============================================================
   PRICE BADGE
   ============================================================ */
.rep-price-badge {
  font-size: 13px;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: var(--radius-full);
  background: #f0fdf4;
  color: var(--color-success);
}

.rep-price-badge.paid {
  background: #f8fafc;
  color: var(--color-text-secondary);
}

.rep-price-badge.freemium {
  background: #fff7ed;
  color: var(--color-accent-orange);
}

.rep-price-badge.enterprise {
  background: #faf5ff;
  color: #7c3aed;
}

/* ============================================================
   TOOL CARD — used in directory + homepage
   ============================================================ */
.tool-card {
  background: var(--color-card-bg);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-xl);
  padding: 24px;
  transition: all 0.2s ease;
  display: flex;
  flex-direction: column;
  gap: 14px;
  text-decoration: none;
  color: inherit;
  position: relative;
  overflow: hidden;
}

.tool-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--color-accent-blue), #6366f1);
  opacity: 0;
  transition: opacity 0.2s ease;
}

.tool-card:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-3px);
  border-color: #c7d7f8;
  text-decoration: none;
  color: inherit;
}

.tool-card:hover::before { opacity: 1; }

.tool-card-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.tool-card-logo {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-md);
  background: var(--color-accent-blue-light);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  flex-shrink: 0;
  overflow: hidden;
}

.tool-card-logo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: var(--radius-md);
}

.tool-card-title {
  font-size: 17px;
  font-weight: 700;
  color: var(--color-text-primary);
  margin: 0;
  flex: 1;
  line-height: 1.3;
}

.tool-card-rating {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 13px;
  flex-shrink: 0;
}

.tool-card-rating .stars { color: var(--color-rating); font-size: 13px; }
.tool-card-rating .score { font-weight: 700; color: var(--color-text-primary); }

.tool-card-excerpt {
  font-size: 14px;
  color: var(--color-text-secondary);
  line-height: 1.55;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  flex: 1;
}

.tool-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-top: auto;
  padding-top: 12px;
  border-top: 1px solid var(--color-border);
}

.tool-card-link {
  font-size: 13px;
  font-weight: 600;
  color: var(--color-accent-blue);
  display: flex;
  align-items: center;
  gap: 4px;
  text-decoration: none;
}

.tool-card-link:hover {
  color: var(--color-accent-blue-dark);
  gap: 6px;
  text-decoration: none;
}

/* ============================================================
   TOOLS GRID
   ============================================================ */
.tools-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

@media (max-width: 1024px) {
  .tools-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 600px) {
  .tools-grid { grid-template-columns: 1fr; gap: 16px; }
}

/* ============================================================
   SECTION HEADER — "Title + View All" row
   ============================================================ */
.rep-section-header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: 36px;
}

.rep-section-title {
  font-size: clamp(22px, 3vw, 32px);
  font-weight: 700;
  color: var(--color-text-primary);
  margin: 0;
}

.rep-section-link {
  font-size: 14px;
  font-weight: 600;
  color: var(--color-accent-blue);
  display: flex;
  align-items: center;
  gap: 4px;
  text-decoration: none;
  white-space: nowrap;
}

.rep-section-link:hover { gap: 6px; }

/* ============================================================
   HOMEPAGE HERO
   ============================================================ */
.rep-hero {
  background: var(--color-hero);
  padding: 100px 0 80px;
  position: relative;
  overflow: hidden;
}

.rep-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(ellipse at 20% 50%, rgba(59,130,246,0.15) 0%, transparent 60%),
    radial-gradient(ellipse at 80% 20%, rgba(99,102,241,0.12) 0%, transparent 60%);
  pointer-events: none;
}

.rep-hero-dot-pattern {
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle, rgba(255,255,255,0.05) 1px, transparent 1px);
  background-size: 32px 32px;
  pointer-events: none;
}

.rep-hero-inner {
  position: relative;
  z-index: 1;
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 24px;
  text-align: center;
}

.rep-hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(59,130,246,0.2);
  border: 1px solid rgba(59,130,246,0.3);
  color: #93c5fd;
  font-size: 13px;
  font-weight: 600;
  padding: 6px 16px;
  border-radius: var(--radius-full);
  margin-bottom: 28px;
  letter-spacing: 0.2px;
}

.rep-hero-badge::before {
  content: '★';
  color: var(--color-rating);
}

.rep-hero h1 {
  font-size: clamp(32px, 5.5vw, 56px);
  font-weight: 800;
  color: #ffffff;
  line-height: 1.1;
  margin-bottom: 20px;
  letter-spacing: -1px;
}

.rep-hero h1 .highlight {
  background: linear-gradient(135deg, #60a5fa, #818cf8);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.rep-hero-subtitle {
  font-size: clamp(16px, 2.2vw, 20px);
  color: var(--color-text-muted);
  max-width: 600px;
  margin: 0 auto 40px;
  line-height: 1.6;
  font-weight: 400;
}

/* Hero Search Bar */
.rep-search-form {
  max-width: 620px;
  margin: 0 auto 36px;
  position: relative;
}

.rep-search-input-wrap {
  display: flex;
  background: #ffffff;
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: 0 4px 30px rgba(0,0,0,0.3), 0 0 0 1px rgba(255,255,255,0.1);
}

.rep-search-input {
  flex: 1;
  border: none;
  outline: none;
  padding: 18px 24px;
  font-family: var(--font-family);
  font-size: 15px;
  color: var(--color-text-primary);
  background: transparent;
}

.rep-search-input::placeholder { color: var(--color-text-secondary); }

.rep-search-btn {
  background: var(--color-accent-blue);
  color: #ffffff;
  border: none;
  padding: 0 28px;
  font-family: var(--font-family);
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
  display: flex;
  align-items: center;
  gap: 8px;
  white-space: nowrap;
}

.rep-search-btn:hover { background: var(--color-accent-blue-dark); }

/* Hero Category Chips */
.rep-hero-cats {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
  margin-top: 8px;
}

.rep-hero-cat {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.15);
  color: #cbd5e1;
  font-size: 13px;
  font-weight: 500;
  padding: 7px 16px;
  border-radius: var(--radius-full);
  text-decoration: none;
  transition: var(--transition);
}

.rep-hero-cat:hover {
  background: rgba(59,130,246,0.25);
  border-color: rgba(59,130,246,0.5);
  color: #93c5fd;
}

/* ============================================================
   STATS BAR (Trust Section)
   ============================================================ */
.rep-stats-bar {
  background: var(--color-surface);
  border-bottom: 1px solid var(--color-border);
  padding: 24px 0;
}

.rep-stats-bar-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 48px;
  flex-wrap: wrap;
}

.rep-stat-item {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  color: var(--color-text-secondary);
}

.rep-stat-item strong {
  font-size: 20px;
  font-weight: 800;
  color: var(--color-text-primary);
  display: block;
  line-height: 1;
}

.rep-stat-divider {
  width: 1px;
  height: 32px;
  background: var(--color-border);
}

@media (max-width: 600px) {
  .rep-stats-bar-inner { gap: 24px; }
  .rep-stat-divider { display: none; }
}

/* ============================================================
   HOW IT WORKS SECTION
   ============================================================ */
.rep-how-it-works {
  background: var(--color-surface);
}

.rep-steps-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  margin-top: 48px;
}

.rep-step {
  text-align: center;
  padding: 32px 24px;
}

.rep-step-icon {
  width: 64px;
  height: 64px;
  border-radius: var(--radius-xl);
  background: var(--color-accent-blue-light);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
  font-size: 28px;
  color: var(--color-accent-blue);
}

.rep-step h3 {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 10px;
  color: var(--color-text-primary);
}

.rep-step p {
  font-size: 15px;
  color: var(--color-text-secondary);
  line-height: 1.6;
  margin: 0;
}

@media (max-width: 768px) {
  .rep-steps-grid { grid-template-columns: 1fr; gap: 16px; }
}

/* ============================================================
   BLOG CARDS
   ============================================================ */
.blog-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

@media (max-width: 900px) { .blog-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 580px) { .blog-grid { grid-template-columns: 1fr; } }

.blog-card {
  background: var(--color-card-bg);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-xl);
  overflow: hidden;
  transition: var(--transition);
}

.blog-card:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-3px);
}

.blog-card-image {
  width: 100%;
  height: 180px;
  object-fit: cover;
  background: linear-gradient(135deg, #1e293b 0%, #334155 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255,255,255,0.2);
  font-size: 48px;
}

.blog-card-body {
  padding: 20px;
}

.blog-card-meta {
  font-size: 12px;
  color: var(--color-text-secondary);
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.blog-card-title {
  font-size: 16px;
  font-weight: 700;
  color: var(--color-text-primary);
  margin-bottom: 8px;
  line-height: 1.35;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.blog-card-excerpt {
  font-size: 13px;
  color: var(--color-text-secondary);
  line-height: 1.55;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin-bottom: 16px;
}

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

.blog-card-link {
  font-size: 13px;
  font-weight: 600;
  color: var(--color-accent-blue);
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 4px;
}

/* ============================================================
   NEWSLETTER CTA SECTION
   ============================================================ */
.rep-newsletter {
  background: var(--color-hero);
  padding: 80px 0;
  position: relative;
  overflow: hidden;
}

.rep-newsletter::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at center, rgba(59,130,246,0.1) 0%, transparent 70%);
  pointer-events: none;
}

.rep-newsletter-inner {
  position: relative;
  z-index: 1;
  max-width: 560px;
  margin: 0 auto;
  padding: 0 24px;
  text-align: center;
}

.rep-newsletter h2 {
  font-size: clamp(24px, 3.5vw, 36px);
  font-weight: 800;
  color: #ffffff;
  margin-bottom: 12px;
}

.rep-newsletter .subtitle {
  font-size: 16px;
  color: var(--color-text-muted);
  margin-bottom: 32px;
  line-height: 1.6;
}

.rep-newsletter-form {
  display: flex;
  gap: 0;
  background: #ffffff;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: 0 4px 30px rgba(0,0,0,0.3);
  margin-bottom: 14px;
}

.rep-newsletter-input {
  flex: 1;
  border: none;
  outline: none;
  padding: 16px 20px;
  font-family: var(--font-family);
  font-size: 15px;
  color: var(--color-text-primary);
  background: transparent;
}

.rep-newsletter-input::placeholder { color: var(--color-text-secondary); }

.rep-newsletter-btn {
  background: var(--color-accent-orange);
  color: #ffffff;
  border: none;
  padding: 16px 24px;
  font-family: var(--font-family);
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  transition: var(--transition);
  white-space: nowrap;
}

.rep-newsletter-btn:hover { background: var(--color-accent-orange-dark); }

.rep-newsletter-disclaimer {
  font-size: 12px;
  color: #475569;
}

/* ============================================================
   FOOTER
   ============================================================ */
.rep-footer {
  background: var(--color-footer);
  color: var(--color-footer-text);
}

.site-footer,
#colophon {
  background: var(--color-footer) !important;
  color: var(--color-footer-text) !important;
  padding: 64px 0 0 !important;
  margin: 0 !important;
}

.rep-footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 48px;
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 24px 48px;
}

@media (max-width: 900px) { .rep-footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; } }
@media (max-width: 580px) { .rep-footer-grid { grid-template-columns: 1fr; gap: 24px; } }

.rep-footer-brand .brand-name {
  font-size: 18px;
  font-weight: 800;
  color: #ffffff;
  margin-bottom: 10px;
  display: block;
}

.rep-footer-brand p {
  font-size: 14px;
  color: var(--color-footer-text);
  line-height: 1.7;
  margin-bottom: 16px;
}

.rep-footer-col h4 {
  font-size: 13px;
  font-weight: 700;
  color: #ffffff;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  margin-bottom: 16px;
}

.rep-footer-col ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.rep-footer-col ul li {
  margin-bottom: 10px;
}

.rep-footer-col ul li a {
  font-size: 14px;
  color: var(--color-footer-text) !important;
  text-decoration: none;
  transition: var(--transition);
}

.rep-footer-col ul li a:hover {
  color: #ffffff !important;
  text-decoration: none;
}

.rep-footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.08);
  padding: 20px 24px;
  max-width: var(--max-w);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 13px;
  color: #475569;
  flex-wrap: wrap;
  gap: 8px;
}

/* Hide GeneratePress default footer elements that we override */
.site-info { display: none !important; }

/* ============================================================
   SINGLE TOOL REVIEW PAGE
   ============================================================ */
.rep-tool-hero {
  background: var(--color-surface);
  border-bottom: 1px solid var(--color-border);
  padding: 48px 0;
}

.rep-tool-hero-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: flex-start;
  gap: 48px;
}

@media (max-width: 768px) {
  .rep-tool-hero-inner { flex-direction: column; gap: 32px; }
}

.rep-tool-hero-main { flex: 1; }

.rep-tool-breadcrumb {
  font-size: 13px;
  color: var(--color-text-secondary);
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}

.rep-tool-breadcrumb a {
  color: var(--color-text-secondary);
  text-decoration: none;
}

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

.rep-tool-breadcrumb .sep { color: var(--color-border); }

.rep-tool-title-row {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  margin-bottom: 12px;
}

.rep-tool-logo-large {
  width: 64px;
  height: 64px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--color-border);
  background: var(--color-accent-blue-light);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  flex-shrink: 0;
  overflow: hidden;
}

.rep-tool-logo-large img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.rep-tool-name {
  font-size: clamp(28px, 4vw, 40px);
  font-weight: 800;
  color: var(--color-text-primary);
  margin: 0;
  line-height: 1.15;
}

.rep-tool-meta-row {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
  margin-bottom: 20px;
}

.rep-tool-excerpt {
  font-size: 17px;
  color: var(--color-text-secondary);
  line-height: 1.6;
  max-width: 600px;
  margin-bottom: 28px;
}

.rep-tool-cta-row {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
}

.rep-visit-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--color-accent-orange);
  color: #ffffff;
  font-family: var(--font-family);
  font-weight: 700;
  font-size: 15px;
  padding: 14px 28px;
  border-radius: var(--radius-md);
  text-decoration: none;
  transition: var(--transition);
  min-height: 48px;
  box-shadow: var(--shadow-sm);
}

.rep-visit-btn:hover {
  background: var(--color-accent-orange-dark);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
  text-decoration: none;
  color: #ffffff;
}

.rep-visit-btn svg, .rep-visit-btn .arrow { font-size: 16px; }

/* Quick Stats Card (sidebar on tool page) */
.rep-tool-stats-card {
  background: var(--color-card-bg);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-xl);
  padding: 24px;
  width: 280px;
  flex-shrink: 0;
  box-shadow: var(--shadow-sm);
}

@media (max-width: 768px) {
  .rep-tool-stats-card { width: 100%; }
}

.rep-tool-stats-card h3 {
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  color: var(--color-text-secondary);
  margin-bottom: 16px;
}

.rep-stat-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  padding: 10px 0;
  border-bottom: 1px solid var(--color-border);
  font-size: 14px;
  gap: 12px;
}

.rep-stat-row:last-child { border-bottom: none; }

.rep-stat-label {
  color: var(--color-text-secondary);
  flex-shrink: 0;
  font-weight: 500;
}

.rep-stat-value {
  color: var(--color-text-primary);
  font-weight: 600;
  text-align: right;
}

/* Tool Review Content */
.rep-tool-content {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 60px 24px;
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 60px;
  align-items: start;
}

@media (max-width: 900px) {
  .rep-tool-content { grid-template-columns: 1fr; gap: 40px; }
}

.rep-tool-body {
  font-size: 16px;
  line-height: 1.75;
  color: var(--color-text-primary);
}

.rep-tool-body h2 {
  font-size: 24px;
  font-weight: 700;
  margin: 40px 0 16px;
  color: var(--color-text-primary);
}

.rep-tool-body h3 {
  font-size: 20px;
  font-weight: 700;
  margin: 28px 0 12px;
  color: var(--color-text-primary);
}

.rep-tool-body p { margin-bottom: 20px; }

.rep-tool-body ul, .rep-tool-body ol {
  padding-left: 24px;
  margin-bottom: 20px;
}

.rep-tool-body li { margin-bottom: 8px; }

/* Pros/Cons */
.rep-pros-cons {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin: 36px 0;
}

@media (max-width: 600px) {
  .rep-pros-cons { grid-template-columns: 1fr; }
}

.rep-pros, .rep-cons {
  border-radius: var(--radius-lg);
  padding: 20px;
}

.rep-pros {
  background: #f0fdf4;
  border: 1px solid #86efac;
}

.rep-cons {
  background: #fff5f5;
  border: 1px solid #fca5a5;
}

.rep-pros h4 {
  color: #15803d;
  font-size: 14px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.6px;
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.rep-cons h4 {
  color: #b91c1c;
  font-size: 14px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.6px;
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.rep-pros ul, .rep-cons ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.rep-pros ul li {
  font-size: 14px;
  color: #166534;
  padding: 5px 0;
  padding-left: 22px;
  position: relative;
  line-height: 1.5;
}

.rep-pros ul li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: var(--color-success);
  font-weight: 700;
}

.rep-cons ul li {
  font-size: 14px;
  color: #991b1b;
  padding: 5px 0;
  padding-left: 22px;
  position: relative;
  line-height: 1.5;
}

.rep-cons ul li::before {
  content: '✗';
  position: absolute;
  left: 0;
  color: #ef4444;
  font-weight: 700;
}

/* Tool Sidebar */
.rep-tool-sidebar {}

.rep-tool-sidebar-card {
  background: var(--color-card-bg);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-xl);
  padding: 24px;
  margin-bottom: 24px;
}

.rep-tool-sidebar-card h3 {
  font-size: 14px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.6px;
  color: var(--color-text-secondary);
  margin-bottom: 16px;
}

/* Affiliate Disclosure */
.rep-affiliate-notice {
  background: #fefce8;
  border: 1px solid #fde68a;
  border-radius: var(--radius-md);
  padding: 12px 16px;
  font-size: 13px;
  color: #92400e;
  margin: 32px 0;
  line-height: 1.5;
}

/* Similar Tools */
.rep-similar-tools {
  background: var(--color-surface);
  padding: 60px 0;
  border-top: 1px solid var(--color-border);
}

/* ============================================================
   TOOLS DIRECTORY PAGE
   ============================================================ */
.rep-dir-hero {
  background: var(--color-hero);
  padding: 60px 0 48px;
  position: relative;
  overflow: hidden;
}

.rep-dir-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 30% 50%, rgba(59,130,246,0.12) 0%, transparent 60%);
  pointer-events: none;
}

.rep-dir-hero-inner {
  position: relative;
  z-index: 1;
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 24px;
}

.rep-dir-hero h1 {
  color: #ffffff;
  font-size: clamp(28px, 4vw, 42px);
  font-weight: 800;
  margin-bottom: 8px;
}

.rep-dir-hero p {
  color: var(--color-text-muted);
  font-size: 17px;
  margin-bottom: 28px;
}

.rep-dir-search-row {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.rep-dir-search-wrap {
  flex: 1;
  min-width: 260px;
  display: flex;
  background: #ffffff;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
}

.rep-dir-search-input {
  flex: 1;
  border: none;
  outline: none;
  padding: 14px 18px;
  font-family: var(--font-family);
  font-size: 15px;
  color: var(--color-text-primary);
}

/* Filters Bar */
.rep-filters-bar {
  background: #ffffff;
  border-bottom: 1px solid var(--color-border);
  padding: 16px 0;
  position: sticky;
  top: 68px;
  z-index: 100;
  box-shadow: 0 2px 8px rgba(0,0,0,0.04);
}

.rep-filters-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.rep-filter-label {
  font-size: 13px;
  font-weight: 600;
  color: var(--color-text-secondary);
  margin-right: 4px;
  white-space: nowrap;
}

.rep-filter-chips {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.rep-filter-chip {
  font-size: 13px;
  font-weight: 500;
  padding: 6px 14px;
  border-radius: var(--radius-full);
  border: 1px solid var(--color-border);
  background: transparent;
  color: var(--color-text-secondary);
  cursor: pointer;
  transition: var(--transition);
  text-decoration: none;
  white-space: nowrap;
}

.rep-filter-chip:hover,
.rep-filter-chip.active {
  background: var(--color-accent-blue);
  border-color: var(--color-accent-blue);
  color: #ffffff;
}

/* ============================================================
   BLOG ARCHIVE PAGE
   ============================================================ */
.blog-archive-hero {
  background: var(--color-surface);
  padding: 48px 0;
  border-bottom: 1px solid var(--color-border);
}

.blog-archive-hero h1 {
  font-size: 40px;
  margin-bottom: 8px;
}

.blog-archive-hero p {
  color: var(--color-text-secondary);
  font-size: 17px;
}

/* Blog archive 2-col grid */
.blog-archive-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 28px;
  margin-top: 48px;
}

@media (max-width: 680px) { .blog-archive-grid { grid-template-columns: 1fr; } }

/* Single post */
.rep-single-post {
  max-width: 740px;
  margin: 60px auto;
  padding: 0 24px;
}

.rep-post-header {
  margin-bottom: 40px;
}

.rep-post-category-chip {
  display: inline-flex;
  align-items: center;
  background: var(--color-accent-blue-light);
  color: var(--color-accent-blue);
  font-size: 12px;
  font-weight: 700;
  padding: 4px 12px;
  border-radius: var(--radius-full);
  text-transform: uppercase;
  letter-spacing: 0.4px;
  margin-bottom: 16px;
  text-decoration: none;
}

.rep-post-title {
  font-size: clamp(26px, 4vw, 40px);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.5px;
  margin-bottom: 16px;
}

.rep-post-meta {
  display: flex;
  align-items: center;
  gap: 16px;
  font-size: 13px;
  color: var(--color-text-secondary);
}

.rep-reading-time {
  display: flex;
  align-items: center;
  gap: 4px;
}

.rep-post-content {
  font-size: 17px;
  line-height: 1.8;
  color: var(--color-text-primary);
}

.rep-post-content h2 {
  font-size: 26px;
  font-weight: 800;
  margin: 44px 0 16px;
  letter-spacing: -0.3px;
}

.rep-post-content h3 {
  font-size: 20px;
  font-weight: 700;
  margin: 32px 0 12px;
}

.rep-post-content p { margin-bottom: 22px; }

.rep-post-content ul, .rep-post-content ol {
  padding-left: 28px;
  margin-bottom: 22px;
}

.rep-post-content li { margin-bottom: 8px; }

.rep-post-content strong { color: var(--color-text-primary); }

.rep-post-content a {
  color: var(--color-accent-blue);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.rep-post-content blockquote {
  border-left: 4px solid var(--color-accent-blue);
  padding: 16px 24px;
  background: var(--color-accent-blue-light);
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
  margin: 28px 0;
  font-style: italic;
  color: var(--color-text-secondary);
}

/* Related posts */
.rep-related-posts {
  border-top: 1px solid var(--color-border);
  padding-top: 48px;
  margin-top: 64px;
}

.rep-related-posts h3 {
  font-size: 22px;
  font-weight: 700;
  margin-bottom: 24px;
}

/* ============================================================
   GENERATEPRESS OVERRIDES
   ============================================================ */
/* Remove default GP paddings that conflict with our design */
.inside-page-hero { display: none; }

.content-area {
  width: 100% !important;
  max-width: none !important;
  padding: 0 !important;
}

.site-content .inside-article,
.hentry { max-width: none !important; }

/* When using custom templates, hide default GP content wrapper */
.page-template-page-home .content-area,
.post-type-template-single-ai-tools .content-area {
  width: 100% !important;
}

/* Widget areas */
.widget-area { display: none; }

/* Pagination */
.rep-pagination {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 48px;
  flex-wrap: wrap;
}

.rep-page-link {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-md);
  border: 1px solid var(--color-border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  font-weight: 600;
  color: var(--color-text-secondary);
  text-decoration: none;
  transition: var(--transition);
}

.rep-page-link:hover,
.rep-page-link.current {
  background: var(--color-accent-blue);
  border-color: var(--color-accent-blue);
  color: #ffffff;
}

/* ============================================================
   MOBILE NAVIGATION
   ============================================================ */
.mobile-nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  color: var(--color-text-primary);
  font-size: 22px;
}

@media (max-width: 768px) {
  .mobile-nav-toggle { display: flex; align-items: center; }

  .main-navigation.main-nav {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(15,23,42,0.97);
    z-index: 9999;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 24px;
  }

  .main-navigation.main-nav.open { display: flex; }

  .main-navigation.main-nav .menu {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
  }

  .main-navigation.main-nav .menu > li > a {
    font-size: 22px !important;
    padding: 12px 24px !important;
    color: #ffffff !important;
  }

  .rep-hero { padding: 64px 0 52px; }
  .rep-hero h1 { font-size: 32px; letter-spacing: -0.5px; }
  .rep-hero-subtitle { font-size: 16px; }

  .tools-grid { grid-template-columns: 1fr; }
  .blog-grid { grid-template-columns: 1fr; }
  .rep-steps-grid { grid-template-columns: 1fr; }
  .rep-footer-grid { grid-template-columns: 1fr 1fr; }
  .rep-tool-content { grid-template-columns: 1fr; }

  .rep-section { padding: 52px 0; }
  .rep-section-header { flex-direction: column; align-items: flex-start; gap: 8px; }

  .rep-newsletter-form { flex-direction: column; border-radius: var(--radius-lg); }
  .rep-newsletter-input { padding: 14px 16px; }
  .rep-newsletter-btn { border-radius: 0 0 var(--radius-lg) var(--radius-lg); padding: 14px 16px; }
}

/* ============================================================
   UTILITIES
   ============================================================ */
.text-center { text-align: center; }
.text-muted { color: var(--color-text-secondary); }
.mb-0 { margin-bottom: 0 !important; }
.mt-4 { margin-top: 16px; }
.gap-2 { gap: 8px; }
.d-flex { display: flex; }
.align-center { align-items: center; }
.flex-wrap { flex-wrap: wrap; }
.w-full { width: 100%; }

/* Arrow indicator */
.arrow-right::after { content: ' →'; }

/* ============================================================
   TEMPLATE CLASS FIXES
   CSS selectors aligned to actual class names in PHP templates
   ============================================================ */

/* Search bar — .rep-search-bar is the <form> flex container */
.rep-search-bar {
  display: flex !important;
  align-items: center;
  background: #ffffff;
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: 0 4px 30px rgba(0,0,0,0.3), 0 0 0 1px rgba(255,255,255,0.1);
  max-width: 620px;
  margin: 0 auto 36px;
  transition: box-shadow 0.2s ease;
}

.rep-search-bar.focused {
  box-shadow: 0 4px 30px rgba(0,0,0,0.3), 0 0 0 2px var(--color-accent-blue);
}

.rep-search-icon {
  padding: 0 16px 0 20px;
  color: var(--color-text-secondary);
  display: flex;
  align-items: center;
  flex-shrink: 0;
}

/* Stats bar — template uses .rep-stats-grid / .rep-stat / .rep-stat-num / .rep-stat-label */
.rep-stats-grid {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 48px;
  flex-wrap: wrap;
}

.rep-stat {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  text-align: center;
}

.rep-stat-num {
  font-size: 28px;
  font-weight: 800;
  color: var(--color-text-primary);
  line-height: 1;
}

.rep-stat-label {
  font-size: 13px;
  color: var(--color-text-secondary);
  font-weight: 500;
}

@media (max-width: 600px) {
  .rep-stats-grid { gap: 24px; }
}

/* Hero category chips — template uses .rep-chips-row / .rep-chip / .rep-chip-active */
.rep-chips-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
  align-items: center;
  margin-top: 8px;
}

.rep-chips-label {
  font-size: 13px;
  color: rgba(255,255,255,0.5);
  font-weight: 500;
  margin-right: 4px;
}

/* .rep-chip in hero context (dark bg) */
.rep-hero .rep-chip,
.rep-hero .rep-chips-row .rep-chip {
  background: rgba(255,255,255,0.08) !important;
  border-color: rgba(255,255,255,0.2) !important;
  color: #e2e8f0 !important;
}

.rep-hero .rep-chip:hover,
.rep-hero .rep-chip-active {
  background: rgba(59,130,246,0.3) !important;
  border-color: rgba(59,130,246,0.6) !important;
  color: #93c5fd !important;
}

/* Category nav (archive page) — chip active state in light context */
.rep-cat-nav .rep-chip-active {
  background: var(--color-accent-blue) !important;
  border-color: var(--color-accent-blue) !important;
  color: #ffffff !important;
}

/* Pagination — WP generates <ul class="page-numbers"> */
.rep-pagination .page-numbers {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: center;
  list-style: none;
  padding: 0;
  margin: 48px 0 0;
}

.rep-pagination .page-numbers li {}

.rep-pagination .page-numbers a,
.rep-pagination .page-numbers span {
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 40px;
  height: 40px;
  padding: 0 12px;
  border-radius: var(--radius-md);
  border: 1px solid var(--color-border);
  font-size: 14px;
  font-weight: 600;
  color: var(--color-text-secondary);
  text-decoration: none;
  transition: var(--transition);
}

.rep-pagination .page-numbers .current,
.rep-pagination .page-numbers a:hover {
  background: var(--color-accent-blue);
  border-color: var(--color-accent-blue);
  color: #ffffff;
}

/* ============================================================
   GENERATEPRESS FULL-WIDTH OVERRIDES
   Force our custom page/archive templates to break out of GP's
   constrained grid-container and site-content wrappers.
   ============================================================ */

/* Remove GP's max-width container on custom pages */
.rep-archive-tools .site.grid-container,
.rep-single-tool  .site.grid-container,
.rep-homepage     .site.grid-container {
    max-width: 100% !important;
    padding: 0 !important;
    margin: 0 !important;
}

/* Make site-content display:block and full-width (not a grid) */
.rep-archive-tools #content.site-content,
.rep-single-tool  #content.site-content,
.rep-homepage     #content.site-content {
    display: block !important;
    width: 100% !important;
    max-width: 100% !important;
    padding: 0 !important;
    margin: 0 !important;
}

/* Remove GP's default primary content area padding on these pages */
.rep-archive-tools #primary.content-area,
.rep-single-tool  #primary.content-area,
.rep-homepage     #primary.content-area {
    display: block !important;
    width: 100% !important;
    max-width: 100% !important;
    padding: 0 !important;
    float: none !important;
}

/* Remove GP article inner padding */
.rep-archive-tools .inside-article,
.rep-single-tool  .inside-article,
.rep-homepage     .inside-article {
    padding: 0 !important;
}

/* Hide GP's default site footer on homepage (we render our own) */
.rep-homepage .site-footer,
.rep-homepage #colophon { display: none !important; }

/* Hide GP's page title on homepage (we have our hero) */
.rep-homepage .page-hero-section,
.rep-homepage .inside-page-hero,
.rep-homepage .entry-header { display: none !important; }

/* Sticky CTA on mobile */
@media (max-width: 600px) {
  .rep-sticky-cta {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 12px 16px;
    background: #ffffff;
    border-top: 1px solid var(--color-border);
    box-shadow: 0 -4px 20px rgba(0,0,0,0.1);
    z-index: 500;
  }

  .rep-sticky-cta .rep-visit-btn { width: 100%; justify-content: center; }
}

/* ============================================================
   FILTER BAR — missing rules (archive-ai-tools.php)
   ============================================================ */

.rep-filters-count {
  font-size: 14px;
  color: var(--color-text-secondary);
  white-space: nowrap;
  margin-right: auto;
}
.rep-filters-count strong {
  color: var(--color-text-primary);
  font-weight: 700;
}

.rep-filters-controls {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}

.rep-filter-group {
  display: flex;
  align-items: center;
  gap: 8px;
  white-space: nowrap;
}

.rep-filter-select {
  appearance: none;
  -webkit-appearance: none;
  background: #ffffff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%236b7280' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E") no-repeat right 10px center;
  border: 1px solid var(--color-border);
  border-radius: 8px;
  padding: 7px 32px 7px 12px;
  font-size: 13px;
  font-weight: 500;
  color: var(--color-text-primary);
  cursor: pointer;
  transition: border-color 0.15s;
  font-family: var(--font-family);
}
.rep-filter-select:hover,
.rep-filter-select:focus {
  border-color: var(--color-accent-blue);
  outline: none;
  box-shadow: 0 0 0 3px rgba(59,130,246,0.1);
}

.rep-filter-reset {
  font-size: 13px;
  font-weight: 500;
  color: var(--color-text-muted);
  text-decoration: none;
  padding: 7px 12px;
  border-radius: 8px;
  border: 1px solid var(--color-border);
  transition: var(--transition);
  white-space: nowrap;
}
.rep-filter-reset:hover {
  border-color: #ef4444;
  color: #ef4444;
  background: #fef2f2;
}

/* ============================================================
   CATEGORY NAV PILLS — archive page
   ============================================================ */

.rep-cat-nav {
  background: var(--color-surface);
  border-bottom: 1px solid var(--color-border);
  padding: 12px 0;
}
.rep-cat-nav-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  align-items: center;
}
.rep-cat-nav .rep-chip {
  background: #ffffff;
  border: 1px solid var(--color-border);
  color: var(--color-text-secondary);
  padding: 6px 14px;
  border-radius: var(--radius-full);
  font-size: 13px;
  font-weight: 500;
  text-decoration: none;
  transition: var(--transition);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  white-space: nowrap;
}
.rep-cat-nav .rep-chip:hover {
  border-color: var(--color-accent-blue);
  color: var(--color-accent-blue);
  background: var(--color-accent-blue-light);
}
.rep-cat-nav .rep-chip-active {
  background: var(--color-accent-blue) !important;
  border-color: var(--color-accent-blue) !important;
  color: #ffffff !important;
  font-weight: 600;
}
.rep-chip-count {
  background: rgba(0,0,0,0.1);
  padding: 1px 6px;
  border-radius: 10px;
  font-size: 11px;
  font-weight: 600;
}
.rep-chip-active .rep-chip-count {
  background: rgba(255,255,255,0.25);
}

/* ============================================================
   TOOL CARDS — archive-specific missing pieces
   ============================================================ */

/* Archive grid = single column list-style cards */
.rep-tools-grid {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

/* Tool card in archive = full-width list card */
.rep-tools-grid .rep-card.tool-card {
  flex-direction: column;
  gap: 12px;
}

/* Rank badge */
.rep-badge-rank {
  display: inline-block;
  font-size: 11px;
  font-weight: 800;
  color: var(--color-text-muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 4px;
}

/* Tool card header flex layout */
.tool-card-meta {
  flex: 1;
  min-width: 0;
}

.tool-card-category {
  display: inline-block;
  font-size: 12px;
  font-weight: 500;
  color: var(--color-text-muted);
  margin-top: 3px;
}

/* Rating display in archive cards */
.tool-card-rating .rating-num {
  font-size: 18px;
  font-weight: 800;
  color: var(--color-text-primary);
  line-height: 1;
}
.tool-card-rating .rating-label {
  font-size: 12px;
  color: var(--color-text-muted);
  font-weight: 500;
}

/* Logo placeholder */
.tool-logo-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 15px;
  font-weight: 800;
  color: var(--color-accent-blue);
  background: var(--color-accent-blue-light);
  border-radius: var(--radius-md);
  letter-spacing: -0.02em;
}

/* Best for row */
.tool-card-bestfor {
  font-size: 13px;
  color: var(--color-text-secondary);
  line-height: 1.5;
}
.bestfor-label {
  font-weight: 600;
  color: var(--color-text-primary);
}

/* Free trial badge */
.rep-badge-trial {
  display: inline-flex;
  align-items: center;
  padding: 4px 10px;
  border-radius: var(--radius-full);
  font-size: 12px;
  font-weight: 600;
  background: #dcfce7;
  color: #166534;
  border: 1px solid #bbf7d0;
  white-space: nowrap;
}

/* CTA link in archive card */
.tool-card-cta {
  font-size: 13px;
  font-weight: 600;
  color: var(--color-accent-blue);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  white-space: nowrap;
  margin-left: auto;
}
.tool-card-cta:hover {
  color: var(--color-accent-blue-dark);
  gap: 6px;
  text-decoration: none;
}

/* No results message */
.rep-no-results {
  text-align: center;
  padding: 64px 24px;
  color: var(--color-text-muted);
  font-size: 15px;
}
.rep-no-results a {
  color: var(--color-accent-blue);
  font-weight: 600;
}

/* Pagination for archive */
.rep-pagination {
  margin-top: 40px;
  display: flex;
  justify-content: center;
}
.rep-pagination .page-numbers {
  display: inline-flex;
  gap: 8px;
  list-style: none;
  padding: 0;
  margin: 0;
  align-items: center;
  flex-wrap: wrap;
  justify-content: center;
}
.rep-pagination .page-numbers li a,
.rep-pagination .page-numbers li span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 38px;
  height: 38px;
  padding: 0 10px;
  border-radius: 8px;
  border: 1px solid var(--color-border);
  font-size: 14px;
  font-weight: 500;
  color: var(--color-text-primary);
  text-decoration: none;
  transition: var(--transition);
}
.rep-pagination .page-numbers li a:hover { background: var(--color-accent-blue); border-color: var(--color-accent-blue); color: #fff; }
.rep-pagination .page-numbers li span.current { background: var(--color-accent-blue); border-color: var(--color-accent-blue); color: #fff; font-weight: 700; }

/* Directory section wrapper */
.rep-dir-grid-section { padding: 40px 0 64px; }

@media (max-width: 600px) {
  .rep-filters-inner { gap: 8px; }
  .rep-filters-controls { width: 100%; justify-content: flex-end; }
  .rep-filter-group { flex: 1; justify-content: flex-end; }
  .rep-filter-select { flex: 1; max-width: 140px; }
  .rep-cat-nav-inner { gap: 6px; }
}

/* ── Contact Page (Issue 1) ────────────────────────────────────────────────── */
.rep-contact-wrap { max-width: 1140px; margin: 0 auto; padding: 40px 24px 80px; }
.rep-contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; margin-top: 40px; }
.rep-contact-form-section h2 { font-size: 1.4rem; font-weight: 700; margin-bottom: 24px; color: var(--color-text-primary, #111); }
.rep-form-group { margin-bottom: 20px; }
.rep-form-group label { display: block; font-size: 0.875rem; font-weight: 600; color: var(--color-text-primary, #111); margin-bottom: 6px; }
.rep-form-group input,
.rep-form-group select,
.rep-form-group textarea { width: 100%; padding: 10px 14px; border: 1px solid #d1d5db; border-radius: 8px; font-size: 0.95rem; background: #fff; color: #111; font-family: inherit; transition: border-color .2s; box-sizing: border-box; }
.rep-form-group input:focus,
.rep-form-group select:focus,
.rep-form-group textarea:focus { outline: none; border-color: var(--color-accent-blue, #2563eb); box-shadow: 0 0 0 3px rgba(37,99,235,.1); }
.rep-btn-primary { display: inline-flex; align-items: center; background: var(--color-accent-blue, #2563eb); color: #fff; border: none; padding: 12px 28px; border-radius: 8px; font-size: 0.95rem; font-weight: 600; cursor: pointer; transition: background .2s; }
.rep-btn-primary:hover { background: #1d4ed8; }
.rep-contact-info-section { display: flex; flex-direction: column; gap: 20px; }
.rep-contact-card { background: #f9fafb; border: 1px solid #e5e7eb; border-radius: 12px; padding: 24px; }
.rep-contact-card h3 { font-size: 1rem; font-weight: 700; margin: 0 0 8px; color: #111; }
.rep-contact-card p { font-size: 0.875rem; color: #6b7280; margin: 0 0 10px; }
.rep-contact-link { color: var(--color-accent-blue, #2563eb); font-weight: 600; font-size: 0.875rem; text-decoration: none; }
.rep-contact-link:hover { text-decoration: underline; }
.rep-contact-response-time { background: #eff6ff; border-color: #bfdbfe; }
.rep-compare-subtitle { font-size: 1.1rem; color: #6b7280; margin-bottom: 32px; }
@media (max-width: 768px) {
  .rep-contact-grid { grid-template-columns: 1fr; gap: 32px; }
}
