@import './theme.css';

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 16px; scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--font-body);
  font-size: var(--text-base);
  line-height: var(--leading-normal);
  color: var(--color-text);
  background: var(--color-white);
  -webkit-font-smoothing: antialiased;
}
img, video { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
button { cursor: pointer; font-family: inherit; }

h1,h2,h3,h4,h5,h6 {
  font-family: var(--font-heading);
  line-height: var(--leading-tight);
  color: var(--color-navy);
  font-weight: var(--weight-bold);
}
h1 { font-size: var(--text-5xl); font-weight: var(--weight-extrabold); }
h2 { font-size: var(--text-4xl); }
h3 { font-size: var(--text-2xl); font-weight: var(--weight-semibold); }
h4 { font-size: var(--text-xl); font-weight: var(--weight-semibold); }

@media (max-width: 768px) {
  h1 { font-size: var(--text-3xl); }
  h2 { font-size: var(--text-2xl); }
  h3 { font-size: var(--text-xl); }
}

.container { max-width: var(--container-max); margin: 0 auto; padding: 0 var(--container-padding); }
.section { padding: var(--section-padding-y) 0; }
@media (max-width: 768px) { .section { padding: var(--section-padding-y-mobile) 0; } }

.eyebrow {
  display: inline-block;
  font-size: var(--text-xs);
  font-weight: var(--weight-semibold);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--color-orange);
  margin-bottom: var(--space-3);
}

.btn {
  display: inline-flex; align-items: center; gap: var(--space-2);
  padding: 12px 24px; border-radius: var(--radius);
  font-family: var(--font-body); font-size: var(--text-sm);
  font-weight: var(--weight-semibold); text-decoration: none;
  border: 2px solid transparent; transition: all var(--transition);
  cursor: pointer; white-space: nowrap;
}
.btn-primary { background: var(--color-orange); color: var(--color-white); border-color: var(--color-orange); }
.btn-primary:hover { background: var(--color-orange-light); border-color: var(--color-orange-light); transform: translateY(-1px); box-shadow: var(--shadow-md); }
.btn-secondary { background: transparent; color: var(--color-white); border-color: rgba(255,255,255,0.4); }
.btn-secondary:hover { background: rgba(255,255,255,0.1); border-color: rgba(255,255,255,0.7); }
.btn-navy { background: var(--color-navy); color: var(--color-white); border-color: var(--color-navy); }
.btn-navy:hover { background: var(--color-navy-dark); transform: translateY(-1px); }
.btn-outline { background: transparent; color: var(--color-navy); border-color: var(--color-border-strong); }
.btn-outline:hover { border-color: var(--color-navy); background: var(--color-surface); }
.btn-lg { padding: 16px 32px; font-size: var(--text-base); }
.btn-sm { padding: 8px 16px; font-size: var(--text-xs); }

.card {
  background: var(--color-white); border: 1px solid var(--color-border);
  border-radius: var(--radius-lg); box-shadow: var(--shadow);
  overflow: hidden; transition: all var(--transition);
}
.card:hover { box-shadow: var(--shadow-md); transform: translateY(-2px); border-color: var(--color-border-strong); }

.prose { max-width: 72ch; color: var(--color-text); }
.max-w-none { max-width: none !important; }
.prose h2 { margin: 2rem 0 1rem; font-size: var(--text-2xl); }
.prose h3 { margin: 1.5rem 0 0.75rem; font-size: var(--text-xl); }
.prose p { margin: 0 0 1.25rem; line-height: var(--leading-relaxed); }
.prose ul, .prose ol { margin: 0 0 1.25rem 1.5rem; }
.prose li { margin-bottom: 0.5rem; line-height: var(--leading-relaxed); }
.prose a { color: var(--color-orange); text-decoration: underline; }
.prose img { border-radius: var(--radius); margin: 1.5rem 0; }
.prose blockquote { border-left: 3px solid var(--color-orange); padding-left: 1rem; margin: 1.5rem 0; color: var(--color-text-muted); font-style: italic; }

.form-group { margin-bottom: var(--space-5); }
.form-label { display: block; font-size: var(--text-sm); font-weight: var(--weight-medium); color: var(--color-text); margin-bottom: var(--space-2); }
.form-input, .form-select, .form-textarea {
  width: 100%; padding: 10px 14px; border: 1px solid var(--color-border);
  border-radius: var(--radius); font-family: var(--font-body);
  font-size: var(--text-base); color: var(--color-text); background: var(--color-white);
  transition: border-color var(--transition-fast); outline: none;
}
.form-input:focus, .form-select:focus, .form-textarea:focus { border-color: var(--color-navy); box-shadow: 0 0 0 3px rgba(26,54,93,0.1); }
.form-textarea { resize: vertical; min-height: 120px; }

.stats-bar { background: var(--color-navy); padding: var(--space-10) 0; }
.stats-grid { display: grid; grid-template-columns: repeat(4,1fr); gap: var(--space-6); text-align: center; }
@media (max-width: 768px) { .stats-grid { grid-template-columns: repeat(2,1fr); } }
.stat-number { font-family: var(--font-heading); font-size: var(--text-4xl); font-weight: var(--weight-extrabold); color: var(--color-white); line-height: 1; margin-bottom: var(--space-2); }
.stat-label { font-size: var(--text-sm); color: rgba(255,255,255,0.65); font-weight: var(--weight-medium); }

.cta-banner { background: linear-gradient(135deg, var(--color-navy-dark) 0%, var(--color-navy) 100%); padding: var(--space-20) 0; text-align: center; }
.cta-banner h2 { font-size: var(--text-4xl); color: var(--color-white); margin-bottom: var(--space-4); }
.cta-banner p { font-size: var(--text-lg); color: rgba(255,255,255,0.75); margin-bottom: var(--space-8); }

.badge { display: inline-flex; align-items: center; padding: 4px 12px; border-radius: var(--radius-full); font-size: var(--text-xs); font-weight: var(--weight-semibold); letter-spacing: 0.05em; text-transform: uppercase; }
.badge-orange { background: var(--color-orange-subtle); color: var(--color-orange); border: 1px solid rgba(255,107,0,0.2); }
.badge-navy { background: rgba(26,54,93,0.08); color: var(--color-navy); border: 1px solid rgba(26,54,93,0.15); }

.grid-2 { display: grid; grid-template-columns: repeat(2,1fr); gap: var(--space-6); }
.grid-3 { display: grid; grid-template-columns: repeat(3,1fr); gap: var(--space-6); }
.grid-4 { display: grid; grid-template-columns: repeat(4,1fr); gap: var(--space-6); }
@media (max-width: 1024px) { .grid-4 { grid-template-columns: repeat(2,1fr); } .grid-3 { grid-template-columns: repeat(2,1fr); } }
@media (max-width: 640px) { .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; } }

/* ─── Prose inline SVG fix (WP content FontAwesome icons) ─── */
.prose svg {
  display: inline-block;
  width: 1em;
  height: 1em;
  vertical-align: -0.15em;
  flex-shrink: 0;
}
.prose li {
  display: flex;
  align-items: flex-start;
  gap: var(--space-2);
}
.prose li svg {
  margin-top: 3px;
  color: var(--color-orange);
  flex-shrink: 0;
}

/* ─── CRITICAL: WP FontAwesome SVG size override ─── */
.prose li svg,
.prose ul svg,
.prose ol svg {
  width: 1em !important;
  height: 1em !important;
  max-width: 1.2em !important;
  max-height: 1.2em !important;
  display: inline-block !important;
  vertical-align: middle !important;
  flex-shrink: 0 !important;
}

/* ════════════════════════════════════════
   GLOBAL DESIGN ENHANCEMENTS — Feb 28
   ════════════════════════════════════════ */

/* ── H2 Accent: orange underline on all service page H2s ── */
.prose h2,
.sp-content h2 {
  position: relative;
  padding-bottom: 10px;
  margin-bottom: 20px;
}
.prose h2::after,
.sp-content h2::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 40px;
  height: 3px;
  background: var(--color-orange);
  border-radius: 2px;
}

/* ── Alternating section backgrounds ── */
.prose > h2:nth-of-type(even) ~ *:not(h2),
.sp-content .section-alt {
  background: #f7f9fc;
}

/* Simpler approach: add to alternating wp content sections */
.wp-section:nth-child(even) {
  background: #f7f9fc;
  margin: 0 -24px;
  padding: 32px 24px;
}

/* ── Scroll fade-in animation ── */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(22px); }
  to   { opacity: 1; transform: translateY(0); }
}
.fade-in-up {
  animation: fadeInUp 0.5s ease forwards;
}
.fade-hidden {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}
.fade-hidden.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ── Card hover animations (service cards, blog cards) ── */
.service-card,
.blog-card,
.sp-quote-box {
  transition: transform 200ms ease, box-shadow 200ms ease;
}
.service-card:hover,
.blog-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 36px rgba(15,35,64,0.12);
}

/* ── Button hover polish ── */
.btn-hero-primary,
.btn-primary,
.sp-cta-btn {
  transition: background 200ms ease, transform 150ms ease, box-shadow 200ms ease !important;
}
.btn-hero-primary:hover,
.btn-primary:hover {
  transform: translateY(-2px) !important;
  box-shadow: 0 6px 20px rgba(255,107,0,0.35) !important;
}

/* ── Prose content improvements ── */
.prose p,
.sp-content p {
  line-height: 1.75;
  margin-bottom: 1.1em;
}
.prose h3,
.sp-content h3 {
  color: var(--color-navy);
  margin-top: 1.8em;
}

/* ── Content image polish ── */
.prose img,
.sp-content img {
  border-radius: 8px !important;
  max-width: 100%;
  height: auto;
  box-shadow: 0 2px 12px rgba(0,0,0,0.08);
}
/* Kill circle crops */
.prose img[style*="border-radius: 50%"],
.prose img[style*="border-radius:50%"],
.sp-content img[style*="border-radius: 50%"],
.sp-content img[style*="border-radius:50%"] {
  border-radius: 8px !important;
}

/* ── Inline link styling ── */
.prose a:not(.sp-cta-btn):not(.btn),
.sp-content a:not(.sp-cta-btn):not(.btn) {
  color: var(--color-orange);
  text-decoration: none;
  border-bottom: 1px solid rgba(255,107,0,0.3);
  transition: border-color 150ms ease;
}
.prose a:not(.sp-cta-btn):not(.btn):hover,
.sp-content a:not(.sp-cta-btn):not(.btn):hover {
  border-bottom-color: var(--color-orange);
}

/* ════════════════════════════════════════
   GLOBAL DESIGN ENHANCEMENTS — Feb 28
   ════════════════════════════════════════ */

/* ── H2 Accent: orange underline ── */
.prose h2, .sp-content h2 {
  position: relative;
  padding-bottom: 10px;
  margin-bottom: 20px;
}
.prose h2::after, .sp-content h2::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 40px;
  height: 3px;
  background: #ff6b00;
  border-radius: 2px;
}

/* ── Scroll fade-in ── */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(22px); }
  to   { opacity: 1; transform: translateY(0); }
}
.fade-hidden {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}
.fade-hidden.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ── Card hover animations ── */
.service-card, .blog-card {
  transition: transform 200ms ease, box-shadow 200ms ease;
}
.service-card:hover, .blog-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 36px rgba(15,35,64,0.12);
}

/* ── Button hover polish ── */
.btn-hero-primary:hover, .btn-primary:hover {
  transform: translateY(-2px) !important;
  box-shadow: 0 6px 20px rgba(255,107,0,0.35) !important;
}

/* ── Prose improvements ── */
.prose p, .sp-content p { line-height: 1.75; margin-bottom: 1.1em; }
.prose h3, .sp-content h3 { color: #1a365d; margin-top: 1.8em; }

/* ── Image polish ── */
.prose img, .sp-content img {
  border-radius: 8px !important;
  box-shadow: 0 2px 12px rgba(0,0,0,0.08);
}

/* ── Inline links ── */
.prose a:not(.sp-cta-btn):not(.btn), .sp-content a:not(.sp-cta-btn):not(.btn) {
  color: #ff6b00;
  text-decoration: none;
  border-bottom: 1px solid rgba(255,107,0,0.3);
  transition: border-color 150ms ease;
}
.prose a:not(.sp-cta-btn):not(.btn):hover, .sp-content a:not(.sp-cta-btn):not(.btn):hover {
  border-bottom-color: #ff6b00;
}

/* ════════════════════════════════════════
   AUDIT FIXES BATCH 2 — Feb 28 2026
   ════════════════════════════════════════ */

/* ── Section separators in prose content ── */
.prose h2 {
  border-top: 2px solid #dce4ef;
  padding-top: 32px;
  margin-top: 40px;
}
.prose h2:first-of-type {
  border-top: none;
  padding-top: 0;
  margin-top: 0;
}

/* ── Feature grid cards ── */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 14px;
  margin: 28px 0;
  padding: 20px;
  background: #dce4ef;
  border-radius: 12px;
}
.feature-grid-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 8px;
  padding: 14px 10px 12px;
  background: #fff;
  border: 1.5px solid #c8d3e3;
  border-radius: 10px;
  box-shadow: 0 1px 3px rgba(15,35,64,0.06);
  transition: box-shadow 0.2s, transform 0.2s;
}
.feature-grid-item:hover {
  box-shadow: 0 4px 14px rgba(15,35,64,0.1);
  transform: translateY(-2px);
}
.feature-grid-item svg {
  width: 28px !important;
  height: 28px !important;
  color: #ff6b00;
  flex-shrink: 0;
}
.feature-grid-item strong {
  font-size: 0.85rem;
  color: #1a365d;
}

/* ── Location "Why TechPro" cards ── */
.why-techpro-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin: 24px 0;
  padding: 20px;
  background: #dce4ef;
  border-radius: 12px;
}
.why-techpro-card {
  background: #fff;
  border: 1.5px solid #c8d3e3;
  border-radius: 10px;
  padding: 16px 14px;
  text-align: center;
  box-shadow: 0 1px 3px rgba(15,35,64,0.06);
  transition: box-shadow 0.2s, transform 0.2s;
}
.why-techpro-card:hover {
  box-shadow: 0 4px 14px rgba(15,35,64,0.1);
  transform: translateY(-2px);
}
.why-techpro-card svg {
  width: 28px !important;
  height: 28px !important;
  color: #ff6b00;
  margin: 0 auto 8px;
  display: block;
}
.why-techpro-card strong { display: block; color: #1a365d; margin-bottom: 4px; }
.why-techpro-card p { font-size: 0.85rem; margin: 0 !important; color: #666; }
@media (max-width: 640px) {
  .why-techpro-grid { grid-template-columns: 1fr; }
}

/* ── details/summary accordion ── */
details.content-accordion {
  margin: 16px 0;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  overflow: hidden;
}
details.content-accordion summary {
  cursor: pointer;
  font-weight: 600;
  color: #1a365d;
  padding: 14px 16px;
  background: #f7f9fc;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
details.content-accordion summary::-webkit-details-marker { display: none; }
details.content-accordion summary::after { content: '▼'; font-size: 0.75rem; transition: transform 0.2s; }
details.content-accordion[open] summary::after { transform: rotate(180deg); }
details.content-accordion .accordion-body { padding: 16px; }

/* Hide floating CTA pill on mobile/tablet — sticky bar covers it */
@media (max-width: 900px) {
  .floating-cta-pill { display: none !important; }
}
