/*
Theme Name: Proconnect Digital
Theme URI: https://proconnectdigital.com
Author: Proconnect Digital
Author URI: https://proconnectdigital.com
Description: Elementor-first WordPress theme for Proconnect Digital — B2B Lead Generation & Demand Generation Agency. This theme provides header, footer, and design tokens only. All page layouts are built in Elementor.
Version: 2.0.0
Requires at least: 6.0
Tested up to: 6.7
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: proconnect
Tags: business, elementor, full-width-template, custom-menu, custom-logo, translation-ready
*/


/* ==========================================================================
   1. DESIGN TOKENS
   ========================================================================== */
:root {
  --red: #D0021B;
  --red-dark: #A80016;
  --red-light: #FF1A30;
  --black: #0A0A0A;
  --off-black: #111111;
  --charcoal: #1C1C1C;
  --white: #FFFFFF;
  --off-white: #F8F7F5;
  --cream: #F3F1ED;
  --light-gray: #EFEFEF;
  --mid-gray: #888888;
  --body-gray: #3D3D3D;
  --border: rgba(0, 0, 0, 0.09);
  --font-heading: 'Garet', sans-serif;
  --font-body: 'Garet', sans-serif;
}


/* ==========================================================================
   2. MINIMAL RESET — scoped to theme shell, does not override Elementor
   ========================================================================== */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--black);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }


/* ==========================================================================
   3. SKIP LINK (Accessibility)
   ========================================================================== */
.skip-link {
  position: absolute; top: -100%; left: 6px;
  background: var(--red); color: var(--white);
  padding: 10px 18px; font-size: 14px; font-weight: 600;
  border-radius: 0 0 6px 6px; text-decoration: none;
  z-index: 99999; transition: top 0.2s;
}
.skip-link:focus { top: 0; }


/* ==========================================================================
   4. NAVIGATION — .site-nav
   Scoped class prevents Elementor global element clashes
   ========================================================================== */
.site-nav {
  position: sticky; top: 0; z-index: 200;
  background: var(--white); border-bottom: 1px solid var(--border);
  padding: 0 6%; display: flex; align-items: center;
  justify-content: space-between; height: 68px;
}
.site-nav.scrolled {
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
}

/* Logo */
.nav-logo {
  font-family: var(--font-heading); font-size: 20px; font-weight: 800;
  color: var(--black); text-decoration: none; letter-spacing: -0.1px;
  display: flex; align-items: center; gap: 6px; flex-shrink: 0;
}
.nav-logo span { color: var(--red); }
.nav-logo img,
.nav-logo .custom-logo { height: 38px; width: auto; }

/* Menu list */
.nav-links {
  display: flex; list-style: none; gap: 36px; align-items: center;
  margin: 0; padding: 0;
}
.nav-links li { list-style: none; }
.nav-links a {
  font-size: 14px; font-weight: 400; color: var(--body-gray);
  text-decoration: none; transition: color 0.2s;
}
.nav-links a:hover { color: var(--black); }
.nav-links .current-menu-item > a,
.nav-links .current_page_item > a { color: var(--black); font-weight: 500; }

/* CTA in nav — add "nav-cta" CSS class to menu item in WP admin */
.nav-links .nav-cta > a,
a.nav-cta {
  background: var(--red); color: var(--white) !important;
  padding: 10px 22px; border-radius: 4px; font-weight: 500 !important;
  font-size: 14px !important; transition: background 0.2s !important;
}
.nav-links .nav-cta > a:hover,
a.nav-cta:hover { background: var(--red-dark) !important; }


/* ==========================================================================
   5. HAMBURGER (Mobile Nav Toggle)
   ========================================================================== */
.hamburger {
  display: none; flex-direction: column; justify-content: center;
  align-items: center; width: 40px; height: 40px; background: none;
  border: none; cursor: pointer; gap: 5px; padding: 4px; z-index: 201;
}
.hamburger span {
  display: block; width: 22px; height: 2px; background: var(--black);
  border-radius: 2px; transition: transform 0.3s, opacity 0.3s;
}
.hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }


/* ==========================================================================
   6. FOOTER — .site-footer
   ========================================================================== */
.site-footer {
  background: var(--black); color: rgba(255, 255, 255, 0.38);
  padding: 44px 6%; display: flex;
  justify-content: space-between; align-items: center;
  flex-wrap: wrap; gap: 20px;
}
.footer-logo {
  font-family: var(--font-heading); font-size: 18px; font-weight: 800;
  color: var(--white); text-decoration: none;
}
.footer-logo span { color: var(--red); }
.footer-logo img,
.footer-logo .custom-logo { height: 32px; width: auto; }
.site-footer p { font-size: 13px; margin: 0; }
.footer-links {
  display: flex; gap: 26px; list-style: none; margin: 0; padding: 0;
}
.footer-links li { list-style: none; }
.footer-links a {
  font-size: 13px; color: rgba(255, 255, 255, 0.38);
  text-decoration: none; transition: color 0.2s;
}
.footer-links a:hover { color: rgba(255, 255, 255, 0.75); }

/* Social icons */
.footer-social {
  display: flex; gap: 14px; align-items: center;
}
.social-icon {
  display: flex; align-items: center;
  color: rgba(255, 255, 255, 0.38);
  transition: color 0.2s; text-decoration: none;
}
.social-icon:hover { color: rgba(255, 255, 255, 0.85); }


/* ==========================================================================
   7. SHARED BUTTONS — available for Elementor custom CSS usage
   ========================================================================== */
.btn-primary {
  display: inline-flex; align-items: center; gap: 9px;
  background: var(--red); color: var(--white);
  font-family: var(--font-body); font-size: 15px; font-weight: 500;
  padding: 15px 28px; border-radius: 4px; text-decoration: none;
  transition: background 0.2s, transform 0.15s; border: none; cursor: pointer;
}
.btn-primary:hover { background: var(--red-dark); transform: translateY(-1px); }

.btn-outline-dark {
  display: inline-flex; align-items: center; gap: 9px;
  background: transparent; color: var(--black);
  font-family: var(--font-body); font-size: 15px; font-weight: 500;
  padding: 14px 26px; border-radius: 4px; text-decoration: none;
  border: 1.5px solid rgba(0, 0, 0, 0.18);
  transition: border-color 0.2s, color 0.2s;
}
.btn-outline-dark:hover { border-color: var(--black); }

.btn-outline-light {
  display: inline-flex; align-items: center; gap: 9px;
  background: transparent; color: rgba(255, 255, 255, 0.8);
  font-family: var(--font-body); font-size: 15px; font-weight: 400;
  padding: 14px 26px; border-radius: 4px; text-decoration: none;
  border: 1px solid rgba(255, 255, 255, 0.2);
  transition: border-color 0.2s, color 0.2s;
}
.btn-outline-light:hover { border-color: rgba(255, 255, 255, 0.5); color: var(--white); }

.btn-white {
  display: inline-flex; align-items: center; gap: 9px;
  background: var(--white); color: var(--red);
  font-family: var(--font-body); font-size: 16px; font-weight: 600;
  padding: 17px 36px; border-radius: 4px; text-decoration: none;
  transition: opacity 0.2s, transform 0.15s;
}
.btn-white:hover { opacity: 0.93; transform: translateY(-1px); }


/* ==========================================================================
   8. LIGHT BLOG STYLES — single.php, archive.php, home.php
   Intentionally minimal — Elementor Pro or Theme Builder can fully override.
   ========================================================================== */

/* Archive / Blog page header */
.pc-page-header {
  background: var(--off-black); color: var(--white);
  padding: 72px 6% 60px;
}
.pc-page-header-inner { max-width: 1200px; margin: 0 auto; }
.pc-page-header h1 {
  font-family: var(--font-heading);
  font-size: clamp(28px, 4vw, 48px); font-weight: 800;
  line-height: 1.12; margin: 0 0 12px;
}
.pc-page-header p {
  font-size: 17px; color: rgba(255, 255, 255, 0.6);
  max-width: 520px; line-height: 1.7; margin: 0;
}
.pc-page-header .pc-eyebrow {
  display: inline-block; font-size: 11px; font-weight: 600;
  letter-spacing: 2px; text-transform: uppercase;
  color: rgba(255, 255, 255, 0.4); margin-bottom: 14px;
}

/* Blog grid */
.pc-blog-wrap { padding: 64px 6% 80px; background: var(--white); }
.pc-blog-inner { max-width: 1200px; margin: 0 auto; }
.pc-blog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: 28px;
}

/* Post card */
.pc-post-card {
  border-radius: 10px; overflow: hidden;
  border: 1px solid var(--border); background: var(--white);
  transition: box-shadow 0.25s, transform 0.25s;
}
.pc-post-card:hover {
  box-shadow: 0 10px 36px rgba(0, 0, 0, 0.08);
  transform: translateY(-2px);
}
.pc-post-card .card-thumb {
  height: 210px; background: var(--cream);
  display: flex; align-items: center; justify-content: center;
  overflow: hidden;
}
.pc-post-card .card-thumb img { width: 100%; height: 100%; object-fit: cover; }
.pc-post-card .card-body { padding: 26px; }
.pc-post-card .card-category {
  display: inline-block; font-size: 10px; font-weight: 700;
  letter-spacing: 2px; text-transform: uppercase; color: var(--red);
  background: rgba(208, 2, 27, 0.08); padding: 4px 10px;
  border-radius: 100px; margin-bottom: 14px; text-decoration: none;
}
.pc-post-card h2 { font-size: 18px; font-weight: 700; line-height: 1.38; margin: 0 0 10px; }
.pc-post-card h2 a { color: var(--black); text-decoration: none; transition: color 0.2s; }
.pc-post-card h2 a:hover { color: var(--red); }
.pc-post-card .card-excerpt { font-size: 14px; color: var(--body-gray); line-height: 1.68; margin: 0 0 18px; }
.pc-post-card .card-meta {
  display: flex; justify-content: space-between; align-items: center;
  font-size: 12px; color: var(--mid-gray);
  border-top: 1px solid var(--border); padding-top: 14px;
}
.pc-post-card .read-more { color: var(--red); font-weight: 600; text-decoration: none; font-size: 13px; }

/* Single post */
.pc-single-wrap { padding: 64px 6% 80px; background: var(--white); }
.pc-single-inner { max-width: 760px; margin: 0 auto; }
.pc-single-inner .post-featured { margin-bottom: 36px; border-radius: 12px; overflow: hidden; }
.pc-single-inner .post-featured img { width: 100%; height: auto; display: block; }
.pc-single-inner .entry-content { font-size: 17px; line-height: 1.8; color: var(--body-gray); }
.pc-single-inner .entry-content h2 { font-size: 26px; font-weight: 700; color: var(--black); margin: 40px 0 16px; }
.pc-single-inner .entry-content h3 { font-size: 20px; font-weight: 700; color: var(--black); margin: 32px 0 12px; }
.pc-single-inner .entry-content p { margin-bottom: 20px; }
.pc-single-inner .entry-content a { color: var(--red); }
.pc-single-inner .entry-content blockquote {
  border-left: 3px solid var(--red); padding: 16px 0 16px 24px;
  margin: 28px 0; font-style: italic; color: var(--off-black);
}
.pc-single-inner .entry-content img { border-radius: 8px; margin: 24px 0; }
.post-tags { margin-top: 44px; padding-top: 28px; border-top: 1px solid var(--border); }
.post-tags .tag-label { font-size: 13px; font-weight: 600; color: var(--mid-gray); margin-right: 8px; }
.tag-pill {
  display: inline-block; padding: 4px 12px; border-radius: 100px;
  font-size: 12px; font-weight: 600; background: var(--cream);
  color: var(--body-gray); text-decoration: none; margin: 2px;
  transition: background 0.2s;
}
.tag-pill:hover { background: var(--light-gray); }

/* Post navigation */
.pc-post-nav { background: var(--cream); padding: 40px 6%; }
.pc-post-nav-inner { max-width: 760px; margin: 0 auto; }
.pc-post-nav .nav-links {
  display: flex; justify-content: space-between; gap: 24px;
  flex-wrap: wrap; list-style: none; padding: 0; margin: 0;
}
.pc-post-nav a { text-decoration: none; color: var(--black); transition: color 0.2s; }
.pc-post-nav a:hover { color: var(--red); }
.pc-post-nav .nav-subtitle {
  display: block; font-size: 11px; font-weight: 600;
  letter-spacing: 1.5px; text-transform: uppercase;
  color: var(--mid-gray); margin-bottom: 4px;
}

/* Pagination */
.pc-pagination { margin-top: 48px; display: flex; justify-content: center; flex-wrap: wrap; gap: 6px; }
.pc-pagination .page-numbers {
  display: inline-flex; align-items: center; justify-content: center;
  width: 40px; height: 40px; border-radius: 4px;
  font-size: 14px; font-weight: 600; text-decoration: none;
  color: var(--black); border: 1.5px solid var(--border);
  transition: background 0.2s, color 0.2s, border-color 0.2s;
}
.pc-pagination .page-numbers:hover,
.pc-pagination .page-numbers.current {
  background: var(--red); color: var(--white); border-color: var(--red);
}

/* ==========================================================================
   9. DEFAULT CONTENT — generic page.php fallback (not Elementor-built)
   ========================================================================== */
.pc-page-content { padding: 64px 6% 80px; }
.pc-page-content-inner {
  max-width: 800px; margin: 0 auto;
  font-size: 16px; line-height: 1.8; color: var(--body-gray);
}
.pc-page-content-inner h1,
.pc-page-content-inner h2,
.pc-page-content-inner h3 { color: var(--black); }

/* ==========================================================================
   10. 404
   ========================================================================== */
.pc-404 {
  text-align: center; padding: 100px 6%;
  background: var(--off-black); color: var(--white);
  min-height: 50vh; display: flex; flex-direction: column;
  align-items: center; justify-content: center;
}
.pc-404 h1 {
  font-family: var(--font-heading);
  font-size: clamp(64px, 10vw, 120px); font-weight: 900;
  opacity: 0.15; line-height: 1; margin: 0;
}
.pc-404 h2 { font-size: clamp(22px, 3vw, 34px); font-weight: 700; margin: -16px 0 16px; }
.pc-404 p { font-size: 16px; color: rgba(255, 255, 255, 0.55); margin: 0 0 32px; }
.pc-404-links { display: flex; gap: 14px; flex-wrap: wrap; justify-content: center; }

/* ==========================================================================
   11. WORDPRESS CLASSES
   ========================================================================== */
.alignleft { float: left; margin: 0 24px 16px 0; }
.alignright { float: right; margin: 0 0 16px 24px; }
.aligncenter { display: block; margin: 24px auto; }
.alignwide { max-width: 1200px; margin-left: auto; margin-right: auto; }
.alignfull { width: 100vw; position: relative; left: 50%; right: 50%; margin-left: -50vw; margin-right: -50vw; }
.wp-caption { max-width: 100%; }
.wp-caption-text { font-size: 13px; color: var(--mid-gray); text-align: center; padding-top: 8px; }
.gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 12px; }
.screen-reader-text {
  clip: rect(1px, 1px, 1px, 1px); position: absolute !important;
  height: 1px; width: 1px; overflow: hidden; word-wrap: normal !important;
}

/* ==========================================================================
   12. RESPONSIVE — Nav & Footer only (page layouts are Elementor's job)
   ========================================================================== */
@media (max-width: 768px) {
  .hamburger { display: flex; }
  .nav-links {
    display: none; position: fixed; top: 68px; left: 0;
    width: 100%; background: var(--white);
    flex-direction: column; gap: 0; padding: 12px 0 20px;
    border-bottom: 1px solid var(--border); z-index: 199;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
    max-height: calc(100vh - 68px); overflow-y: auto;
  }
  .nav-links.open { display: flex; }
  .nav-links li { width: 100%; }
  .nav-links a {
    display: block; padding: 14px 6%; font-size: 15px;
    border-bottom: 1px solid var(--border);
  }
  .nav-links li:last-child a { border-bottom: none; }
  .nav-links .nav-cta > a,
  a.nav-cta {
    margin: 12px 6% 0 !important; text-align: center;
    border-radius: 4px !important; padding: 14px 22px !important;
    display: block !important;
  }
  .pc-blog-grid { grid-template-columns: 1fr; }
  .site-footer {
    flex-direction: column; align-items: flex-start;
    gap: 20px; padding: 36px 5%;
  }
  .footer-links { flex-wrap: wrap; gap: 16px; }
}

@media (max-width: 480px) {
  .pc-page-header h1 { font-size: clamp(24px, 7vw, 34px); }
  .pc-404 h1 { font-size: clamp(48px, 15vw, 80px); }
  .pc-404-links { flex-direction: column; align-items: center; }
  .pc-404-links a { width: 100%; text-align: center; }
}

@media (hover: none) and (pointer: coarse) {
  .nav-links a { min-height: 48px; display: flex; align-items: center; }
  .btn-primary, .btn-outline-dark { min-height: 48px; }
  .social-icon { width: 44px; height: 44px; justify-content: center; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: 0.01ms !important; animation-duration: 0.01ms !important; }
  html { scroll-behavior: auto; }
}
