/**
 * CK Sections Styles
 * 
 * Global styles for CK Sections widgets with Motion library integration
 */

/* Global font family - Roboto Flex */
body,
html,
.ck-hero-section,
.ck-about-banner,
.ck-hero-section *,
.ck-about-banner *,
.elementor-widget-ck_sections * {
    font-family: 'Roboto Flex', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    font-optical-sizing: auto;
    font-variation-settings: "wdth" 100;
}

/* Reset and base styles */
.ck-hero-section *,
.ck-about-banner * {
    box-sizing: border-box;
}

/* Hero Section Styles */
.ck-hero-section {
    position: relative;
    overflow: hidden;
    min-height: 600px;
    display: flex;
    align-items: center;
    background: linear-gradient(135deg, #15803d 0%, #16a34a 50%, #56a512 100%);
}

.ck-hero-container {
    position: relative;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.ck-hero-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
    min-height: 500px;
}

.ck-hero-text {
    z-index: 2;
}

.ck-hero-title {
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 700;
    line-height: 1.1;
    color: white;
    margin: 0 0 24px 0;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    font-family: 'Roboto Flex', sans-serif;
    font-variation-settings: "wdth" 100, "wght" 700;
    letter-spacing: -0.02em;
}

.ck-hero-subtitle {
    font-size: clamp(1rem, 2vw, 1.25rem);
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.9);
    margin: 0 0 40px 0;
    max-width: 90%;
    font-family: 'Roboto Flex', sans-serif;
    font-variation-settings: "wdth" 100, "wght" 400;
    letter-spacing: 0.01em;
}

.ck-hero-subtitle-mobile {
    display: none;
}

.ck-hero-buttons {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}

.ck-hero-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 16px 32px;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    border-radius: 8px;
    transition: all 0.2s ease;
    cursor: pointer;
    border: none;
    min-width: 160px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-family: 'Roboto Flex', sans-serif;
    font-variation-settings: "wdth" 100, "wght" 600;
}

.ck-hero-button-primary {
    background-color: white;
    color: #15803d;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.ck-hero-button-primary:hover {
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
    transform: translateY(-2px);
}

.ck-hero-button-secondary {
    background-color: transparent;
    color: white;
    border: 2px solid rgba(255, 255, 255, 0.3);
}

.ck-hero-button-secondary:hover {
    background-color: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.5);
}

.ck-hero-visual {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.ck-hero-badge {
    position: absolute;
    top: 20px;
    right: 20px;
    background: rgba(255, 255, 255, 0.95);
    border-radius: 12px;
    padding: 16px 20px;
    display: flex;
    align-items: center;
    gap: 12px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.ck-hero-badge-text {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.ck-hero-badge-main {
    font-size: 12px;
    font-weight: 700;
    color: #15803d;
    margin: 0;
    line-height: 1;
}

.ck-hero-badge-sub {
    font-size: 10px;
    font-weight: 500;
    color: #666;
    margin: 0;
    line-height: 1;
}

.ck-hero-badge-image {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    object-fit: cover;
}

/* Mobile Styles */
@media (max-width: 768px) {
    .ck-hero-section {
        min-height: 480px;
    }
    
    .ck-hero-content {
        grid-template-columns: 1fr;
        gap: 40px;
        text-align: center;
    }
    
    .ck-hero-subtitle-desktop {
        display: none;
    }
    
    .ck-hero-subtitle-mobile {
        display: block;
    }
    
    .ck-hero-badge {
        display: none;
    }
    
    .ck-hero-buttons {
        justify-content: center;
    }
    
    .ck-hero-button {
        min-width: 140px;
        padding: 14px 24px;
    }
}

/* About Banner Styles */
.ck-about-banner {
    padding: 80px 0;
    background-color: #f8fafc;
}

.ck-about-banner-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.ck-about-banner-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.ck-about-banner-text {
    padding-right: 20px;
}

.ck-about-banner-title {
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 700;
    line-height: 1.2;
    color: #1f2937;
    margin: 0 0 24px 0;
    font-family: 'Roboto Flex', sans-serif;
    font-variation-settings: "wdth" 100, "wght" 700;
    letter-spacing: -0.01em;
}

.ck-about-banner-subtitle {
    font-size: 1.125rem;
    line-height: 1.7;
    color: #6b7280;
    margin: 0 0 32px 0;
    font-family: 'Roboto Flex', sans-serif;
    font-variation-settings: "wdth" 100, "wght" 400;
    letter-spacing: 0.01em;
}

.ck-about-banner-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 16px 32px;
    background-color: #15803d;
    color: white;
    text-decoration: none;
    border-radius: 8px;
    font-weight: 600;
    transition: all 0.2s ease;
    box-shadow: 0 4px 15px rgba(21, 128, 61, 0.2);
}

.ck-about-banner-button:hover {
    background-color: #166534;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(21, 128, 61, 0.3);
}

.ck-about-banner-image {
    position: relative;
}

.ck-about-banner-image img {
    width: 100%;
    height: auto;
    border-radius: 12px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

@media (max-width: 768px) {
    .ck-about-banner {
        padding: 60px 0;
    }
    
    .ck-about-banner-content {
        grid-template-columns: 1fr;
        gap: 40px;
        text-align: center;
    }
    
    .ck-about-banner-text {
        padding-right: 0;
    }
}

/* Animation-ready states */
.ck-motion-ready {
    opacity: 0;
    transform: translateY(30px);
}

/* Utility classes for animations */
.ck-parallax {
    will-change: transform;
}

.ck-fade-in {
    opacity: 0;
    transform: translateY(20px);
}

.ck-slide-in-left {
    opacity: 0;
    transform: translateX(-30px);
}

.ck-slide-in-right {
    opacity: 0;
    transform: translateX(30px);
}

.ck-scale-in {
    opacity: 0;
    transform: scale(0.9);
}

/* Performance optimizations */
.ck-hero-section,
.ck-about-banner {
    contain: layout style;
    will-change: transform;
}

.ck-hero-badge-image {
    will-change: transform;
}

/* Accessibility improvements */
@media (prefers-reduced-motion: reduce) {
    .ck-hero-section *,
    .ck-about-banner * {
        transition: none !important;
        animation: none !important;
    }
    
    .ck-hero-badge-image {
        animation: none !important;
    }
}
.elementor-section-wrap .ck-motion-ready {
    opacity: 1;
} 
.elementor-section-wrap .ck-animate {
    opacity: 1!important;
}

/* Comparison Table Styles */
.comparison-table-section {
    background-color: #ffffff;
}

.comparison-table-section .table-container {
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    background: #ffffff;
}

.comparison-table-section .table-row {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    min-height: 120px;
}

.comparison-table-section .table-cell {
    padding: 24px 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    position: relative;
}

.comparison-table-section .row-label {
    background-color: #f8fafc;
    border-right: 1px solid #e2e8f0;
    font-weight: 700;
    font-size: 14px;
    color: #1f2937;
    letter-spacing: 0.5px;
    font-family: 'Roboto Flex', sans-serif;
}

.comparison-table-section .brand-cell {
    background-color: #6D388B;
    color: white;
    font-size: 14px;
    line-height: 1.5;
    border-right: 1px solid rgba(255, 255, 255, 0.2);
    font-family: 'Roboto Flex', sans-serif;
}

.comparison-table-section .competitor-cell {
    background-color: #f8fafc;
    color: #6b7280;
    font-size: 14px;
    line-height: 1.5;
    font-family: 'Roboto Flex', sans-serif;
}

.comparison-table-section .header-row .table-cell {
    padding: 32px 20px;
    font-weight: 700;
    font-size: 16px;
    letter-spacing: 1px;
}

.comparison-table-section .header-row .row-label {
    background-color: transparent;
}

.comparison-table-section .header-row .brand-cell {
    font-size: 18px;
    font-weight: 800;
}

.comparison-table-section .header-row .competitor-cell {
    background-color: #f1f5f9;
    color: #475569;
    font-weight: 700;
}

/* Mobile responsive for comparison table */
@media (max-width: 768px) {
    .comparison-table-section .table-row {
        grid-template-columns: 1fr;
        gap: 1px;
    }
    
    .comparison-table-section .table-cell {
        padding: 20px 16px;
        min-height: 80px;
    }
    
    .comparison-table-section .row-label {
        border-right: none;
        border-bottom: 1px solid #e2e8f0;
        font-size: 12px;
        background-color: #e2e8f0;
        order: 1;
    }
    
    .comparison-table-section .brand-cell {
        border-right: none;
        border-bottom: 1px solid rgba(255, 255, 255, 0.2);
        order: 2;
        font-size: 13px;
    }
    
    .comparison-table-section .competitor-cell {
        order: 3;
        font-size: 13px;
        border-bottom: 2px solid #e2e8f0;
    }
    
    .comparison-table-section .header-row .table-cell {
        padding: 24px 16px;
    }
    
    .comparison-table-section .header-row .brand-cell {
        font-size: 16px;
    }
}

/* High contrast mode support */
@media (prefers-contrast: high) {
    .ck-hero-button-secondary {
        border-color: white;
    }
    
    .ck-hero-badge {
        border: 2px solid #000;
    }
}
