/**
 * Landing Page Styles
 * Q8sy Custom Theme
 * 
 * Color Palette:
 * Primary: rgb(30, 64, 175) - Deep Blue
 * Secondary: rgb(20, 184, 166) - Teal
 * Accent: rgb(245, 158, 11) - Gold/Amber
 * Background: rgb(249, 250, 251) - Light Gray
 */

:root {
    --color-primary: rgb(30, 64, 175);
    --color-primary-dark: rgb(25, 55, 150);
    --color-secondary: rgb(20, 184, 166);
    --color-secondary-dark: rgb(18, 165, 148);
    --color-accent: rgb(245, 158, 11);
    --color-accent-dark: rgb(217, 119, 6);
    --color-background: rgb(249, 250, 251);
    --color-text: rgb(17, 24, 39);
    --color-text-light: rgb(107, 114, 128);
    --color-white: #ffffff;
}

/* Language Switcher removed from header - now in footer */

/* RTL Support */
.landing-page-wrapper[dir="rtl"] {
    direction: rtl;
    text-align: right;
}

.landing-page-wrapper[dir="rtl"] .custom-header-logo {
    left: auto;
    right: 20px;
}

.landing-page-wrapper[dir="rtl"] .hero-cta {
    flex-direction: row-reverse;
}

.landing-page-wrapper[dir="rtl"] .benefit-item {
    flex-direction: row-reverse;
}

.landing-page-wrapper[dir="rtl"] .benefit-item:hover {
    transform: translateX(-10px);
}

@media (max-width: 768px) {
    .custom-header-logo {
        z-index: 10000 !important;
    }
    
    .landing-page-wrapper[dir="rtl"] .custom-header-logo {
        left: auto;
        right: 15px;
    }
}

@media (max-width: 480px) {
    .custom-header-logo {
        z-index: 10000 !important;
    }
    
    .landing-page-wrapper[dir="rtl"] .custom-header-logo {
        left: auto;
        right: 10px;
    }
}

/* Hero Section */
.hero-section {
    min-height: 100vh;
    background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-dark) 50%, var(--color-secondary) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    padding: 120px 20px 80px;
    will-change: transform;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg width="100" height="100" xmlns="http://www.w3.org/2000/svg"><defs><pattern id="grid" width="100" height="100" patternUnits="userSpaceOnUse"><path d="M 100 0 L 0 0 0 100" fill="none" stroke="rgba(255,255,255,0.05)" stroke-width="1"/></pattern></defs><rect width="100" height="100" fill="url(%23grid)"/></svg>');
    opacity: 0.3;
}

.hero-content {
    max-width: 1200px;
    width: 100%;
    text-align: center;
    position: relative;
    z-index: 2;
    animation: fadeInUp 1s ease-out;
}

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

.hero-badge {
    display: inline-block;
    padding: 8px 20px;
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    border-radius: 50px;
    color: white;
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 20px;
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.hero-title {
    font-size: clamp(2.5rem, 5vw, 4.5rem);
    font-weight: 800;
    color: white;
    margin-bottom: 24px;
    line-height: 1.2;
    text-shadow: 0 2px 20px rgba(0, 0, 0, 0.2);
}

.hero-subtitle {
    font-size: clamp(1.1rem, 2vw, 1.5rem);
    color: rgba(255, 255, 255, 0.95);
    margin-bottom: 40px;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.6;
}

.hero-cta {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
    margin-top: 40px;
}

.btn {
    padding: 18px 40px;
    font-size: 18px;
    font-weight: 600;
    border-radius: 50px;
    text-decoration: none;
    transition: all 0.3s ease;
    display: inline-block;
    border: none;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

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

.btn-primary:hover {
    background: var(--color-accent-dark);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(245, 158, 11, 0.4);
}

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

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.95);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 255, 255, 0.3);
}

/* Features Section */
.features-section {
    padding: 100px 20px;
    background: var(--color-background);
    width: 100%;
    max-width: 100vw;
    overflow-x: hidden;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
}

.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-title {
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 800;
    color: var(--color-text);
    margin-bottom: 16px;
}

.section-subtitle {
    font-size: 1.2rem;
    color: var(--color-text-light);
    max-width: 600px;
    margin: 0 auto;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 40px;
    margin-top: 60px;
}

.feature-card {
    background: white;
    padding: 40px;
    border-radius: 20px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.feature-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.15);
}

.feature-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--color-primary), var(--color-secondary));
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    margin-bottom: 24px;
    color: white;
}

.feature-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--color-text);
    margin-bottom: 12px;
}

.feature-description {
    color: var(--color-text-light);
    line-height: 1.7;
}

/* Dashboard Showcase Section */
.dashboard-showcase-section {
    padding: 100px 20px;
    background: white;
    width: 100%;
    max-width: 100vw;
    overflow-x: hidden;
}

.dashboard-showcase-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
    margin-top: 60px;
}

.dashboard-images {
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.dashboard-image-wrapper {
    position: relative;
    transition: transform 0.3s ease;
    width: 100%;
    max-width: 100%;
}

.dashboard-image-wrapper.combined {
    max-width: 900px;
    margin: 0 auto;
}

.dashboard-image-wrapper:hover {
    transform: translateY(-10px);
}

.dashboard-image {
    width: 100%;
    height: auto;
    border-radius: 20px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
    transition: all 0.3s ease;
}

.dashboard-image:hover {
    box-shadow: 0 15px 50px rgba(0, 0, 0, 0.25);
}

.dashboard-description {
    padding: 20px;
}

.dashboard-description-title {
    font-size: 2rem;
    font-weight: 700;
    color: var(--color-text);
    margin-bottom: 20px;
    line-height: 1.3;
}

.dashboard-description-text {
    font-size: 1.1rem;
    color: var(--color-text-light);
    line-height: 1.8;
    margin-bottom: 30px;
}

.dashboard-features-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.dashboard-feature-item {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 12px;
    background: var(--color-background);
    border-radius: 12px;
    transition: all 0.3s ease;
}

.dashboard-feature-item:hover {
    background: rgba(30, 64, 175, 0.05);
    transform: translateX(5px);
}

.dashboard-feature-icon {
    font-size: 1.5rem;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--color-primary), var(--color-secondary));
    border-radius: 10px;
    flex-shrink: 0;
}

.dashboard-feature-text {
    font-size: 1rem;
    color: var(--color-text);
    font-weight: 500;
}

/* RTL Support for Dashboard Showcase */
.landing-page-wrapper[dir="rtl"] .dashboard-showcase-content {
    direction: rtl;
}

.landing-page-wrapper[dir="rtl"] .dashboard-feature-item:hover {
    transform: translateX(-5px);
}


/* Benefits Section */
.benefits-section {
    padding: 100px 20px;
    background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-dark) 100%);
    color: white;
    position: relative;
    overflow: hidden;
    width: 100%;
    max-width: 100vw;
}

.benefits-section::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.1) 0%, transparent 70%);
    border-radius: 50%;
}

.benefits-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-top: 60px;
    position: relative;
    z-index: 2;
}

.benefit-item {
    display: flex;
    align-items: flex-start;
    gap: 20px;
    padding: 30px;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: all 0.3s ease;
}

.benefit-item:hover {
    background: rgba(255, 255, 255, 0.15);
    transform: translateX(10px);
}

.benefit-number {
    font-size: 3rem;
    font-weight: 800;
    color: var(--color-accent);
    line-height: 1;
    min-width: 60px;
}

.benefit-content h3 {
    font-size: 1.3rem;
    margin-bottom: 8px;
    color: white;
}

.benefit-content p {
    color: rgba(255, 255, 255, 0.9);
    line-height: 1.6;
}

/* Pricing Section */
.pricing-section {
    padding: 100px 20px;
    background: white;
    width: 100%;
    max-width: 100vw;
    overflow-x: hidden;
}

.pricing-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 40px;
    max-width: 1000px;
    margin: 60px auto 0;
}

.pricing-card {
    background: white;
    border: 2px solid #e5e7eb;
    border-radius: 24px;
    padding: 50px 40px;
    text-align: center;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.pricing-card:hover {
    border-color: var(--color-primary);
    transform: translateY(-8px);
    box-shadow: 0 20px 60px rgba(30, 64, 175, 0.15);
}

.pricing-card.featured {
    border-color: var(--color-accent);
    border-width: 3px;
    transform: scale(1.05);
    box-shadow: 0 20px 60px rgba(245, 158, 11, 0.2);
}

.pricing-badge {
    position: absolute;
    top: 20px;
    right: 20px;
    background: var(--color-accent);
    color: white;
    padding: 6px 16px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.pricing-name {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--color-text);
    margin-bottom: 16px;
}

.pricing-price {
    font-size: 3.5rem;
    font-weight: 800;
    color: var(--color-primary);
    margin-bottom: 8px;
    line-height: 1;
}

.pricing-period {
    font-size: 1rem;
    color: var(--color-text-light);
    margin-bottom: 30px;
}

.pricing-features {
    list-style: none;
    text-align: left;
    margin-bottom: 40px;
    padding: 0;
}

.pricing-features li {
    padding: 12px 0;
    color: var(--color-text);
    border-bottom: 1px solid #f3f4f6;
    display: flex;
    align-items: center;
    gap: 12px;
}

.pricing-features li:last-child {
    border-bottom: none;
}

.pricing-features li::before {
    content: '✓';
    color: var(--color-secondary);
    font-weight: 700;
    font-size: 1.2rem;
}

.pricing-cta {
    width: 100%;
}

/* CTA Section */
.cta-section {
    padding: 100px 20px;
    background: linear-gradient(135deg, var(--color-secondary) 0%, var(--color-secondary-dark) 100%);
    text-align: center;
    color: white;
}

.cta-title {
    font-size: clamp(2rem, 4vw, 3.5rem);
    font-weight: 800;
    margin-bottom: 24px;
}

.cta-subtitle {
    font-size: 1.3rem;
    margin-bottom: 40px;
    opacity: 0.95;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

/* Stats Section */
.stats-section {
    padding: 80px 20px;
    background: var(--color-background);
    width: 100%;
    max-width: 100vw;
    overflow-x: hidden;
}

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

.stat-item {
    text-align: center;
}

.stat-number {
    font-size: 3.5rem;
    font-weight: 800;
    background: linear-gradient(135deg, var(--color-primary), var(--color-secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 8px;
}

.stat-label {
    font-size: 1.1rem;
    color: var(--color-text-light);
    font-weight: 600;
}

/* Scroll Indicator */
.scroll-indicator {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    animation: pulse 2s ease-in-out infinite;
    color: white;
    font-size: 24px;
}

@keyframes pulse {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.7;
    }
}

/* Smooth Scroll - Disable on mobile for better performance */
html {
    scroll-behavior: smooth;
    width: 100%;
    overflow-x: hidden;
}

body {
    width: 100%;
    max-width: 100vw;
    overflow-x: hidden;
    position: relative;
}

/* Ensure all sections respect viewport width */
.hero-section,
.features-section,
.dashboard-showcase-section,
.benefits-section,
.pricing-section,
.stats-section,
.cta-section {
    width: 100%;
    max-width: 100vw;
    overflow-x: hidden;
    position: relative;
}

.container {
    width: 100%;
    max-width: 100%;
    padding-left: 20px;
    padding-right: 20px;
    margin-left: auto;
    margin-right: auto;
}

@media (max-width: 768px) {
    html {
        scroll-behavior: auto;
    }
    
    body {
        width: 100%;
        max-width: 100vw;
        overflow-x: hidden;
    }
    
    .container {
        padding-left: 15px;
        padding-right: 15px;
    }
    
    /* Disable animations on mobile for smoother scrolling */
    * {
        -webkit-transform: translateZ(0);
        transform: translateZ(0);
        -webkit-backface-visibility: hidden;
        backface-visibility: hidden;
        -webkit-perspective: 1000;
        perspective: 1000;
    }
    
    /* Reduce animation complexity on mobile */
    .feature-card,
    .benefit-item,
    .pricing-card,
    .stat-item {
        transition: opacity 0.3s ease !important;
        transform: none !important;
    }
}

@media (max-width: 480px) {
    .container {
        padding-left: 10px;
        padding-right: 10px;
    }
}

/* Header Styles */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    padding: 15px 20px;
    transition: all 0.3s ease;
}

/* Hide logo from header.php template (we use sticky floating logo) */
.site-header .custom-logo-link,
.site-header .custom-logo {
    display: none !important;
}

/* Hide default site title */
.wp-block-site-title,
.site-title,
h1.wp-block-site-title,
h2.wp-block-site-title {
    display: none !important;
}

/* Hide "proudly powered by WordPress" */
.site-footer .wp-block-paragraph:has(a[href*="wordpress.org"]),
.site-footer p:has(a[href*="wordpress.org"]),
.site-footer a[href*="wordpress.org"] {
    display: none !important;
}

.header-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.site-branding {
    display: flex;
    align-items: center;
}

/* Hide logo from header.php (we use JavaScript-added sticky logo instead) */
.custom-logo-link,
.site-header .custom-logo-link,
.site-header .custom-logo {
    display: none !important;
}

/* Custom logo - only for reference, hidden by default */
.custom-logo {
    height: 40px;
    width: auto;
    max-width: 150px;
    object-fit: contain;
    transition: all 0.3s ease;
}

/* Adjust hero section padding for fixed header */
.hero-section {
    padding-top: 100px;
}

/* Footer Styles */
.site-footer {
    background: var(--color-background);
    padding: 40px 20px;
    text-align: center;
    border-top: 1px solid #e5e7eb;
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
}

.site-info {
    color: var(--color-text-light);
    font-size: 14px;
}

.site-info p {
    margin: 0;
}

/* Responsive */
@media (max-width: 768px) {
    .site-header {
        padding: 12px 15px;
    }
    
    .custom-logo,
    .custom-header-logo img {
        height: 32px;
        max-width: 120px;
    }
    
    .hero-section {
        padding-top: 100px;
        padding-left: 15px;
        padding-right: 15px;
    }
    
    .hero-cta {
        flex-direction: column;
        align-items: stretch;
    }
    
    .btn {
        width: 100%;
    }
    
    .pricing-card.featured {
        transform: scale(1);
    }
    
    .benefits-grid {
        grid-template-columns: 1fr;
    }
    
    .pricing-cards {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .features-grid {
        grid-template-columns: 1fr;
        gap: 25px;
    }
    
    .dashboard-showcase-content {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .dashboard-images {
        flex-direction: column;
        align-items: center;
    }
    
    .dashboard-image-wrapper.combined {
        max-width: 100%;
    }
    
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 25px;
    }
}

@media (max-width: 480px) {
    .custom-logo,
    .custom-header-logo img {
        height: 28px;
        max-width: 100px;
    }
    
    .hero-section {
        padding-top: 90px;
    }
    
    .stats-grid {
        grid-template-columns: 1fr;
    }
}
