/*
Theme Name: PWZ Agency Theme
Theme URI: https://pakwebzone.com
Author: PakWebZone
Author URI: https://pakwebzone.com
Description: A custom WordPress theme optimized for design agencies with full Elementor integration. Features 54 custom widgets, advanced SEO optimization, and performance-focused architecture.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.4
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: pwz-theme
Tags: agency, business, elementor, custom-widgets, dark-theme, responsive, seo-optimized

This theme, like WordPress, is licensed under the GPL.
Use it to make something cool, have fun, and share what you've learned.
*/

/* ============================================
   CSS CUSTOM PROPERTIES (Design System)
   Based on Design.md specifications
   ============================================ */

:root {
  /* Colors */
  --pwz-primary-bg: #000000;
  --pwz-secondary-bg: #0A0A0A;
  --pwz-primary-text: #FFFFFF;
  --pwz-secondary-text: #CCCCCC;
  --pwz-accent: #00FF88;
  --pwz-border: #1A1A1A;
  --pwz-hover-accent: #00CC6A;
  --pwz-error: #FF4444;
  
  /* Typography */
  --pwz-font-heading: 'Poppins', sans-serif;
  --pwz-font-body: 'Inter', sans-serif;
  
  /* Font Sizes - Desktop */
  --pwz-h1-size: 58px;
  --pwz-h2-size: 42px;
  --pwz-h3-size: 24px;
  --pwz-h4-size: 20px;
  --pwz-h5-size: 18px;
  --pwz-h6-size: 16px;
  --pwz-body-size: 16px;
  --pwz-small-size: 13px;
  
  /* Spacing */
  --pwz-section-padding: 100px;
  --pwz-column-gap: 40px;
  --pwz-card-padding: 30px;
  --pwz-border-radius: 10px;
  --pwz-container-width: 100%;
  
  /* Effects */
  --pwz-transition: 0.3s ease-in-out;
  --pwz-glow-shadow: 0 0 20px rgba(0, 255, 136, 0.1);
}

/* Tablet Breakpoint */
@media (max-width: 1024px) {
  :root {
    --pwz-h1-size: 44px;
    --pwz-h2-size: 36px;
    --pwz-h3-size: 22px;
    --pwz-section-padding: 80px;
    --pwz-column-gap: 30px;
  }
}

/* Mobile Breakpoint */
@media (max-width: 768px) {
  :root {
    --pwz-h1-size: 32px;
    --pwz-h2-size: 28px;
    --pwz-h3-size: 20px;
    --pwz-body-size: 15px;
    --pwz-section-padding: 60px;
    --pwz-column-gap: 20px;
    --pwz-card-padding: 20px;
  }
}

/* ============================================
   GLOBAL RESET & BASE STYLES
   ============================================ */

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: var(--pwz-font-body);
  font-size: var(--pwz-body-size);
  line-height: 1.6;
  color: var(--pwz-secondary-text);
  background-color: var(--pwz-primary-bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* ============================================
   TYPOGRAPHY
   ============================================ */

h1, h2, h3, h4, h5, h6 {
  font-family: var(--pwz-font-heading);
  font-weight: 600;
  color: var(--pwz-primary-text);
  letter-spacing: 0.5px;
  line-height: 1.2;
  margin-bottom: 1rem;
}

h1 { font-size: var(--pwz-h1-size); }
h2 { font-size: var(--pwz-h2-size); }
h3 { font-size: var(--pwz-h3-size); }
h4 { font-size: var(--pwz-h4-size); }
h5 { font-size: var(--pwz-h5-size); }
h6 { font-size: var(--pwz-h6-size); }

p {
  margin-bottom: 1rem;
  color: var(--pwz-secondary-text);
}

a {
  color: var(--pwz-accent);
  text-decoration: none;
  transition: var(--pwz-transition);
}

a:hover {
  color: var(--pwz-hover-accent);
}

/* ============================================
   CONTAINER & LAYOUT
   ============================================ */

.pwz-container {
  max-width: var(--pwz-container-width);
  margin: 0 auto;
  padding: 0 20px;
}

.pwz-section {
  padding: var(--pwz-section-padding) 0;
}

/* ============================================
   BUTTONS
   ============================================ */

.pwz-btn {
  display: inline-block;
  padding: 14px 34px;
  font-family: var(--pwz-font-heading);
  font-size: 16px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  border-radius: 8px;
  cursor: pointer;
  transition: var(--pwz-transition);
  border: none;
  text-align: center;
}

.pwz-btn-primary {
  background-color: var(--pwz-accent);
  color: var(--pwz-primary-bg);
}

.pwz-btn-primary:hover {
  background-color: var(--pwz-hover-accent);
  color: var(--pwz-primary-bg);
  transform: translateY(-2px);
  box-shadow: var(--pwz-glow-shadow);
}

.pwz-btn-secondary {
  background-color: transparent;
  color: var(--pwz-primary-text);
  border: 1px solid var(--pwz-primary-text);
}

.pwz-btn-secondary:hover {
  border-color: var(--pwz-accent);
  color: var(--pwz-accent);
}

/* ============================================
   UTILITY CLASSES
   ============================================ */

.pwz-text-center { text-align: center; }
.pwz-text-left { text-align: left; }
.pwz-text-right { text-align: right; }

.pwz-mb-1 { margin-bottom: 1rem; }
.pwz-mb-2 { margin-bottom: 2rem; }
.pwz-mb-3 { margin-bottom: 3rem; }

.pwz-mt-1 { margin-top: 1rem; }
.pwz-mt-2 { margin-top: 2rem; }
.pwz-mt-3 { margin-top: 3rem; }

/* ============================================
   ACCESSIBILITY
   ============================================ */

.screen-reader-text {
  clip: rect(1px, 1px, 1px, 1px);
  position: absolute !important;
  height: 1px;
  width: 1px;
  overflow: hidden;
  word-wrap: normal !important;
}

.screen-reader-text:focus {
    background-color: var(--pwz-secondary-bg);
    border-radius: 3px;
    box-shadow: 0 0 2px 2px rgba(0, 0, 0, 0.6);
    clip: auto !important;
    color: var(--pwz-accent);
    display: block;
    font-size: 14px;
    font-weight: bold;
    height: auto;
    left: 5px;
    line-height: normal;
    padding: 15px 23px 14px;
    text-decoration: none;
    top: 5px;
    width: auto;
    z-index: 100000;
}

/* Focus indicators for interactive elements - Keyboard only */
/* Remove focus styles for mouse users while preserving for keyboard navigation */
.js-focus-visible :focus:not(.focus-visible) {
    outline: none;
    box-shadow: none;
}

a:focus,
button:focus,
input:focus,
textarea:focus,
select:focus {
    outline: 2px solid var(--pwz-accent);
    outline-offset: 2px;
    box-shadow: 0 0 0 3px rgba(0, 255, 136, 0.1);
}

/* Only show focus styles when using keyboard */
a.focus-visible,
button.focus-visible,
input.focus-visible,
textarea.focus-visible,
select.focus-visible {
    outline: 2px solid var(--pwz-accent);
    outline-offset: 2px;
    box-shadow: 0 0 0 3px rgba(0, 255, 136, 0.1);
}

/* Hide focus styles for mouse interactions */
a:focus:not(.focus-visible),
button:focus:not(.focus-visible),
input:focus:not(.focus-visible),
textarea:focus:not(.focus-visible),
select:focus:not(.focus-visible) {
    outline: none;
    box-shadow: none;
}

/* ============================================
   WORDPRESS CORE ALIGNMENT
   ============================================ */

.alignleft {
  float: left;
  margin-right: 1.5rem;
  margin-bottom: 1rem;
}

.alignright {
  float: right;
  margin-left: 1.5rem;
  margin-bottom: 1rem;
}

.aligncenter {
  display: block;
  margin-left: auto;
  margin-right: auto;
  margin-bottom: 1rem;
}

/* ============================================
   RESPONSIVE IMAGES
   ============================================ */

img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* ============================================
   ELEMENTOR COMPATIBILITY
   ============================================ */

.elementor-widget-container {
  word-wrap: break-word;
}

.elementor-section {
  position: relative;
}

