/*
Theme Name: Pentaclix
Theme URI: https://pentaclix.com
Author: Pentaclix
Author URI: https://pentaclix.com
Description: A modern, fast, fully responsive WordPress theme built for the Pentaclix digital marketing agency. Ships with full Elementor page-builder compatibility (Canvas & Full-Width templates), a native custom-fields system for Services, Portfolio, Testimonials and Team members, a rich Customizer, and a ready-to-use child theme. Built with clean, standards-compliant, escaped and sanitized code.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.6
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: pentaclix
Tags: blog, e-commerce, one-column, two-columns, three-columns, four-columns, grid-layout, custom-colors, custom-logo, custom-menu, editor-style, featured-images, footer-widgets, full-width-template, sticky-post, threaded-comments, translation-ready
*/

/* =========================================================
   0. CSS VARIABLES / RESET
   ========================================================= */
:root {
  --pxc-primary: #2952e3;
  --pxc-primary-dark: #1c3aa8;
  --pxc-secondary: #ffffff;
  --pxc-accent: #ff6b35;
  --pxc-text: #2b2f38;
  --pxc-text-light: #6b7280;
  --pxc-bg: #ffffff;
  --pxc-bg-alt: #f5f7fb;
  --pxc-border: #e6e9f0;
  --pxc-radius: 10px;
  --pxc-container: 1200px;
  --pxc-font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--pxc-font);
  font-size: 17px;
  line-height: 1.7;
  color: var(--pxc-text);
  background: var(--pxc-bg);
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--pxc-primary); text-decoration: none; transition: color .15s ease; }
a:hover, a:focus { color: var(--pxc-primary-dark); }
ul, ol { padding-left: 1.2em; }
figure { margin: 0; }

h1, h2, h3, h4, h5, h6 {
  font-family: var(--pxc-font);
  line-height: 1.25;
  font-weight: 700;
  color: var(--pxc-secondary);
  margin: 0 0 .6em;
}
h1 { font-size: 2.6rem; }
h2 { font-size: 2.1rem; }
h3 { font-size: 1.5rem; }
h4 { font-size: 1.2rem; }
p { margin: 0 0 1.2em; }

.screen-reader-text {
  position: absolute !important;
  width: 1px; height: 1px;
  overflow: hidden;
  clip: rect(1px, 1px, 1px, 1px);
  white-space: nowrap;
}
.screen-reader-text:focus {
  background: #fff; color: #000; display: block;
  height: auto; width: auto; padding: 12px 16px;
  left: 8px; top: 8px; z-index: 100000;
  clip: auto !important;
}

.skip-link {
  position: absolute; left: -9999px; top: 0;
  background: var(--pxc-secondary); color: #fff;
  padding: 10px 18px; z-index: 100000; border-radius: 0 0 6px 0;
}
.skip-link:focus { left: 0; }

/* =========================================================
   1. LAYOUT / CONTAINER
   ========================================================= */
.pxc-container {
  max-width: var(--pxc-container);
  margin: 0 auto;
  padding: 0 24px;
}

.pxc-site { display: flex; flex-direction: column; min-height: 100vh; }
.pxc-main { flex: 1 0 auto; }

.pxc-content-area { padding: 60px 0; }

.pxc-layout { display: grid; grid-template-columns: 1fr; gap: 48px; }
.pxc-layout.has-sidebar { grid-template-columns: 2fr 1fr; }
@media (max-width: 782px) {
  .pxc-layout.has-sidebar { grid-template-columns: 1fr; }
}

/* Elementor-built pages: let Elementor own all spacing/width */
.pxc-elementor-page .pxc-content-area { padding: 0; }
.pxc-elementor-page .pxc-container { max-width: none; padding: 0; }

/* =========================================================
   2. HEADER
   ========================================================= */
.pxc-header {
  background: #000;
  border-bottom: 1px solid var(--pxc-border);
  position: sticky;
  top: 0;
  z-index: 999;
}
.pxc-header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 24px;
  gap: 24px;
}
.pxc-branding { display: flex; align-items: center; gap: 12px; }
.pxc-logo img { max-height: 44px; width: auto; }
.pxc-site-title { font-size: 1.4rem; margin: 0; font-weight: 800; }
.pxc-site-title a { color: var(--pxc-secondary); }
.pxc-site-description { margin: 0; font-size: .85rem; color: var(--pxc-text-light); }

.pxc-primary-nav { display: flex; align-items: center; gap: 8px; }
.pxc-primary-nav ul {
  list-style: none; margin: 0; padding: 0;
  display: flex; align-items: center; gap: 4px;
}
.pxc-primary-nav li { position: relative; }
.pxc-primary-nav a {
    display: block;
    padding: 10px 16px;
    color: #ffffff;
    font-weight: 600;
    font-size: .96rem;
    border-radius: 6px;
}
.pxc-primary-nav a:hover { color: var(--pxc-primary); background: var(--pxc-bg-alt); }
.pxc-primary-nav .current-menu-item > a { color: var(--pxc-primary); }

.pxc-primary-nav ul ul {
  position: absolute; top: 100%; left: 0; min-width: 220px;
  background: #fff; border: 1px solid var(--pxc-border); border-radius: 8px;
  box-shadow: 0 12px 28px rgba(14,27,61,.12);
  flex-direction: column; padding: 8px; display: none; z-index: 50;
}
.pxc-primary-nav li:hover > ul,
.pxc-primary-nav li:focus-within > ul { display: flex; }
.pxc-primary-nav ul ul a { padding: 8px 12px; }

.pxc-header-cta { display: flex; align-items: center; gap: 14px; }
.pxc-menu-toggle {
  display: none; background: none; border: 2px solid var(--pxc-border);
  border-radius: 8px; padding: 8px 10px; cursor: pointer;
}
.pxc-menu-toggle span {
  display: block; width: 22px; height: 2px; background: var(--pxc-secondary);
  margin: 4px 0; transition: transform .2s ease, opacity .2s ease;
}

@media (max-width: 880px) {
  .pxc-menu-toggle { display: inline-block; }
  .pxc-primary-nav {
    display: none; position: absolute; left: 0; right: 0; top: 100%;
    background: #fff; border-bottom: 1px solid var(--pxc-border);
    padding: 12px 24px 20px;
  }
  .pxc-primary-nav.is-open { display: block; }
  .pxc-primary-nav ul { flex-direction: column; align-items: stretch; }
  .pxc-primary-nav ul ul {
    position: static; box-shadow: none; border: none; display: none; padding-left: 12px;
  }
  .pxc-primary-nav li.pxc-submenu-open > ul { display: flex; }
}

/* =========================================================
   3. BUTTONS
   ========================================================= */
.pxc-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 13px 26px;
    border-radius: 8px;
    font-weight: 700;
    font-size: .95rem;
    cursor: pointer;
    border: 2px solid #b9f206 !important;
    background: #b9f206 !important;
    color: #fff;
    transition: all .15s ease;
}
.pxc-btn:hover { background: var(--pxc-primary-dark); border-color: var(--pxc-primary-dark); color: #fff; }
.pxc-btn.pxc-btn-outline { background: transparent; color: var(--pxc-primary); }
.pxc-btn.pxc-btn-outline:hover { background: var(--pxc-primary); color: #fff; }
.pxc-btn.pxc-btn-accent { background: var(--pxc-accent); border-color: var(--pxc-accent); }
.pxc-btn.pxc-btn-accent:hover { filter: brightness(.92); }

/* =========================================================
   4. HERO
   ========================================================= */
.pxc-hero {
  background: linear-gradient(135deg, var(--pxc-secondary), var(--pxc-primary-dark));
  color: #fff; padding: 100px 0; background-size: cover; background-position: center;
  position: relative;
}
.pxc-hero::before {
  content: ""; position: absolute; inset: 0; background: rgba(14,27,61,.55);
}
.pxc-hero-inner { position: relative; z-index: 1; max-width: 720px; }
.pxc-hero h1 { color: #fff; font-size: 3rem; }
.pxc-hero p { font-size: 1.2rem; color: rgba(255,255,255,.88); }
.pxc-hero-actions { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 12px; }

/* =========================================================
   5. SECTIONS / CARDS (front page + CPT archives)
   ========================================================= */
.pxc-section { padding: 80px 0; }
.pxc-section-alt { background: var(--pxc-bg-alt); }
.pxc-section-head { max-width: 640px; margin: 0 auto 48px; text-align: center; }
.pxc-eyebrow {
  display: inline-block; color: var(--pxc-primary); font-weight: 700;
  text-transform: uppercase; letter-spacing: .08em; font-size: .8rem; margin-bottom: 10px;
}

.pxc-grid { display: grid; gap: 28px; grid-template-columns: repeat(3, 1fr); }
@media (max-width: 980px) { .pxc-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 620px) { .pxc-grid { grid-template-columns: 1fr; } }
.pxc-grid.pxc-grid-4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 980px) { .pxc-grid.pxc-grid-4 { grid-template-columns: repeat(2, 1fr); } }

.pxc-card {
  background: #fff; border: 1px solid var(--pxc-border); border-radius: var(--pxc-radius);
  padding: 32px; transition: transform .15s ease, box-shadow .15s ease;
}
.pxc-card:hover { transform: translateY(-4px); box-shadow: 0 16px 32px rgba(14,27,61,.08); }
.pxc-card-icon {
  width: 52px; height: 52px; border-radius: 12px; background: var(--pxc-bg-alt);
  display: flex; align-items: center; justify-content: center; margin-bottom: 18px; font-size: 1.4rem;
}
.pxc-card h3 { margin-bottom: 10px; }
.pxc-card p:last-child { margin-bottom: 0; }

.pxc-portfolio-card { border-radius: var(--pxc-radius); overflow: hidden; border: 1px solid var(--pxc-border); }
.pxc-portfolio-card img { aspect-ratio: 4/3; object-fit: cover; width: 100%; }
.pxc-portfolio-card-body { padding: 20px; }
.pxc-portfolio-tag { color: var(--pxc-primary); font-size: .8rem; font-weight: 700; text-transform: uppercase; }

.pxc-team-card { text-align: center; }
.pxc-team-card img { border-radius: 50%; width: 140px; height: 140px; object-fit: cover; margin: 0 auto 16px; }
.pxc-team-role { color: var(--pxc-text-light); font-size: .9rem; margin-bottom: 10px; }
.pxc-team-social { display: flex; gap: 10px; justify-content: center; }
.pxc-team-social a {
  width: 34px; height: 34px; border-radius: 50%; background: var(--pxc-bg-alt);
  display: flex; align-items: center; justify-content: center; font-size: .85rem;
}

.pxc-testimonial { background: #fff; border: 1px solid var(--pxc-border); border-radius: var(--pxc-radius); padding: 32px; }
.pxc-testimonial-rating { color: #f5a623; margin-bottom: 12px; letter-spacing: 2px; }
.pxc-testimonial-quote { font-size: 1.05rem; font-style: italic; }
.pxc-testimonial-author { display: flex; align-items: center; gap: 12px; margin-top: 18px; }
.pxc-testimonial-author img { width: 48px; height: 48px; border-radius: 50%; object-fit: cover; }
.pxc-testimonial-author strong { display: block; }
.pxc-testimonial-author span { color: var(--pxc-text-light); font-size: .85rem; }

.pxc-cta {
  background: var(--pxc-secondary); color: #fff; padding: 64px 0; text-align: center; border-radius: var(--pxc-radius);
}
.pxc-cta h2 { color: #fff; }
.pxc-cta p { color: rgba(255,255,255,.85); }

/* =========================================================
   6. BLOG / SINGLE / ARCHIVE
   ========================================================= */
.pxc-post-card { border-bottom: 1px solid var(--pxc-border); padding-bottom: 32px; margin-bottom: 32px; }
.pxc-post-card:last-child { border-bottom: none; }
.pxc-post-thumb { border-radius: var(--pxc-radius); overflow: hidden; margin-bottom: 18px; }
.pxc-post-meta { color: var(--pxc-text-light); font-size: .85rem; margin-bottom: 8px; }
.pxc-post-meta a { color: inherit; }
.pxc-post-meta span:not(:last-child)::after { content: "\00b7"; margin: 0 8px; }

.entry-content { font-size: 1.05rem; }
.entry-content > * + * { margin-top: 1.2em; }
.entry-content img { border-radius: var(--pxc-radius); }
.entry-content blockquote {
  border-left: 4px solid var(--pxc-primary); margin: 0; padding: 4px 0 4px 20px;
  color: var(--pxc-text-light); font-style: italic;
}
.entry-content pre { background: #0e1b3d; color: #e6e9f0; padding: 18px; border-radius: 8px; overflow: auto; }
.entry-content table { width: 100%; border-collapse: collapse; }
.entry-content table th, .entry-content table td { border: 1px solid var(--pxc-border); padding: 8px 12px; }

.pxc-tags { margin-top: 32px; }
.pxc-tags a {
  display: inline-block; background: var(--pxc-bg-alt); padding: 6px 14px;
  border-radius: 20px; font-size: .82rem; margin: 0 6px 6px 0; color: var(--pxc-text);
}

.pxc-pagination { display: flex; gap: 8px; margin-top: 32px; flex-wrap: wrap; }
.pxc-pagination a, .pxc-pagination span {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 40px; height: 40px; padding: 0 12px; border-radius: 8px;
  border: 1px solid var(--pxc-border); color: var(--pxc-text);
}
.pxc-pagination .current { background: var(--pxc-primary); border-color: var(--pxc-primary); color: #fff; }

/* =========================================================
   7. SIDEBAR / WIDGETS
   ========================================================= */
.widget { margin-bottom: 36px; }
.widget-title { font-size: 1.1rem; margin-bottom: 16px; position: relative; padding-bottom: 10px; }
.widget-title::after { content: ""; position: absolute; left: 0; bottom: 0; width: 36px; height: 3px; background: var(--pxc-primary); }
.widget ul { list-style: none; margin: 0; padding: 0; }
.widget ul li { padding: 8px 0; border-bottom: 1px solid var(--pxc-border); }
.widget ul li:last-child { border-bottom: none; }
.widget select, .widget input[type="text"], .widget input[type="search"] {
  width: 100%; padding: 10px; border: 1px solid var(--pxc-border); border-radius: 6px;
}

/* =========================================================
   8. FOOTER
   ========================================================= */
.pxc-footer { background: var(--pxc-secondary); color: rgba(255,255,255,.85); margin-top: auto; }
.pxc-footer-widgets {
  padding: 64px 0 32px; display: grid; grid-template-columns: repeat(4, 1fr); gap: 32px;
}
@media (max-width: 880px) { .pxc-footer-widgets { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .pxc-footer-widgets { grid-template-columns: 1fr; } }
.pxc-footer-widgets .widget-title { color: #fff; }
.pxc-footer-widgets .widget-title::after { background: var(--pxc-accent); }
.pxc-footer-widgets a { color: rgba(255,255,255,.75); }
.pxc-footer-widgets a:hover { color: #fff; }
.pxc-footer-widgets ul li { border-bottom-color: rgba(255,255,255,.1); }

.pxc-footer-bottom {
  border-top: 1px solid rgba(255,255,255,.12); padding: 22px 0;
  display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 12px;
  font-size: .88rem;
}
.pxc-footer-nav ul { list-style: none; display: flex; gap: 18px; margin: 0; padding: 0; }
.pxc-footer-nav a { color: rgba(255,255,255,.75); }
.pxc-footer-nav a:hover { color: #fff; }
.pxc-footer-social { display: flex; gap: 10px; }
.pxc-footer-social a {
  width: 36px; height: 36px; border-radius: 50%; background: rgba(255,255,255,.08);
  display: flex; align-items: center; justify-content: center; color: #fff;
}
.pxc-footer-social a:hover { background: var(--pxc-primary); }

/* =========================================================
   9. FORMS / COMMENTS
   ========================================================= */
input[type="text"], input[type="email"], input[type="url"], input[type="tel"],
input[type="search"], input[type="password"], textarea, select {
  width: 100%; padding: 12px 14px; border: 1px solid var(--pxc-border);
  border-radius: 8px; font-family: inherit; font-size: 1rem; background: #fff; color: var(--pxc-text);
}
textarea { min-height: 140px; }
input:focus, textarea:focus, select:focus { outline: 2px solid var(--pxc-primary); outline-offset: 1px; }
.comment-form p { margin-bottom: 16px; }
.comment-list { list-style: none; margin: 0; padding: 0; }
.comment-list .children { list-style: none; padding-left: 40px; }
.comment-body { border-bottom: 1px solid var(--pxc-border); padding-bottom: 24px; margin-bottom: 24px; }
.comment-author { display: flex; align-items: center; gap: 10px; font-weight: 700; }
.comment-author img { border-radius: 50%; }
.comment-meta { font-size: .85rem; color: var(--pxc-text-light); margin-bottom: 8px; }

/* =========================================================
   10. UTILITIES
   ========================================================= */
.pxc-text-center { text-align: center; }
.alignwide { max-width: 1000px; }
.alignfull { max-width: none; width: 100%; }
.wp-block-image { margin-bottom: 1.5em; }

/* WP core */
.sticky { }
.gallery-caption { color: var(--pxc-text-light); font-size: .85rem; }
