/* Page-specific styles for index.html */

/* ===== CAROUSEL LOADING MESSAGE FIX ===== */
/* Hide the loading indicators from your carousel */
.loading-indicator,
.debug-info {
    display: none !important;
    opacity: 0 !important;
    visibility: hidden !important;
}
/* ===== END CAROUSEL FIX ===== */

/* ===== COLORTXT WIDGET MOBILE FIX ===== */
/* Ensure colorTXT widget button is visible and tappable on mobile */
colortxt-widget {
    display: inline-block !important;
    margin: 1rem auto !important;
}

    colortxt-widget button,
    .colortxt-widget-button {
        display: inline-flex !important;
        visibility: visible !important;
        opacity: 1 !important;
        min-width: 120px !important;
        min-height: 44px !important; /* iOS minimum touch target */
        padding: 12px 20px !important;
        font-size: 16px !important; /* Prevents iOS zoom on focus */
        margin: 0.5rem auto !important;
    }

/* Mobile-specific widget styles */
@media (max-width: 768px) {
    colortxt-widget {
        display: block !important;
        text-align: center !important;
        margin: 1.5rem 0 !important;
    }

        colortxt-widget button,
        .colortxt-widget-button {
            min-width: 140px !important;
            min-height: 48px !important;
            padding: 14px 24px !important;
            font-size: 16px !important;
            touch-action: manipulation !important;
            -webkit-tap-highlight-color: rgba(102, 126, 234, 0.3) !important;
        }
}
/* ===== END COLORTXT WIDGET MOBILE FIX ===== */

/* Content sections */
.content-section {
    padding: 2rem 0;
}

.carousel-wrapper {
    margin: 2rem 0;
    text-align: center;
}

.content-paragraphs {
    max-width: 900px;
    margin: 4rem auto;
    background: white;
    padding: 3rem;
    border-radius: 20px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.1);
    border: 1px solid #e9ecef;
}

    .content-paragraphs h2 {
        font-size: 2.2rem;
        color: #333;
        margin-bottom: 2rem;
        text-align: center;
        border-bottom: 2px solid #667eea;
        padding-bottom: 1rem;
    }


.content-paragraphs-dark {
    background: linear-gradient(135deg, #2c3e50 0%, #34495e 100%);
    color: white;
    padding: 2rem;
    border-radius: 10px;
    margin: 3rem 0;
    box-shadow: 0 15px 40px rgba(44, 62, 80, 0.3);
}

.intro, .intro-dark {
    margin-bottom: 2rem;
}

.content-paragraphs .intro p {
    font-size: 1.1rem;
    line-height: 1.8;
    color: #555;
    text-align: justify;
    font-weight: 400; /* Make sure it's not too bold */
    margin-bottom: 1.5rem;
}

.paragraph-section {
    margin: 2rem 0;
}

    .paragraph-section:last-child {
        margin-bottom: 0;
    }

    .paragraph-section h3 {
        color: #667eea;
        margin-bottom: 1rem;
        font-size: 1.4rem;
        font-weight: 600;
    }

    .paragraph-section p {
        font-size: 1.1rem;
        line-height: 1.8;
        color: #555;
        text-align: justify;
    }

/* colorTXT logo styling */
.colortxt-logo {
    font-weight: bold;
    font-family: inherit;
}

    .colortxt-logo .gray {
        color: #888;
    }

    .colortxt-logo .t1 {
        color: #ff4757;
    }

    .colortxt-logo .x {
        color: #2ed573;
    }

    .colortxt-logo .t2 {
        color: #3742fa;
    }

.slogan-sub {
    font-size: 1.2rem;
    margin-top: 1rem;
    opacity: 0.9;
}

.dark-block-title {
    color: #ecf0f1;
    margin-bottom: 1rem;
    font-size: 2.2rem;
    font-weight: 700;
    text-align: center;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
}

.dark-block-text {
    color: #bdc3c7;
    font-size: 1.4rem;
    font-weight: 500;
    opacity: 0.95;
}

    .dark-block-text a {
        color: #3498db;
        text-decoration: none;
    }
/* Action block dark - unified styling for both action sections */
.action-block-dark {
    max-width: 800px;
    margin: 4rem auto;
    background: linear-gradient(135deg, #1a1a1a 0%, #2c3e50 100%);
    color: white;
    padding: 3rem;
    border-radius: 20px;
    text-align: left;
    box-shadow: 0 15px 40px rgba(26, 26, 26, 0.4);
}

    .action-block-dark h3 {
        font-size: 2.2rem;
        font-weight: 700;
        margin-bottom: 1rem;
        text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
        color: #ecf0f1;
    }

    .action-block-dark p {
        font-size: 1.4rem;
        margin-bottom: 2rem;
        opacity: 0.95;
        font-weight: 500;
        text-align: center;
    }

    .action-block-dark code {
        color: white;
        font-size: 0.85rem;
        /* or font-size: 14px; if you prefer pixels */
    }

    .action-block-dark .cta-button-container {
        display: flex;
        justify-content: center;
        align-items: center;
    }

.menu-example {
    display: block;
    margin: 20px auto;
    padding: 15px;
    background: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    text-align: center;
    max-width: fit-content;
}

    .menu-example img {
        max-width: 100%;
        height: auto;
        border-radius: 4px;
    }

.menu-caption {
    font-size: 0.9em;
    color: #666;
    font-style: italic;
    margin-top: 8px;
    text-align: center;
}
/* Experience CTA section */
.experience-cta {
    max-width: 800px;
    margin: 4rem auto;
    background: linear-gradient(135deg, #1a1a1a 0%, #2c3e50 100%);
    color: white;
    padding: 3rem;
    border-radius: 20px;
    text-align: center;
    box-shadow: 0 15px 40px rgba(26, 26, 26, 0.4);
}

    .experience-cta h3 {
        font-size: 2.2rem;
        font-weight: 700;
        margin-bottom: 1rem;
        text-shadow: 1px 1px 2px rgba(0,0,0,0.3);
    }

    .experience-cta p {
        font-size: 1.4rem;
        margin-bottom: 2rem;
        opacity: 0.95;
        font-weight: 500;
    }

.cta-button-container {
    display: flex;
    justify-content: center;
    align-items: center;
}

.demo-section {
    margin: 4rem 0;
}

    .demo-section h2 {
        text-align: center;
        margin-bottom: 3rem;
        font-size: 2.5rem;
        color: #2c3e50;
    }

.demo-subsection {
    margin: 3rem 0;
    text-align: center;
}

/* Color guide table styles */
.table-responsive {
    overflow-x: auto;
    margin: 2rem 0;
}

.color-guide-table {
    width: 100%;
    border-collapse: collapse;
    margin: 1rem 0;
}

    .color-guide-table td {
        padding: 1rem;
        border: 1px solid #ddd;
        vertical-align: top;
    }

    .color-guide-table tr:hover {
        background-color: #f5f5f5;
    }

    .color-guide-table td:first-child {
        font-weight: bold;
        width: 200px;
    }

/* Animation classes */
.fade-in {
    animation: fadeInUp 0.8s ease-out;
}

.colortxt-feature-row {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
    gap: 2rem;
    margin-bottom: 3rem;
    max-width: 100%;
}

    .colortxt-feature-row img {
        width: 460px;
        height: auto;
        flex-shrink: 0; /* prevent shrinking below 460px */
        border-radius: 12px;
        box-shadow: 0 0 12px rgba(0, 0, 0, 0.08);
    }

    .colortxt-feature-row .feature-text {
        flex: 1;
        font-size: 1.1rem;
        line-height: 1.8;
        color: #555;
        text-align: justify;
        min-width: 200px; /* avoid collapse */
    }

        .colortxt-feature-row .feature-text p {
            margin: 0;
        }
/* Primary Demo Button */
.primary-demo-btn {
    display: inline-block;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 16px 32px;
    font-size: 1.2rem;
    font-weight: 600;
    text-decoration: none;
    border-radius: 50px;
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.3);
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
}

    .primary-demo-btn:hover {
        transform: translateY(-2px);
        box-shadow: 0 12px 35px rgba(102, 126, 234, 0.4);
    }

/* Secondary Contact Button */
.secondary-contact-btn {
    display: inline-block;
    background: transparent;
    color: #667eea;
    padding: 16px 32px;
    font-size: 1.1rem;
    font-weight: 500;
    text-decoration: none;
    border: 2px solid #667eea;
    border-radius: 50px;
    transition: all 0.3s ease;
    margin-left: 1rem;
}

    .secondary-contact-btn:hover {
        background: #667eea;
        color: white;
    }

/* Value Prop CTA Section */
.value-prop-cta {
    max-width: 900px;
    margin: 4rem auto;
    background: linear-gradient(135deg, #f8f9ff 0%, #f0f2ff 100%);
    padding: 3rem;
    border-radius: 20px;
    text-align: center;
    border: 1px solid #e8ecff;
}

.cta-benefits {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin: 2rem 0;
    flex-wrap: wrap;
}

.benefit {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 500;
    color: #555;
}

.benefit-icon {
    font-size: 1.2rem;
}

.cta-buttons {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-top: 2rem;
    flex-wrap: wrap;
}

.cta-subtext {
    display: block;
    margin-top: 0.5rem;
    font-size: 0.9rem;
    color: #666;
    font-style: italic;
}

.cta-secondary {
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 1px solid rgba(255,255,255,0.2);
}

.demo-cta-btn {
    background: linear-gradient(135deg, #ff6b9d 0%, #c44569 100%);
    color: white;
    padding: 18px 36px;
    font-size: 1.3rem;
    font-weight: 700;
    text-decoration: none;
    border-radius: 50px;
    display: inline-block;
    box-shadow: 0 8px 25px rgba(255, 107, 157, 0.3);
    transition: all 0.3s ease;
}

    .demo-cta-btn:hover {
        transform: translateY(-3px);
        box-shadow: 0 15px 40px rgba(255, 107, 157, 0.4);
    }

.setup-preview {
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 1px solid rgba(255,255,255,0.1);
}

.code-preview-teaser {
    background: rgba(0,0,0,0.3);
    padding: 1rem;
    border-radius: 8px;
    margin: 1.5rem 0;
    font-family: 'Courier New', monospace;
    border-left: 4px solid #667eea;
}

.code-line {
    color: #bdc3c7;
    font-size: 0.9rem;
    margin: 0.5rem 0;
    opacity: 0.8;
}

.integration-benefits {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin: 2rem 0;
    flex-wrap: wrap;
}

.benefit-item {
    text-align: center;
    color: #ecf0f1;
}

.benefit-number {
    display: block;
    font-size: 3rem;
    font-weight: 700;
    color: #3498db;
    line-height: 1;
}

.benefit-text {
    display: block;
    font-size: 1rem;
    margin-top: 0.5rem;
}

.setup-steps {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin: 2rem 0;
    flex-wrap: wrap;
}

.step {
    background: rgba(255,255,255,0.1);
    padding: 1rem 1.5rem;
    border-radius: 25px;
    font-weight: 500;
    font-size: 0.9rem;
}

@media (max-width: 768px) {
    .integration-benefits,
    .setup-steps {
        flex-direction: column;
        gap: 1rem;
    }
}
/* Responsive */
@media (max-width: 768px) {
    .cta-buttons {
        flex-direction: column;
        align-items: center;
    }

    .secondary-contact-btn {
        margin-left: 0;
        margin-top: 1rem;
    }

    .cta-benefits {
        flex-direction: column;
        gap: 1rem;
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .demo-section h2 {
        font-size: 2rem;
    }

    .content-paragraphs {
        padding: 2rem;
    }

    .content-paragraphs-dark {
        background: linear-gradient(135deg, #1a1a1a 0%, #2c3e50 100%);
        color: white;
        padding: 3rem;
        border-radius: 20px;
        margin: 4rem auto;
        max-width: 800px;
        text-align: center;
        box-shadow: 0 15px 40px rgba(26, 26, 26, 0.4);
    }

    .paragraph-section h3 {
        font-size: 1.3rem;
    }

    .carousel-wrapper {
        margin: 1rem 0;
    }

    .content-section {
        padding: 1rem 0;
    }

    .demo-section {
        margin: 2rem 0;
    }

    .experience-cta {
        padding: 2rem;
        margin: 3rem auto;
    }

        .experience-cta h3 {
            font-size: 1.8rem;
        }

        .experience-cta p {
            font-size: 1.2rem;
        }

    .action-block-dark {
        padding: 2rem;
        margin: 3rem auto;
    }

        .action-block-dark h3 {
            font-size: 1.8rem;
        }

        .action-block-dark p {
            font-size: 1.2rem;
        }
}

@media (max-width: 480px) {
    .content-section {
        padding: 1rem 0;
    }

    .content-paragraphs, .content-paragraphs-dark {
        margin: 2rem 0;
        padding: 1rem;
    }

    .demo-section {
        margin: 2rem 0;
    }

    .slogan-sub {
        font-size: 1rem;
    }

    .experience-cta {
        padding: 1.5rem;
        margin: 2rem auto;
    }

        .experience-cta h3 {
            font-size: 1.5rem;
        }

        .experience-cta p {
            font-size: 1rem;
        }

    .action-block-dark {
        padding: 1.5rem;
        margin: 2rem auto;
    }

        .action-block-dark h3 {
            font-size: 1.5rem;
        }

        .action-block-dark p {
            font-size: 1rem;
        }

    @media (max-width: 768px) {
        .colortxt-feature-row {
            flex-direction: column;
            text-align: center;
        }

            .colortxt-feature-row img,
            .colortxt-feature-row .feature-text {
                flex: unset;
                width: 100%;
            }

            .colortxt-feature-row .feature-text {
                margin-top: 1rem;
                text-align: left;
            }
    }
}
