/*
Theme Name: QISHA Sourcing Agent
Theme URI: https://qisha.co.uk
Author: QISHA Team
Author URI: https://qisha.co.uk
Description: A premium, lightweight WordPress theme for QISHA - International Sourcing Agent & Supplier. Fully compatible with Elementor page builder. Designed for sports, fitness, protective gear, and leather goods sourcing businesses.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.5
Requires PHP: 7.4
License: GPL-2.0-or-later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: qisha
Tags: one-column, two-columns, right-sidebar, flexible-header, custom-colors, custom-menu, custom-logo, editor-style, featured-images, footer-widgets, full-width-template, theme-options, threaded-comments, translation-ready, block-styles, wide-blocks, elementor, sourcing, manufacturing, wholesale, business

QISHA WordPress Theme, (C) 2024 QISHA
QISHA is distributed under the terms of the GNU GPL v2 or later.
*/

/* ==========================================================================
   TABLE OF CONTENTS
   ==========================================================================
   1. CSS Variables & Root
   2. Reset & Base
   3. Typography
   4. Layout & Grid
   5. Header & Navigation
   6. Footer
   7. Elementor Overrides
   8. Widget Areas
   9. Blog & Archive
   10. Responsive
   ========================================================================== */

/* ==========================================================================
   1. CSS Variables & Root
   ========================================================================== */
:root {
  --qisha-primary: #1e40af;
  --qisha-primary-dark: #1e3a8a;
  --qisha-primary-light: #3b82f6;
  --qisha-accent: #f97316;
  --qisha-accent-dark: #ea580c;
  --qisha-dark: #0f172a;
  --qisha-darker: #020617;
  --qisha-gray-50: #f8fafc;
  --qisha-gray-100: #f1f5f9;
  --qisha-gray-200: #e2e8f0;
  --qisha-gray-300: #cbd5e1;
  --qisha-gray-400: #94a3b8;
  --qisha-gray-500: #64748b;
  --qisha-gray-600: #475569;
  --qisha-gray-700: #334155;
  --qisha-gray-800: #1e293b;
  --qisha-gray-900: #0f172a;
  --qisha-white: #ffffff;
  --qisha-font-primary: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --qisha-font-heading: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --qisha-radius: 12px;
  --qisha-radius-lg: 16px;
  --qisha-shadow: 0 1px 3px rgba(0,0,0,0.1), 0 1px 2px rgba(0,0,0,0.06);
  --qisha-shadow-md: 0 4px 6px rgba(0,0,0,0.07), 0 2px 4px rgba(0,0,0,0.06);
  --qisha-shadow-lg: 0 10px 25px rgba(0,0,0,0.1), 0 6px 10px rgba(0,0,0,0.08);
  --qisha-transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --qisha-container: 1280px;
}

/* ==========================================================================
   2. Reset & Base
   ========================================================================== */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

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

body {
  font-family: var(--qisha-font-primary);
  font-size: 16px;
  line-height: 1.7;
  color: var(--qisha-gray-700);
  background-color: var(--qisha-white);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

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

a {
  color: var(--qisha-primary);
  text-decoration: none;
  transition: var(--qisha-transition);
}

a:hover {
  color: var(--qisha-primary-dark);
}

/* ==========================================================================
   3. Typography
   ========================================================================== */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--qisha-font-heading);
  font-weight: 700;
  line-height: 1.2;
  color: var(--qisha-gray-900);
  margin-bottom: 1rem;
}

h1 { font-size: clamp(2rem, 5vw, 3.5rem); }
h2 { font-size: clamp(1.5rem, 4vw, 2.5rem); }
h3 { font-size: clamp(1.25rem, 3vw, 1.75rem); }
h4 { font-size: 1.25rem; }
h5 { font-size: 1.1rem; }
h6 { font-size: 1rem; }

p {
  margin-bottom: 1rem;
}

/* ==========================================================================
   4. Layout & Grid
   ========================================================================== */
.qisha-container {
  width: 100%;
  max-width: var(--qisha-container);
  margin-left: auto;
  margin-right: auto;
  padding-left: 1.5rem;
  padding-right: 1.5rem;
}

.qisha-container-fluid {
  width: 100%;
  padding-left: 1.5rem;
  padding-right: 1.5rem;
}

.qisha-row {
  display: flex;
  flex-wrap: wrap;
  margin-left: -0.75rem;
  margin-right: -0.75rem;
}

.qisha-col {
  flex: 1 0 0%;
  padding-left: 0.75rem;
  padding-right: 0.75rem;
}

/* Full-width helper for Elementor */
.elementor-template-full-width .qisha-container,
.elementor-template-canvas .qisha-container {
  max-width: 100%;
  padding: 0;
}

/* ==========================================================================
   5. Header & Navigation
   ========================================================================== */
.qisha-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: var(--qisha-gray-900);
  border-bottom: 1px solid rgba(255,255,255,0.1);
  transition: var(--qisha-transition);
}

.qisha-header.scrolled {
  box-shadow: var(--qisha-shadow-lg);
}

.qisha-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
  max-width: var(--qisha-container);
  margin: 0 auto;
  padding: 0 1.5rem;
}

.qisha-logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
  color: var(--qisha-white);
  font-weight: 800;
  font-size: 1.25rem;
}

.qisha-logo__icon {
  width: 40px;
  height: 40px;
  background: linear-gradient(135deg, var(--qisha-primary-light), #06b6d4);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-weight: 800;
  font-size: 1.1rem;
}

.qisha-logo__text {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}

.qisha-logo__text small {
  font-size: 0.65rem;
  font-weight: 500;
  color: #93c5fd;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.qisha-nav {
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

.qisha-nav a {
  color: var(--qisha-gray-300);
  padding: 0.5rem 0.875rem;
  border-radius: 8px;
  font-size: 0.875rem;
  font-weight: 500;
  transition: var(--qisha-transition);
}

.qisha-nav a:hover,
.qisha-nav a.active {
  color: var(--qisha-white);
  background: rgba(255,255,255,0.08);
}

.qisha-nav a.current-menu-item {
  color: var(--qisha-white);
  background: var(--qisha-primary);
}

/* Mobile Menu Toggle */
.qisha-menu-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--qisha-white);
  cursor: pointer;
  padding: 0.5rem;
  font-size: 1.5rem;
  line-height: 1;
}

.qisha-mobile-nav {
  display: none;
  position: fixed;
  top: 72px;
  left: 0;
  right: 0;
  bottom: 0;
  background: var(--qisha-gray-900);
  padding: 1.5rem;
  z-index: 999;
  overflow-y: auto;
}

.qisha-mobile-nav.active {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.qisha-mobile-nav a {
  color: var(--qisha-gray-300);
  padding: 0.75rem 1rem;
  border-radius: 8px;
  font-size: 1rem;
  font-weight: 500;
  display: block;
}

.qisha-mobile-nav a:hover,
.qisha-mobile-nav a.current-menu-item {
  color: var(--qisha-white);
  background: rgba(255,255,255,0.08);
}

/* ==========================================================================
   6. Footer
   ========================================================================== */
.qisha-footer {
  background: var(--qisha-gray-900);
  color: var(--qisha-gray-300);
  padding: 4rem 0 0;
}

.qisha-footer__inner {
  max-width: var(--qisha-container);
  margin: 0 auto;
  padding: 0 1.5rem;
}

.qisha-footer__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
  padding-bottom: 3rem;
}

.qisha-footer__col h4 {
  color: var(--qisha-white);
  font-size: 1.1rem;
  margin-bottom: 1.25rem;
}

.qisha-footer__col ul {
  list-style: none;
  padding: 0;
}

.qisha-footer__col ul li {
  margin-bottom: 0.625rem;
}

.qisha-footer__col ul li a {
  color: var(--qisha-gray-400);
  font-size: 0.9rem;
  transition: var(--qisha-transition);
}

.qisha-footer__col ul li a:hover {
  color: var(--qisha-white);
}

.qisha-footer__bottom {
  border-top: 1px solid var(--qisha-gray-800);
  padding: 1.5rem 0;
  text-align: center;
  font-size: 0.85rem;
  color: var(--qisha-gray-500);
}

/* ==========================================================================
   7. Elementor Overrides
   ========================================================================== */
/* Ensure Elementor sections use full width */
.elementor-section.elementor-section-boxed > .elementor-container {
  max-width: var(--qisha-container);
}

/* Fix Elementor spacing within our theme */
.elementor-widget-container {
  transition: var(--qisha-transition);
}

/* Button base styles for Elementor buttons */
.elementor-button {
  font-weight: 600 !important;
  border-radius: 10px !important;
  transition: var(--qisha-transition) !important;
}

.elementor-button:hover {
  transform: translateY(-2px);
  box-shadow: var(--qisha-shadow-lg);
}

/* Card hover effects for Elementor */
.qisha-card-hover .elementor-widget-wrap,
.qisha-card-hover .elementor-widget-container {
  transition: var(--qisha-transition);
}

.qisha-card-hover:hover .elementor-widget-wrap {
  transform: translateY(-4px);
  box-shadow: var(--qisha-shadow-lg);
}

/* Hero section compatibility */
.qisha-hero-overlay .elementor-background-overlay {
  background: linear-gradient(135deg, rgba(15,23,42,0.95) 0%, rgba(15,23,42,0.7) 100%) !important;
}

/* ==========================================================================
   8. Widget Areas
   ========================================================================== */
.qisha-widget-area {
  margin-bottom: 2rem;
}

.qisha-widget-area .widget {
  background: var(--qisha-white);
  border: 1px solid var(--qisha-gray-200);
  border-radius: var(--qisha-radius);
  padding: 1.5rem;
  margin-bottom: 1.5rem;
}

.qisha-widget-area .widget-title {
  font-size: 1.1rem;
  margin-bottom: 1rem;
  padding-bottom: 0.75rem;
  border-bottom: 2px solid var(--qisha-gray-100);
}

/* ==========================================================================
   9. Blog & Archive
   ========================================================================== */
.qisha-post-card {
  background: var(--qisha-white);
  border: 1px solid var(--qisha-gray-200);
  border-radius: var(--qisha-radius-lg);
  overflow: hidden;
  transition: var(--qisha-transition);
}

.qisha-post-card:hover {
  box-shadow: var(--qisha-shadow-lg);
  transform: translateY(-2px);
}

.qisha-post-card__image {
  aspect-ratio: 16/9;
  overflow: hidden;
}

.qisha-post-card__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.qisha-post-card:hover .qisha-post-card__image img {
  transform: scale(1.05);
}

.qisha-post-card__content {
  padding: 1.5rem;
}

.qisha-post-card__meta {
  font-size: 0.8rem;
  color: var(--qisha-gray-500);
  margin-bottom: 0.5rem;
}

.qisha-post-card__title {
  font-size: 1.2rem;
  margin-bottom: 0.75rem;
}

.qisha-post-card__title a {
  color: var(--qisha-gray-900);
}

.qisha-post-card__title a:hover {
  color: var(--qisha-primary);
}

.qisha-post-card__excerpt {
  color: var(--qisha-gray-600);
  font-size: 0.9rem;
}

/* Pagination */
.qisha-pagination {
  display: flex;
  justify-content: center;
  gap: 0.5rem;
  margin-top: 3rem;
}

.qisha-pagination .page-numbers {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 8px;
  background: var(--qisha-gray-100);
  color: var(--qisha-gray-700);
  font-weight: 600;
  font-size: 0.9rem;
  transition: var(--qisha-transition);
}

.qisha-pagination .page-numbers.current {
  background: var(--qisha-primary);
  color: var(--qisha-white);
}

.qisha-pagination .page-numbers:hover:not(.current) {
  background: var(--qisha-gray-200);
}

/* Single Post */
.qisha-single {
  max-width: 800px;
  margin: 0 auto;
  padding: 3rem 1.5rem;
}

.qisha-single__header {
  margin-bottom: 2rem;
}

.qisha-single__featured {
  border-radius: var(--qisha-radius-lg);
  overflow: hidden;
  margin-bottom: 2rem;
}

.qisha-single__content {
  font-size: 1.05rem;
  line-height: 1.8;
}

/* ==========================================================================
   10. Responsive
   ========================================================================== */
@media (max-width: 1024px) {
  .qisha-footer__grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .qisha-nav {
    display: none;
  }

  .qisha-menu-toggle {
    display: block;
  }

  .qisha-footer__grid {
    grid-template-columns: 1fr;
  }

  .qisha-header__inner {
    height: 64px;
  }

  .qisha-mobile-nav {
    top: 64px;
  }
}

/* Utility classes */
.qisha-sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

.qisha-text-center { text-align: center; }
.qisha-mt-0 { margin-top: 0; }
.qisha-mb-0 { margin-bottom: 0; }
.qisha-mt-2 { margin-top: 2rem; }
.qisha-mb-2 { margin-bottom: 2rem; }
