/*
Theme Name: Compu-Tek
Theme URI: https://www.compu-tek.ca/
Author: Compu-Tek Computer Services
Author URI: https://www.compu-tek.ca/
Description: Custom theme built from the October 2026 Compu-Tek website redesign — green and orange on white, with separate Home, Services, About, Testimonials and Contact page templates matching the approved design.
Version: 1.0.18
Text Domain: computek
*/
:root {
        --bg: #ffffff;
        --bg-soft: #f2f6f2;
        --surface: #ffffff;
        --ink: #15211a;
        --ink-soft: #44554b;
        --line: #dbe5dc;
        --green: #177245;
        --green-deep: #0d4d2c;
        --green-tint: #e3f1e7;
        --orange: #ef6118;
        --orange-deep: #cf4d0c;
        --orange-tint: #fdeee2;
        --shadow: 0 18px 45px -18px rgba(13, 60, 36, 0.28);
        --radius: 14px;
      }
      @media (prefers-color-scheme: dark) {
        :root {
          --bg: #0c130f;
          --bg-soft: #101a14;
          --surface: #14211a;
          --ink: #edf4ee;
          --ink-soft: #a9bcb0;
          --line: #26382d;
          --green: #3cb874;
          --green-deep: #7fd6a4;
          --green-tint: #173324;
          --orange: #ff8438;
          --orange-deep: #ffa25e;
          --orange-tint: #33200f;
          --shadow: 0 18px 45px -18px rgba(0, 0, 0, 0.7);
        }
      }
      * { box-sizing: border-box; }
      html { scroll-behavior: smooth; }
      body {
        margin: 0;
        font-family: "Public Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
        background: var(--bg);
        color: var(--ink);
        line-height: 1.6;
        font-size: 17px;
        -webkit-font-smoothing: antialiased;
      }
      h1, h2, h3, .display {
        font-family: "Archivo", "Public Sans", sans-serif;
        line-height: 1.12;
        letter-spacing: -0.01em;
        margin: 0;
      }
      p { margin: 0; }
      a { color: var(--green); }
      img { display: block; max-width: 100%; }
      .wrap { max-width: 1180px; margin: 0 auto; padding: 0 24px; }

      /* ---------- Header ---------- */
      header.site {
        position: sticky; top: 0; z-index: 50;
        background: color-mix(in srgb, var(--bg) 92%, transparent);
        backdrop-filter: blur(10px);
        border-bottom: 1px solid var(--line);
      }
      .nav-row { display: flex; align-items: center; justify-content: space-between; gap: 20px; min-height: 72px; }
      .brand { display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--ink); }
      .brand-mark {
        width: 44px; height: 44px; flex: none;
        display: grid; place-items: center;
      }
      .brand-name { font-family: "Archivo", sans-serif; font-weight: 800; font-size: 1.35rem; line-height: 1; }
      .brand-name .tek { color: var(--orange); }
      .brand-sub { font-size: 0.72rem; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; color: var(--ink-soft); margin-top: 3px; }
      nav.main { display: flex; align-items: center; gap: 30px; }
      nav.main a { color: var(--ink); text-decoration: none; font-weight: 600; font-size: 0.98rem; }
      nav.main a:hover { color: var(--green); }
      .btn {
        display: inline-flex; align-items: center; gap: 9px;
        font-family: "Archivo", sans-serif; font-weight: 700; font-size: 1rem;
        text-decoration: none; border: 0; cursor: pointer;
        padding: 13px 24px; border-radius: 10px;
        transition: transform 0.15s ease, background 0.15s ease;
      }
      .btn:active { transform: translateY(1px); }
      .btn-orange { background: var(--orange); color: #fff; }
      .btn-orange:hover { background: var(--orange-deep); }
      .btn-green { background: var(--green); color: #fff; }
      .btn-green:hover { background: var(--green-deep); }
      @media (prefers-color-scheme: dark) { .btn-green:hover { background: var(--green); color: #08130c; } }
      .btn-ghost { background: transparent; color: var(--ink); border: 1.5px solid var(--line); }
      .btn-ghost:hover { border-color: var(--green); color: var(--green); }
      .btn-small { padding: 10px 18px; font-size: 0.95rem; }
      .menu-toggle {
        display: none; background: none; border: 1.5px solid var(--line); border-radius: 9px;
        width: 44px; height: 44px; cursor: pointer; color: var(--ink);
        align-items: center; justify-content: center;
      }

      /* ---------- Hero ---------- */
      .hero { background: var(--bg-soft); border-bottom: 1px solid var(--line); overflow: hidden; }
      .hero-grid { display: grid; grid-template-columns: 1.05fr 1fr; gap: 56px; align-items: center; padding: 72px 0 80px; }
      .hero-badge {
        display: inline-flex; align-items: center; gap: 8px;
        background: var(--green-tint); color: var(--green-deep);
        font-weight: 700; font-size: 0.85rem; padding: 7px 14px; border-radius: 999px; margin-bottom: 22px;
      }
      @media (prefers-color-scheme: dark) { .hero-badge { color: var(--green); } }
      .hero-badge .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--orange); flex: none; }
      h1.hero-title { font-size: clamp(2.5rem, 5.2vw, 3.9rem); font-weight: 800; }
      h1.hero-title em { font-style: normal; color: var(--green); }
      h1.hero-title .hl { color: var(--orange); }
      .hero-lede { font-size: 1.18rem; color: var(--ink-soft); margin: 22px 0 30px; max-width: 34rem; }
      .hero-ctas { display: flex; flex-wrap: wrap; gap: 14px; }
      .hero-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 44px; border-top: 1px solid var(--line); padding-top: 26px; }
      .hero-stats div { padding-right: 16px; border-right: 1px solid var(--line); }
      .hero-stats div:last-child { border-right: 0; padding-right: 0; }
      .hero-stats strong { font-family: "Archivo", sans-serif; font-size: 1.55rem; font-weight: 800; display: block; line-height: 1.1; }
      .hero-stats span { font-size: 0.88rem; color: var(--ink-soft); font-weight: 500; }
      .hero-media { position: relative; }
      .hero-media img { border-radius: 18px; box-shadow: var(--shadow); aspect-ratio: 1 / 1; object-fit: cover; width: 100%; }
      .hero-card {
        position: absolute; left: -18px; bottom: 26px;
        background: var(--surface); border: 1px solid var(--line); border-radius: 12px;
        box-shadow: var(--shadow); padding: 14px 18px; max-width: 270px;
      }
      .hero-card strong { font-family: "Archivo", sans-serif; display: block; font-size: 0.98rem; }
      .hero-card span { font-size: 0.86rem; color: var(--ink-soft); }

      /* ---------- Dealer strip ---------- */
      .dealers { padding: 30px 0; border-bottom: 1px solid var(--line); }
      .dealers-row { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 34px; justify-content: space-between; }
      .dealers p { font-size: 0.85rem; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--ink-soft); }
      .dealer-names { display: flex; flex-wrap: wrap; gap: 12px 34px; align-items: baseline; }
      .dealer-names span { font-family: "Archivo", sans-serif; font-weight: 700; font-size: 1.25rem; color: var(--ink); opacity: 0.85; }
      .dealer-names span small { display: block; font-family: "Public Sans", sans-serif; font-weight: 500; font-size: 0.72rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-soft); }

      /* ---------- Sections ---------- */
      section.block { padding: 88px 0; }
      section.block.alt { background: var(--bg-soft); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
      .section-head { max-width: 46rem; margin-bottom: 48px; }
      .section-head.center { margin-left: auto; margin-right: auto; text-align: center; }
      .kicker { font-weight: 700; font-size: 0.83rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--orange); margin-bottom: 14px; }
      h2 { font-size: clamp(1.9rem, 3.6vw, 2.6rem); font-weight: 800; }
      .section-head p { color: var(--ink-soft); margin-top: 16px; font-size: 1.08rem; }

      /* Services */
      .services-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
      .service {
        background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
        padding: 28px 26px;
      }
      .service .icon {
        width: 48px; height: 48px; border-radius: 11px; margin-bottom: 18px;
        background: var(--green-tint); color: var(--green);
        display: grid; place-items: center;
      }
      .service:nth-child(3n+2) .icon { background: var(--orange-tint); color: var(--orange); }
      .service h3 { font-size: 1.14rem; font-weight: 700; margin-bottom: 8px; }
      .service p { font-size: 0.97rem; color: var(--ink-soft); }

      /* About / split */
      .split { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; }
      .split-media img { border-radius: 18px; box-shadow: var(--shadow); width: 100%; object-fit: cover; }
      .split-media .tall { aspect-ratio: 4 / 3.4; }
      .split-copy p { color: var(--ink-soft); margin-top: 18px; }
      .split-copy p strong { color: var(--ink); }
      .check-list { list-style: none; margin: 26px 0 0; padding: 0; display: grid; gap: 13px; }
      .check-list li { display: flex; gap: 12px; align-items: flex-start; font-weight: 500; }
      .check-list .tick {
        flex: none; width: 24px; height: 24px; border-radius: 50%; margin-top: 2px;
        background: var(--green); color: #fff; display: grid; place-items: center;
      }

      /* Who we serve */
      .serve-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; margin-top: 8px; }
      .serve {
        border: 1.5px solid var(--line); border-radius: var(--radius); padding: 26px 22px; background: var(--surface);
      }
      .serve .icon { color: var(--orange); margin-bottom: 14px; }
      .serve h3 { font-size: 1.08rem; font-weight: 700; margin-bottom: 6px; }
      .serve p { font-size: 0.93rem; color: var(--ink-soft); }
      .serve-note {
        margin-top: 28px; background: var(--green-tint); border-radius: var(--radius);
        padding: 24px 28px; display: flex; gap: 18px; align-items: center; flex-wrap: wrap; justify-content: space-between;
      }
      .serve-note p { font-weight: 600; max-width: 44rem; }
      @media (prefers-color-scheme: dark) { .serve-note p { color: var(--ink); } }

      /* Why us */
      .why-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
      .why {
        display: flex; gap: 20px; background: var(--surface); border: 1px solid var(--line);
        border-radius: var(--radius); padding: 30px 28px;
      }
      .why .num {
        font-family: "Archivo", sans-serif; font-weight: 800; font-size: 1.7rem; line-height: 1;
        color: var(--orange); flex: none;
      }
      .why h3 { font-size: 1.16rem; font-weight: 700; margin-bottom: 7px; }
      .why p { font-size: 0.97rem; color: var(--ink-soft); }

      /* Advice */
      .advice-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
      .advice { border-radius: var(--radius); padding: 36px 34px; color: #fff; }
      .advice.green { background: var(--green-deep); }
      .advice.dark { background: #22302a; }
      @media (prefers-color-scheme: dark) {
        .advice.green { background: #14532d; }
        .advice.dark { background: #1b2921; }
      }
      .advice .tag { font-size: 0.8rem; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: #ffb380; margin-bottom: 14px; }
      .advice.green .tag { color: #9fe3bb; }
      .advice h3 { font-size: 1.5rem; font-weight: 800; margin-bottom: 14px; }
      .advice p { color: rgba(255,255,255,0.88); font-size: 1rem; margin-bottom: 12px; }
      .advice p:last-child { margin-bottom: 0; }
      .advice strong { color: #fff; }

      /* Testimonials */
      .testi-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
      .testi {
        background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
        padding: 32px 28px; display: flex; flex-direction: column; gap: 18px;
      }
      .testi .stars { color: var(--orange); display: flex; gap: 3px; }
      .testi blockquote { margin: 0; font-size: 1.04rem; line-height: 1.65; }
      .testi figcaption { margin-top: auto; }
      .testi figcaption strong { font-family: "Archivo", sans-serif; display: block; font-size: 1rem; }
      .testi figcaption span { font-size: 0.88rem; color: var(--ink-soft); }

      /* Local band */
      .local { position: relative; border-radius: 20px; overflow: hidden; }
      .local img { width: 100%; height: 430px; object-fit: cover; }
      .local-overlay {
        position: absolute; inset: 0; display: flex; flex-direction: column; justify-content: flex-end;
        padding: 40px; background: linear-gradient(to top, rgba(6, 26, 15, 0.82) 0%, rgba(6, 26, 15, 0.25) 55%, transparent 100%);
        color: #fff;
      }
      .local-overlay h2 { font-size: clamp(1.7rem, 3.4vw, 2.4rem); max-width: 22em; }
      .local-overlay p { color: rgba(255,255,255,0.9); margin-top: 10px; max-width: 38rem; }

      /* Contact */
      .contact-grid { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 56px; align-items: start; }
      .contact-info h2 { margin-bottom: 16px; }
      .contact-info > p { color: var(--ink-soft); }
      .info-rows { margin-top: 30px; display: grid; gap: 20px; }
      .info-row { display: flex; gap: 16px; align-items: flex-start; }
      .info-row .icon {
        flex: none; width: 46px; height: 46px; border-radius: 11px;
        background: var(--orange-tint); color: var(--orange); display: grid; place-items: center;
      }
      .info-row strong { font-family: "Archivo", sans-serif; display: block; font-size: 1rem; }
      .info-row span { color: var(--ink-soft); font-size: 0.96rem; }
      form.request {
        background: var(--surface); border: 1px solid var(--line); border-radius: 18px;
        padding: 34px; box-shadow: var(--shadow);
      }
      form.request h3 { font-size: 1.35rem; font-weight: 800; margin-bottom: 6px; }
      form.request > p { color: var(--ink-soft); font-size: 0.95rem; margin-bottom: 24px; }
      .field { margin-bottom: 16px; }
      .field label { display: block; font-weight: 600; font-size: 0.92rem; margin-bottom: 7px; }
      .field input, .field select, .field textarea {
        width: 100%; font: inherit; font-size: 1rem; color: var(--ink);
        background: var(--bg); border: 1.5px solid var(--line); border-radius: 10px;
        padding: 12px 14px;
      }
      .field input:focus, .field select:focus, .field textarea:focus {
        outline: 2px solid var(--green); outline-offset: 1px; border-color: var(--green);
      }
      .field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
      .captcha-field { margin-bottom: 18px; }
      .captcha-row { display: flex; gap: 10px; align-items: stretch; }
      .captcha-challenge {
        flex: none; display: flex; align-items: center; justify-content: center; gap: 6px;
        min-width: 132px; padding: 0 16px;
        background: var(--green-tint); border: 1.5px solid var(--line); border-radius: 10px;
        font-family: "Archivo", sans-serif; font-weight: 800; font-size: 1.08rem; letter-spacing: 0.04em; color: var(--green-deep);
        user-select: none; white-space: nowrap;
      }
      @media (prefers-color-scheme: dark) { .captcha-challenge { color: var(--green); } }
      .captcha-refresh {
        flex: none; width: 48px; display: grid; place-items: center;
        background: var(--bg); border: 1.5px solid var(--line); border-radius: 10px;
        color: var(--ink-soft); cursor: pointer;
      }
      .captcha-refresh:hover { border-color: var(--green); color: var(--green); }
      .captcha-refresh:active { transform: translateY(1px); }
      .captcha-row input { flex: 1; min-width: 0; }
      .captcha-row input.input-error { border-color: #c2410c; outline: 2px solid rgba(239,97,24,0.35); outline-offset: 1px; }
      .captcha-hint { font-size: 0.84rem; color: var(--ink-soft); margin-top: 7px; }
      .captcha-error { font-size: 0.88rem; font-weight: 600; color: #b45309; margin-top: 7px; }
      @media (prefers-color-scheme: dark) { .captcha-error { color: #fbbf24; } }
      @media (max-width: 480px) {
        .captcha-row { flex-wrap: wrap; }
        .captcha-challenge { flex: 1; min-width: 0; }
        .captcha-row input { flex-basis: 100%; order: 3; }
      }
      .form-result {
        display: none; margin-top: 20px; border: 1.5px solid var(--green); background: var(--green-tint);
        border-radius: 12px; padding: 20px 22px;
      }
      .form-result.show { display: block; }
      .form-result strong { font-family: "Archivo", sans-serif; display: block; margin-bottom: 6px; }
      .form-result p { font-size: 0.94rem; color: var(--ink-soft); margin-bottom: 14px; }
      .form-result pre {
        white-space: pre-wrap; word-break: break-word; font: inherit; font-size: 0.9rem;
        background: var(--surface); border: 1px solid var(--line); border-radius: 9px; padding: 14px; margin: 0 0 16px;
        max-height: 220px; overflow: auto;
      }
      .form-result .row { display: flex; flex-wrap: wrap; gap: 10px; }

      /* Footer */
      footer.site { background: #0d1a12; color: #cfe0d3; padding: 56px 0 34px; }
      @media (prefers-color-scheme: dark) { footer.site { background: #070d09; border-top: 1px solid var(--line); } }
      .footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 40px; }
      footer.site .brand-name { color: #fff; }
      footer.site .brand-sub { color: #8fae97; }
      footer.site p { font-size: 0.95rem; color: #a9c2ae; max-width: 26rem; margin-top: 14px; }
      footer.site h4 { font-family: "Archivo", sans-serif; color: #fff; font-size: 1rem; margin: 0 0 16px; }
      footer.site ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; font-size: 0.95rem; }
      footer.site a { color: #cfe0d3; text-decoration: none; }
      footer.site a:hover { color: var(--orange); }
      .footer-base {
        margin-top: 44px; padding-top: 22px; border-top: 1px solid rgba(255,255,255,0.14);
        display: flex; flex-wrap: wrap; gap: 10px 28px; justify-content: space-between; font-size: 0.86rem; color: #8fae97;
      }

      /* Content is always visible — no scroll-triggered hiding, so nothing
         can ever render blank if an animation or observer doesn't fire. */
      @media (prefers-reduced-motion: reduce) {
        html { scroll-behavior: auto; }
      }

      /* ---------- Responsive ---------- */
      @media (max-width: 980px) {
        .hero-grid { grid-template-columns: 1fr; gap: 40px; padding: 52px 0 60px; }
        .hero-card { left: 14px; }
        .services-grid { grid-template-columns: repeat(2, 1fr); }
        .split { grid-template-columns: 1fr; gap: 36px; }
        .serve-grid { grid-template-columns: repeat(2, 1fr); }
        .testi-grid { grid-template-columns: 1fr; }
        .contact-grid { grid-template-columns: 1fr; gap: 40px; }
        .footer-grid { grid-template-columns: 1fr 1fr; }
      }
      @media (max-width: 720px) {
        nav.main {
          display: none; position: absolute; top: 100%; left: 0; right: 0;
          background: var(--bg); border-bottom: 1px solid var(--line);
          flex-direction: column; align-items: stretch; gap: 0; padding: 10px 24px 18px;
        }
        nav.main.open { display: flex; }
        nav.main a { padding: 12px 0; border-bottom: 1px solid var(--line); }
        nav.main a:last-child { border-bottom: 0; }
        nav.main .btn { margin-top: 12px; justify-content: center; }
        .menu-toggle { display: inline-flex; }
        .nav-cta { display: none; }
        section.block { padding: 62px 0; }
        .services-grid, .why-grid, .advice-grid { grid-template-columns: 1fr; }
        .field-row { grid-template-columns: 1fr; }
        .hero-stats { gap: 14px; }
        .hero-stats div { padding-right: 10px; }
        .local-overlay { padding: 26px; }
        .local img { height: 340px; }
        form.request { padding: 26px 22px; }
        .footer-grid { grid-template-columns: 1fr; }
      }

/* ---------- WordPress compatibility additions ---------- */
.main ul.menu { display: flex; align-items: center; gap: 30px; list-style: none; margin: 0; padding: 0; }
.main ul.menu li { display: flex; align-items: center; }
@media (max-width: 720px) {
  .main ul.menu { flex-direction: column; align-items: stretch; gap: 0; width: 100%; }
  .main ul.menu li { display: block; }
}
.cf7-wrap { background: var(--surface); border: 1px solid var(--line); border-radius: 18px; padding: 34px; box-shadow: var(--shadow); }
.cf7-wrap h3 { font-size: 1.35rem; font-weight: 800; margin-bottom: 6px; }
.cf7-wrap > p { color: var(--ink-soft); font-size: 0.95rem; margin-bottom: 24px; }
.wpcf7-form label { display: block; font-weight: 600; font-size: 0.92rem; margin-bottom: 16px; }
.wpcf7-form input[type="text"], .wpcf7-form input[type="email"], .wpcf7-form textarea {
  width: 100%; font: inherit; font-size: 1rem; color: var(--ink);
  background: var(--bg); border: 1.5px solid var(--line); border-radius: 10px;
  padding: 12px 14px; margin-top: 7px;
}
.wpcf7-form input[type="submit"] {
  background: var(--orange); color: #fff; border: 0; border-radius: 10px;
  padding: 13px 26px; font: inherit; font-weight: 700; cursor: pointer; width: 100%;
}
.wpcf7-form input[type="submit"]:hover { filter: brightness(1.06); }
@media (max-width: 720px) { .cf7-wrap { padding: 26px 22px; } }
.page-content h1 { margin-bottom: 18px; }
.page-content p { margin-bottom: 14px; }

/* ---------- Legacy page content (v1.0.1) ---------- */
.page-content { overflow: hidden; }
.page-content::after { content: ""; display: block; clear: both; }
footer.site { clear: both; }
.page-content img { max-width: 100%; height: auto; }
.page-content table { max-width: 100%; }
.page-content iframe { max-width: 100%; }

/* ---------- Header logo (v1.0.2) ---------- */
.brand-logo { height: 46px; width: auto; display: block; }
@media (max-width: 640px) { .brand-logo { height: 40px; } }

/* ---------- Small-screen fixes (v1.0.5) ---------- */
@media (max-width: 480px) {
  .brand { gap: 9px; }
  .brand-logo { height: 34px; }
  .brand-name { font-size: 1.1rem; white-space: nowrap; }
  .brand-sub { font-size: 0.6rem; letter-spacing: 0.09em; white-space: nowrap; }
  .nav-row { gap: 10px; min-height: 62px; }
  h1.hero-title { font-size: 2.15rem; }
  .hero-lede { font-size: 1.05rem; }
}

/* ---------- Hero side padding fix (v1.0.6) ---------- */
.hero-grid { padding-left: 24px; padding-right: 24px; }

/* v1.0.11: square hero frame enforced with the padding technique (independent of aspect-ratio handling) */
.hero-media { height: 0; padding-top: 100%; }
.hero-media img { position: absolute; inset: 0; width: 100%; height: 100%; }
