/*
Theme Name: SwiftCourier Pro
Theme URI: https://yourwebsite.com/swiftcourier-pro
Author: Your Company Name
Author URI: https://yourwebsite.com
Description: A professional courier & logistics WordPress theme with instant quote calculator, multi-step booking system, shipment tracking, user dashboard, and complete order management. Built for modern courier businesses with WooCommerce integration support.
Version: 1.0.0
Tested up to: 6.5
Requires PHP: 7.4
License: GPL v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: swiftcourier
Tags: custom-background, custom-logo, custom-menu, featured-images, threaded-comments, translation-ready, one-column, two-columns, right-sidebar, flexible-header, sticky-post, theme-options, blog, e-commerce

=== FEATURE LIST ===

CORE FEATURES:
- Instant Quote Calculator (Real-time pricing)
- Multi-Step Booking System (5-step process)
- Shipment Tracking Integration
- User Registration/Login System
- Customer Dashboard (Orders, Quotes, Profile)
- Admin Order Management Panel
- Responsive Design (Mobile-First)
- SEO Optimized Structure
- WooCommerce Ready
- Multi-Currency Support
- Location-Based Services

TEMPLATES:
- Homepage with Hero & Quick Quote
- Services Listing & Single Service
- Locations/Cities Pages
- About Us Page Template
- Contact Page with Map
- FAQ/Help Center
- Pricing Tables
- Testimonials Section
- Blog/News Section
- User Dashboard Templates
- Admin Dashboard Templates

CUSTOM POST TYPES:
- swift_service (Courier Services)
- swift_location (Service Locations)
- swift_courier (Courier Partners)
- swift_testimonial (Customer Reviews)
- swift_faq (FAQ Items)
- swift_vehicle (Vehicle Types)

SHORTCODES:
[swift_quote_calculator] - Instant quote form
[swift_booking_form] - Full booking system
[swift_tracking] - Shipment tracking
[swift_services] - Services grid/list
[swift_locations] - Locations map/list
[swift_testimonials] - Testimonials carousel
[swift_pricing] - Pricing tables
[swift_cta] - Call-to-action blocks
[swift_stats] - Statistics counters

WIDGETS:
- Quick Quote Widget
- Tracking Widget
- Services Widget
- Locations Widget
- CTA Banner Widget
- Social Links Widget
- Contact Info Widget

INTEGRATIONS:
- WooCommerce (Payments, Products)
- Contact Form 7 / WP Forms
- Google Maps API
- Stripe Payment Gateway
- Mailchimp / Email Marketing
- Google Analytics
- Yoast SEO / Rank Math

*/

/* ============================================
   CSS VARIABLES & ROOT CONFIGURATION
   ============================================ */

:root {
    /* Primary Color Palette - Modern Bold Design */
    --sc-primary: #FF6B35;
    --sc-primary-dark: #E55A2B;
    --sc-primary-light: #FF8C5A;
    
    /* Secondary Colors */
    --sc-secondary: #1A1A2E;
    --sc-secondary-light: #16213E;
    --sc-accent: #00D9FF;
    --sc-accent-secondary: #7B68EE;
    
    /* Neutral Colors */
    --sc-white: #FFFFFF;
    --sc-off-white: #F8F9FA;
    --sc-gray-100: #E9ECEF;
    --sc-gray-200: #DEE2E6;
    --sc-gray-300: #CED4DA;
    --sc-gray-400: #ADB5BD;
    --sc-gray-500: #6C757D;
    --sc-gray-600: #495057;
    --sc-gray-700: #343A40;
    --sc-gray-800: #212529;
    --sc-black: #0A0A0A;
    
    /* Semantic Colors */
    --sc-success: #10B981;
    --sc-warning: #F59E0B;
    --sc-error: #EF4444;
    --sc-info: #3B82F6;
    
    /* Typography */
    --sc-font-primary: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --sc-font-heading: 'Plus Jakarta Sans', var(--sc-font-primary);
    --sc-font-mono: 'JetBrains Mono', 'Fira Code', monospace;
    
    /* Font Sizes - Fluid Typography */
    --sc-text-xs: clamp(0.75rem, 0.7rem + 0.25vw, 0.875rem);
    --sc-text-sm: clamp(0.875rem, 0.85rem + 0.25vw, 1rem);
    --sc-text-base: clamp(1rem, 0.95rem + 0.25vw, 1.125rem);
    --sc-text-lg: clamp(1.125rem, 1.05rem + 0.375vw, 1.25rem);
    --sc-text-xl: clamp(1.25rem, 1.15rem + 0.5vw, 1.5rem);
    --sc-text-2xl: clamp(1.5rem, 1.35rem + 0.75vw, 1.875rem);
    --sc-text-3xl: clamp(1.875rem, 1.65rem + 1.125vw, 2.25rem);
    --sc-text-4xl: clamp(2.25rem, 1.95rem + 1.5vw, 3rem);
    --sc-text-5xl: clamp(3rem, 2.55rem + 2.25vw, 4.5rem);
    --sc-text-6xl: clamp(3.75rem, 3rem + 3.75vw, 6rem);
    
    /* Spacing Scale */
    --sc-space-1: 0.25rem;
    --sc-space-2: 0.5rem;
    --sc-space-3: 0.75rem;
    --sc-space-4: 1rem;
    --sc-space-5: 1.25rem;
    --sc-space-6: 1.5rem;
    --sc-space-8: 2rem;
    --sc-space-10: 2.5rem;
    --sc-space-12: 3rem;
    --sc-space-16: 4rem;
    --sc-space-20: 5rem;
    --sc-space-24: 6rem;
    --sc-space-32: 8rem;
    
    /* Border Radius */
    --sc-radius-sm: 0.375rem;
    --sc-radius-md: 0.5rem;
    --sc-radius-lg: 0.75rem;
    --sc-radius-xl: 1rem;
    --sc-radius-2xl: 1.5rem;
    --sc-radius-full: 9999px;
    
    /* Shadows */
    --sc-shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --sc-shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -2px rgba(0, 0, 0, 0.1);
    --sc-shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -4px rgba(0, 0, 0, 0.1);
    --sc-shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 8px 10px -6px rgba(0, 0, 0, 0.1);
    --sc-shadow-2xl: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    --sc-shadow-inner: inset 0 2px 4px 0 rgba(0, 0, 0, 0.05);
    --sc-shadow-glow: 0 0 40px rgba(255, 107, 53, 0.15);
    
    /* Transitions */
    --sc-transition-fast: 150ms ease;
    --sc-transition-base: 250ms ease;
    --sc-transition-slow: 350ms ease;
    --sc-transition-spring: 500ms cubic-bezier(0.34, 1.56, 0.64, 1);
    
    /* Z-Index Scale */
    --sc-z-dropdown: 100;
    --sc-z-sticky: 200;
    --sc-z-fixed: 300;
    --sc-z-modal-backdrop: 400;
    --sc-z-modal: 500;
    --sc-z-popover: 600;
    --sc-z-tooltip: 700;
    --sc-z-toast: 800;
    
    /* Container Widths */
    --sc-container-sm: 640px;
    --sc-container-md: 768px;
    --sc-container-lg: 1024px;
    --sc-container-xl: 1280px;
    --sc-container-2xl: 1400px;
}

/* ============================================
   CSS RESET & BASE STYLES
   ============================================ */

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

html {
    font-size: 16px;
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    font-family: var(--sc-font-primary);
    font-size: var(--sc-text-base);
    line-height: 1.6;
    color: var(--sc-gray-700);
    background-color: var(--sc-white);
    overflow-x: hidden;
}

/* Typography Base */

h1, h2, h3, h4, h5, h6 {
    font-family: var(--sc-font-heading);
    font-weight: 700;
    line-height: 1.2;
    color: var(--sc-secondary);
    margin-bottom: var(--sc-space-4);
}

h1 { font-size: var(--sc-text-5xl); }
h2 { font-size: var(--sctext-4xl); }
h3 { font-size: var(--sc-text-3xl); }
h4 { font-size: var(--sc-text-2xl); }
h5 { font-size: var(--sc-text-xl); }
h6 { font-size: var(--sc-text-lg); }

p {
    margin-bottom: var(--sc-space-4);
    color: var(--sc-gray-600);
}

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

a:hover {
    color: var(--sc-primary-dark);
    text-decoration: underline;
}

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

ul, ol {
    list-style: none;
}

button, input, select, textarea {
    font-family: inherit;
    font-size: inherit;
}

/* Utility Classes */

.sc-container {
    width: 100%;
    max-width: var(--sc-container-xl);
    margin: 0 auto;
    padding: 0 var(--sc-space-6);
}

.sc-container--narrow {
    max-width: var(--sc-container-md);
}

.sc-container--wide {
    max-width: var(--sc-container-2xl);
}

.sc-section {
    padding: var(--sc-space-24) 0;
}

.sc-section--sm {
    padding: var(--sc-space-12) 0;
}

.sc-section--lg {
    padding: var(--sc-space-32) 0;
}

/* Gradient Backgrounds */

.sc-gradient-primary {
    background: linear-gradient(135deg, var(--sc-primary) 0%, var(--sc-primary-dark) 100%);
}

.sc-gradient-dark {
    background: linear-gradient(135deg, var(--sc-secondary) 0%, var(--sc-secondary-light) 100%);
}

.sc-gradient-accent {
    background: linear-gradient(135deg, var(--sc-accent) 0%, var(--sc-accent-secondary) 100%);
}

.sc-gradient-hero {
    background: linear-gradient(135deg, var(--sc-secondary) 0%, var(--sc-secondary-light) 50%, var(--sc-primary-dark) 100%);
}

/* Button Styles */

.sc-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--sc-space-2);
    padding: var(--sc-space-3) var(--sc-space-6);
    font-family: var(--sc-font-primary);
    font-weight: 600;
    font-size: var(--sc-text-sm);
    line-height: 1.5;
    border: 2px solid transparent;
    border-radius: var(--sc-radius-lg);
    cursor: pointer;
    transition: all var(--sc-transition-base);
    text-decoration: none;
    white-space: nowrap;
}

.sc-btn:hover {
    transform: translateY(-2px);
    box-shadow: var(--sc-shadow-lg);
    text-decoration: none;
}

.sc-btn:active {
    transform: translateY(0);
}

.sc-btn--primary {
    background: var(--sc-primary);
    color: var(--sc-white);
    border-color: var(--sc-primary);
}

.sc-btn--primary:hover {
    background: var(--sc-primary-dark);
    border-color: var(--sc-primary-dark);
    color: var(--sc-white);
}

.sc-btn--secondary {
    background: var(--sc-secondary);
    color: var(--sc-white);
    border-color: var(--sc-secondary);
}

.sc-btn--secondary:hover {
    background: var(--sc-secondary-light);
    border-color: var(--sc-secondary-light);
    color: var(--sc-white);
}

.sc-btn--outline {
    background: transparent;
    color: var(--sc-primary);
    border-color: var(--sc-primary);
}

.sc-btn--outline:hover {
    background: var(--sc-primary);
    color: var(--sc-white);
}

.sc-btn--ghost {
    background: transparent;
    color: var(--sc-gray-600);
    border-color: transparent;
}

.sc-btn--ghost:hover {
    background: var(--sc-gray-100);
    color: var(--sc-gray-700);
}

.sc-btn--lg {
    padding: var(--sc-space-4) var(--sc-space-8);
    font-size: var(--sc-text-base);
    border-radius: var(--sc-radius-xl);
}

.sc-btn--sm {
    padding: var(--sc-space-2) var(--sc-space-4);
    font-size: var(--sc-text-xs);
}

.sc-btn--full {
    width: 100%;
}

.sc-btn--icon {
    width: 44px;
    height: 44px;
    padding: 0;
    border-radius: var(--sc-radius-full);
}

/* Card Styles */

.sc-card {
    background: var(--sc-white);
    border-radius: var(--sc-radius-xl);
    padding: var(--sc-space-6);
    box-shadow: var(--sc-shadow-md);
    transition: all var(--sc-transition-base);
    border: 1px solid var(--sc-gray-200);
}

.sc-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--sc-shadow-xl);
}

.sc-card--flat {
    box-shadow: none;
    border: 1px solid var(--sc-gray-200);
}

.sc-card--elevated {
    box-shadow: var(--sc-shadow-lg);
    border: none;
}

/* Form Styles */

.sc-form-group {
    margin-bottom: var(--sc-space-5);
}

.sc-label {
    display: block;
    font-weight: 600;
    font-size: var(--sc-text-sm);
    color: var(--sc-gray-700);
    margin-bottom: var(--sc-space-2);
}

.sc-input,
.sc-select,
.sc-textarea {
    width: 100%;
    padding: var(--sc-space-3) var(--sc-space-4);
    font-size: var(--sc-text-base);
    color: var(--sc-gray-700);
    background: var(--sc-white);
    border: 2px solid var(--sc-gray-300);
    border-radius: var(--sc-radius-lg);
    transition: all var(--sc-transition-fast);
}

.sc-input:focus,
.sc-select:focus,
.sc-textarea:focus {
    outline: none;
    border-color: var(--sc-primary);
    box-shadow: 0 0 0 3px rgba(255, 107, 53, 0.1);
}

.sc-input::placeholder {
    color: var(--sc-gray-400);
}

.sc-select {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='%236c757d'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M19 9l-7 7-7-7'%3E%3C/path%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right var(--sc-space-3) center;
    background-size: 20px;
    padding-right: var(--sc-space-10);
}

.sc-textarea {
    min-height: 120px;
    resize: vertical;
}

/* Badge Styles */

.sc-badge {
    display: inline-flex;
    align-items: center;
    gap: var(--sc-space-1);
    padding: var(--sc-space-1) var(--sc-space-3);
    font-size: var(--sc-text-xs);
    font-weight: 600;
    border-radius: var(--sc-radius-full);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.sc-badge--primary {
    background: rgba(255, 107, 53, 0.1);
    color: var(--sc-primary);
}

.sc-badge--success {
    background: rgba(16, 185, 129, 0.1);
    color: var(--sc-success);
}

.sc-badge--warning {
    background: rgba(245, 158, 11, 0.1);
    color: var(--sc-warning);
}

.sc-badge--error {
    background: rgba(239, 68, 68, 0.1);
    color: var(--sc-error);
}

.sc-badge--info {
    background: rgba(59, 130, 246, 0.1);
    color: var(--sc-info);
}

/* Grid System */

.sc-grid {
    display: grid;
    gap: var(--sc-space-6);
}

.sc-grid--2 { grid-template-columns: repeat(2, 1fr); }
.sc-grid--3 { grid-template-columns: repeat(3, 1fr); }
.sc-grid--4 { grid-template-columns: repeat(4, 1fr); }

@media (max-width: 1024px) {
    .sc-grid--4 { grid-template-columns: repeat(2, 1fr); }
    .sc-grid--3 { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 640px) {
    .sc-grid--4,
    .sc-grid--3,
    .sc-grid--2 { grid-template-columns: 1fr; }
}

/* Flex Utilities */

.sc-flex { display: flex; }
.sc-flex-col { flex-direction: column; }
.sc-flex-wrap { flex-wrap: wrap; }
.sc-items-center { align-items: center; }
.sc-items-start { align-items: flex-start; }
.sc-items-end { align-items: flex-end; }
.sc-justify-center { justify-content: center; }
.sc-justify-between { justify-content: space-between; }
.sc-justify-end { justify-content: flex-end; }
.sc-gap-2 { gap: var(--sc-space-2); }
.sc-gap-4 { gap: var(--sc-space-4); }
.sc-gap-6 { gap: var(--sc-space-6); }
.sc-gap-8 { gap: var(--sc-space-8); }

/* Text Utilities */

.sc-text-center { text-align: center; }
.sc-text-left { text-align: left; }
.sc-text-right { text-align: right; }
.sc-text-primary { color: var(--sc-primary); }
.sc-text-secondary { color: var(--sc-secondary); }
.sc-text-muted { color: var(--sc-gray-500); }
.sc-font-bold { font-weight: 700; }
.sc-font-semibold { font-weight: 600; }
.sc-font-medium { font-weight: 500; }

/* Visibility */

.sc-hidden { display: none !important; }
.sc-visible { display: block !important; }

@media (max-width: 768px) {
    .sc-hide-mobile { display: none !important; }
}

@media (min-width: 769px) {
    .sc-hide-desktop { display: none !important; }
}

/* Animation Keyframes */

@keyframes sc-fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes sc-slideUp {
    from { 
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes sc-slideDown {
    from {
        opacity: 0;
        transform: translateY(-30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes sc-scaleIn {
    from {
        opacity: 0;
        transform: scale(0.95);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes sc-pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

@keyframes sc-spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

@keyframes sc-bounce {
    0%, 100% {
        transform: translateY(0);
        animation-timing-function: cubic-bezier(0.8, 0, 1, 1);
    }
    50% {
        transform: translateY(-25%);
        animation-timing-function: cubic-bezier(0, 0, 0.2, 1);
    }
}

.sc-animate-fadeIn { animation: sc-fadeIn 0.5s ease-out forwards; }
.sc-animate-slideUp { animation: sc-slideUp 0.6s ease-out forwards; }
.sc-animate-slideDown { animation: sc-slideDown 0.6s ease-out forwards; }
.sc-animate-scaleIn { animation: sc-scaleIn 0.5s ease-out forwards; }
.sc-animate-pulse { animation: sc-pulse 2s ease-in-out infinite; }
.sc-animate-spin { animation: sc-spin 1s linear infinite; }
.sc-animate-bounce { animation: sc-bounce 1s ease-in-out infinite; }

/* Loading Spinner */

.sc-spinner {
    width: 40px;
    height: 40px;
    border: 3px solid var(--sc-gray-200);
    border-top-color: var(--sc-primary);
    border-radius: 50%;
    animation: sc-spin 0.8s linear infinite;
}

.sc-spinner--sm {
    width: 20px;
    height: 20px;
    border-width: 2px;
}

.sc-spinner--lg {
    width: 60px;
    height: 60px;
    border-width: 4px;
}
