/*
Theme Name: PC Professionals
Theme URI: https://www.pcprofessionals.com.pk
Author: PC Professionals
Description: Corporate theme for PC Professionals: enterprise servers, networking and IT infrastructure. Includes a product catalog (Dell, HP/HPE, IBM, Cisco, vCloudpoint), SLA plans, about and contact pages.
Version: 1.0.0
Requires at least: 6.0
Requires PHP: 7.4
License: GPL-2.0-or-later
Text Domain: pcp
*/

:root {
  --navy: #0b3d6e;
  --navy-d: #082c50;
  --blue: #1a6fc4;
  --sky: #5aa9e6;
  --cyan: #2aa3e0;
  --red: #e8452c;
  --red-d: #c9361f;
  --tint: #eaf2fb;
  --bg: #f6f9fd;
  --ink: #1b2a3a;
  --muted: #5d6b7a;
  --line: #d9e3ef;
  --radius: 10px;
  --shadow: 0 6px 24px rgba(11, 61, 110, .10);
  --font: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --font-h: "Manrope", "Inter", system-ui, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; font-family: var(--font); color: var(--ink); background: #fff; line-height: 1.65; font-size: 16px; -webkit-font-smoothing: antialiased; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--blue); text-decoration: none; }
a:hover { color: var(--navy); }
h1, h2, h3, h4 { font-family: var(--font-h); color: var(--navy); line-height: 1.2; margin: 0 0 .5em; font-weight: 800; }
h1 { font-size: clamp(2rem, 4.4vw, 3.2rem); }
h2 { font-size: clamp(1.6rem, 3vw, 2.2rem); }
h3 { font-size: 1.15rem; }
p { margin: 0 0 1em; }
ul { margin: 0; padding: 0; list-style: none; }
.wrap { width: min(1180px, 100% - 40px); margin-inline: auto; }
.screen-reader-text { position: absolute; left: -9999px; }

/* Buttons */
.btn { display: inline-flex; align-items: center; gap: .5em; padding: .8em 1.5em; border-radius: 8px; font-weight: 700; font-size: .95rem; border: 2px solid transparent; cursor: pointer; transition: .2s; font-family: var(--font); line-height: 1.2; }
.btn-primary { background: var(--red); color: #fff; }
.btn-primary:hover { background: var(--red-d); color: #fff; transform: translateY(-1px); }
.btn-outline { border-color: rgba(255,255,255,.7); color: #fff; }
.btn-outline:hover { background: #fff; color: var(--navy); }
.btn-dark { background: var(--navy); color: #fff; }
.btn-dark:hover { background: var(--navy-d); color: #fff; }
.btn-line { border-color: var(--navy); color: var(--navy); }
.btn-line:hover { background: var(--navy); color: #fff; }
.btn-sm { padding: .55em 1.1em; font-size: .85rem; }

/* Top bar */
.topbar { background: var(--navy-d); color: #cfe0f2; font-size: .82rem; }
.topbar .wrap { display: flex; justify-content: space-between; gap: 16px; padding: 8px 0; flex-wrap: wrap; }
.topbar a { color: #fff; }
.topbar .tb-left { display: flex; gap: 22px; flex-wrap: wrap; }
.topbar .tb-left span { display: inline-flex; align-items: center; gap: 6px; }
.topbar svg { width: 14px; height: 14px; stroke: var(--sky); }

/* Header */
.site-header { background: #fff; position: sticky; top: 0; z-index: 50; border-bottom: 1px solid var(--line); }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 20px; min-height: 76px; }
.site-logo img { height: 52px; width: auto; }
.main-nav ul { display: flex; gap: 4px; align-items: center; }
.main-nav li { position: relative; }
.main-nav a { display: block; padding: 10px 14px; color: var(--navy); font-weight: 600; font-size: .95rem; border-radius: 6px; }
.main-nav a:hover, .main-nav .current-menu-item > a, .main-nav .current-menu-ancestor > a { color: var(--blue); background: var(--tint); }
.main-nav .sub-menu { position: absolute; top: 100%; left: 0; min-width: 200px; background: #fff; border: 1px solid var(--line); border-radius: 8px; box-shadow: var(--shadow); padding: 6px; display: none; flex-direction: column; gap: 0; }
.main-nav li:hover > .sub-menu, .main-nav li:focus-within > .sub-menu { display: flex; }
.nav-toggle { display: none; background: none; border: 0; padding: 8px; cursor: pointer; }
.nav-toggle span { display: block; width: 26px; height: 3px; background: var(--navy); margin: 5px 0; border-radius: 2px; }
.header-cta { white-space: nowrap; }

/* Hero */
.hero { background: linear-gradient(135deg, var(--navy-d) 0%, var(--navy) 60%, #14558f 100%); color: #fff; position: relative; overflow: hidden; }
.hero::after { content: ""; position: absolute; right: -120px; top: -120px; width: 480px; height: 480px; border-radius: 50%; background: radial-gradient(circle, rgba(90,169,230,.28), transparent 70%); }
.hero .wrap { display: grid; grid-template-columns: 1.1fr .9fr; gap: 40px; align-items: center; padding: 70px 0 80px; position: relative; z-index: 1; }
.hero h1 { color: #fff; margin-bottom: .4em; }
.hero p.lead { font-size: 1.15rem; color: #d3e3f4; max-width: 560px; }
.hero .eyebrow { color: var(--sky); }
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 28px; }
.hero-media { background: #fff; border-radius: 16px; padding: 24px; box-shadow: 0 20px 50px rgba(0,0,0,.35); }
.hero-media img { width: 100%; height: 260px; object-fit: contain; }
.hero-media .cap { text-align: center; color: var(--navy); font-weight: 700; margin-top: 10px; font-family: var(--font-h); }
.eyebrow { display: inline-block; font-size: .78rem; letter-spacing: .16em; text-transform: uppercase; font-weight: 700; color: var(--blue); margin-bottom: 10px; }

/* Brand strip */
.brandbar { background: var(--tint); border-bottom: 1px solid var(--line); }
.brandbar .wrap { display: flex; gap: 14px 38px; justify-content: center; align-items: center; flex-wrap: wrap; padding: 18px 0; }
.brandbar .lbl { font-size: .78rem; text-transform: uppercase; letter-spacing: .14em; color: var(--muted); font-weight: 700; }
.brandbar b { font-family: var(--font-h); color: var(--navy); font-size: 1.15rem; letter-spacing: .04em; }

/* Sections */
.section { padding: 76px 0; }
.section.alt { background: var(--bg); }
.section.dark { background: var(--navy); color: #d3e3f4; }
.section.dark h2, .section.dark h3 { color: #fff; }
.section-head { max-width: 720px; margin: 0 auto 44px; text-align: center; }
.section-head p { color: var(--muted); }
.section.dark .section-head p { color: #b8cde4; }
.section-head.left { margin-left: 0; text-align: left; }

/* Stats */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; background: #fff; border-radius: var(--radius); box-shadow: var(--shadow); margin-top: -40px; position: relative; z-index: 2; }
.stat { padding: 28px 20px; text-align: center; border-right: 1px solid var(--line); }
.stat:last-child { border-right: 0; }
.stat b { display: block; font-family: var(--font-h); font-size: 2.1rem; color: var(--navy); line-height: 1.1; }
.stat span { color: var(--muted); font-size: .9rem; }

/* Category tiles */
.tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 20px; }
.tile { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 26px 22px; transition: .2s; }
.tile:hover { box-shadow: var(--shadow); transform: translateY(-3px); border-color: var(--sky); }
.tile .ico { width: 52px; height: 52px; border-radius: 12px; background: var(--tint); display: grid; place-items: center; margin-bottom: 14px; }
.tile svg, .ico svg { width: 26px; height: 26px; stroke: var(--navy); fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.tile h3 { margin-bottom: 6px; }
.tile p { color: var(--muted); font-size: .92rem; margin: 0; }

/* Product cards */
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 24px; }
.pcard { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; display: flex; flex-direction: column; transition: .2s; }
.pcard:hover { box-shadow: var(--shadow); transform: translateY(-3px); }
.pcard .pimg { background: var(--tint); aspect-ratio: 16/10; display: grid; place-items: center; padding: 14px; position: relative; }
.pcard .pimg img { width: 100%; height: 100%; object-fit: contain; mix-blend-mode: multiply; }
.pcard .pbrand { position: absolute; top: 10px; left: 10px; background: var(--navy); color: #fff; font-size: .7rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; padding: 3px 9px; border-radius: 20px; }
.pcard .pbody { padding: 18px 20px 20px; display: flex; flex-direction: column; flex: 1; }
.pcard h3 { margin-bottom: 4px; }
.pcard h3 a { color: var(--navy); }
.pcard .ptag { color: var(--muted); font-size: .9rem; margin-bottom: 14px; }
.pcard .pact { margin-top: auto; display: flex; gap: 8px; flex-wrap: wrap; }

/* Why / feature cards */
.feat { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 22px; }
.feat .item { display: flex; gap: 16px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; }
.feat .ico { flex: none; width: 50px; height: 50px; border-radius: 12px; background: var(--navy); display: grid; place-items: center; }
.feat .ico svg { stroke: #fff; }
.feat h3 { margin-bottom: 4px; }
.feat p { margin: 0; color: var(--muted); font-size: .93rem; }

/* vCloudpoint band */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; }
.split .media { background: #fff; border-radius: 16px; padding: 28px; }
.split .media img { width: 100%; max-height: 300px; object-fit: contain; }
.checks li { position: relative; padding-left: 30px; margin-bottom: 10px; }
.checks li::before { content: ""; position: absolute; left: 0; top: 6px; width: 18px; height: 18px; border-radius: 50%; background: var(--cyan) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 12l4 4 8-9'/%3E%3C/svg%3E") center/12px no-repeat; }

/* SLA */
.sla { display: grid; grid-template-columns: repeat(auto-fit, minmax(270px, 1fr)); gap: 24px; }
.plan { background: #fff; border: 1px solid var(--line); border-top: 5px solid var(--sky); border-radius: var(--radius); padding: 28px 26px; }
.plan.gold { border-top-color: #e0a526; }
.plan.platinum { border-top-color: var(--navy); box-shadow: var(--shadow); }
.plan h3 { font-size: 1.4rem; letter-spacing: .04em; }
.plan .meta { display: grid; gap: 2px; margin-bottom: 14px; padding-bottom: 14px; border-bottom: 1px solid var(--line); }
.plan .meta small { color: var(--muted); text-transform: uppercase; letter-spacing: .1em; font-size: .7rem; font-weight: 700; }
.plan .meta b { color: var(--navy); font-size: 1.05rem; }

/* Clients */
.chips { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; }
.chips span { background: #fff; border: 1px solid var(--line); border-radius: 30px; padding: 8px 18px; font-weight: 600; font-size: .86rem; color: var(--navy); }

/* CTA band */
.cta { background: linear-gradient(120deg, var(--navy-d), var(--navy)); color: #fff; padding: 56px 0; }
.cta .wrap { display: flex; justify-content: space-between; align-items: center; gap: 24px; flex-wrap: wrap; }
.cta h2 { color: #fff; margin: 0 0 6px; }
.cta p { margin: 0; color: #cfe0f2; }

/* Page hero */
.page-hero { background: linear-gradient(135deg, var(--navy-d), var(--navy)); color: #fff; padding: 52px 0 48px; border-bottom: 4px solid var(--sky); }
.page-hero h1 { color: #fff; margin-bottom: 8px; font-size: clamp(1.8rem, 4vw, 2.6rem); }
.page-hero p { color: #cfe0f2; margin: 0; font-style: italic; }
.page-hero .eyebrow { color: var(--sky); }

/* Product single */
.ps { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: start; }
.ps-media { background: var(--tint); border-radius: var(--radius); padding: 28px; position: sticky; top: 100px; }
.ps-media img { width: 100%; max-height: 380px; object-fit: contain; mix-blend-mode: multiply; margin: 0 auto; }
.spec { width: 100%; border-collapse: collapse; border: 1px solid var(--line); border-radius: 8px; overflow: hidden; }
.spec th, .spec td { padding: 12px 14px; text-align: left; vertical-align: top; font-size: .93rem; }
.spec th { width: 32%; color: var(--navy); font-weight: 700; background: #fff; }
.spec tr:nth-child(odd) td, .spec tr:nth-child(odd) th { background: var(--tint); }
.spec td { border-left: 1px solid var(--line); }
.cols3 { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 22px; margin-top: 44px; }
.box { background: var(--bg); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; }
.box h3 { display: flex; align-items: center; gap: 10px; font-size: 1rem; letter-spacing: .08em; text-transform: uppercase; }
.box h3 svg { width: 22px; height: 22px; stroke: var(--blue); fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.dots li { position: relative; padding-left: 18px; margin-bottom: 8px; }
.dots li::before { content: ""; position: absolute; left: 0; top: .6em; width: 7px; height: 7px; border-radius: 50%; background: var(--blue); }
.ps-actions { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 22px; }

/* Archive toolbar */
.toolbar { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; align-items: center; margin-bottom: 30px; }
.filters { display: flex; gap: 8px; flex-wrap: wrap; }
.filters a { padding: 8px 16px; border: 1px solid var(--line); border-radius: 30px; font-weight: 600; font-size: .88rem; color: var(--navy); background: #fff; }
.filters a:hover, .filters a.on { background: var(--navy); color: #fff; border-color: var(--navy); }
.search { border: 1px solid var(--line); border-radius: 8px; padding: 10px 14px; min-width: 240px; font: inherit; }

/* About */
.values { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 22px; }
.values .box h3 { text-transform: none; letter-spacing: 0; font-size: 1.15rem; }
.info { width: 100%; border-collapse: collapse; }
.info th, .info td { padding: 12px 8px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
.info th { width: 34%; color: var(--navy); }
.team { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 30px; }
.team table { width: 100%; border-collapse: collapse; }
.team th { text-align: left; background: var(--navy); color: #fff; padding: 10px 14px; font-size: .85rem; letter-spacing: .06em; text-transform: uppercase; }
.team td { padding: 10px 14px; border-bottom: 1px solid var(--line); }
.prose { max-width: 820px; }
.prose p { color: #34465a; }

/* Contact */
.contact-grid { display: grid; grid-template-columns: 1fr 1.2fr; gap: 40px; }
.cinfo li { display: flex; gap: 14px; margin-bottom: 20px; }
.cinfo .ico { flex: none; width: 46px; height: 46px; border-radius: 50%; background: var(--navy); display: grid; place-items: center; }
.cinfo .ico svg { stroke: #fff; fill: none; stroke-width: 1.8; width: 22px; height: 22px; stroke-linecap: round; stroke-linejoin: round; }
.cinfo b { display: block; color: var(--navy); }
.form { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 30px; box-shadow: var(--shadow); }
.form .row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.form label { display: block; font-weight: 600; font-size: .88rem; color: var(--navy); margin-bottom: 5px; }
.form input, .form textarea { width: 100%; padding: 11px 13px; border: 1px solid var(--line); border-radius: 8px; font: inherit; margin-bottom: 14px; background: #fbfdff; }
.form input:focus, .form textarea:focus { outline: 2px solid var(--sky); border-color: var(--sky); }
.form .hp { position: absolute; left: -9999px; }
.notice { padding: 14px 18px; border-radius: 8px; margin-bottom: 18px; font-weight: 600; }
.notice.ok { background: #e6f6ec; color: #1c6b3a; }
.notice.err { background: #fdeaea; color: #a12626; }
.map { border: 0; width: 100%; height: 340px; border-radius: var(--radius); margin-top: 10px; }

/* Footer */
.site-footer { background: var(--navy-d); color: #b8cde4; padding: 60px 0 0; font-size: .93rem; }
.fgrid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.3fr; gap: 36px; padding-bottom: 44px; }
.site-footer h4 { color: #fff; font-size: 1rem; margin-bottom: 14px; letter-spacing: .04em; }
.site-footer a { color: #b8cde4; }
.site-footer a:hover { color: #fff; }
.site-footer li { margin-bottom: 8px; }
.flogo { background: #fff; display: inline-block; padding: 8px 14px; border-radius: 8px; margin-bottom: 16px; }
.flogo img { height: 42px; width: auto; }
.fcontact li { display: flex; gap: 10px; }
.fcontact svg { flex: none; width: 18px; height: 18px; stroke: var(--sky); fill: none; stroke-width: 2; margin-top: 4px; stroke-linecap: round; stroke-linejoin: round; }
.fbottom { border-top: 1px solid rgba(255,255,255,.12); padding: 18px 0; display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; font-size: .85rem; }
.wa { position: fixed; right: 20px; bottom: 20px; z-index: 60; background: #25d366; width: 56px; height: 56px; border-radius: 50%; display: grid; place-items: center; box-shadow: 0 6px 18px rgba(0,0,0,.25); }
.wa svg { width: 28px; height: 28px; fill: #fff; }

/* Generic content */
.entry { padding: 60px 0; }
.entry .wrap > * { max-width: 820px; }
.pagination { margin-top: 30px; text-align: center; }
.pagination .page-numbers { display: inline-block; padding: 8px 14px; border: 1px solid var(--line); border-radius: 6px; margin: 0 3px; }
.pagination .current { background: var(--navy); color: #fff; }

/* Responsive */
@media (max-width: 960px) {
  .hero .wrap, .split, .ps, .contact-grid { grid-template-columns: 1fr; }
  .hero .wrap { padding: 50px 0 60px; }
  .ps-media { position: static; }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .stat:nth-child(2) { border-right: 0; }
  .stat:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
  .fgrid { grid-template-columns: 1fr 1fr; }
  .nav-toggle { display: block; }
  .header-cta { display: none; }
  .main-nav { position: absolute; left: 0; right: 0; top: 100%; background: #fff; border-bottom: 1px solid var(--line); display: none; padding: 10px 20px 20px; box-shadow: var(--shadow); }
  .main-nav.open { display: block; }
  .main-nav ul { flex-direction: column; align-items: stretch; }
  .main-nav .sub-menu { position: static; display: flex; border: 0; box-shadow: none; padding-left: 14px; }
  .section { padding: 56px 0; }
}
@media (max-width: 560px) {
  .fgrid, .form .row { grid-template-columns: 1fr; }
  .topbar .tb-right { display: none; }
  .stats { margin-top: -24px; }
}
