/*
 * Tech Pros – Homepage Stylesheet
 * File: homepage.css
 * Enqueued via functions.php (see functions-addition.php snippet)
 * Place at: wp-content/themes/techpros/assets/css/homepage.css
 */

/* ── Reset ──────────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Poppins', sans-serif;
  font-size: 16px;
  line-height: 1.65;
  color: #2D2E32;
  background: #fff;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }

/* ── Theme Palette ───────────────────────────────────────────────── */
:root {
  --tp-blood-red: #B22222;
  --tp-nav-bg:    #ffffff;
  --tp-hero-bg:   #dce6f0;
  --tp-blue:      #2872fa;
  --tp-blue-d:    #1559ed;
  --tp-blue-mid:  #3A4F66;
  --tp-navy:      #192a3d;
  --tp-navy-2:    #0f1e2e;
  --tp-border:    #e1e8ed;
  --tp-bg-light:  #f2f5f7;
  --tp-bg-pale:   #FAFBFC;
  --tp-white:     #ffffff;
  --tp-text:      #2D2E32;
  --tp-link-hover:#5038E6;
  --tp-gold:      #F5A623;
  --tp-blue-tint: #EEF4FF;
  --tp-blue-tint2:#ddeaff;
  --tp-radius:    10px;
  --tp-radius-lg: 16px;
  --tp-max:       1180px;
}

/* ── Utility ────────────────────────────────────────────────────── */
.container { max-width: var(--tp-max); margin: 0 auto; padding: 0 24px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; }

/* ── Announcement Bar ───────────────────────────────────────────── */
.announce-bar {
  background: var(--tp-blood-red);
  color: #fff;
  text-align: center;
  font-size: 13px;
  font-weight: 600;
  padding: 8px 24px;
  letter-spacing: 0.01em;
}
.announce-bar a { color: #fff; text-decoration: underline; text-underline-offset: 2px; }

/* ── Buttons ─────────────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  border: none;
  cursor: pointer;
  font-family: 'Poppins', sans-serif;
  font-weight: 600;
  border-radius: var(--tp-radius);
  transition: background 0.18s, transform 0.12s;
  text-decoration: none;
  line-height: 1;
}
.btn:active { transform: scale(0.97); }
.btn-primary { background: var(--tp-blue); color: #fff; font-size: 14px; padding: 10px 20px; }
.btn-primary:hover { background: var(--tp-blood-red); }
.btn-outline { background: transparent; color: var(--tp-navy); font-size: 14px; padding: 10px 18px; border: 1.5px solid rgba(25,42,61,0.35); }
.btn-outline:hover { border-color: var(--tp-navy); color: var(--tp-navy); }
.btn-lg { font-size: 15px; padding: 13px 26px; border-radius: 12px; }
.btn-white { background: #fff; color: var(--tp-blue-d); font-size: 15px; font-weight: 700; padding: 14px 28px; border-radius: 10px; white-space: nowrap; transition: background 0.18s, color 0.18s; }
.btn-white:hover { background: var(--tp-blue-tint2); color: var(--tp-blue-d); }

/* ── Section shared ──────────────────────────────────────────────── */
.section-eyebrow { font-size: 11px; font-weight: 700; color: var(--tp-blue); text-transform: uppercase; letter-spacing: 0.1em; margin-bottom: 10px; }
.section-title { font-size: clamp(22px, 2.8vw, 32px); font-weight: 700; color: var(--tp-navy); letter-spacing: -0.4px; line-height: 1.25; margin-bottom: 40px; max-width: 580px; }

/* ── Hero ───────────────────────────────────────────────────────── */
.hero { background: var(--tp-hero-bg); padding: 64px 0 56px; }
.hero-grid { display: grid; grid-template-columns: 1fr 400px; gap: 48px; align-items: center; }
.hero-eyebrow { display: inline-flex; align-items: center; gap: 8px; background: rgba(40,114,250,0.12); border: 1px solid rgba(40,114,250,0.3); border-radius: 999px; padding: 5px 14px; margin-bottom: 20px; }
.eyebrow-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--tp-blue); flex-shrink: 0; }
.hero-eyebrow span { font-size: 13px; font-weight: 600; color: var(--tp-navy); letter-spacing: 0.05em; text-transform: uppercase; }
.hero-h1 { font-size: clamp(28px, 4vw, 44px); font-weight: 700; color: var(--tp-navy); line-height: 1.2; letter-spacing: -0.8px; margin-bottom: 18px; }
.hero-h1 .accent { color: var(--tp-blue); }
.hero-sub { font-size: 16px; color: var(--tp-blue-mid); line-height: 1.7; margin-bottom: 32px; max-width: 500px; }
.hero-sub strong { color: var(--tp-navy); }
.hero-btns { display: flex; gap: 12px; flex-wrap: wrap; }
.hero-badge { display: inline-flex; align-items: center; gap: 8px; margin-top: 28px; background: rgba(255,255,255,0.6); border: 1px solid rgba(40,114,250,0.2); border-radius: 8px; padding: 10px 14px; font-size: 12px; color: var(--tp-blue-mid); }
.hero-badge strong { color: var(--tp-navy); }

/* Device Selector */
.device-card { background: rgba(255,255,255,0.75); border: 1px solid rgba(40,114,250,0.18); border-radius: var(--tp-radius-lg); padding: 24px; }
.device-card-label { font-size: 11px; font-weight: 600; color: var(--tp-blue-mid); text-transform: uppercase; letter-spacing: 0.08em; margin-bottom: 16px; }
.device-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-bottom: 14px; }
.device-btn { background: var(--tp-bg-light); border: 1px solid var(--tp-border); border-radius: 10px; padding: 14px 8px 10px; text-align: center; cursor: pointer; transition: background 0.15s, border-color 0.15s; color: var(--tp-blue-mid); font-size: 11px; font-weight: 600; font-family: 'Poppins', sans-serif; }
.device-btn:hover, .device-btn.active { background: var(--tp-blue-tint); border-color: var(--tp-blue); color: var(--tp-blue-d); }
.device-icon { width: 32px; height: 32px; margin: 0 auto 8px; display: flex; align-items: center; justify-content: center; }
.device-icon svg { width: 22px; height: 22px; fill: currentColor; }
.device-quote-btn { width: 100%; background: var(--tp-blue); color: #fff; font-size: 15px; font-weight: 700; padding: 14px; border-radius: 10px; border: none; cursor: pointer; font-family: 'Poppins', sans-serif; transition: background 0.18s; letter-spacing: -0.2px; }
.device-quote-btn:hover { background: var(--tp-blood-red); }

/* ── Trust Bar ──────────────────────────────────────────────────── */
.trust-bar { background: var(--tp-navy-2); border-top: 1px solid rgba(255,255,255,0.06); border-bottom: 1px solid rgba(255,255,255,0.06); padding: 20px 0; }
.trust-bar-inner { display: flex; justify-content: space-around; align-items: center; gap: 12px; flex-wrap: wrap; }
.trust-item { text-align: center; padding: 4px 12px; }
.trust-num { font-size: 21px; font-weight: 700; color: #fff; line-height: 1; letter-spacing: -0.4px; }
.trust-num .accent { color: var(--tp-blue); }
.trust-label { font-size: 11px; color: rgba(255,255,255,0.75); margin-top: 4px; }
.trust-divider { width: 1px; height: 36px; background: rgba(255,255,255,0.08); }

/* ── Differentiators ────────────────────────────────────────────── */
.diff-section { background: var(--tp-white); padding: 72px 0; }
.diff-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.diff-card { background: var(--tp-white); border: 1px solid var(--tp-border); border-top: 3px solid var(--tp-blue); border-radius: var(--tp-radius-lg); padding: 28px; transition: box-shadow 0.2s; }
.diff-card:hover { box-shadow: 0 4px 20px rgba(40,114,250,0.1); }
.diff-tag { display: inline-block; background: var(--tp-blue-tint); color: var(--tp-blue-d); font-size: 10px; font-weight: 700; padding: 3px 10px; border-radius: 999px; text-transform: uppercase; letter-spacing: 0.06em; margin-bottom: 14px; }
.diff-tag-purple { background: #f0eeff; color: #5038E6; }
.diff-card h3 { font-size: 17px; font-weight: 700; color: var(--tp-navy); margin-bottom: 10px; line-height: 1.35; letter-spacing: -0.2px; }
.diff-card p { font-size: 14px; color: var(--tp-blue-mid); line-height: 1.7; }
.diff-card p strong { color: var(--tp-navy); }

/* ── Services ───────────────────────────────────────────────────── */
.services-strip { background: var(--tp-bg-light); border-top: 1px solid var(--tp-border); border-bottom: 1px solid var(--tp-border); padding: 60px 0; }
.services-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-top: 32px; }
.service-card { background: var(--tp-white); border: 1px solid var(--tp-border); border-radius: var(--tp-radius); padding: 24px 18px; text-align: center; transition: border-color 0.18s, transform 0.18s; cursor: pointer; display: block; color: inherit; }
.service-card:hover { border-color: var(--tp-blue); transform: translateY(-2px); }
.service-icon { width: 48px; height: 48px; background: var(--tp-blue-tint); border-radius: 12px; display: flex; align-items: center; justify-content: center; margin: 0 auto 14px; }
.service-icon svg { width: 24px; height: 24px; fill: var(--tp-blue); }
.service-card h3 { font-size: 14px; font-weight: 700; color: var(--tp-navy); margin-bottom: 6px; }
.service-card p { font-size: 12px; color: var(--tp-blue-mid); line-height: 1.55; }
.service-link { font-size: 12px; font-weight: 600; color: var(--tp-blue); margin-top: 12px; display: block; }

/* ── Reviews ────────────────────────────────────────────────────── */
.reviews-section { background: var(--tp-navy); padding: 72px 0; }
.reviews-header { display: flex; align-items: flex-end; justify-content: space-between; margin-bottom: 36px; flex-wrap: wrap; gap: 16px; }
.reviews-header .section-eyebrow { color: #6fa8ff; }
.reviews-header .section-title { color: #fff; margin-bottom: 0; }
.reviews-score { display: flex; align-items: center; gap: 14px; background: rgba(255,255,255,0.06); border: 1px solid rgba(255,255,255,0.1); border-radius: 12px; padding: 14px 20px; flex-shrink: 0; }
.reviews-score-num { font-size: 36px; font-weight: 700; color: #fff; line-height: 1; }
.reviews-score-stars { color: var(--tp-gold); font-size: 18px; letter-spacing: 2px; }
.reviews-score-sub { font-size: 12px; color: rgba(255,255,255,0.4); margin-top: 4px; }
.reviews-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.review-card { background: rgba(255,255,255,0.05); border: 1px solid rgba(255,255,255,0.09); border-radius: var(--tp-radius-lg); padding: 22px; transition: background 0.18s; }
.review-card:hover { background: rgba(255,255,255,0.08); }
.review-card-header { display: flex; align-items: center; gap: 12px; margin-bottom: 14px; }
.reviewer-avatar { width: 40px; height: 40px; border-radius: 50%; background: var(--tp-blue); color: #fff; font-size: 16px; font-weight: 700; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.reviewer-name { font-size: 13px; font-weight: 600; color: #fff; line-height: 1.2; }
.review-source { font-size: 11px; color: rgba(255,255,255,0.32); margin-top: 2px; }
.review-stars { color: var(--tp-gold); font-size: 14px; letter-spacing: 1px; margin-bottom: 10px; }
.review-text { font-size: 13px; color: rgba(255,255,255,0.68); line-height: 1.65; font-style: italic; }
.reviews-cta { text-align: center; margin-top: 36px; }
.reviews-cta a { font-size: 13px; color: #6fa8ff; font-weight: 600; border-bottom: 1px solid rgba(111,168,255,0.4); padding-bottom: 2px; transition: border-color 0.18s; }
.reviews-cta a:hover { border-color: #6fa8ff; }

/* ── CTA Strip ──────────────────────────────────────────────────── */
.cta-strip { background: var(--tp-blue); padding: 44px 0; }
.cta-strip-inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.cta-strip-text h2 { font-size: clamp(20px, 2.5vw, 28px); font-weight: 700; color: #fff; letter-spacing: -0.4px; margin-bottom: 4px; }
.cta-strip-text p { font-size: 14px; color: rgba(255,255,255,0.75); }

/* ── Responsive ─────────────────────────────────────────────────── */
@media (max-width: 980px) {
  .hero-grid { grid-template-columns: 1fr; }
  .device-card { max-width: 440px; }
  .diff-grid { grid-template-columns: 1fr; }
  .services-grid { grid-template-columns: repeat(2, 1fr); }
  .reviews-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 600px) {
  .hero { padding: 40px 0 36px; }
  .services-grid { grid-template-columns: repeat(2, 1fr); }
  .reviews-grid { grid-template-columns: 1fr; }
  .trust-divider { display: none; }
  .cta-strip-inner { flex-direction: column; text-align: center; }
  .reviews-header { flex-direction: column; align-items: flex-start; }
  .hero-btns .btn { width: 100%; justify-content: center; }
}
