/*
Theme Name: Contriq
Theme URI: https://contriq.com
Author: Contriq
Author URI: https://contriq.com
Description: Independent CRM Reviews & Comparisons for Contractors
Version: 1.0.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: contriq
Tags: business, reviews, comparison, crm
*/

/* ===========================
   CSS VARIABLES
=========================== */
:root {
  --blue: #2563eb;
  --blue-dark: #1d4ed8;
  --blue-light: #eff6ff;
  --navy: #0f172a;
  --gray-900: #111827;
  --gray-700: #374151;
  --gray-500: #6b7280;
  --gray-300: #d1d5db;
  --gray-100: #f3f4f6;
  --white: #ffffff;
  --yellow: #f59e0b;
  --green: #10b981;
  --purple-grad: linear-gradient(135deg, #e0e7ff 0%, #f0f4ff 100%);
  --radius: 10px;
  --shadow: 0 2px 16px rgba(0,0,0,0.08);
  --shadow-lg: 0 8px 32px rgba(0,0,0,0.12);
  --font: 'Inter', 'Segoe UI', sans-serif;
}

/* ===========================
   RESET & BASE
=========================== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body { font-family: var(--font); color: var(--gray-900); background: var(--white); font-size: 15px; line-height: 1.6; }
a { color: var(--blue); text-decoration: none; }
a:hover { text-decoration: underline; }
img { max-width: 100%; height: auto; display: block; }
ul { list-style: none; }
button { cursor: pointer; font-family: var(--font); }

.container { max-width: 1200px; margin: 0 auto; padding: 0 20px; }
.section-title { font-size: 1.5rem; font-weight: 700; color: var(--gray-900); margin-bottom: 6px; }
.section-link { font-size: 0.85rem; color: var(--blue); font-weight: 500; white-space: nowrap; }
.section-link:hover { text-decoration: underline; }
.section-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 24px; }

/* ===========================
   NAVBAR
=========================== */
.site-header {
  background: var(--white);
  border-bottom: 1px solid var(--gray-300);
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 1px 8px rgba(0,0,0,0.05);
}
.navbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
  gap: 20px;
}
.navbar-logo {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 1.2rem;
  font-weight: 800;
  color: var(--navy);
  text-decoration: none;
}
.navbar-logo .logo-icon {
  width: 32px; height: 32px;
  background: var(--blue);
  border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
}
.navbar-logo .logo-icon svg { color: #fff; }
.navbar-nav {
  display: flex;
  align-items: center;
  gap: 4px;
}
.navbar-nav a {
  color: var(--gray-700);
  font-size: 0.9rem;
  font-weight: 500;
  padding: 6px 12px;
  border-radius: 6px;
  display: flex; align-items: center; gap: 4px;
  transition: background 0.15s;
}
.navbar-nav a:hover { background: var(--gray-100); text-decoration: none; }
.navbar-nav a .arrow { font-size: 0.7rem; opacity: 0.6; }
.navbar-actions { display: flex; align-items: center; gap: 10px; }
.navbar-search { background: none; border: none; padding: 6px; color: var(--gray-500); font-size: 1rem; }
.btn-primary {
  background: var(--blue);
  color: var(--white);
  border: none;
  padding: 9px 18px;
  border-radius: 7px;
  font-size: 0.85rem;
  font-weight: 600;
  transition: background 0.15s;
}
.btn-primary:hover { background: var(--blue-dark); }
.mobile-menu-btn { display: none; background: none; border: none; font-size: 1.4rem; color: var(--gray-700); }

/* ===========================
   HERO SECTION
=========================== */
.hero {
  background: var(--purple-grad);
  padding: 60px 0 0;
  overflow: hidden;
  position: relative;
}
.hero-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: flex-end;
}
.hero-badge {
  display: inline-block;
  background: #dbeafe;
  color: var(--blue);
  font-size: 0.75rem;
  font-weight: 600;
  padding: 4px 12px;
  border-radius: 20px;
  margin-bottom: 16px;
  border: 1px solid #bfdbfe;
}
.hero h1 {
  font-size: 2.6rem;
  font-weight: 800;
  color: var(--navy);
  line-height: 1.2;
  margin-bottom: 16px;
}
.hero p {
  font-size: 1rem;
  color: var(--gray-700);
  margin-bottom: 28px;
  max-width: 420px;
}
.hero-buttons { display: flex; gap: 12px; flex-wrap: wrap; margin-bottom: 28px; }
.btn-hero-primary {
  background: var(--blue);
  color: var(--white);
  border: none;
  padding: 12px 22px;
  border-radius: 8px;
  font-size: 0.95rem;
  font-weight: 600;
  display: flex; align-items: center; gap: 6px;
  transition: background 0.15s;
}
.btn-hero-primary:hover { background: var(--blue-dark); color: #fff; text-decoration: none; }
.btn-hero-secondary {
  background: var(--white);
  color: var(--gray-900);
  border: 1.5px solid var(--gray-300);
  padding: 12px 22px;
  border-radius: 8px;
  font-size: 0.95rem;
  font-weight: 600;
  transition: border-color 0.15s;
}
.btn-hero-secondary:hover { border-color: var(--blue); color: var(--blue); text-decoration: none; }
.hero-trust {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.82rem;
  color: var(--gray-500);
}
.hero-avatars { display: flex; }
.hero-avatars span {
  width: 28px; height: 28px;
  border-radius: 50%;
  background: var(--gray-300);
  border: 2px solid #fff;
  display: flex; align-items: center; justify-content: center;
  font-size: 0.65rem;
  font-weight: 700;
  color: var(--gray-700);
  margin-right: -6px;
}
.hero-avatars span:nth-child(1) { background: #93c5fd; }
.hero-avatars span:nth-child(2) { background: #6ee7b7; }
.hero-avatars span:nth-child(3) { background: #fca5a5; }

/* Hero Dashboard mockup */
.hero-visual {
  display: flex;
  justify-content: flex-end;
  align-items: flex-end;
}
.dashboard-mockup {
  background: var(--white);
  border-radius: 12px 12px 0 0;
  box-shadow: 0 -4px 40px rgba(37,99,235,0.15);
  padding: 16px;
  width: 100%;
  max-width: 460px;
  border: 1px solid var(--gray-300);
  border-bottom: none;
}
.dash-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 14px; }
.dash-greeting { font-size: 0.85rem; font-weight: 600; color: var(--navy); }
.dash-greeting span { color: var(--yellow); }
.dash-icons { display: flex; gap: 8px; color: var(--gray-500); font-size: 0.8rem; }
.dash-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  margin-bottom: 14px;
}
.stat-card {
  background: var(--gray-100);
  border-radius: 8px;
  padding: 10px;
}
.stat-card .label { font-size: 0.65rem; color: var(--gray-500); margin-bottom: 4px; }
.stat-card .value { font-size: 1.1rem; font-weight: 700; color: var(--navy); }
.stat-card .change { font-size: 0.65rem; font-weight: 600; }
.stat-card .change.up { color: var(--green); }
.stat-card .change.down { color: #ef4444; }
.dash-bottom { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.pipeline-bars { }
.pipeline-bars .bar-row { display: flex; align-items: center; gap: 6px; margin-bottom: 5px; font-size: 0.65rem; color: var(--gray-500); }
.bar-row .bar { height: 10px; background: var(--blue); border-radius: 3px; }
.bar-row .bar-num { margin-left: auto; font-weight: 600; color: var(--navy); }
.recent-activity { }
.recent-activity .act-item { display: flex; align-items: flex-start; gap: 6px; margin-bottom: 6px; font-size: 0.65rem; color: var(--gray-500); }
.act-item .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--blue); margin-top: 3px; flex-shrink: 0; }

/* ===========================
   TRUST BAR
=========================== */
.trust-bar {
  background: var(--white);
  border-top: 1px solid var(--gray-200, #e5e7eb);
  border-bottom: 1px solid var(--gray-200, #e5e7eb);
  padding: 18px 0;
}
.trust-bar-inner {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}
.trust-item {
  display: flex;
  align-items: center;
  gap: 12px;
}
.trust-icon {
  width: 36px; height: 36px;
  background: var(--blue-light);
  border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  color: var(--blue);
  font-size: 1rem;
  flex-shrink: 0;
}
.trust-text strong { display: block; font-size: 0.85rem; font-weight: 700; color: var(--navy); }
.trust-text span { font-size: 0.75rem; color: var(--gray-500); }

/* ===========================
   CRM RANKINGS
=========================== */
.rankings { padding: 50px 0; }
.crm-cards {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 14px;
}
.crm-card {
  border: 1.5px solid var(--gray-300);
  border-radius: var(--radius);
  padding: 18px 14px;
  position: relative;
  background: var(--white);
  transition: box-shadow 0.2s, border-color 0.2s;
}
.crm-card:hover { box-shadow: var(--shadow-lg); border-color: var(--blue); }
.crm-card.top1 { border-color: #fbbf24; background: #fffbeb; }
.rank-badge {
  position: absolute;
  top: -1px; left: -1px;
  width: 26px; height: 26px;
  border-radius: 9px 0 9px 0;
  display: flex; align-items: center; justify-content: center;
  font-size: 0.75rem;
  font-weight: 800;
  color: #fff;
}
.rank-badge.r1 { background: #f59e0b; }
.rank-badge.r2 { background: #6b7280; }
.rank-badge.r3 { background: #cd7c2f; }
.rank-badge.r4 { background: var(--blue); }
.rank-badge.r5 { background: #8b5cf6; }
.crm-logo {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 14px 0 8px;
}
.crm-logo-icon {
  width: 32px; height: 32px;
  border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  font-weight: 800;
  font-size: 0.75rem;
  color: #fff;
}
.crm-logo-icon.jobber { background: #16a34a; }
.crm-logo-icon.housecall { background: var(--blue); }
.crm-logo-icon.servicetitan { background: #dc2626; }
.crm-logo-icon.monday { background: #f59e0b; }
.crm-logo-icon.zoho { background: #ef4444; }
.crm-logo-name { font-size: 0.95rem; font-weight: 700; color: var(--navy); }
.crm-best-for { font-size: 0.7rem; color: var(--gray-500); margin-bottom: 6px; }
.crm-best-for strong { color: var(--gray-700); }
.crm-stars { color: var(--yellow); font-size: 0.8rem; margin-bottom: 4px; }
.crm-stars span { color: var(--gray-500); font-size: 0.7rem; margin-left: 4px; }
.crm-features { margin: 10px 0; }
.crm-features li {
  font-size: 0.72rem;
  color: var(--gray-700);
  padding: 2px 0;
  display: flex;
  align-items: center;
  gap: 5px;
}
.crm-features li::before { content: "✓"; color: var(--blue); font-weight: 700; font-size: 0.75rem; }
.crm-price { font-size: 0.85rem; font-weight: 700; color: var(--navy); margin: 10px 0 4px; }
.crm-price span { font-size: 0.7rem; font-weight: 400; color: var(--gray-500); }
.btn-review {
  display: block;
  width: 100%;
  text-align: center;
  border: 1.5px solid var(--blue);
  color: var(--blue);
  padding: 8px;
  border-radius: 7px;
  font-size: 0.8rem;
  font-weight: 600;
  margin-top: 10px;
  transition: background 0.15s, color 0.15s;
}
.btn-review:hover { background: var(--blue); color: #fff; text-decoration: none; }

/* ===========================
   INDUSTRIES / TRADES
=========================== */
.trades { padding: 40px 0; background: var(--gray-100); }
.trade-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}
.trade-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 20px;
  border: 1.5px solid var(--gray-300);
  display: flex;
  align-items: flex-start;
  gap: 14px;
  transition: box-shadow 0.2s, border-color 0.2s;
}
.trade-card:hover { box-shadow: var(--shadow); border-color: var(--blue); }
.trade-icon {
  width: 40px; height: 40px;
  border-radius: 10px;
  background: var(--blue-light);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.2rem;
  flex-shrink: 0;
}
.trade-body h3 { font-size: 0.95rem; font-weight: 700; color: var(--navy); margin-bottom: 4px; }
.trade-body p { font-size: 0.78rem; color: var(--gray-500); }
.trade-arrow {
  margin-left: auto;
  width: 28px; height: 28px;
  border-radius: 50%;
  border: 1.5px solid var(--gray-300);
  display: flex; align-items: center; justify-content: center;
  color: var(--gray-500);
  font-size: 0.75rem;
  flex-shrink: 0;
  align-self: center;
  transition: background 0.15s, border-color 0.15s;
}
.trade-card:hover .trade-arrow { background: var(--blue); border-color: var(--blue); color: #fff; }

/* ===========================
   COMPARISON TABLE
=========================== */
.comparison { padding: 50px 0; }
.compare-table {
  width: 100%;
  border-collapse: collapse;
  border: 1.5px solid var(--gray-300);
  border-radius: var(--radius);
  overflow: hidden;
}
.compare-table th, .compare-table td {
  padding: 12px 16px;
  text-align: center;
  border-bottom: 1px solid var(--gray-300);
  font-size: 0.85rem;
}
.compare-table th { background: var(--gray-100); font-weight: 700; color: var(--navy); }
.compare-table th:first-child, .compare-table td:first-child { text-align: left; font-weight: 600; color: var(--gray-700); }
.compare-table tr:last-child td { border-bottom: none; }
.compare-table tbody tr:hover { background: var(--blue-light); }
.check { color: var(--blue); font-size: 1rem; }
.dash-cell { color: var(--gray-300); font-size: 1rem; }
.col-logo { display: flex; align-items: center; gap: 8px; font-weight: 700; color: var(--navy); font-size: 0.88rem; }
.col-dot { width: 10px; height: 10px; border-radius: 50%; }

/* ===========================
   GUIDES
=========================== */
.guides { padding: 50px 0; background: var(--gray-100); }
.guides-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 16px;
}
.guide-card {
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  border: 1.5px solid var(--gray-300);
  transition: box-shadow 0.2s;
}
.guide-card:hover { box-shadow: var(--shadow-lg); }
.guide-img {
  height: 110px;
  background: var(--gray-200, #e5e7eb);
  position: relative;
  overflow: hidden;
}
.guide-img-inner {
  width: 100%; height: 100%;
  object-fit: cover;
}
.guide-img-placeholder {
  width: 100%; height: 100%;
  display: flex; align-items: center; justify-content: center;
  font-size: 2rem;
}
.guide-badge {
  position: absolute;
  top: 8px; left: 8px;
  background: var(--blue);
  color: #fff;
  font-size: 0.6rem;
  font-weight: 700;
  padding: 2px 7px;
  border-radius: 4px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.guide-content { padding: 14px; }
.guide-content h3 { font-size: 0.82rem; font-weight: 700; color: var(--navy); margin-bottom: 6px; line-height: 1.4; }
.guide-content p { font-size: 0.72rem; color: var(--gray-500); margin-bottom: 10px; }
.guide-link { font-size: 0.78rem; color: var(--blue); font-weight: 600; }
.guide-link:hover { text-decoration: underline; }

/* ===========================
   TESTIMONIALS
=========================== */
.testimonials { padding: 50px 0; }
.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.testimonial-card {
  background: var(--white);
  border: 1.5px solid var(--gray-300);
  border-radius: var(--radius);
  padding: 24px;
}
.quote-icon { font-size: 2rem; color: var(--blue); opacity: 0.3; line-height: 1; margin-bottom: 10px; }
.testimonial-card p { font-size: 0.9rem; color: var(--gray-700); line-height: 1.7; margin-bottom: 18px; }
.testimonial-author { display: flex; align-items: center; gap: 12px; }
.author-avatar {
  width: 40px; height: 40px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-weight: 700;
  font-size: 0.9rem;
  color: #fff;
  flex-shrink: 0;
}
.avatar-1 { background: #3b82f6; }
.avatar-2 { background: #8b5cf6; }
.avatar-3 { background: #10b981; }
.author-info strong { display: block; font-size: 0.85rem; font-weight: 700; color: var(--navy); }
.author-info span { font-size: 0.75rem; color: var(--gray-500); }

/* ===========================
   CTA BANNER
=========================== */
.cta-banner {
  background: linear-gradient(135deg, #1e40af 0%, #3b82f6 100%);
  padding: 48px 0;
  color: #fff;
}
.cta-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
  flex-wrap: wrap;
}
.cta-text h2 { font-size: 1.6rem; font-weight: 800; margin-bottom: 8px; }
.cta-text p { font-size: 0.9rem; opacity: 0.85; max-width: 400px; }
.cta-form { display: flex; gap: 10px; flex-wrap: wrap; }
.cta-form input {
  padding: 12px 18px;
  border-radius: 8px;
  border: none;
  font-size: 0.9rem;
  width: 260px;
  outline: none;
}
.btn-subscribe {
  background: var(--yellow);
  color: var(--navy);
  border: none;
  padding: 12px 22px;
  border-radius: 8px;
  font-size: 0.9rem;
  font-weight: 700;
  white-space: nowrap;
  transition: background 0.15s;
}
.btn-subscribe:hover { background: #d97706; }

/* ===========================
   FOOTER
=========================== */
.site-footer {
  background: var(--navy);
  color: #94a3b8;
  padding: 50px 0 20px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr 1fr;
  gap: 32px;
  margin-bottom: 36px;
}
.footer-brand .navbar-logo { color: #fff; margin-bottom: 12px; }
.footer-brand p { font-size: 0.8rem; line-height: 1.7; }
.footer-social { display: flex; gap: 10px; margin-top: 16px; }
.footer-social a {
  width: 32px; height: 32px;
  background: #1e293b;
  border-radius: 6px;
  display: flex; align-items: center; justify-content: center;
  color: #94a3b8;
  font-size: 0.8rem;
  transition: background 0.15s;
}
.footer-social a:hover { background: var(--blue); color: #fff; text-decoration: none; }
.footer-col h4 { color: #fff; font-size: 0.85rem; font-weight: 700; margin-bottom: 14px; }
.footer-col ul li { margin-bottom: 8px; }
.footer-col ul li a { font-size: 0.8rem; color: #94a3b8; transition: color 0.15s; }
.footer-col ul li a:hover { color: #fff; text-decoration: none; }
.footer-bottom {
  border-top: 1px solid #1e293b;
  padding-top: 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.78rem;
}
.footer-bottom-links { display: flex; gap: 16px; }
.footer-bottom-links a { color: #94a3b8; }
.footer-bottom-links a:hover { color: #fff; text-decoration: none; }

/* ===========================
   RESPONSIVE
=========================== */
@media (max-width: 1024px) {
  .crm-cards { grid-template-columns: repeat(3, 1fr); }
  .guides-grid { grid-template-columns: repeat(3, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 768px) {
  .navbar-nav, .navbar-search { display: none; }
  .mobile-menu-btn { display: block; }
  .hero-inner { grid-template-columns: 1fr; }
  .hero-visual { display: none; }
  .hero h1 { font-size: 1.8rem; }
  .trust-bar-inner { grid-template-columns: repeat(2, 1fr); }
  .crm-cards { grid-template-columns: repeat(2, 1fr); }
  .trade-grid { grid-template-columns: repeat(2, 1fr); }
  .guides-grid { grid-template-columns: repeat(2, 1fr); }
  .testimonials-grid { grid-template-columns: 1fr; }
  .cta-inner { flex-direction: column; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; gap: 10px; text-align: center; }
  .compare-table { font-size: 0.75rem; }
  .compare-table th, .compare-table td { padding: 8px; }
}
@media (max-width: 480px) {
  .crm-cards { grid-template-columns: 1fr; }
  .trade-grid { grid-template-columns: 1fr; }
  .guides-grid { grid-template-columns: 1fr; }
  .trust-bar-inner { grid-template-columns: 1fr; }
  .cta-form { flex-direction: column; }
  .cta-form input { width: 100%; }
}
