/*
Theme Name: ContentCraft
Theme URI: https://contentcraft.com
Author: APEX VIRTUAL PARTNERS LTD
Author URI: https://apexvirtualpartners.com
Description: Professional WordPress theme for ContentCraft - Content creation services with WooCommerce integration. Features modern design, full responsive layout, and optimized checkout experience.
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: contentcraft
Tags: e-commerce, custom-colors, custom-logo, custom-menu, featured-images, footer-widgets, full-width-template, theme-options, threaded-comments, translation-ready

ContentCraft WordPress Theme
Copyright 2024 APEX VIRTUAL PARTNERS LTD
*/

/* ========================================
   CSS VARIABLES
======================================== */
:root {
    --cc-primary: #6366f1;
    --cc-primary-dark: #4f46e5;
    --cc-primary-light: #818cf8;
    --cc-secondary: #8b5cf6;
    --cc-accent: #a78bfa;
    --cc-dark: #1e293b;
    --cc-dark-light: #334155;
    --cc-gray: #64748b;
    --cc-gray-light: #94a3b8;
    --cc-bg: #f8fafc;
    --cc-bg-alt: #f1f5f9;
    --cc-white: #ffffff;
    --cc-border: #e2e8f0;
    --cc-success: #10b981;
    --cc-error: #ef4444;
    --cc-warning: #f59e0b;
    --cc-gradient: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);
    --cc-shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.05);
    --cc-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    --cc-shadow-md: 0 10px 25px -5px rgba(0, 0, 0, 0.1);
    --cc-shadow-lg: 0 20px 40px -10px rgba(0, 0, 0, 0.15);
    --cc-radius-sm: 8px;
    --cc-radius: 12px;
    --cc-radius-lg: 16px;
    --cc-radius-xl: 24px;
    --cc-font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    --cc-transition: all 0.3s ease;
    --cc-container: 1200px;
}

/* ========================================
   RESET & BASE
======================================== */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    font-family: var(--cc-font);
    font-size: 16px;
    line-height: 1.6;
    color: var(--cc-dark);
    background-color: var(--cc-white);
}

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

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

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

ul, ol {
    list-style-position: inside;
}

h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    line-height: 1.2;
    color: var(--cc-dark);
    margin-bottom: 0.5em;
}

h1 { font-size: clamp(2rem, 5vw, 3.5rem); }
h2 { font-size: clamp(1.75rem, 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;
    color: var(--cc-gray);
}

/* ========================================
   LAYOUT
======================================== */
.cc-container {
    max-width: var(--cc-container);
    margin: 0 auto;
    padding: 0 20px;
}

.cc-section {
    padding: 80px 0;
}

.cc-section-sm {
    padding: 50px 0;
}

@media (max-width: 768px) {
    .cc-section {
        padding: 50px 0;
    }
    .cc-section-sm {
        padding: 30px 0;
    }
}

/* ========================================
   HEADER
======================================== */
.cc-header {
    background: var(--cc-white);
    box-shadow: var(--cc-shadow-sm);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.cc-header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 15px 20px;
    max-width: var(--cc-container);
    margin: 0 auto;
}

.cc-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 24px;
    font-weight: 800;
    color: var(--cc-dark);
}

.cc-logo img, .cc-logo svg {
    height: 40px;
    width: auto;
}

/* Hide other branding/logos */
.custom-logo-link,
.site-branding .custom-logo,
.wp-block-site-logo,
.site-logo,
#wpadminbar,
.storefront-site-branding,
.woocommerce-store-notice {
    display: none !important;
}

.cc-logo span {
    background: var(--cc-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Navigation */
.cc-nav {
    display: flex;
    align-items: center;
    gap: 30px;
}

.cc-nav-menu {
    display: flex;
    list-style: none;
    gap: 30px;
    margin: 0;
    padding: 0;
}

.cc-nav-menu li {
    list-style: none;
}

.cc-nav-menu a {
    color: var(--cc-dark);
    font-weight: 500;
    font-size: 15px;
    padding: 8px 0;
    position: relative;
}

.cc-nav-menu a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--cc-gradient);
    transition: width 0.3s ease;
}

.cc-nav-menu a:hover::after,
.cc-nav-menu .current-menu-item a::after {
    width: 100%;
}

.cc-nav-actions {
    display: flex;
    align-items: center;
    gap: 15px;
}

.cc-cart-icon {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    background: var(--cc-bg);
    border-radius: var(--cc-radius-sm);
    color: var(--cc-dark);
    transition: var(--cc-transition);
}

.cc-cart-icon:hover {
    background: var(--cc-primary);
    color: var(--cc-white);
}

.cc-cart-count {
    position: absolute;
    top: -5px;
    right: -5px;
    background: var(--cc-secondary);
    color: var(--cc-white);
    font-size: 11px;
    font-weight: 700;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Mobile Menu Toggle */
.cc-menu-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 10px;
}

.cc-menu-toggle span {
    width: 24px;
    height: 2px;
    background: var(--cc-dark);
    transition: var(--cc-transition);
}

@media (max-width: 992px) {
    .cc-menu-toggle {
        display: flex;
    }

    .cc-nav-menu {
        position: fixed;
        top: 70px;
        left: 0;
        right: 0;
        background: var(--cc-white);
        flex-direction: column;
        padding: 20px;
        gap: 0;
        box-shadow: var(--cc-shadow-md);
        transform: translateY(-150%);
        opacity: 0;
        transition: var(--cc-transition);
    }

    .cc-nav-menu.active {
        transform: translateY(0);
        opacity: 1;
    }

    .cc-nav-menu a {
        display: block;
        padding: 15px 0;
        border-bottom: 1px solid var(--cc-border);
    }

    .cc-nav-menu li:last-child a {
        border-bottom: none;
    }
}

/* ========================================
   BUTTONS
======================================== */
.cc-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 14px 28px;
    font-size: 15px;
    font-weight: 600;
    border-radius: var(--cc-radius);
    border: none;
    cursor: pointer;
    transition: var(--cc-transition);
    text-decoration: none;
}

.cc-btn-primary {
    background: var(--cc-gradient);
    color: var(--cc-white);
    box-shadow: 0 4px 15px rgba(99, 102, 241, 0.35);
}

.cc-btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(99, 102, 241, 0.45);
    color: var(--cc-white);
}

.cc-btn-secondary {
    background: var(--cc-white);
    color: var(--cc-primary);
    border: 2px solid var(--cc-primary);
}

.cc-btn-secondary:hover {
    background: var(--cc-primary);
    color: var(--cc-white);
}

.cc-btn-outline {
    background: transparent;
    color: var(--cc-white);
    border: 2px solid var(--cc-white);
}

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

.cc-btn-lg {
    padding: 18px 36px;
    font-size: 17px;
}

.cc-btn-sm {
    padding: 10px 20px;
    font-size: 14px;
}

/* ========================================
   HERO SECTION
======================================== */
.cc-hero {
    background: var(--cc-gradient);
    color: var(--cc-white);
    padding: 100px 20px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.cc-hero::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 80%;
    height: 200%;
    background: rgba(255,255,255,0.08);
    transform: rotate(20deg);
    pointer-events: none;
}

.cc-hero::after {
    content: '';
    position: absolute;
    bottom: -30%;
    left: -15%;
    width: 50%;
    height: 150%;
    background: rgba(255,255,255,0.05);
    transform: rotate(-15deg);
    pointer-events: none;
}

.cc-hero-content {
    position: relative;
    z-index: 1;
    max-width: 800px;
    margin: 0 auto;
}

.cc-hero h1 {
    color: var(--cc-white);
    margin-bottom: 20px;
    font-weight: 800;
}

.cc-hero p {
    color: rgba(255,255,255,0.9);
    font-size: clamp(1rem, 2.5vw, 1.25rem);
    margin-bottom: 35px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.cc-hero-buttons {
    display: flex;
    gap: 15px;
    justify-content: center;
    flex-wrap: wrap;
}

@media (max-width: 768px) {
    .cc-hero {
        padding: 60px 20px;
    }
}

/* ========================================
   SERVICES/PRODUCTS GRID
======================================== */
.cc-services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}

.cc-service-card {
    background: var(--cc-white);
    padding: 35px 30px;
    border-radius: var(--cc-radius-lg);
    box-shadow: var(--cc-shadow);
    border: 1px solid var(--cc-border);
    transition: var(--cc-transition);
    position: relative;
    overflow: hidden;
}

.cc-service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--cc-gradient);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.cc-service-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--cc-shadow-lg);
}

.cc-service-card:hover::before {
    opacity: 1;
}

.cc-service-icon {
    width: 70px;
    height: 70px;
    background: var(--cc-gradient);
    border-radius: var(--cc-radius);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 30px;
    margin-bottom: 25px;
    box-shadow: 0 8px 20px rgba(99, 102, 241, 0.25);
}

.cc-service-card h3 {
    margin-bottom: 12px;
}

.cc-service-card p {
    margin-bottom: 20px;
    font-size: 15px;
}

.cc-service-price {
    font-size: 22px;
    font-weight: 700;
    background: var(--cc-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.cc-service-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-top: 15px;
    font-weight: 600;
    font-size: 15px;
}

.cc-service-link:hover {
    gap: 12px;
}

/* ========================================
   FEATURES
======================================== */
.cc-features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 25px;
}

.cc-feature {
    display: flex;
    align-items: flex-start;
    gap: 18px;
    padding: 25px;
    background: var(--cc-white);
    border-radius: var(--cc-radius);
    border: 1px solid var(--cc-border);
    transition: var(--cc-transition);
}

.cc-feature:hover {
    border-color: var(--cc-accent);
    box-shadow: var(--cc-shadow);
}

.cc-feature-icon {
    width: 55px;
    height: 55px;
    background: linear-gradient(135deg, rgba(99,102,241,0.1) 0%, rgba(139,92,246,0.1) 100%);
    border-radius: var(--cc-radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 26px;
    flex-shrink: 0;
}

.cc-feature h4 {
    margin-bottom: 6px;
    font-size: 17px;
}

.cc-feature p {
    font-size: 14px;
    margin: 0;
}

/* ========================================
   HOW IT WORKS
======================================== */
.cc-steps {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 50px;
    margin-top: 50px;
}

.cc-step {
    flex: 1;
    min-width: 220px;
    max-width: 300px;
    text-align: center;
}

.cc-step-number {
    width: 70px;
    height: 70px;
    background: var(--cc-gradient);
    border-radius: 50%;
    color: var(--cc-white);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 25px;
    font-weight: 800;
    font-size: 28px;
    box-shadow: 0 10px 25px rgba(99, 102, 241, 0.35);
}

.cc-step h4 {
    margin-bottom: 10px;
    font-size: 20px;
}

.cc-step p {
    font-size: 15px;
}

/* ========================================
   CTA SECTION
======================================== */
.cc-cta {
    background: var(--cc-gradient);
    padding: 80px 20px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.cc-cta::before {
    content: '';
    position: absolute;
    bottom: -40%;
    left: -15%;
    width: 60%;
    height: 180%;
    background: rgba(255,255,255,0.06);
    transform: rotate(-18deg);
    pointer-events: none;
}

.cc-cta h2 {
    color: var(--cc-white);
    margin-bottom: 15px;
}

.cc-cta p {
    color: rgba(255,255,255,0.9);
    font-size: 18px;
    margin-bottom: 30px;
}

/* ========================================
   FOOTER
======================================== */
.cc-footer {
    background: var(--cc-dark);
    color: var(--cc-white);
    padding: 70px 20px 30px;
}

.cc-footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 40px;
    max-width: var(--cc-container);
    margin: 0 auto;
}

.cc-footer-section h4 {
    color: var(--cc-white);
    font-size: 18px;
    margin-bottom: 25px;
}

.cc-footer-section p {
    color: var(--cc-gray-light);
    font-size: 14px;
    line-height: 1.8;
}

.cc-footer-section ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.cc-footer-section li {
    margin-bottom: 12px;
}

.cc-footer-section a {
    color: var(--cc-gray-light);
    font-size: 14px;
    transition: var(--cc-transition);
}

.cc-footer-section a:hover {
    color: var(--cc-white);
}

.cc-footer-logo {
    font-size: 24px;
    font-weight: 800;
    margin-bottom: 20px;
    display: block;
}

.cc-footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.1);
    margin-top: 50px;
    padding-top: 25px;
    text-align: center;
    color: var(--cc-gray-light);
    font-size: 14px;
    max-width: var(--cc-container);
    margin-left: auto;
    margin-right: auto;
}

.cc-footer-bottom a {
    color: var(--cc-gray-light);
}

.cc-footer-bottom a:hover {
    color: var(--cc-white);
}

/* ========================================
   SECTION TITLES
======================================== */
.cc-section-header {
    text-align: center;
    margin-bottom: 50px;
}

.cc-section-header h2 {
    margin-bottom: 15px;
}

.cc-section-header p {
    font-size: 18px;
    max-width: 600px;
    margin: 0 auto;
}

/* ========================================
   PAGE CONTENT
======================================== */
.cc-page-header {
    background: var(--cc-gradient);
    padding: 60px 20px;
    text-align: center;
}

.cc-page-header h1 {
    color: var(--cc-white);
    margin-bottom: 10px;
}

.cc-page-header p {
    color: rgba(255,255,255,0.85);
    margin: 0;
}

.cc-page-content {
    max-width: 800px;
    margin: 0 auto;
    padding: 60px 20px;
}

.cc-page-content h2 {
    margin-top: 40px;
    padding-bottom: 15px;
    border-bottom: 2px solid var(--cc-border);
}

.cc-page-content h3 {
    margin-top: 30px;
}

.cc-page-content ul, .cc-page-content ol {
    margin-bottom: 20px;
    padding-left: 25px;
}

.cc-page-content li {
    margin-bottom: 10px;
    color: var(--cc-gray);
}

.cc-page-content table {
    width: 100%;
    border-collapse: collapse;
    margin: 25px 0;
}

.cc-page-content th,
.cc-page-content td {
    padding: 12px 15px;
    border: 1px solid var(--cc-border);
    text-align: left;
}

.cc-page-content th {
    background: var(--cc-bg);
    font-weight: 600;
}

/* Info boxes */
.cc-info-box {
    background: var(--cc-bg);
    padding: 25px;
    border-radius: var(--cc-radius);
    margin: 25px 0;
}

.cc-info-box.cc-gradient {
    background: var(--cc-gradient);
    color: var(--cc-white);
}

.cc-info-box.cc-gradient h4,
.cc-info-box.cc-gradient p {
    color: var(--cc-white);
}

/* ========================================
   FORMS
======================================== */
.cc-form-group {
    margin-bottom: 20px;
}

.cc-form-group label {
    display: block;
    font-weight: 600;
    margin-bottom: 8px;
    color: var(--cc-dark);
}

.cc-form-group .required {
    color: var(--cc-error);
}

input[type="text"],
input[type="email"],
input[type="tel"],
input[type="number"],
input[type="url"],
input[type="password"],
select,
textarea {
    width: 100%;
    padding: 14px 18px;
    border: 2px solid var(--cc-border);
    border-radius: var(--cc-radius-sm);
    font-size: 15px;
    font-family: var(--cc-font);
    color: var(--cc-dark);
    background: var(--cc-white);
    transition: var(--cc-transition);
}

input:focus,
select:focus,
textarea:focus {
    outline: none;
    border-color: var(--cc-primary);
    box-shadow: 0 0 0 4px rgba(99, 102, 241, 0.1);
}

input::placeholder,
textarea::placeholder {
    color: var(--cc-gray-light);
}

/* ========================================
   WOOCOMMERCE OVERRIDES
======================================== */
/* These will be in woocommerce.css for better organization */

/* ========================================
   ANIMATIONS
======================================== */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

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

@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

.cc-animate {
    animation: fadeInUp 0.6s ease forwards;
}

.cc-animate-delay-1 { animation-delay: 0.1s; opacity: 0; }
.cc-animate-delay-2 { animation-delay: 0.2s; opacity: 0; }
.cc-animate-delay-3 { animation-delay: 0.3s; opacity: 0; }
.cc-animate-delay-4 { animation-delay: 0.4s; opacity: 0; }

/* ========================================
   UTILITIES
======================================== */
.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }

.mt-0 { margin-top: 0; }
.mb-0 { margin-bottom: 0; }
.mt-1 { margin-top: 10px; }
.mb-1 { margin-bottom: 10px; }
.mt-2 { margin-top: 20px; }
.mb-2 { margin-bottom: 20px; }
.mt-3 { margin-top: 30px; }
.mb-3 { margin-bottom: 30px; }

.hidden { display: none; }

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

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

/* ========================================
   SERVICES / PRODUCTS GRID
======================================== */
.cc-products-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

@media (max-width: 992px) {
    .cc-products-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 576px) {
    .cc-products-grid {
        grid-template-columns: 1fr;
    }
}

.cc-product-card {
    background: var(--cc-white);
    border-radius: var(--cc-radius-lg);
    overflow: hidden;
    box-shadow: var(--cc-shadow);
    transition: var(--cc-transition);
}

.cc-product-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--cc-shadow-lg);
}

.cc-product-image {
    aspect-ratio: 4/3;
    background: var(--cc-bg);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.cc-product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.cc-product-placeholder {
    color: var(--cc-gray-light);
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, var(--cc-bg) 0%, var(--cc-bg-alt) 100%);
}

.cc-product-info {
    padding: 25px;
}

.cc-product-info h3 {
    font-size: 20px;
    margin-bottom: 10px;
}

.cc-product-info h3 a {
    color: var(--cc-dark);
}

.cc-product-info h3 a:hover {
    color: var(--cc-primary);
}

.cc-product-info p {
    color: var(--cc-gray);
    font-size: 14px;
    margin-bottom: 20px;
    line-height: 1.6;
}

.cc-product-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 15px;
}

.cc-product-price {
    font-weight: 700;
    color: var(--cc-primary);
    font-size: 16px;
}

.cc-no-products {
    text-align: center;
    padding: 80px 20px;
}

.cc-no-products h3 {
    margin-bottom: 15px;
}

.cc-no-products p {
    color: var(--cc-gray);
}
