/* ==========================================================================
   Pluginwala Custom Homepage Stylesheet
   ========================================================================== */

/* Variables */
:root {
    --pw-primary: #2563eb;
    --pw-primary-hover: #1d4ed8;
    --pw-dark: #0f172a;
    --pw-slate-700: #334155;
    --pw-slate-600: #475569;
    --pw-slate-500: #64748b;
    --pw-slate-100: #f1f5f9;
    --pw-slate-50: #f8fafc;
    --pw-white: #ffffff;
    --pw-shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --pw-shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -2px rgba(0, 0, 0, 0.1);
    --pw-shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.05), 0 4px 6px -4px rgba(0, 0, 0, 0.05);
    --pw-shadow-premium: 0 20px 25px -5px rgba(0, 0, 0, 0.03), 0 8px 10px -6px rgba(0, 0, 0, 0.03);
    --pw-transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --pw-font-family: 'Outfit', 'Inter', sans-serif;
}

/* Reset / Core overrides (only applied within our layout wrapper) */
.pluginwala-home-wrapper {
    font-family: var(--pw-font-family);
    color: var(--pw-slate-700);
    line-height: 1.6;
    overflow-x: hidden;
    background-color: var(--pw-white);
}

.pluginwala-home-wrapper *, 
.pluginwala-home-wrapper *::before, 
.pluginwala-home-wrapper *::after {
    box-sizing: border-box;
}

/* Theme resets for integration - removes WoodMart default page container paddings and margins */
body.page-template-pluginwala-homepage-template .main-page-wrapper {
    padding-top: 0 !important;
    padding-bottom: 0 !important;
    margin-top: 0 !important;
    margin-bottom: 0 !important;
}

body.page-template-pluginwala-homepage-template .container {
    max-width: 100% !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
    width: 100% !important;
}

body.page-template-pluginwala-homepage-template .site-content {
    margin-bottom: 0 !important;
}

body.page-template-pluginwala-homepage-template article.page {
    margin-bottom: 0 !important;
    padding-bottom: 0 !important;
}

/* Container */
.pw-container {
    max-width: var(--pw-container-width, 1200px);
    padding: var(--pw-container-padding, 0 24px);
    margin: 0 auto;
    width: 100%;
}

/* Typo highlights */
.pluginwala-home-wrapper h1, 
.pluginwala-home-wrapper h2, 
.pluginwala-home-wrapper h3, 
.pluginwala-home-wrapper h4 {
    color: var(--pw-dark);
    font-family: 'Outfit', sans-serif;
    font-weight: 700;
}

.pluginwala-home-wrapper .highlight {
    color: var(--pw-primary);
    position: relative;
}

/* BUTTONS */
.pw-btn-primary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background-color: var(--pw-primary);
    color: var(--pw-white) !important;
    font-weight: 600;
    font-size: 15px;
    padding: 14px 28px;
    border-radius: 8px;
    text-decoration: none;
    box-shadow: 0 4px 14px 0 rgba(37, 99, 235, 0.2);
    transition: var(--pw-transition);
    gap: 8px;
    border: none;
    cursor: pointer;
}

.pw-btn-primary:hover {
    background-color: var(--pw-primary-hover);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px 0 rgba(37, 99, 235, 0.3);
}

.pw-btn-primary i {
    transition: transform 0.2s ease;
}

.pw-btn-primary:hover i {
    transform: translateX(4px);
}

.pw-btn-secondary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background-color: var(--pw-white);
    color: var(--pw-dark) !important;
    font-weight: 600;
    font-size: 15px;
    padding: 14px 28px;
    border-radius: 8px;
    border: 1px solid #e2e8f0;
    text-decoration: none;
    transition: var(--pw-transition);
    gap: 8px;
    cursor: pointer;
}

.pw-btn-secondary:hover {
    background-color: var(--pw-slate-50);
    border-color: #cbd5e1;
    transform: translateY(-2px);
}

.pw-btn-secondary i {
    font-size: 14px;
}

/* ==========================================================================
   1. HERO SECTION
   ========================================================================== */
.pw-hero-section {
    position: relative;
    padding: 45px 0 60px;
    background: radial-gradient(circle at 10% 20%, rgba(241, 245, 249, 0.6) 0%, rgba(255, 255, 255, 0.6) 90%);
}

/* Mesh-gradient blur spots */
.pw-hero-section::before {
    content: '';
    position: absolute;
    top: -200px;
    right: -200px;
    width: 600px;
    height: 600px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(99, 102, 241, 0.08) 0%, rgba(255, 255, 255, 0) 70%);
    filter: blur(80px);
    z-index: 1;
    pointer-events: none;
}

.pw-hero-grid {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 40px;
    position: relative;
    z-index: 2;
}

.pw-hero-content {
    flex: 1;
    max-width: 580px;
}

.pw-hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background-color: #fef3c7;
    color: #d97706;
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 24px;
}

.pw-hero-badge i {
    font-size: 10px;
}

.pw-hero-title {
    font-size: 54px;
    line-height: 1.15;
    margin: 0 0 20px;
    letter-spacing: -1px;
}

.pw-hero-subtitle {
    font-size: 17px;
    color: var(--pw-slate-600);
    margin-bottom: 35px;
    line-height: 1.6;
}

.pw-hero-buttons {
    display: flex;
    gap: 16px;
    margin-bottom: 40px;
    flex-wrap: wrap;
}

.pw-hero-trust-list {
    display: flex;
    gap: 24px;
    flex-wrap: wrap;
}

.pw-hero-trust-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    font-weight: 600;
    color: var(--pw-slate-600);
}

.pw-hero-trust-item i {
    color: var(--pw-primary);
    background: rgba(37, 99, 235, 0.08);
    width: 22px;
    height: 22px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
}

/* Hero Right Image & Mockups */
.pw-hero-media {
    flex: 1;
    position: relative;
    display: flex;
    justify-content: flex-end;
}

.pw-mockup-wrapper {
    position: relative;
    max-width: 540px;
    width: 100%;
}

.pw-hero-mockup-img {
    width: 100%;
    height: auto;
    border-radius: 16px;
    box-shadow: var(--pw-shadow-premium);
    transition: transform 0.5s ease;
    z-index: 2;
    position: relative;
}

.pw-mockup-wrapper:hover .pw-hero-mockup-img {
    transform: translateY(-5px);
}

/* Card Badge Overlay (Trusted by 10k+) */
.pw-trusted-overlay {
    position: absolute;
    bottom: 20px;
    right: -20px;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.6);
    border-radius: 16px;
    padding: 20px 24px;
    box-shadow: 0 10px 30px rgba(15, 23, 42, 0.08);
    z-index: 3;
    width: 180px;
    animation: floatOverlay 6s ease-in-out infinite;
}

@keyframes floatOverlay {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-8px); }
}

.pw-trusted-overlay .stars {
    color: #fbbf24;
    font-size: 11px;
    margin-bottom: 6px;
    display: flex;
    gap: 3px;
}

.pw-trusted-overlay .count {
    font-size: 22px;
    font-weight: 800;
    color: var(--pw-dark);
    line-height: 1.1;
}

.pw-trusted-overlay .label {
    font-size: 11px;
    color: var(--pw-slate-500);
    font-weight: 600;
}

/* Responsive Hero */
@media (max-width: 991px) {
    .pw-hero-grid {
        flex-direction: column;
        text-align: center;
        gap: 50px;
    }
    
    .pw-hero-content {
        max-width: 100%;
        display: flex;
        flex-direction: column;
        align-items: center;
    }
    
    .pw-hero-title {
        font-size: 42px;
    }
    
    .pw-hero-media {
        justify-content: center;
        width: 100%;
    }
    
    .pw-hero-buttons {
        justify-content: center;
    }
    
    .pw-hero-trust-list {
        justify-content: center;
    }
    
    .pw-trusted-overlay {
        right: 0;
    }
}

/* ==========================================================================
   2. CATEGORIES SECTION
   ========================================================================== */
.pw-categories-section {
    padding: 50px 0;
    background-color: var(--pw-white);
}

.pw-section-header {
    text-align: center;
    max-width: 600px;
    margin: 0 auto 40px;
}

.pw-section-header h2 {
    font-size: 36px;
    margin: 0 0 12px;
    letter-spacing: -0.5px;
}

.pw-section-header p {
    font-size: 16px;
    color: var(--pw-slate-500);
    margin: 0;
}

/* Grid */
.pw-category-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.pw-category-card {
    background: var(--pw-white);
    border: 1px solid #f1f5f9;
    border-radius: 16px;
    padding: 30px;
    text-decoration: none;
    color: inherit;
    box-shadow: var(--pw-shadow-lg);
    transition: var(--pw-transition);
    display: flex;
    flex-direction: column;
    height: 100%;
}

.pw-category-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 25px -5px rgba(15, 23, 42, 0.05), 0 8px 10px -6px rgba(15, 23, 42, 0.05);
    border-color: #e2e8f0;
}

.pw-cat-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 24px;
    font-size: 18px;
}

/* Icon specific colors (soft background, solid icon color) */
.pw-cat-1 .pw-cat-icon { background-color: #f3e8ff; color: #a855f7; } /* Purple - SEO */
.pw-cat-2 .pw-cat-icon { background-color: #dcfce7; color: #22c55e; } /* Green - Performance */
.pw-cat-3 .pw-cat-icon { background-color: #dbeafe; color: #3b82f6; } /* Blue - Security */
.pw-cat-4 .pw-cat-icon { background-color: #ffedd5; color: #f97316; } /* Orange - Page Builder */
.pw-cat-5 .pw-cat-icon { background-color: #fce7f3; color: #ec4899; } /* Pink - E-Commerce */
.pw-cat-6 .pw-cat-icon { background-color: #e0f2fe; color: #0ea5e9; } /* Teal/Lightblue - Marketing */

.pw-category-card h3 {
    font-size: 20px;
    margin: 0 0 12px;
}

.pw-category-card p {
    font-size: 14px;
    color: var(--pw-slate-500);
    margin: 0 0 24px;
    flex-grow: 1;
}

.pw-cat-link {
    font-size: 13px;
    font-weight: 700;
    color: var(--pw-dark);
    display: flex;
    align-items: center;
    gap: 6px;
    transition: var(--pw-transition);
}

.pw-cat-link i {
    font-size: 10px;
    transition: transform 0.2s ease;
}

.pw-category-card:hover .pw-cat-link {
    color: var(--pw-primary);
}

.pw-category-card:hover .pw-cat-link i {
    transform: translateX(4px);
}

/* Responsive Categories */
@media (max-width: 991px) {
    .pw-category-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 767px) {
    .pw-category-grid {
        grid-template-columns: 1fr;
    }
    .pw-section-header h2 {
        font-size: 30px;
    }
}

/* ==========================================================================
   3. WHY CHOOSE US
   ========================================================================== */
.pw-wcu-section {
    padding: 50px 0;
    background-color: var(--pw-slate-50);
}

.pw-wcu-grid {
    display: flex;
    justify-content: space-between;
    gap: 60px;
}

.pw-wcu-left {
    flex: 1;
    max-width: 440px;
}

.pw-wcu-badge {
    font-size: 12px;
    font-weight: 700;
    color: var(--pw-primary);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 16px;
    display: block;
}

.pw-wcu-title {
    font-size: 38px;
    line-height: 1.2;
    margin: 0 0 20px;
}

.pw-wcu-desc {
    font-size: 16px;
    color: var(--pw-slate-600);
    margin-bottom: 35px;
}

.pw-wcu-right {
    flex: 1.3;
}

/* Grid of features */
.pw-feature-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
}

.pw-feature-card {
    background: var(--pw-white);
    border: 1px solid #f1f5f9;
    border-radius: 16px;
    padding: 24px;
    box-shadow: var(--pw-shadow-sm);
    transition: var(--pw-transition);
    display: flex;
    gap: 16px;
}

.pw-feature-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--pw-shadow-md);
}

.pw-feature-icon {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    font-size: 16px;
}

/* Features colors */
.pw-feat-1 .pw-feature-icon { background: #f3e8ff; color: #a855f7; }
.pw-feat-2 .pw-feature-icon { background: #ffedd5; color: #f97316; }
.pw-feat-3 .pw-feature-icon { background: #dcfce7; color: #22c55e; }
.pw-feat-4 .pw-feature-icon { background: #fce7f3; color: #ec4899; }
.pw-feat-5 .pw-feature-icon { background: #dbeafe; color: #3b82f6; }
.pw-feat-6 .pw-feature-icon { background: #e0f2fe; color: #0ea5e9; }

.pw-feature-content h4 {
    font-size: 16px;
    margin: 0 0 6px;
}

.pw-feature-content p {
    font-size: 13px;
    color: var(--pw-slate-500);
    margin: 0;
}

/* Responsive Why Choose Us */
@media (max-width: 991px) {
    .pw-wcu-grid {
        flex-direction: column;
        gap: 50px;
    }
    .pw-wcu-left {
        max-width: 100%;
        text-align: center;
    }
}

@media (max-width: 600px) {
    .pw-feature-grid {
        grid-template-columns: 1fr;
    }
}

/* ==========================================================================
   4. STATS BANNER SECTION
   ========================================================================== */
.pw-stats-section {
    padding: 0 0 50px;
    background-color: var(--pw-slate-50);
}

.pw-stats-banner {
    background: var(--pw-white);
    border: 1px solid #f1f5f9;
    border-radius: 20px;
    padding: 40px;
    box-shadow: var(--pw-shadow-lg);
    display: flex;
    justify-content: space-around;
    align-items: center;
    flex-wrap: wrap;
    gap: 30px;
}

.pw-stat-item {
    text-align: center;
    flex: 1;
    min-width: 180px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
}

.pw-stat-icon {
    width: 50px;
    height: 50px;
    background: rgba(37, 99, 235, 0.06);
    color: var(--pw-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
}

/* Specific icon styles for visual variety */
.pw-stat-item:nth-child(2) .pw-stat-icon { background: rgba(168, 85, 247, 0.06); color: #a855f7; }
.pw-stat-item:nth-child(3) .pw-stat-icon { background: rgba(34, 197, 94, 0.06); color: #22c55e; }
.pw-stat-item:nth-child(4) .pw-stat-icon { background: rgba(236, 72, 153, 0.06); color: #ec4899; }

.pw-stat-val {
    font-size: 32px;
    font-weight: 800;
    color: var(--pw-dark);
    margin: 0;
    line-height: 1;
}

.pw-stat-lbl {
    font-size: 13px;
    color: var(--pw-slate-500);
    font-weight: 600;
    margin: 0;
}

/* Responsive Stats */
@media (max-width: 767px) {
    .pw-stats-banner {
        padding: 30px 20px;
    }
    .pw-stat-item {
        min-width: 40%;
    }
}

/* ==========================================================================
   5. TESTIMONIALS SECTION
   ========================================================================== */
.pw-testimonials-section {
    padding: 50px 0 60px;
    background-color: var(--pw-white);
    position: relative;
}

.pw-slider-outer-wrapper {
    position: relative;
    max-width: 1080px;
    margin: 0 auto;
    overflow: hidden;
    padding: 10px 0 30px;
}

.pw-testimonial-slider-track {
    display: flex;
    transition: transform 0.4s cubic-bezier(0.25, 1, 0.5, 1);
    gap: 30px;
}

.pw-testimonial-card {
    background: var(--pw-white);
    border: 1px solid #f1f5f9;
    border-radius: 16px;
    padding: 30px;
    box-shadow: var(--pw-shadow-lg);
    flex: 0 0 calc(33.333% - 20px);
    min-height: 250px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: var(--pw-transition);
}

.pw-testimonial-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 25px -5px rgba(15, 23, 42, 0.05);
    border-color: #cbd5e1;
}

.pw-testi-stars {
    color: #fbbf24;
    font-size: 12px;
    margin-bottom: 20px;
    display: flex;
    gap: 3px;
}

.pw-testi-quote {
    font-size: 15px;
    font-style: italic;
    color: var(--pw-slate-600);
    line-height: 1.6;
    margin: 0 0 24px;
    flex-grow: 1;
}

.pw-testi-author {
    display: flex;
    align-items: center;
    gap: 12px;
}

.pw-testi-avatar {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    object-fit: cover;
    background: var(--pw-slate-100);
}

.pw-author-info h5 {
    font-size: 14px;
    margin: 0 0 2px;
    font-weight: 700;
}

.pw-author-info span {
    font-size: 11px;
    color: var(--pw-slate-500);
    font-weight: 500;
}

/* Slider Controls */
.pw-slider-nav {
    position: absolute;
    top: 50%;
    width: calc(100% + 40px);
    left: -20px;
    display: flex;
    justify-content: space-between;
    pointer-events: none;
    transform: translateY(-50%);
}

.pw-slider-arrow {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: var(--pw-white);
    border: 1px solid #cbd5e1;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--pw-dark);
    cursor: pointer;
    pointer-events: auto;
    transition: var(--pw-transition);
    box-shadow: var(--pw-shadow-sm);
}

.pw-slider-arrow:hover {
    background: var(--pw-primary);
    color: var(--pw-white);
    border-color: var(--pw-primary);
    box-shadow: 0 4px 10px rgba(37, 99, 235, 0.2);
}

.pw-slider-arrow.disabled {
    opacity: 0.3;
    pointer-events: none;
}

/* Dots */
.pw-slider-dots {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 40px;
}

.pw-slider-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #cbd5e1;
    cursor: pointer;
    transition: var(--pw-transition);
}

.pw-slider-dot.active {
    background: var(--pw-primary);
    width: 24px;
    border-radius: 4px;
}

/* Responsive Testimonials */
@media (max-width: 991px) {
    .pw-testimonial-card {
        flex: 0 0 calc(50% - 15px);
    }
    .pw-slider-nav {
        display: none; /* Hide arrows on smaller viewports and rely on swipe/dots */
    }
}

@media (max-width: 767px) {
    .pw-testimonial-card {
        flex: 0 0 100%;
    }
}
