/* ===================================
   Deal Maker Appliances — Custom Styles
   =================================== */

/* --- Reset & Base --- */
*, *::before, *::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    min-height: 100vh;
    overflow-x: hidden;
}

::selection {
    background: rgba(110, 21, 50, 0.12);
    color: #6e1532;
}

/* --- Scrollbar --- */
::-webkit-scrollbar {
    width: 6px;
}
::-webkit-scrollbar-track {
    background: #faf9f7;
}
::-webkit-scrollbar-thumb {
    background: #d4c8c4;
    border-radius: 3px;
}
::-webkit-scrollbar-thumb:hover {
    background: #c0224b;
}

/* --- Navbar --- */
#navbar {
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    background: rgba(250, 249, 247, 0.85);
    border-bottom: 1px solid transparent;
    transition: all 0.4s ease;
}

#navbar.scrolled {
    background: rgba(250, 249, 247, 0.95);
    border-bottom-color: rgba(26, 26, 26, 0.06);
    box-shadow: 0 1px 20px rgba(0, 0, 0, 0.04);
}

/* --- Mobile Menu --- */
#mobile-menu.open {
    opacity: 1 !important;
    pointer-events: all !important;
}

#mobile-menu.open .mobile-link {
    animation: fadeUp 0.4s ease forwards;
    opacity: 0;
}

#mobile-menu.open .mobile-link:nth-child(1) { animation-delay: 0.05s; }
#mobile-menu.open .mobile-link:nth-child(2) { animation-delay: 0.1s; }
#mobile-menu.open .mobile-link:nth-child(3) { animation-delay: 0.15s; }
#mobile-menu.open .mobile-link:nth-child(4) { animation-delay: 0.2s; }
#mobile-menu.open .mobile-link:nth-child(5) { animation-delay: 0.25s; }

/* --- Hero Animations --- */
.hero-label {
    opacity: 0;
    transform: translateY(12px);
    animation: fadeUp 0.7s ease 0.2s forwards;
}

.hero-title {
    opacity: 0;
    transform: translateY(20px);
    animation: fadeUp 0.8s ease 0.35s forwards;
}

.hero-subtitle {
    opacity: 0;
    transform: translateY(16px);
    animation: fadeUp 0.7s ease 0.5s forwards;
}

.hero-cta {
    opacity: 0;
    transform: translateY(16px);
    animation: fadeUp 0.7s ease 0.6s forwards;
}

.hero-trust {
    opacity: 0;
    transform: translateY(12px);
    animation: fadeUp 0.7s ease 0.7s forwards;
}

.hero-float-card {
    opacity: 0;
    transform: translateY(20px);
    animation: fadeUp 0.7s ease 0.9s forwards;
}

.hero-image-wrapper {
    opacity: 0;
    transform: translateX(24px);
    animation: slideRight 0.9s ease 0.3s forwards;
}

/* --- Section Animations --- */
.section-label,
.section-title,
.section-subtitle {
    opacity: 0;
    transform: translateY(20px);
}

.section-label.visible,
.section-title.visible,
.section-subtitle.visible {
    animation: fadeUp 0.6s ease forwards;
}

.section-title.visible { animation-delay: 0.1s; }
.section-subtitle.visible { animation-delay: 0.2s; }

/* --- Product Cards --- */
.product-card {
    opacity: 0;
    transform: translateY(24px);
}

.product-card.visible {
    animation: fadeUp 0.6s ease forwards;
}

.product-card:nth-child(1).visible { animation-delay: 0.05s; }
.product-card:nth-child(2).visible { animation-delay: 0.1s; }
.product-card:nth-child(3).visible { animation-delay: 0.15s; }
.product-card:nth-child(4).visible { animation-delay: 0.2s; }
.product-card:nth-child(5).visible { animation-delay: 0.25s; }
.product-card:nth-child(6).visible { animation-delay: 0.3s; }

.product-card-inner {
    will-change: transform;
    transition: transform 0.4s ease, box-shadow 0.4s ease;
}

.product-card:hover .product-card-inner {
    transform: translateY(-4px);
}

/* --- Why Cards --- */
.why-card {
    opacity: 0;
    transform: translateY(24px);
}

.why-card.visible {
    animation: fadeUp 0.6s ease forwards;
}

.why-card:nth-child(1).visible { animation-delay: 0.05s; }
.why-card:nth-child(2).visible { animation-delay: 0.1s; }
.why-card:nth-child(3).visible { animation-delay: 0.15s; }
.why-card:nth-child(4).visible { animation-delay: 0.2s; }
.why-card:nth-child(5).visible { animation-delay: 0.25s; }
.why-card:nth-child(6).visible { animation-delay: 0.3s; }

/* --- Contact Form --- */
.form-input,
.form-select,
.form-textarea {
    transition: border-color 0.3s ease, box-shadow 0.3s ease, background-color 0.3s ease;
}

.form-input:focus,
.form-select:focus,
.form-textarea:focus {
    border-color: #f5a5b7 !important;
    box-shadow: 0 0 0 3px rgba(245, 165, 183, 0.15) !important;
    background-color: #fff !important;
}

.form-input::placeholder,
.form-textarea::placeholder {
    color: rgba(26, 26, 26, 0.2);
}

.submit-btn {
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
}

.submit-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.1), transparent);
    transition: left 0.5s ease;
}

.submit-btn:hover::before {
    left: 100%;
}

/* --- Back to Top --- */
.back-to-top.visible {
    opacity: 1 !important;
    pointer-events: all !important;
}

/* --- Scroll Line Animation --- */
@keyframes scroll-line {
    0% { top: -50%; }
    100% { top: 150%; }
}

.scroll-line {
    animation: scroll-line 1.8s ease-in-out infinite;
}

/* --- Keyframes --- */
@keyframes fadeUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

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

/* --- Reduced Motion --- */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    html {
        scroll-behavior: auto;
    }
}

/* --- Responsive --- */
@media (max-width: 767px) {
    .hero-float-card {
        display: none;
    }
    
    #about .about-image-decor {
        display: none;
    }
}

@media (min-width: 768px) and (max-width: 1023px) {
    .hero-trust {
        gap: 6px;
    }
}
