/*
Theme Name: TechGurus
Theme URI: https://techgurus.ca
Author: TechGurus
Description: Custom theme for TechGurus managed IT services website.
Version: 1.0
License: Proprietary
Text Domain: techgurus
*/

/* ===========================
   TechGurus - Design Tokens
   =========================== */
:root {
  --orange: #F57D20;
  --orange-dark: #D96A12;
  --blue: #2272B6;
  --blue-dark: #1A5A8E;
  --blue-light: #55ACDC;
  --ink: #12181F;
  --ink-soft: #4A5568;
  --ink-mute: #7A8699;
  --paper: #FFFFFF;
  --cloud: #F5F8FA;
  --mist: #EBF1F5;
  --line: #E1E8ED;
  --navy: #0F1B2B;
  --navy-soft: #1C2C40;

  --font-display: "Sora", "Segoe UI", sans-serif;
  --font-body: "Inter", "Segoe UI", sans-serif;

  --radius-sm: 6px;
  --radius: 10px;
  --radius-lg: 18px;
  --shadow-sm: 0 1px 3px rgba(15, 27, 43, 0.06);
  --shadow: 0 8px 24px rgba(15, 27, 43, 0.08);
  --shadow-lg: 0 20px 50px rgba(15, 27, 43, 0.12);
  --container: 1160px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--paper);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { margin: 0; padding: 0; list-style: none; }
h1, h2, h3, h4 {
  font-family: var(--font-display);
  color: var(--navy);
  margin: 0;
  line-height: 1.2;
  letter-spacing: -0.01em;
}
p { margin: 0; }
:focus-visible {
  outline: 2px solid var(--blue);
  outline-offset: 3px;
}
@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; }
  html { scroll-behavior: auto; }
}

.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 28px;
}
.section { padding: 88px 0; }
.section-tight { padding: 56px 0; }
.section-alt { background: var(--cloud); }
.section-navy { background: var(--navy); color: #C9D4E0; }
.section-navy h1, .section-navy h2, .section-navy h3 { color: #fff; }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--blue);
  background: var(--mist);
  padding: 6px 14px;
  border-radius: 100px;
  margin-bottom: 20px;
}
.eyebrow .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--orange); }

.h-xl { font-size: clamp(2.1rem, 4vw, 3.1rem); font-weight: 600; }
.h-lg { font-size: clamp(1.7rem, 3vw, 2.35rem); font-weight: 600; }
.h-md { font-size: 1.5rem; font-weight: 600; }
.lede { font-size: 1.125rem; color: var(--ink-soft); max-width: 640px; }
.muted { color: var(--ink-mute); }

/* ===========================
   Buttons
   =========================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px 26px;
  border-radius: var(--radius-sm);
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 15px;
  border: 1.5px solid transparent;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease, border-color 0.15s ease;
  white-space: nowrap;
}
.btn-primary { background: var(--orange); color: #fff; }
.btn-primary:hover { background: var(--orange-dark); box-shadow: 0 6px 18px rgba(245,125,32,0.28); transform: translateY(-1px); }
.btn-secondary { background: transparent; color: var(--navy); border-color: var(--line); }
.btn-secondary:hover { border-color: var(--blue); color: var(--blue); }
.btn-ghost-light { background: transparent; color: #fff; border-color: rgba(255,255,255,0.3); }
.btn-ghost-light:hover { border-color: #fff; }
.btn-on-navy { background: var(--orange); color: #fff; }
.btn-on-navy:hover { background: var(--orange-dark); }
.btn-block { width: 100%; }
.btn-sm { padding: 9px 18px; font-size: 13.5px; }

/* ===========================
   Header / Nav
   =========================== */
.topbar {
  background: var(--navy);
  color: #B9C4D2;
  font-size: 13px;
}
.topbar .container { display: flex; justify-content: space-between; align-items: center; padding-top: 8px; padding-bottom: 8px; }
.topbar a { color: #B9C4D2; }
.topbar a:hover { color: #fff; }
.topbar-links { display: flex; gap: 20px; }
.topbar-links span { display: inline-flex; align-items: center; gap: 6px; }

header.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255,255,255,0.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.nav-row {
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 0;
}
.brand { display: flex; align-items: center; gap: 10px; }
.brand img { height: 34px; width: auto; }
.brand-name { font-family: var(--font-display); font-weight: 600; font-size: 18px; }
.brand-name .b-orange { color: var(--orange); }
.brand-name .b-blue { color: var(--blue); }

.main-nav { display: flex; align-items: center; gap: 4px; }
.main-nav > ul { display: flex; align-items: center; gap: 2px; }
.main-nav > ul > li { position: relative; }
.main-nav > ul > li > a {
  display: flex; align-items: center; gap: 4px;
  padding: 10px 14px; font-size: 14.5px; font-weight: 500; color: var(--ink);
  border-radius: var(--radius-sm);
}
.main-nav > ul > li > a:hover { color: var(--blue); background: var(--mist); }
.main-nav > ul > li.current > a { color: var(--blue); }
.caret { font-size: 10px; opacity: 0.6; margin-top: 1px; }

.dropdown {
  position: absolute; top: calc(100% + 10px); left: 0;
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  min-width: 260px; padding: 10px;
  opacity: 0; visibility: hidden; transform: translateY(6px);
  transition: opacity 0.15s ease, transform 0.15s ease, visibility 0.15s ease;
}
.main-nav > ul > li:hover .dropdown,
.main-nav > ul > li:focus-within .dropdown { opacity: 1; visibility: visible; transform: translateY(0); }
.dropdown a { display: block; padding: 10px 12px; border-radius: var(--radius-sm); font-size: 14px; color: var(--ink-soft); }
.dropdown a:hover { background: var(--mist); color: var(--blue); }
.dropdown a strong { display: block; color: var(--navy); font-weight: 600; font-size: 14px; }
.dropdown a span.desc { display: block; font-size: 12.5px; color: var(--ink-mute); margin-top: 2px; }

.nav-cta { display: flex; align-items: center; gap: 14px; }
.nav-phone { display: flex; align-items: center; gap: 7px; font-weight: 600; font-size: 14px; color: var(--navy); }
.nav-phone svg { color: var(--orange); }

.menu-toggle {
  display: none;
  background: none; border: none; cursor: pointer;
  width: 40px; height: 40px; align-items: center; justify-content: center;
}
.menu-toggle span, .menu-toggle span::before, .menu-toggle span::after {
  content: ""; display: block; width: 20px; height: 2px; background: var(--navy);
  position: relative; transition: transform 0.2s ease, opacity 0.2s ease;
}
.menu-toggle span::before { position: absolute; top: -7px; }
.menu-toggle span::after { position: absolute; top: 7px; }
.menu-toggle.active span { background: transparent; }
.menu-toggle.active span::before { transform: rotate(45deg) translate(-1px,0); top: 0; }
.menu-toggle.active span::after { transform: rotate(-45deg) translate(-1px,0); top: 0; }

/* ===========================
   Hero
   =========================== */
.hero { padding: 76px 0 64px; text-align: center; }
.hero-inner { max-width: 680px; margin: 0 auto; }
.hero h1 { margin-bottom: 18px; }
.hero .lede { margin: 0 auto 34px; }
.hero-ctas { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }

.hero-shapes { position: relative; height: 0; }
.shape { position: absolute; opacity: 0.5; }

/* geometric accent strip echoing the logo's angled block */
.accent-strip { display: flex; height: 6px; width: 64px; margin: 0 auto 28px; border-radius: 4px; overflow: hidden; }
.accent-strip span:nth-child(1) { flex: 1.4; background: var(--orange); }
.accent-strip span:nth-child(2) { flex: 1; background: var(--blue); }

/* ===========================
   Service grid / cards
   =========================== */
.grid-4, .grid-3, .grid-2 { display: flex; flex-wrap: wrap; }
.grid-4 { gap: 20px; }
.grid-3, .grid-2 { gap: 24px; }
.grid-4 > * { flex: 1 1 calc(25% - 15px); min-width: 220px; }
.grid-3 > * { flex: 1 1 calc(33.333% - 16px); min-width: 240px; }
.grid-2 > * { flex: 1 1 calc(50% - 12px); min-width: 260px; }

.card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg);
  padding: 30px 26px; transition: box-shadow 0.2s ease, transform 0.2s ease, border-color 0.2s ease;
}
.card:hover { box-shadow: var(--shadow); transform: translateY(-3px); border-color: transparent; }
.card-icon {
  width: 46px; height: 46px; border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 18px;
  background: linear-gradient(135deg, var(--blue), var(--blue-light));
  clip-path: polygon(15% 0%, 100% 0%, 85% 100%, 0% 100%);
}
.card-icon svg { color: #fff; width: 22px; height: 22px; }
.card h3 { font-size: 17px; margin-bottom: 8px; }
.card p { font-size: 14.5px; color: var(--ink-soft); }
.card a.card-link { display: inline-flex; align-items: center; gap: 6px; margin-top: 14px; font-size: 13.5px; font-weight: 600; color: var(--blue); }
.card a.card-link:hover { color: var(--orange); }

/* ===========================
   Stats / trust bar
   =========================== */
.stat-bar { display: flex; flex-wrap: wrap; gap: 24px; text-align: center; }
.stat-bar > * { flex: 1 1 calc(25% - 18px); min-width: 140px; }
.stat-num { font-family: var(--font-display); font-size: 2.1rem; font-weight: 700; color: var(--navy); }
.stat-label { font-size: 13.5px; color: var(--ink-mute); margin-top: 4px; }

/* ===========================
   Split section
   =========================== */
.split { display: flex; flex-wrap: wrap; gap: 60px; align-items: center; }
.split > * { flex: 1 1 calc(50% - 30px); min-width: 280px; }
.split-media {
  background: linear-gradient(135deg, var(--mist), #fff);
  border-radius: var(--radius-lg);
  aspect-ratio: 4/3;
  display: flex; align-items: center; justify-content: center;
  border: 1px solid var(--line);
  position: relative;
  overflow: hidden;
}
.split ul.check-list li { display: flex; gap: 12px; padding: 10px 0; font-size: 15px; color: var(--ink-soft); border-bottom: 1px solid var(--line); }
.split ul.check-list li:last-child { border-bottom: none; }
.split ul.check-list svg { flex-shrink: 0; color: var(--orange); margin-top: 3px; }

/* ===========================
   CTA banner
   =========================== */
.cta-banner {
  background: linear-gradient(120deg, var(--blue-dark), var(--blue) 60%, var(--blue-light));
  border-radius: var(--radius-lg);
  padding: 56px 48px;
  display: flex; align-items: center; justify-content: space-between; gap: 32px;
  color: #fff;
}
.cta-banner h2 { color: #fff; font-size: 1.7rem; margin-bottom: 8px; }
.cta-banner p { color: rgba(255,255,255,0.85); }
.cta-banner .btn-primary { background: #fff; color: var(--blue-dark); }
.cta-banner .btn-primary:hover { background: #f0f0f0; box-shadow: none; }

/* ===========================
   Footer
   =========================== */
footer.site-footer { background: var(--navy); color: #A9B7C6; padding: 64px 0 0; }
.footer-grid { display: flex; flex-wrap: wrap; gap: 40px; padding-bottom: 48px; border-bottom: 1px solid rgba(255,255,255,0.08); }
.footer-grid > *:nth-child(1) { flex: 1.6 1 260px; }
.footer-grid > *:nth-child(2) { flex: 1 1 160px; }
.footer-grid > *:nth-child(3) { flex: 1 1 160px; }
.footer-grid > *:nth-child(4) { flex: 1.2 1 220px; }
.footer-brand .brand-name { color: #fff; }
.footer-brand p { margin-top: 14px; font-size: 14px; max-width: 280px; color: #93A2B4; }
.footer-col h4 { color: #fff; font-size: 14px; margin-bottom: 16px; text-transform: uppercase; letter-spacing: 0.04em; }
.footer-col ul li { margin-bottom: 10px; }
.footer-col a { font-size: 14px; color: #93A2B4; }
.footer-col a:hover { color: #fff; }
.footer-contact li { display: flex; gap: 10px; font-size: 14px; margin-bottom: 14px; align-items: flex-start; }
.footer-contact svg { flex-shrink: 0; color: var(--orange); margin-top: 2px; }
.footer-bottom { display: flex; justify-content: space-between; align-items: center; padding: 22px 0; font-size: 13px; color: #6E7D8F; }
.footer-bottom a { color: #93A2B4; }
.footer-bottom a:hover { color: #fff; }

/* ===========================
   Page header (inner pages)
   =========================== */
.page-header { padding: 52px 0 44px; background: var(--cloud); border-bottom: 1px solid var(--line); }
.breadcrumb { font-size: 13px; color: var(--ink-mute); margin-bottom: 14px; }
.breadcrumb a { color: var(--blue); }
.breadcrumb a:hover { text-decoration: underline; }

/* ===========================
   Service icon (large, page hero)
   =========================== */
.icon-tile {
  width: 64px; height: 64px; border-radius: 16px;
  display: flex; align-items: center; justify-content: center;
  background: linear-gradient(135deg, var(--orange), var(--blue));
  margin-bottom: 22px;
}
.icon-tile svg { width: 30px; height: 30px; color: #fff; }

/* ===========================
   Form
   =========================== */
.form-field { margin-bottom: 18px; }
.form-field label { display: block; font-size: 13.5px; font-weight: 600; color: var(--navy); margin-bottom: 6px; }
.form-field input, .form-field textarea, .form-field select {
  width: 100%; padding: 12px 14px; border: 1.5px solid var(--line); border-radius: var(--radius-sm);
  font-family: var(--font-body); font-size: 14.5px; color: var(--ink); background: #fff;
  transition: border-color 0.15s ease;
}
.form-field input:focus, .form-field textarea:focus, .form-field select:focus { border-color: var(--blue); outline: none; }
.form-row { display: flex; flex-wrap: wrap; gap: 18px; }
.form-row > * { flex: 1 1 200px; }

/* ===========================
   Utility
   =========================== */
.text-center { text-align: center; }
.mb-8 { margin-bottom: 8px; }
.mb-16 { margin-bottom: 16px; }
.mb-24 { margin-bottom: 24px; }
.mb-40 { margin-bottom: 40px; }
.mx-auto { margin-left: auto; margin-right: auto; }
.max-w-560 { max-width: 560px; }
.pill-list { display: flex; flex-wrap: wrap; gap: 10px; }
.pill { font-size: 13px; font-weight: 600; padding: 7px 14px; border-radius: 100px; background: var(--mist); color: var(--blue); }

/* ===========================
   Project / expertise cards
   =========================== */
.proj-category { margin-bottom: 48px; }
.proj-category:last-child { margin-bottom: 0; }
.proj-cat-head { display: flex; align-items: center; gap: 14px; margin-bottom: 22px; }
.proj-cat-icon {
  width: 40px; height: 40px; border-radius: 10px; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  background: linear-gradient(135deg, var(--blue), var(--blue-light));
}
.proj-cat-icon svg { width: 20px; height: 20px; color: #fff; }
.proj-cat-head h3 { font-size: 19px; }
.proj-grid { display: flex; flex-wrap: wrap; gap: 14px; }
.proj-card {
  flex: 1 1 calc(33.333% - 10px); min-width: 250px;
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 18px 20px;
}
.proj-card h4 { font-size: 14px; font-weight: 600; color: var(--navy); margin-bottom: 6px; line-height: 1.35; }
.proj-card p { font-size: 13px; color: var(--ink-soft); line-height: 1.5; margin: 0; }

/* ===========================
   Responsive
   =========================== */
@media (max-width: 980px) {
  .grid-4 > *, .grid-3 > * { flex: 1 1 calc(50% - 12px); }
  .split { gap: 36px; }
  .split > * { flex: 1 1 100%; }
  .footer-grid > * { flex: 1 1 calc(50% - 20px); }
  .stat-bar > * { flex: 1 1 calc(50% - 12px); }
}

/* ===========================
   Blog
   =========================== */
.blog-list { display: flex; flex-direction: column; gap: 16px; }
.blog-card {
  display: flex; justify-content: space-between; align-items: center; gap: 20px;
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg);
  padding: 26px 28px; color: inherit; transition: box-shadow 0.2s ease, transform 0.2s ease, border-color 0.2s ease;
}
.blog-card:hover { box-shadow: var(--shadow); transform: translateY(-2px); border-color: transparent; text-decoration: none; }
.blog-card-meta { font-size: 12px; color: var(--ink-mute); margin: 0 0 8px; }
.blog-card h3 { font-size: 17px; margin-bottom: 8px; }
.blog-card-excerpt { font-size: 13.5px; color: var(--ink-soft); margin: 0; max-width: 480px; }
.blog-card-link { font-size: 13px; font-weight: 600; color: var(--blue); white-space: nowrap; flex-shrink: 0; }

.blog-pagination { display: flex; gap: 8px; justify-content: center; margin-top: 40px; }
.blog-pagination .page-numbers {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 38px; height: 38px; padding: 0 12px; border-radius: var(--radius-sm);
  border: 1px solid var(--line); font-size: 14px; color: var(--ink);
}
.blog-pagination .page-numbers.current { background: var(--blue); border-color: var(--blue); color: #fff; }
.blog-pagination .page-numbers:hover:not(.current) { border-color: var(--blue); color: var(--blue); }

.blog-post-content { font-size: 15.5px; color: var(--ink-soft); line-height: 1.75; }
.blog-post-content p { margin-bottom: 20px; }
.blog-post-content h2 { font-size: 22px; color: var(--navy); margin: 36px 0 14px; }
.blog-post-content h3 { font-size: 18px; color: var(--navy); margin: 28px 0 12px; }
.blog-post-content ul, .blog-post-content ol { margin: 0 0 20px; padding-left: 22px; }
.blog-post-content li { margin-bottom: 8px; }
.blog-post-content a { color: var(--blue); text-decoration: underline; }
.blog-post-content strong { color: var(--navy); }

/* Post header banner (icon-based, Option 2) */
.post-banner {
  padding: 52px 0 40px;
  background: var(--navy);
  border-bottom: 1px solid var(--navy);
  text-align: center;
}
.post-banner-crumb { text-align: left; color: rgba(255,255,255,0.55); margin-bottom: 20px; }
.post-banner-crumb a { color: rgba(255,255,255,0.85); }
.post-banner-icon {
  width: 60px; height: 60px; margin: 0 auto 22px;
  display: flex; align-items: center; justify-content: center;
  border-radius: 16px; color: #fff;
  background: linear-gradient(135deg, var(--orange), var(--blue-light));
  box-shadow: 0 10px 24px rgba(0,0,0,0.25);
}
.post-banner-title { color: #fff; text-align: center; }
.post-banner-meta { color: rgba(255,255,255,0.6); text-align: center; font-size: 13px; }

@media (max-width: 760px) {
  .blog-card { flex-direction: column; align-items: flex-start; gap: 12px; }
  .post-banner { padding: 40px 0 32px; }
}

@media (max-width: 760px) {
  .topbar-links span:last-child { display: none; }
  .main-nav { position: fixed; top: 0; right: 0; height: 100vh; width: 84%; max-width: 340px;
    background: #fff; flex-direction: column; align-items: stretch; padding: 90px 24px 24px;
    transform: translateX(100%); transition: transform 0.25s ease; box-shadow: -10px 0 40px rgba(0,0,0,0.15);
    overflow-y: auto;
  }
  .main-nav.open { transform: translateX(0); }
  .main-nav > ul { flex-direction: column; align-items: stretch; gap: 0; width: 100%; }
  .main-nav > ul > li > a { padding: 14px 4px; border-bottom: 1px solid var(--line); border-radius: 0; justify-content: space-between; }
  .dropdown { position: static; opacity: 1; visibility: visible; transform: none; box-shadow: none; border: none; display: none; padding: 6px 0 6px 14px; }
  .dropdown.open { display: block; }
  .nav-cta { display: none; }
  .menu-toggle { display: flex; }
  .nav-scrim { display: none; position: fixed; inset: 0; background: rgba(15,27,43,0.4); z-index: 90; }
  .nav-scrim.show { display: block; }

  .grid-4 > *, .grid-3 > *, .grid-2 > * { flex: 1 1 100%; }
  .proj-card { flex: 1 1 100%; }
  .hero { padding: 48px 0 40px; }
  .hero-ctas { flex-direction: column; }
  .hero-ctas .btn { width: 100%; }
  .cta-banner { flex-direction: column; text-align: center; padding: 40px 26px; }
  .footer-grid > * { flex: 1 1 100%; }
  .stat-bar > * { flex: 1 1 calc(50% - 12px); }
  .form-row > * { flex: 1 1 100%; }
  .section { padding: 56px 0; }
}
