/*
Theme Name: Tech Pros Custom
Theme URI: https://thetechpros.io
Author: Tech Pros
Author URI: https://thetechpros.io
Description: Fast, lightweight, custom WordPress theme for Tech Pros Computer & Phone Repair. 100% native Gutenberg block editor compatible with zero page-builder dependencies.
Version: 1.1.0
Requires at least: 6.0
Tested up to: 6.7
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: techpros
*/

/* ── Reset & Base ─────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Poppins', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
  font-size: 16px;
  line-height: 1.65;
  color: #2D2E32;
  background: #ffffff;
  overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }

/* ── Theme Design Tokens ────────────────────────────────────────── */
: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;
  --tp-shadow-sm:  0 2px 8px rgba(25, 42, 61, 0.06);
  --tp-shadow-md:  0 4px 20px rgba(40, 114, 250, 0.10);
  --tp-shadow-lg:  0 8px 30px rgba(25, 42, 61, 0.12);
}

/* ── Utilities ──────────────────────────────────────────────────── */
.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; }
.text-center { text-align: center; }
.accent-blue { color: var(--tp-blue); }
.accent-red { color: var(--tp-blood-red); }

/* ── 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; }

/* ── Navigation ─────────────────────────────────────────────────── */
.site-nav {
  background: var(--tp-nav-bg);
  border-bottom: 1px solid var(--tp-border);
  position: sticky;
  top: 0;
  z-index: 1000;
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
  gap: 20px;
}
.nav-logo {
  font-size: 18px;
  font-weight: 700;
  color: var(--tp-navy);
  letter-spacing: -0.4px;
  white-space: nowrap;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  height: 68px;
  max-width: 200px;
}
.nav-logo a,
.nav-logo .custom-logo-link {
  display: flex;
  align-items: center;
  max-height: 50px;
}
.nav-logo img,
.nav-logo .custom-logo,
.custom-logo-link img {
  height: auto !important;
  max-height: 50px !important;
  width: auto !important;
  max-width: 200px !important;
  display: block;
  object-fit: contain;
}
.nav-links {
  display: flex;
  align-items: center;
  gap: 2px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.nav-links a {
  font-size: 13px;
  font-weight: 500;
  color: var(--tp-navy);
  padding: 8px 11px;
  border-radius: 6px;
  transition: color 0.15s, background 0.15s;
  display: block;
}
.nav-links a:hover,
.nav-links .current-menu-item > a,
.nav-links .current_page_item > a {
  color: var(--tp-blue);
  background: var(--tp-bg-light);
}

/* Nav Dropdown support */
.nav-links li { position: relative; }
.nav-links .sub-menu {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  background: #fff;
  box-shadow: var(--tp-shadow-lg);
  border: 1px solid var(--tp-border);
  border-radius: var(--tp-radius);
  padding: 8px 0;
  min-width: 200px;
  z-index: 1001;
  list-style: none;
}
.nav-links li:hover > .sub-menu { display: block; }
.nav-links .sub-menu a {
  padding: 8px 16px;
  font-size: 13px;
  border-radius: 0;
}
.nav-links .sub-menu a:hover {
  background: var(--tp-blue-tint);
  color: var(--tp-blue-d);
}

.nav-right {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-shrink: 0;
}
.nav-phone {
  font-size: 13px;
  font-weight: 600;
  color: var(--tp-navy);
  white-space: nowrap;
}
.nav-phone:hover { color: var(--tp-blue); }

/* Mobile Menu Toggle Button */
.nav-toggle {
  display: none;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 8px;
  color: var(--tp-navy);
}
.nav-toggle svg { width: 24px; height: 24px; display: block; fill: currentColor; }

/* Mobile Navigation Drawer */
.mobile-nav-drawer {
  display: none;
  position: fixed;
  top: 104px; /* below bar + nav */
  left: 0;
  right: 0;
  bottom: 0;
  background: #ffffff;
  padding: 24px;
  overflow-y: auto;
  z-index: 999;
  border-top: 1px solid var(--tp-border);
}
.mobile-nav-drawer.open { display: block; }
.mobile-nav-links { list-style: none; padding: 0; margin: 0 0 24px 0; }
.mobile-nav-links li { border-bottom: 1px solid var(--tp-border); }
.mobile-nav-links a {
  display: block;
  padding: 14px 4px;
  font-size: 15px;
  font-weight: 600;
  color: var(--tp-navy);
}
.mobile-nav-links a:hover { color: var(--tp-blue); }

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

/* ── Hero (Homepage) ────────────────────────────────────────────── */
.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-blood-red); }
.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.65);
  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 Widget */
.device-card {
  background: rgba(255,255,255,0.85);
  border: 1px solid rgba(40,114,250,0.22);
  border-radius: var(--tp-radius-lg);
  padding: 24px;
  box-shadow: var(--tp-shadow-md);
}
.device-card-label {
  font-size: 11px;
  font-weight: 700;
  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 0.15s;
  color: var(--tp-blue-mid);
  font-size: 11px;
  font-weight: 600;
  font-family: 'Poppins', sans-serif;
  width: 100%;
}
.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;
  text-align: center;
  display: block;
}
.device-quote-btn:hover { background: var(--tp-blood-red); color: #fff; }

/* ── 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;
}
.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;
}
.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, transform 0.15s;
}
.diff-card:hover {
  box-shadow: var(--tp-shadow-md);
  transform: translateY(-2px);
}
.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: 64px 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, box-shadow 0.18s;
  cursor: pointer;
  display: block;
  color: inherit;
}
.service-card:hover {
  border-color: var(--tp-blue);
  transform: translateY(-3px);
  box-shadow: var(--tp-shadow-sm);
}
.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: 15px;
  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.5); 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.82); }

/* ── Footer ─────────────────────────────────────────────────────── */
.site-footer {
  background: var(--tp-navy);
  border-top: 1px solid rgba(255,255,255,0.07);
  padding: 56px 0 28px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 40px;
  border-bottom: 1px solid rgba(255,255,255,0.07);
}
.footer-logo { font-size: 18px; font-weight: 700; color: #fff; margin-bottom: 12px; }
.footer-logo img { height: 32px; width: auto; display: block; margin-bottom: 12px; opacity: 0.95; }
.footer-tagline { font-size: 13px; color: rgba(255,255,255,0.5); line-height: 1.65; margin-bottom: 16px; max-width: 280px; }
.footer-contact { font-size: 13px; color: rgba(255,255,255,0.55); line-height: 2.1; }
.footer-contact a { color: #6fa8ff; }
.footer-contact a:hover { text-decoration: underline; }
.footer-col h4 { font-size: 11px; font-weight: 700; color: rgba(255,255,255,0.45); text-transform: uppercase; letter-spacing: 0.08em; margin-bottom: 14px; }
.footer-col ul { list-style: none; margin: 0; padding: 0; }
.footer-col ul li { margin-bottom: 9px; }
.footer-col ul li a { font-size: 13px; color: rgba(255,255,255,0.55); transition: color 0.15s; }
.footer-col ul li a:hover { color: #6fa8ff; }
.footer-hours { font-size: 13px; color: rgba(255,255,255,0.55); line-height: 1.9; }
.footer-hours strong { color: rgba(255,255,255,0.85); }
.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 24px;
  flex-wrap: wrap;
  gap: 12px;
}
.footer-bottom p { font-size: 12px; color: rgba(255,255,255,0.35); }
.footer-bottom a { color: rgba(255,255,255,0.45); transition: color 0.15s; }
.footer-bottom a:hover { color: #6fa8ff; }

/* ── Interior Page Styles & Hero Banner ─────────────────────────── */
.page-hero {
  background: var(--tp-hero-bg);
  padding: 48px 0;
  border-bottom: 1px solid var(--tp-border);
}
.page-hero-title {
  font-size: clamp(26px, 3.5vw, 38px);
  font-weight: 700;
  color: var(--tp-navy);
  letter-spacing: -0.6px;
  margin-bottom: 8px;
}
.page-hero-subtitle {
  font-size: 15px;
  color: var(--tp-blue-mid);
  max-width: 650px;
}
.page-breadcrumb {
  font-size: 12px;
  color: var(--tp-blue-mid);
  margin-bottom: 12px;
}
.page-breadcrumb a { color: var(--tp-blue); }
.page-breadcrumb a:hover { text-decoration: underline; }

.page-content-wrapper {
  padding: 56px 0 80px;
}

/* ── Native Gutenberg Content Styling ───────────────────────────── */
.entry-content {
  font-size: 16px;
  line-height: 1.75;
  color: var(--tp-text);
}
.entry-content h1, .entry-content h2, .entry-content h3, .entry-content h4, .entry-content h5, .entry-content h6 {
  color: var(--tp-navy);
  font-weight: 700;
  letter-spacing: -0.3px;
  margin-top: 1.8em;
  margin-bottom: 0.7em;
  line-height: 1.3;
}
.entry-content h1 { font-size: 32px; }
.entry-content h2 { font-size: 26px; border-bottom: 2px solid var(--tp-bg-light); padding-bottom: 8px; }
.entry-content h3 { font-size: 20px; }
.entry-content h4 { font-size: 17px; }
.entry-content p { margin-bottom: 1.4em; }
.entry-content a { color: var(--tp-blue); text-decoration: underline; text-underline-offset: 2px; }
.entry-content a:hover { color: var(--tp-blue-d); }
.entry-content strong { color: var(--tp-navy); }
.entry-content ul, .entry-content ol { margin: 0 0 1.5em 24px; }
.entry-content li { margin-bottom: 6px; }

/* Native Accordion / Details Block Styling (FAQ) */
details.wp-block-details,
.faq-item {
  background: var(--tp-white);
  border: 1px solid var(--tp-border);
  border-radius: var(--tp-radius);
  margin-bottom: 12px;
  overflow: hidden;
  transition: border-color 0.18s, box-shadow 0.18s;
}
details.wp-block-details[open],
.faq-item[open] {
  border-color: var(--tp-blue);
  box-shadow: var(--tp-shadow-sm);
}
summary.wp-block-details__summary,
.faq-summary {
  font-weight: 600;
  font-size: 15px;
  color: var(--tp-navy);
  padding: 16px 20px;
  cursor: pointer;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: var(--tp-bg-pale);
  transition: background 0.15s;
}
summary.wp-block-details__summary::-webkit-details-marker { display: none; }
summary.wp-block-details__summary::after {
  content: "▾";
  font-size: 18px;
  color: var(--tp-blue);
  transition: transform 0.2s;
  margin-left: 12px;
}
details.wp-block-details[open] summary.wp-block-details__summary::after {
  transform: rotate(180deg);
}
details.wp-block-details > :not(summary) {
  padding: 18px 20px;
  border-top: 1px solid var(--tp-border);
  background: #fff;
  font-size: 14.5px;
  line-height: 1.7;
}

/* Native Gutenberg Columns */
.wp-block-columns {
  display: flex;
  gap: 24px;
  margin-bottom: 32px;
}
@media (max-width: 768px) {
  .wp-block-columns { flex-direction: column; }
}

/* Native Gutenberg Buttons */
.wp-block-button__link {
  font-family: 'Poppins', sans-serif !important;
  font-weight: 600 !important;
  border-radius: var(--tp-radius) !important;
  padding: 12px 24px !important;
  text-decoration: none !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  line-height: 1 !important;
  transition: background 0.18s, transform 0.12s !important;
}
.wp-block-button:not(.is-style-outline) .wp-block-button__link {
  background-color: var(--tp-blue) !important;
  color: #fff !important;
}
.wp-block-button:not(.is-style-outline) .wp-block-button__link:hover {
  background-color: var(--tp-blood-red) !important;
}
.wp-block-button.is-style-outline .wp-block-button__link {
  background-color: transparent !important;
  border: 1.5px solid var(--tp-navy) !important;
  color: var(--tp-navy) !important;
}

/* Responsive Embeds & Iframes */
iframe { max-width: 100%; }
.responsive-iframe-wrap {
  position: relative;
  overflow: hidden;
  width: 100%;
  border-radius: var(--tp-radius);
  border: 1px solid var(--tp-border);
  background: #fff;
}

/* Service Detail Feature Cards */
.repair-service-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 20px;
  margin: 32px 0;
}
.repair-service-card {
  background: #ffffff;
  border: 1px solid var(--tp-border);
  border-top: 3px solid var(--tp-blue);
  border-radius: var(--tp-radius);
  padding: 22px;
  box-shadow: var(--tp-shadow-sm);
}
.repair-service-card h4 {
  font-size: 16px;
  font-weight: 700;
  color: var(--tp-navy);
  margin-bottom: 8px;
}
.repair-service-card p {
  font-size: 13.5px;
  color: var(--tp-blue-mid);
  line-height: 1.6;
  margin: 0;
}

/* ── Responsive Breakpoints ──────────────────────────────────────── */
@media (max-width: 980px) {
  .hero-grid { grid-template-columns: 1fr; }
  .device-card { max-width: 440px; margin: 0 auto; }
  .diff-grid { grid-template-columns: 1fr; }
  .services-grid { grid-template-columns: repeat(2, 1fr); }
  .reviews-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .nav-links { display: none; }
  .nav-toggle { display: block; }
}
@media (max-width: 600px) {
  .hero { padding: 40px 0 36px; }
  .services-grid { grid-template-columns: 1fr; }
  .reviews-grid { grid-template-columns: 1fr; }
  .footer-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; }
  .nav-right .nav-phone { display: none; }
}

/* ══════════════════════════════════════════════════════════════════
   Block-Editor Homepage (migrated-pages-content/home.html)
   Each top-level section is a Group block with the class "tp-section"
   plus the original section class (hero, trust-bar, diff-section, ...).
   These rules adapt the original design to native block markup.
   ══════════════════════════════════════════════════════════════════ */

/* Icons — add one of these classes (Block > Advanced > Additional CSS class)
   to a device button or service card: icon-iphone, icon-samsung,
   icon-android, icon-computer, icon-console, icon-tablet */
.icon-iphone, .icon-phone { --tp-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M17 1H7C5.9 1 5 1.9 5 3v18c0 1.1.9 2 2 2h10c1.1 0 2-.9 2-2V3c0-1.1-.9-2-2-2zm-5 20c-.55 0-1-.45-1-1s.45-1 1-1 1 .45 1 1-.45 1-1 1zm5-4H7V4h10v13z'/%3E%3C/svg%3E"); }
.icon-samsung { --tp-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M17 1.01L7 1c-1.1 0-2 .9-2 2v18c0 1.1.9 2 2 2h10c1.1 0 2-.9 2-2V3c0-1.1-.9-1.99-2-1.99zM17 19H7V5h10v14z'/%3E%3C/svg%3E"); }
.icon-android { --tp-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M6 18c0 .55.45 1 1 1h1v3.5c0 .83.67 1.5 1.5 1.5s1.5-.67 1.5-1.5V19h2v3.5c0 .83.67 1.5 1.5 1.5s1.5-.67 1.5-1.5V19h1c.55 0 1-.45 1-1V8H6v10zM3.5 8C2.67 8 2 8.67 2 9.5v7c0 .83.67 1.5 1.5 1.5S5 17.33 5 16.5v-7C5 8.67 4.33 8 3.5 8zm17 0c-.83 0-1.5.67-1.5 1.5v7c0 .83.67 1.5 1.5 1.5s1.5-.67 1.5-1.5v-7c0-.83-.67-1.5-1.5-1.5zm-4.97-5.84l1.3-1.3c.2-.2.2-.51 0-.71-.2-.2-.51-.2-.71 0l-1.48 1.48A5.84 5.84 0 0012 1.5c-.69 0-1.35.13-1.96.36L8.57.39c-.2-.2-.51-.2-.71 0-.2.2-.2.51 0 .71l1.31 1.3C7.19 3.37 6 5.3 6 7.5h12c0-2.2-1.19-4.13-2.47-5.34z'/%3E%3C/svg%3E"); }
.icon-computer { --tp-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M20 18c1.1 0 2-.9 2-2V6c0-1.1-.9-2-2-2H4c-1.1 0-2 .9-2 2v10c0 1.1.9 2 2 2H0v2h24v-2h-4zM4 6h16v10H4V6z'/%3E%3C/svg%3E"); }
.icon-console { --tp-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M21 6H3c-1.1 0-2 .9-2 2v8c0 1.1.9 2 2 2h18c1.1 0 2-.9 2-2V8c0-1.1-.9-2-2-2zm-10 7H8v3H6v-3H3V11h3V8h2v3h3v2zm4.5 2c-.83 0-1.5-.67-1.5-1.5S14.67 12 15.5 12s1.5.67 1.5 1.5S16.33 15 15.5 15zm3-3c-.83 0-1.5-.67-1.5-1.5S17.67 9 18.5 9s1.5.67 1.5 1.5S19.33 12 18.5 12z'/%3E%3C/svg%3E"); }
.icon-tablet { --tp-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M21 4H3c-1.1 0-2 .9-2 2v12c0 1.1.9 2 2 2h18c1.1 0 2-.9 2-2V6c0-1.1-.9-2-2-2zm-10 14c-.55 0-1-.45-1-1s.45-1 1-1 1 .45 1 1-.45 1-1 1zm9-3H4V6h16v9z'/%3E%3C/svg%3E"); }

/* Neutralise WordPress "flow" layout spacing so the original margins apply */
.tp-section.is-layout-flow > *,
.tp-section .is-layout-flow > * { margin-block-start: 0; }

/* Restore the original vertical rhythm */
.tp-section .section-eyebrow    { margin-bottom: 10px; }
.tp-section .section-title      { margin-bottom: 40px; }
.tp-section .hero-h1            { margin-bottom: 18px; }
.tp-section .hero-sub           { margin-bottom: 32px; }
.tp-section .device-card-label  { margin-bottom: 16px; }
.tp-section .diff-tag           { margin-bottom: 14px; }
.tp-section .diff-card h3       { margin-bottom: 10px; }
.tp-section .service-card h3    { margin-bottom: 6px; }
.tp-section .reviews-header     { margin-bottom: 36px; }
.tp-section .reviews-header .section-title { margin-bottom: 0; }
.tp-section .review-card-header { margin-bottom: 14px; }
.tp-section .review-stars       { margin-bottom: 10px; }
.tp-section .cta-strip-text h2  { margin-bottom: 4px; }
.tp-section .trust-label        { margin-top: 4px; }
.tp-section .review-source      { margin-top: 2px; }
.tp-section .reviews-score-sub  { margin-top: 4px; }
.tp-section .services-grid      { margin-top: 32px; }
.tp-section .reviews-cta        { margin-top: 36px; }

/* Hero */
.tp-section .hero-eyebrow {
  position: relative;
  display: inline-block;
  padding: 5px 14px 5px 29px;
  margin-bottom: 20px;
  background: rgba(40,114,250,0.12);
  border: 1px solid rgba(40,114,250,0.3);
  border-radius: 999px;
  font-size: 13px;
  font-weight: 600;
  color: var(--tp-navy);
  letter-spacing: 0.05em;
  text-transform: uppercase;
}
.tp-section .hero-eyebrow::before {
  content: "";
  position: absolute;
  left: 14px;
  top: 50%;
  width: 7px; height: 7px;
  margin-top: -3.5px;
  border-radius: 50%;
  background: var(--tp-blue);
}
.tp-section .hero-badge {
  position: relative;
  display: inline-block;
  margin-top: 28px;
  padding: 10px 14px 10px 37px;
}
.tp-section .hero-badge::before {
  content: "";
  position: absolute;
  left: 14px;
  top: 50%;
  width: 15px; height: 15px;
  margin-top: -7.5px;
  background: var(--tp-blue);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 1L15.09 8.26L23 9.27L17.5 14.64L18.93 22.54L12 19.1L5.07 22.54L6.5 14.64L1 9.27L8.91 8.26L12 1Z'/%3E%3C/svg%3E") center / contain no-repeat;
          mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 1L15.09 8.26L23 9.27L17.5 14.64L18.93 22.54L12 19.1L5.07 22.54L6.5 14.64L1 9.27L8.91 8.26L12 1Z'/%3E%3C/svg%3E") center / contain no-repeat;
}
.tp-section .hero-btns { gap: 12px; }
.tp-section .hero-btns .wp-block-button__link {
  font-size: 15px !important;
  padding: 14px 26px !important;
  border-radius: 12px !important;
}
.tp-section .hero-btns .is-style-outline .wp-block-button__link {
  border: 1.5px solid rgba(25,42,61,0.35) !important;
}
.tp-section .hero-btns .is-style-outline .wp-block-button__link:hover {
  border-color: var(--tp-navy) !important;
  background: rgba(25,42,61,0.04) !important;
}

/* Device selector */
.tp-section .device-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin-bottom: 14px;
}
.tp-section .device-grid .wp-block-button { width: 100%; margin: 0; }
.tp-section .device-grid .wp-block-button__link {
  display: flex !important;
  flex-direction: column;
  width: 100%;
  height: 100%;
  background: var(--tp-bg-light) !important;
  border: 1px solid var(--tp-border) !important;
  border-radius: 10px !important;
  padding: 14px 8px 10px !important;
  color: var(--tp-blue-mid) !important;
  font-size: 11px !important;
  font-weight: 600 !important;
  line-height: 1.3 !important;
  text-align: center;
  transition: background 0.15s, border-color 0.15s, color 0.15s !important;
}
.tp-section .device-grid .wp-block-button__link:hover,
.tp-section .device-grid .wp-block-button__link.active {
  background: var(--tp-blue-tint) !important;
  border-color: var(--tp-blue) !important;
  color: var(--tp-blue-d) !important;
}
.tp-section .device-grid [class*="icon-"] .wp-block-button__link::before {
  content: "";
  display: block;
  width: 22px; height: 22px;
  margin: 5px auto 13px;
  background: currentColor;
  -webkit-mask: var(--tp-icon) center / contain no-repeat;
          mask: var(--tp-icon) center / contain no-repeat;
}
.tp-section .device-quote-wrap { display: block; }
.tp-section .device-quote,
.tp-section .device-quote .wp-block-button__link { width: 100%; }
.tp-section .device-quote .wp-block-button__link {
  font-size: 15px !important;
  font-weight: 700 !important;
  padding: 14px !important;
  letter-spacing: -0.2px;
}

/* Differentiator tags (paragraphs here, so undo the .diff-card p styles) */
.tp-section .diff-card .diff-tag { font-size: 10px; line-height: 1.65; color: var(--tp-blue-d); }
.tp-section .diff-card .diff-tag-purple { color: #5038E6; }

/* Trust bar */
.tp-section .trust-item + .trust-item { border-left: 1px solid rgba(255,255,255,0.08); padding-left: 24px; }
.tp-section .trust-num { margin: 0; }

/* Service cards — icon drawn from the card's icon-* class, whole card clickable */
.tp-section .service-card { position: relative; }
.tp-section .service-card[class*="icon-"] { padding-top: 86px; }
.tp-section .service-card[class*="icon-"]::before {
  content: "";
  position: absolute;
  top: 24px; left: 50%;
  width: 48px; height: 48px;
  margin-left: -24px;
  border-radius: 12px;
  background: var(--tp-blue-tint);
}
.tp-section .service-card[class*="icon-"]::after {
  content: "";
  position: absolute;
  top: 36px; left: 50%;
  width: 24px; height: 24px;
  margin-left: -12px;
  background: var(--tp-blue);
  -webkit-mask: var(--tp-icon) center / contain no-repeat;
          mask: var(--tp-icon) center / contain no-repeat;
}
.tp-section .service-card .service-link {
  font-size: 12px;
  font-weight: 600;
  color: var(--tp-blue);
  margin-top: 12px;
}
.tp-section .service-link a { color: inherit; text-decoration: none; }
.tp-section .service-link a::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
}

/* Reviews */
.tp-section .reviews-cta a { text-decoration: none; }

/* CTA strip button */
.tp-section.cta-strip .wp-block-button__link {
  background: #fff !important;
  color: var(--tp-blue-d) !important;
  font-size: 15px !important;
  font-weight: 700 !important;
  padding: 14px 28px !important;
  white-space: nowrap;
}
.tp-section.cta-strip .wp-block-button__link:hover {
  background: var(--tp-blue-tint2) !important;
  color: var(--tp-blue-d) !important;
}

@media (max-width: 600px) {
  .tp-section .trust-item + .trust-item { border-left: 0; padding-left: 12px; }
  .tp-section .hero-btns .wp-block-button { width: 100%; }
  .tp-section .hero-btns .wp-block-button__link { width: 100%; }
}
