/**
 * Qatex Catering - Main Stylesheet
 * Version: 1.0.0
 */

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

body.qatex-catering-landing {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    line-height: 1.6;
    color: #333;
    background: white;
    overflow-x: hidden;
}

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

/* ==========================================================================
   TYPOGRAPHY
   ========================================================================== */
h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 15px;
}

.section-title {
    text-align: center;
    margin-bottom: 50px;
}

.section-title h2 {
    font-size: 2.5em;
    color: #333;
    position: relative;
    display: inline-block;
    padding-bottom: 15px;
}

.section-title h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: #C62828;
    border-radius: 2px;
}

.section-subtitle {
    color: #666;
    font-size: 1.2em;
    max-width: 700px;
    margin: 10px auto 0;
}

/* ==========================================================================
   BUTTONS
   ========================================================================== */
.qatex-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 12px 30px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s;
    border: 2px solid transparent;
}

.qatex-btn-primary {
    background: #C62828;
    color: white;
}

.qatex-btn-primary:hover {
    background: #8B0000;
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(198, 40, 40, 0.3);
}

.qatex-btn-outline {
    background: transparent;
    color: #C62828;
    border-color: #C62828;
}

.qatex-btn-outline:hover {
    background: #C62828;
    color: white;
    transform: translateY(-3px);
}

.qatex-btn-wa {
    background: #25D366;
    color: white;
}

.qatex-btn-wa:hover {
    background: #128C7E;
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(37, 211, 102, 0.3);
}

/* ==========================================================================
   FLOATING WHATSAPP
   ========================================================================== */
.qatex-floating-wa {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 9999;
    display: none;
}

.qatex-floating-wa a {
    display: flex;
    align-items: center;
    gap: 12px;
    background: #25D366;
    color: white;
    padding: 15px 30px;
    border-radius: 60px;
    text-decoration: none;
    font-weight: 700;
    font-size: 1.1em;
    box-shadow: 0 5px 25px rgba(37, 211, 102, 0.4);
    transition: all 0.3s;
    border: 2px solid white;
}

.qatex-floating-wa a:hover {
    background: #128C7E;
    transform: translateY(-5px) scale(1.02);
    box-shadow: 0 10px 35px rgba(37, 211, 102, 0.5);
}

.qatex-floating-wa i {
    font-size: 1.5em;
}

@media (max-width: 768px) {
    .qatex-floating-wa {
        display: block;
    }
    
    .qatex-floating-wa a {
        padding: 12px 20px;
    }
    
    .qatex-floating-wa .wa-text {
        display: none;
    }
}

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

@keyframes slideInLeft {
    from { opacity: 0; transform: translateX(-30px); }
    to { opacity: 1; transform: translateX(0); }
}

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

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

@keyframes float {
    0% { transform: translateY(0px); }
    50% { transform: translateY(-10px); }
    100% { transform: translateY(0px); }
}

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

.mt-0 { margin-top: 0; }
.mt-20 { margin-top: 20px; }
.mt-40 { margin-top: 40px; }
.mt-60 { margin-top: 60px; }

.mb-0 { margin-bottom: 0; }
.mb-20 { margin-bottom: 20px; }
.mb-40 { margin-bottom: 40px; }
.mb-60 { margin-bottom: 60px; }

.hidden { display: none; }
.visible { display: block; }

/* ==========================================================================
   RTL SUPPORT
   ========================================================================== */
.rtl .qatex-floating-wa {
    left: 30px;
    right: auto;
}

.rtl .footer-links a:hover {
    transform: translateX(-5px);
}

/* ==========================================================================
   PRINT STYLES
   ========================================================================== */
@media print {
    .qatex-floating-wa,
    .qatex-promo-bar,
    .qatex-cta-section {
        display: none !important;
    }
}

/* ==========================================================================
   LOADING ANIMATION
   ========================================================================== */
.qatex-loading {
    position: relative;
    min-height: 200px;
}

.qatex-loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 40px;
    height: 40px;
    margin: -20px 0 0 -20px;
    border: 4px solid #f3f3f3;
    border-top: 4px solid #C62828;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* ==========================================================================
   BROWSER SPECIFIC FIXES
   ========================================================================== */
@-moz-document url-prefix() {
    .qatex-hero {
        background-attachment: scroll !important;
    }
}

@media screen and (-ms-high-contrast: active), (-ms-high-contrast: none) {
    /* IE11 fixes */
    .paket-grid {
        display: -ms-grid;
        -ms-grid-columns: 1fr 30px 1fr 30px 1fr;
    }
    
    .paket-card {
        -ms-grid-column-span: 1;
    }
}

/* ==========================================================================
   DARK MODE SUPPORT
   ========================================================================== */
@media (prefers-color-scheme: dark) {
    body.qatex-catering-landing {
        background: #1a1a1a;
        color: #e0e0e0;
    }
    
    .section-title h2 {
        color: #e0e0e0;
    }
    
    .section-subtitle {
        color: #b0b0b0;
    }
    
    .paket-card,
    .testimoni-card,
    .mengapa-item,
    .pain-item {
        background: #2d2d2d;
        border-color: #404040;
    }
    
    .paket-content {
        background: #2d2d2d;
    }
    
    .paket-menu li {
        border-bottom-color: #404040;
    }
    
    .pain-description,
    .mengapa-desc,
    .testimoni-content {
        color: #b0b0b0;
    }
}

/* ==========================================================================
   ACCESSIBILITY
   ========================================================================== */
.screen-reader-text {
    border: 0;
    clip: rect(1px, 1px, 1px, 1px);
    clip-path: inset(50%);
    height: 1px;
    margin: -1px;
    overflow: hidden;
    padding: 0;
    position: absolute;
    width: 1px;
    word-wrap: normal !important;
}

.screen-reader-text:focus {
    background-color: #f1f1f1;
    border-radius: 3px;
    box-shadow: 0 0 2px 2px rgba(0, 0, 0, 0.6);
    clip: auto !important;
    clip-path: none;
    color: #21759b;
    display: block;
    font-size: 14px;
    font-weight: 700;
    height: auto;
    left: 5px;
    line-height: normal;
    padding: 15px 23px 14px;
    text-decoration: none;
    top: 5px;
    width: auto;
    z-index: 100000;
}

/* Focus styles for keyboard navigation */
a:focus,
button:focus,
input:focus,
textarea:focus {
    outline: 2px solid #C62828;
    outline-offset: 2px;
}

/* Skip to content link */
.skip-to-content {
    position: absolute;
    top: -40px;
    left: 0;
    background: #C62828;
    color: white;
    padding: 10px 20px;
    text-decoration: none;
    z-index: 100000;
}

.skip-to-content:focus {
    top: 0;
}

/* ==========================================================================
   CUSTOM SCROLLBAR
   ========================================================================== */
::-webkit-scrollbar {
    width: 12px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
    background: #C62828;
    border-radius: 6px;
}

::-webkit-scrollbar-thumb:hover {
    background: #8B0000;
}

/* ==========================================================================
   FALLBACKS
   ========================================================================== */
.no-flexbox .paket-grid {
    display: block;
    overflow: hidden;
}

.no-flexbox .paket-card {
    width: 33.33%;
    float: left;
    padding: 15px;
}

.no-js .qatex-faq-answer {
    max-height: none !important;
    display: block !important;
}