/*
Theme Name: ComputerTeks
Theme URI: https://computerteks.com
Author: ComputerTeks
Description: Custom theme for ComputerTeks — a managed service provider site covering Managed IT, Managed Voice, Business Continuity, and Security Services. Built from a bespoke design (not a page builder), with page templates for each core service and a working contact form.
Version: 1.0.0
Requires at least: 6.0
Requires PHP: 7.4
Text Domain: computerteks
*/

/* ==========================================================================
   ComputerTeks — theme stylesheet
   Modernized blue MSP design system
   ========================================================================== */

:root {
  --navy-950: #071223;
  --navy-900: #0B2340;
  --navy-800: #123259;
  --navy-700: #1B4272;
  --blue-600: #1D6FE0;
  --blue-500: #2F86FF;
  --blue-100: #E7F0FE;
  --cyan-400: #22D3C5;
  --ink-900: #101826;
  --slate-700: #35424F;
  --slate-500: #64748B;
  --slate-300: #C7D0DB;
  --slate-200: #E4E9F0;
  --slate-100: #F1F4F8;
  --bg: #F6F8FB;
  --white: #FFFFFF;
  --danger: #E0483E;
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 22px;
  --shadow-sm: 0 1px 2px rgba(11, 35, 64, 0.06), 0 1px 1px rgba(11, 35, 64, 0.04);
  --shadow-md: 0 12px 24px -12px rgba(11, 35, 64, 0.25);
  --shadow-lg: 0 24px 48px -16px rgba(11, 35, 64, 0.35);
  --container: 1180px;
  --font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font);
  color: var(--ink-900);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }

a { color: inherit; text-decoration: none; }

h1, h2, h3, h4 {
  font-family: var(--font);
  font-weight: 700;
  line-height: 1.15;
  margin: 0 0 0.5em;
  letter-spacing: -0.01em;
  color: var(--navy-900);
}

h1 { font-size: clamp(2.1rem, 1.6rem + 2vw, 3.4rem); }
h2 { font-size: clamp(1.7rem, 1.4rem + 1.2vw, 2.4rem); }
h3 { font-size: 1.25rem; }
p { margin: 0 0 1em; color: var(--slate-700); }

.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--blue-600);
  margin-bottom: 14px;
}
.eyebrow::before {
  content: "";
  width: 22px;
  height: 2px;
  background: var(--cyan-400);
  display: inline-block;
}
.on-dark .eyebrow { color: var(--cyan-400); }
.on-dark h1, .on-dark h2, .on-dark h3, .on-dark h4 { color: var(--white); }
.on-dark p { color: rgba(255,255,255,0.78); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: var(--font);
  font-weight: 600;
  font-size: 0.95rem;
  padding: 13px 24px;
  border-radius: var(--radius-sm);
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background-color 0.15s ease, color 0.15s ease, border-color .15s ease;
  white-space: nowrap;
}
.btn-primary {
  background: var(--blue-600);
  color: var(--white);
  box-shadow: var(--shadow-sm);
}
.btn-primary:hover { background: var(--blue-500); transform: translateY(-1px); box-shadow: var(--shadow-md); }
.btn-outline {
  background: transparent;
  border-color: var(--slate-300);
  color: var(--navy-900);
}
.btn-outline:hover { border-color: var(--blue-600); color: var(--blue-600); }
.on-dark .btn-outline { border-color: rgba(255,255,255,0.3); color: var(--white); }
.on-dark .btn-outline:hover { border-color: var(--cyan-400); color: var(--cyan-400); }
.btn-block { width: 100%; }
.btn-lg { padding: 15px 30px; font-size: 1rem; }

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255,255,255,0.92);
  backdrop-filter: saturate(180%) blur(10px);
  border-bottom: 1px solid var(--slate-200);
}
.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 76px;
  gap: 24px;
}
.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  font-size: 1.28rem;
  color: var(--navy-900);
  letter-spacing: -0.02em;
  flex-shrink: 0;
}
.logo-mark {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: linear-gradient(135deg, var(--blue-600), var(--cyan-400));
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.95rem;
  font-weight: 800;
  flex-shrink: 0;
}
.logo .accent { color: var(--blue-600); }

.main-nav {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  align-items: center;
  gap: 4px;
  flex: 1;
  justify-content: center;
}
.main-nav li { list-style: none; }
.main-nav a {
  display: inline-block;
  padding: 10px 14px;
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: 0.93rem;
  color: var(--slate-700);
}
.main-nav a:hover { color: var(--blue-600); background: var(--blue-100); }
.main-nav a.active,
.main-nav li.current-menu-item > a,
.main-nav li.current_page_item > a { color: var(--blue-600); }

.header-actions { display: flex; align-items: center; gap: 18px; flex-shrink: 0; }
.header-phone { display: flex; align-items: center; gap: 8px; font-weight: 700; color: var(--navy-900); font-size: 0.95rem; }
.header-phone svg { color: var(--blue-600); }

.nav-toggle { display: none; }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  background: radial-gradient(ellipse 900px 500px at 85% -10%, rgba(34,211,197,0.20), transparent 60%),
              linear-gradient(160deg, var(--navy-950), var(--navy-800) 70%);
  color: var(--white);
  overflow: hidden;
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.05) 1px, transparent 1px);
  background-size: 44px 44px;
  mask-image: linear-gradient(180deg, rgba(0,0,0,0.6), transparent 75%);
  pointer-events: none;
}
.hero-inner {
  position: relative;
  padding: 96px 0 88px;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 48px;
  align-items: center;
}
.hero.simple .hero-inner { grid-template-columns: 1fr; padding: 68px 0 72px; max-width: 780px; }
.hero p.lead {
  color: rgba(255,255,255,0.78);
  font-size: 1.12rem;
  max-width: 560px;
}
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 28px; }
.hero-stats { display: flex; gap: 32px; margin-top: 44px; flex-wrap: wrap; }
.hero-stats div strong { display: block; font-size: 1.7rem; color: var(--white); }
.hero-stats div span { font-size: 0.82rem; color: rgba(255,255,255,0.6); text-transform: uppercase; letter-spacing: 0.06em; }

.hero-art {
  position: relative;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: var(--radius-lg);
  padding: 28px;
  backdrop-filter: blur(6px);
}
.hero-art .art-row { display: flex; align-items: center; gap: 14px; padding: 14px; border-radius: var(--radius-sm); background: rgba(255,255,255,0.06); margin-bottom: 12px; }
.hero-art .art-row:last-child { margin-bottom: 0; }
.hero-art .dot { width: 10px; height: 10px; border-radius: 50%; background: var(--cyan-400); flex-shrink: 0; box-shadow: 0 0 0 4px rgba(34,211,197,0.15); }
.hero-art .art-row span { font-size: 0.88rem; color: rgba(255,255,255,0.85); }

/* ---------- Sections ---------- */
section { padding: 88px 0; }
.section-tight { padding: 64px 0; }
.section-head { max-width: 640px; margin: 0 auto 48px; text-align: center; }
.section-head.left { margin: 0 0 44px; text-align: left; }
.bg-dark { background: var(--navy-900); color: var(--white); }
.bg-dark p { color: rgba(255,255,255,0.72); }
.bg-dark h2, .bg-dark h3 { color: var(--white); }
.bg-alt { background: var(--white); }

/* ---------- Cards / Grid ---------- */
.grid { display: grid; gap: 26px; }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }

.card {
  background: var(--white);
  border: 1px solid var(--slate-200);
  border-radius: var(--radius-md);
  padding: 30px 26px;
  box-shadow: var(--shadow-sm);
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color .18s ease;
  height: 100%;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); border-color: transparent; }
.service-card { display: flex; flex-direction: column; }
.card-icon {
  width: 52px; height: 52px;
  border-radius: 13px;
  background: var(--blue-100);
  color: var(--blue-600);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 18px;
  flex-shrink: 0;
}
.card-icon svg { width: 26px; height: 26px; }
.card h3 { margin-bottom: 8px; color: var(--navy-900); }
.card p { font-size: 0.94rem; margin-bottom: 14px; color: var(--slate-700); }
.card-link { margin-top: auto; font-weight: 700; font-size: 0.88rem; color: var(--blue-600); display: inline-flex; align-items: center; gap: 6px; }
.card-link svg { width: 15px; height: 15px; transition: transform 0.15s ease; }
.card:hover .card-link svg { transform: translateX(3px); }

.feature-row {
  display: flex; gap: 18px; align-items: flex-start;
  padding: 22px 0;
  border-bottom: 1px solid var(--slate-200);
}
.feature-row:last-child { border-bottom: none; }
.feature-row .card-icon { margin-bottom: 0; }
.feature-row h4 { margin: 0 0 4px; color: var(--navy-900); font-size: 1.05rem; }
.feature-row p { margin: 0; font-size: 0.92rem; }

.check-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.check-list li { display: flex; gap: 10px; align-items: flex-start; font-size: 0.96rem; color: var(--slate-700); }
.check-list li svg { flex-shrink: 0; width: 20px; height: 20px; color: var(--cyan-400); margin-top: 1px; }
.on-dark.check-list li { color: rgba(255,255,255,0.82); }

/* ---------- Stats strip ---------- */
.stats-strip { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.stat-item { text-align: center; }
.stat-item strong { display: block; font-size: 2.2rem; color: var(--navy-900); font-weight: 800; }
.bg-dark .stat-item strong { color: var(--white); }
.stat-item span { font-size: 0.85rem; color: var(--slate-500); }
.bg-dark .stat-item span { color: rgba(255,255,255,0.6); }

/* ---------- Partner strip ---------- */
.partner-strip {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 14px 42px;
}
.partner-strip .partner {
  font-weight: 800;
  font-size: 1.05rem;
  color: var(--slate-500);
  letter-spacing: -0.01em;
  opacity: 0.85;
  transition: opacity .15s ease, color .15s ease;
}
.partner-strip .partner:hover { opacity: 1; color: var(--navy-900); }

/* ---------- CTA banner ---------- */
.cta-banner {
  background: linear-gradient(120deg, var(--blue-600), #134FAE 60%, var(--navy-900));
  border-radius: var(--radius-lg);
  padding: 56px;
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}
.cta-banner h2 { color: var(--white); margin-bottom: 6px; }
.cta-banner p { color: rgba(255,255,255,0.82); margin: 0; }

/* ---------- Page hero (service pages, simpler) ---------- */
.breadcrumb { font-size: 0.85rem; color: rgba(255,255,255,0.6); margin-bottom: 18px; }
.breadcrumb a:hover { color: var(--cyan-400); }

/* ---------- Testimonial ---------- */
.testimonial {
  background: var(--white);
  border: 1px solid var(--slate-200);
  border-radius: var(--radius-lg);
  padding: 44px;
  max-width: 780px;
  margin: 0 auto;
  text-align: center;
  box-shadow: var(--shadow-sm);
}
.testimonial p.quote { font-size: 1.2rem; color: var(--navy-900); font-weight: 500; line-height: 1.55; }
.testimonial .who { font-weight: 700; color: var(--navy-900); font-size: 0.92rem; }
.testimonial .who span { display: block; font-weight: 400; color: var(--slate-500); font-size: 0.85rem; }

/* ---------- Forms ---------- */
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.form-field { display: flex; flex-direction: column; gap: 7px; }
.form-field.full { grid-column: 1 / -1; }
.form-field label { font-size: 0.85rem; font-weight: 600; color: var(--navy-900); }
.form-field input,
.form-field select,
.form-field textarea {
  font-family: var(--font);
  font-size: 0.95rem;
  padding: 12px 14px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--slate-300);
  background: var(--white);
  color: var(--ink-900);
}
.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus {
  outline: none;
  border-color: var(--blue-600);
  box-shadow: 0 0 0 3px var(--blue-100);
}
.form-field textarea { resize: vertical; min-height: 120px; }

.form-message {
  margin: 0 0 20px;
  padding: 14px 16px;
  border-radius: var(--radius-sm);
  font-size: 0.92rem;
  font-weight: 600;
}
.form-message.success { background: #E5F7EE; color: #0F7A44; border: 1px solid #BCE9CF; }
.form-message.error { background: #FDEDEC; color: #B3261E; border: 1px solid #F5C4C0; }

.contact-info-card {
  background: var(--navy-900);
  color: var(--white);
  border-radius: var(--radius-lg);
  padding: 36px;
}
.contact-info-card h3 { color: var(--white); }
.contact-line { display: flex; gap: 14px; align-items: flex-start; margin-bottom: 22px; }
.contact-line:last-child { margin-bottom: 0; }
.contact-line .card-icon { background: rgba(255,255,255,0.1); color: var(--cyan-400); width: 42px; height: 42px; border-radius: 10px; }
.contact-line .card-icon svg { width: 20px; height: 20px; }
.contact-line strong { display: block; color: var(--white); font-size: 0.95rem; margin-bottom: 2px; }
.contact-line span, .contact-line a { display: block; color: rgba(255,255,255,0.7); font-size: 0.9rem; }
.contact-line a:hover { color: var(--cyan-400); }

/* ---------- Footer ---------- */
.site-footer { background: var(--navy-950); color: rgba(255,255,255,0.7); padding: 64px 0 28px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 40px; padding-bottom: 44px; border-bottom: 1px solid rgba(255,255,255,0.08); }
.footer-grid h4 { color: var(--white); font-size: 0.85rem; text-transform: uppercase; letter-spacing: 0.06em; margin-bottom: 18px; }
.footer-grid ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 11px; }
.footer-grid a { font-size: 0.9rem; }
.footer-grid a:hover { color: var(--cyan-400); }
.footer-about p { color: rgba(255,255,255,0.6); font-size: 0.9rem; max-width: 280px; }
.footer-bottom { display: flex; justify-content: space-between; align-items: center; padding-top: 24px; font-size: 0.82rem; flex-wrap: wrap; gap: 12px; }
.footer-bottom a:hover { color: var(--cyan-400); }
.footer-legal { display: flex; gap: 20px; }

/* ---------- Generic page content (page.php fallback) ---------- */
.entry-content { max-width: 820px; margin: 0 auto; }
.entry-content h1, .entry-content h2, .entry-content h3 { margin-top: 1.2em; }
.entry-content img { border-radius: var(--radius-md); margin: 1.2em 0; }
.entry-content ul, .entry-content ol { color: var(--slate-700); }

/* ---------- Utility ---------- */
.text-center { text-align: center; }
.mt-0 { margin-top: 0; }
.badge {
  display: inline-flex; align-items: center; gap: 6px;
  background: var(--blue-100); color: var(--blue-600);
  font-size: 0.78rem; font-weight: 700; padding: 6px 12px; border-radius: 999px;
  margin-bottom: 14px;
}

/* ---------- Responsive ---------- */
@media (max-width: 980px) {
  .hero-inner { grid-template-columns: 1fr; }
  .hero-art { order: -1; }
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .stats-strip { grid-template-columns: repeat(2, 1fr); gap: 32px; }
}

@media (max-width: 760px) {
  .main-nav { display: none; flex-direction: column; align-items: stretch; position: absolute; top: 76px; left: 0; right: 0; background: var(--white); border-bottom: 1px solid var(--slate-200); padding: 10px 20px 18px; box-shadow: var(--shadow-md); }
  .main-nav.nav-open { display: flex; }
  .main-nav a { padding: 12px 8px; }
  .header-phone { display: none; }
  .nav-toggle { display: inline-flex; align-items: center; justify-content: center; width: 40px; height: 40px; border-radius: var(--radius-sm); border: 1px solid var(--slate-300); background: var(--white); cursor: pointer; }
  section { padding: 60px 0; }
  .grid-4, .grid-3, .grid-2 { grid-template-columns: 1fr; }
  .form-grid { grid-template-columns: 1fr; }
  .cta-banner { flex-direction: column; text-align: center; padding: 40px 28px; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; text-align: center; }
}
