/* ============================================
   INDEEP CLEANING ID - Design System & Custom CSS
   Sesuai Master Plan: Clean, Professional, High-End
   ============================================ */

/* --- Design System Tokens --- */
:root {
    /* Colors */
    --primary: #062C3D;
    --primary-dark: #0088cc;
    --primary-light: #e6f7ff;
    --secondary: #FFFFFF;
    --accent: #F4A100;
    --accent-dark: #27ae60;
    --text-dark: #1e293b;
    --text-medium: #475569;
    --text-light: #94a3b8;
    --bg-light: #f8fafc;
    --bg-gray: #f1f5f9;
    --border: #e2e8f0;
    
    /* Typography */
    --font-heading: 'Poppins', sans-serif;
    --font-body: 'Inter', sans-serif;
    
    /* Spacing */
    --radius-sm: 0.5rem;
    --radius-md: 0.75rem;
    --radius-lg: 1rem;
    --radius-xl: 1.5rem;
    --radius-2xl: 2rem;
    
    /* Shadows */
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    
    /* Transitions */
    --transition-fast: 150ms ease;
    --transition-base: 300ms ease;
    --transition-slow: 500ms ease;
}

/* --- Global Reset & Base --- */
html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: var(--font-body);
    color: var(--text-dark);
    background-color: var(--secondary);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* --- Typography --- */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 700;
    line-height: 1.2;
    color: var(--text-dark);
}

h1 { font-size: 2.5rem; }
h2 { font-size: 2rem; }
h3 { font-size: 1.5rem; }
h4 { font-size: 1.25rem; }
h5 { font-size: 1.125rem; }
h6 { font-size: 1rem; }

p {
    color: var(--text-medium);
}

a {
    color: var(--primary);
    text-decoration: none;
    transition: color var(--transition-fast);
}

a:hover {
    color: var(--primary-dark);
}

/* --- Navbar Active State --- */
nav a.active {
    color: var(--primary);
    font-weight: 600;
}

/* --- Buttons --- */
.btn-primary {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: var(--secondary);
    padding: 0.75rem 1.5rem;
    border-radius: var(--radius-2xl);
    font-weight: 600;
    font-family: var(--font-heading);
    border: none;
    cursor: pointer;
    transition: all var(--transition-base);
    box-shadow: var(--shadow-md);
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
    color: var(--secondary);
}

.btn-accent {
    background: linear-gradient(135deg, var(--accent) 0%, var(--accent-dark) 100%);
    color: var(--secondary);
    padding: 0.75rem 1.5rem;
    border-radius: var(--radius-2xl);
    font-weight: 600;
    font-family: var(--font-heading);
    border: none;
    cursor: pointer;
    transition: all var(--transition-base);
    box-shadow: var(--shadow-md);
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.btn-accent:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
    color: var(--secondary);
}

/* --- Cards --- */
.card {
    background: var(--secondary);
    border-radius: var(--radius-2xl);
    padding: 1.5rem;
    box-shadow: var(--shadow-md);
    transition: all var(--transition-base);
    border: 1px solid var(--border);
}

.card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-xl);
}

/* --- Before/After Slider --- */
.ba-slider {
    position: relative;
    width: 100%;
    max-width: 800px;
    margin: 0 auto;
    overflow: hidden;
    border-radius: var(--radius-xl);
    cursor: ew-resize;
    user-select: none;
    box-shadow: var(--shadow-lg);
    aspect-ratio: 3 / 2;
}

.ba-slider .ba-image {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.ba-slider .ba-image-after {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    clip-path: inset(0 0 0 50%);
}

.ba-slider .ba-image-before {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.ba-slider .ba-divider {
    position: absolute;
    top: 0;
    left: 50%;
    width: 4px;
    height: 100%;
    background: var(--secondary);
    transform: translateX(-50%);
    z-index: 10;
    pointer-events: none;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.3);
    transition: left 0.05s ease-out;
}

.ba-slider .ba-handle {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 40px;
    height: 40px;
    background: var(--secondary);
    border-radius: 50%;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
    z-index: 11;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: ew-resize;
    transition: left 0.05s ease-out;
}

.ba-slider .ba-handle svg {
    width: 20px;
    height: 20px;
    color: var(--primary);
}

.ba-slider .ba-label {
    position: absolute;
    bottom: 12px;
    padding: 4px 12px;
    background: rgba(0, 0, 0, 0.6);
    color: var(--secondary);
    font-size: 0.75rem;
    font-weight: 600;
    border-radius: 999px;
    z-index: 5;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.ba-slider .ba-label-before {
    left: 12px;
}

.ba-slider .ba-label-after {
    right: 12px;
}

/* --- Price Card Highlight --- */
.price-highlight {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: var(--secondary);
    border-radius: var(--radius-2xl);
    padding: 2rem;
    text-align: center;
    box-shadow: var(--shadow-lg);
}

.price-highlight .price {
    font-size: 2.5rem;
    font-weight: 700;
    font-family: var(--font-heading);
    margin: 1rem 0;
}

.price-highlight .price-label {
    font-size: 0.875rem;
    opacity: 0.9;
}

/* --- Fade In Animation --- */
.fade-in {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* --- Custom Scrollbar --- */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: var(--bg-gray);
}

::-webkit-scrollbar-thumb {
    background: var(--primary);
    border-radius: 999px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--primary-dark);
}

/* --- Animations --- */
@keyframes bounce-slow {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-8px); }
}

.animate-bounce-slow {
    animation: bounce-slow 3s ease-in-out infinite;
}

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

.animate-float {
    animation: float 3s ease-in-out infinite;
}

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

.animate-pulse-soft {
    animation: pulse-soft 2s ease-in-out infinite;
}

/* --- Section Spacing --- */
.section {
    padding: 4rem 0;
}

.section-sm {
    padding: 2rem 0;
}

.section-lg {
    padding: 6rem 0;
}

/* --- Container Max Width --- */
.container-custom {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

/* --- Badge --- */
.badge {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    border-radius: 999px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.badge-primary {
    background: var(--primary-light);
    color: var(--primary);
}

.badge-accent {
    background: #e8f8f0;
    color: var(--accent);
}

/* --- Testimonial Card --- */
.testimonial-card {
    background: var(--secondary);
    border-radius: var(--radius-2xl);
    padding: 1.5rem;
    box-shadow: var(--shadow-md);
    border: 1px solid var(--border);
    transition: all var(--transition-base);
}

.testimonial-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

.testimonial-card .stars {
    color: #fbbf24;
    margin-bottom: 0.5rem;
}

/* --- Testimonial Image 3D Effect --- */
.testimonial-img-3d {
    border: 3px solid var(--primary);
    border-radius: var(--radius-xl);
    box-shadow: 0 20px 50px rgba(6, 44, 61, 0.25);
    transition: transform 0.5s ease, box-shadow 0.5s ease;
    object-fit: cover;
    width: 100%;
    height: 256px;
}

.testimonial-img-3d:hover {
    transform: scale(1.08);
    box-shadow: 0 25px 60px rgba(6, 44, 61, 0.35);
}

/* --- FAQ Accordion --- */
.faq-content {
    max-height: 0px;
    overflow: hidden;
    transition: max-height var(--transition-base);
}

.faq-content.open {
    max-height: 500px;
}

.faq-icon {
    transform-origin: center;
}

/* --- Service Card --- */
.service-card {
    background: var(--secondary);
    border-radius: var(--radius-2xl);
    padding: 2rem;
    text-align: center;
    box-shadow: var(--shadow-md);
    border: 1px solid var(--border);
    transition: all var(--transition-base);
}

.service-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-xl);
    border-color: var(--primary);
}

.service-card .icon {
    width: 64px;
    height: 64px;
    margin: 0 auto 1rem;
    background: var(--primary-light);
    border-radius: var(--radius-2xl);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
}

/* --- Form Styles --- */
.form-input {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    font-family: var(--font-body);
    font-size: 1rem;
    transition: all var(--transition-fast);
    background: var(--secondary);
}

.form-input:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px var(--primary-light);
}

.form-label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: var(--text-dark);
    font-family: var(--font-heading);
}

/* --- Footer --- */
.footer {
    background: var(--text-dark);
    color: var(--secondary);
    padding: 3rem 0 1.5rem;
}

.footer a {
    color: var(--text-light);
    transition: color var(--transition-fast);
}

.footer a:hover {
    color: var(--primary);
}

/* --- Utility Classes --- */
.text-gradient {
    background: linear-gradient(135deg, var(--primary) 0%, var(--accent) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.bg-gradient-primary {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
}

.bg-gradient-accent {
    background: linear-gradient(135deg, var(--accent) 0%, var(--accent-dark) 100%);
}

.shadow-primary {
    box-shadow: 0 10px 30px -10px rgba(0, 174, 239, 0.3);
}

.shadow-accent {
    box-shadow: 0 10px 30px -10px rgba(46, 204, 113, 0.3);
}

/* --- Responsive Adjustments --- */
@media (max-width: 768px) {
    h1 { font-size: 2rem; }
    h2 { font-size: 1.75rem; }
    h3 { font-size: 1.25rem; }
    
    .section {
        padding: 2.5rem 0;
    }
    
    .section-lg {
        padding: 4rem 0;
    }
    
    .price-highlight .price {
        font-size: 2rem;
    }
}

/* --- Print Styles --- */
@media print {
    .no-print {
        display: none !important;
    }
    
    body {
        color: #000;
        background: #fff;
    }
    
    .card, .testimonial-card, .service-card {
        box-shadow: none;
        border: 1px solid #ccc;
    }
}
