/* ==========================================================
   DWS Auto Care - Website styles (works alongside Tailwind)
   ========================================================== */
:root { --brand: #e10915; --ink: #0c0c0e; }
html { scroll-behavior: smooth; }
body { overflow-x: hidden; }
::selection { background: var(--brand); color: #fff; }

.container-x { width: 100%; max-width: 1280px; margin: 0 auto; padding-left: 16px; padding-right: 16px; }
@media (min-width: 768px) { .container-x { padding-left: 24px; padding-right: 24px; } }

/* Buttons */
.btn-primary {
    display: inline-flex; align-items: center; gap: .5rem;
    background: var(--brand); color: #fff; font-weight: 600;
    padding: .85rem 1.6rem; border-radius: .4rem; transition: all .25s;
    box-shadow: 0 10px 25px -10px var(--brand);
}
.btn-primary:hover { filter: brightness(.9); transform: translateY(-2px); }
.btn-outline {
    display: inline-flex; align-items: center; gap: .5rem;
    border: 1.5px solid rgba(255,255,255,.35); color: #fff; font-weight: 600;
    padding: .8rem 1.6rem; border-radius: .4rem; transition: all .25s;
}
.btn-outline:hover { border-color: var(--brand); background: var(--brand); }

/* Logo */
.logo-mark {
    width: 46px; height: 46px; border-radius: 10px; display: grid; place-items: center;
    background: linear-gradient(135deg, var(--brand), #6d0208); color: #fff; font-size: 20px;
    box-shadow: 0 8px 20px -8px var(--brand);
}

/* Desktop dropdown */
.dropdown {
    position: absolute; top: 100%; left: -16px; min-width: 250px; padding: 10px 0; margin-top: 18px;
    background: #17171a; border-top: 2px solid var(--brand); border-radius: 0 0 8px 8px;
    box-shadow: 0 20px 40px rgba(0,0,0,.5); opacity: 0; visibility: hidden; transform: translateY(10px); transition: all .25s;
}
.dropdown::before { content: ''; position: absolute; top: -20px; left: 0; right: 0; height: 20px; }
.group:hover .dropdown { opacity: 1; visibility: visible; transform: translateY(0); }
.dropdown a { display: block; padding: 9px 22px; color: #d4d4d8; font-weight: 500; font-size: 14px; transition: all .2s; }
.dropdown a:hover { color: #fff; padding-left: 28px; background: rgba(255,255,255,.03); }

.drawer { animation: slideIn .3s ease; }
@keyframes slideIn { from { transform: translateX(100%); } to { transform: translateX(0); } }

/* Section label - "W E L C O M E" style */
.section-label {
    display: inline-block; position: relative; font-family: 'Saira', sans-serif; font-weight: 600;
    letter-spacing: .45em; text-transform: uppercase; font-size: 13px; color: #fff; padding: 8px 0;
}
.section-label::before, .section-label::after { content: ''; position: absolute; height: 2px; background: var(--brand); }
.section-label::before { left: 0; bottom: 0; width: 55%; }
.section-label::after { right: 0; top: 0; width: 45%; }
.section-title { font-family: 'Saira', sans-serif; font-weight: 700; color: #fff; line-height: 1.1; }

/* Hero */
.hero-slide { position: relative; min-height: calc(100vh - 124px); display: flex; align-items: center; }
@media (max-width: 1023px) { .hero-slide { min-height: 78vh; } }
.hero-slide .bg { position: absolute; inset: 0; background-size: cover; background-position: center; transform: scale(1.08); transition: transform 7s ease; }
.swiper-slide-active .hero-slide .bg { transform: scale(1); }
.hero-slide .overlay { position: absolute; inset: 0; background: linear-gradient(90deg, rgba(8,8,10,.92) 0%, rgba(8,8,10,.65) 50%, rgba(8,8,10,.35) 100%); }
.hero-title { font-family: 'Saira', sans-serif; font-weight: 700; color: #fff; line-height: 1; font-size: clamp(2.6rem, 8vw, 6.5rem); letter-spacing: -.01em; }
.swiper-slide-active .hero-anim { animation: fadeUp .9s both; }
.swiper-slide-active .hero-anim.d2 { animation-delay: .15s; }
.swiper-slide-active .hero-anim.d3 { animation-delay: .3s; }
.swiper-slide-active .hero-anim.d4 { animation-delay: .45s; }
@keyframes fadeUp { from { opacity: 0; transform: translateY(30px); } to { opacity: 1; transform: none; } }
.hero-pagination .swiper-pagination-bullet { width: 34px; height: 4px; border-radius: 2px; background: #fff; opacity: .35; }
.hero-pagination .swiper-pagination-bullet-active { background: var(--brand); opacity: 1; }

/* Page banner */
.page-banner { position: relative; padding: 110px 0 90px; background-size: cover; background-position: center; }
.page-banner::before { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(10,10,12,.82), rgba(10,10,12,.95)); }
.page-banner > * { position: relative; }

/* Service image cards */
.svc-card { position: relative; overflow: hidden; border-radius: 10px; aspect-ratio: 1 / 1.05; display: block; isolation: isolate; }
.svc-card img { width: 100%; height: 100%; object-fit: cover; transition: transform .7s; }
.svc-card::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0,0,0,.15) 30%, rgba(0,0,0,.88)); z-index: 1; }
.svc-card:hover img { transform: scale(1.08); }
.svc-card .num { position: absolute; top: 20px; left: 24px; font-family: 'Saira', sans-serif; font-weight: 800; font-size: 38px; color: #fff; z-index: 2; -webkit-text-stroke: 0; }
.svc-card .info { position: absolute; left: 0; right: 0; bottom: 0; padding: 24px; z-index: 2; transform: translateY(42px); transition: transform .35s; }
.svc-card:hover .info { transform: translateY(0); }
.svc-card .info p { opacity: 0; transition: opacity .35s; }
.svc-card:hover .info p { opacity: 1; }
.svc-card .bar { position: absolute; left: 0; bottom: 0; height: 3px; width: 0; background: var(--brand); z-index: 3; transition: width .4s; }
.svc-card:hover .bar { width: 100%; }

.icon-box { width: 64px; height: 64px; border-radius: 12px; display: grid; place-items: center; font-size: 26px; color: var(--brand); background: rgb(var(--brand-rgb) / .1); transition: all .3s; }
.hover-card:hover .icon-box { background: var(--brand); color: #fff; transform: rotate(-6deg); }
.hover-card { transition: all .3s; }
.hover-card:hover { transform: translateY(-6px); border-color: rgb(var(--brand-rgb) / .45); }

/* Stats parallax */
.stats-bg { background-size: cover; background-position: center; background-attachment: fixed; }
@media (max-width: 1023px) { .stats-bg { background-attachment: scroll; } }

/* Footer */
.footer-title { font-family: 'Saira', sans-serif; font-weight: 700; color: #fff; font-size: 20px; margin-bottom: 22px; position: relative; padding-bottom: 12px; }
.footer-title::after { content: ''; position: absolute; left: 0; bottom: 0; width: 36px; height: 2px; background: var(--brand); }
.footer-links li { margin-bottom: 12px; }
.footer-links a { color: #a1a1aa; transition: all .2s; }
.footer-links a:hover { color: var(--brand); padding-left: 6px; }
.social-btn { width: 42px; height: 42px; border-radius: 8px; display: grid; place-items: center; background: rgba(255,255,255,.06); color: #fff; transition: all .25s; }
.social-btn:hover { background: var(--brand); transform: translateY(-3px); }
.cta-stripes { background-image: repeating-linear-gradient(-45deg, #fff 0 2px, transparent 2px 22px); }

/* Forms */
.field {
    width: 100%; background: #131316; border: 1px solid rgba(255,255,255,.1); border-radius: 8px;
    padding: 13px 16px; color: #fff; transition: border-color .2s, box-shadow .2s; font-size: 15px;
}
.field:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 3px rgb(var(--brand-rgb) / .18); }
.field::placeholder { color: #71717a; }
select.field { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%23a1a1aa' stroke-width='2.5'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 14px center; padding-right: 38px; }
input[type=date].field::-webkit-calendar-picker-indicator { filter: invert(1); opacity: .6; }
.field-label { display: block; font-size: 13px; font-weight: 600; color: #d4d4d8; margin-bottom: 7px; }
.field.is-invalid { border-color: #f43f5e; }

/* Time slots */
.slot { padding: 10px 6px; border-radius: 8px; border: 1px solid rgba(255,255,255,.1); background: #131316; color: #fff; font-weight: 600; font-size: 14px; text-align: center; cursor: pointer; transition: all .2s; }
.slot:hover { border-color: var(--brand); }
.slot.active { background: var(--brand); border-color: var(--brand); }
.slot.full { opacity: .35; cursor: not-allowed; text-decoration: line-through; }
.slot small { display: block; font-weight: 500; font-size: 11px; color: #a1a1aa; }
.slot.active small { color: #ffe4e6; }

/* FAQ */
.faq-item .faq-body { max-height: 0; overflow: hidden; transition: max-height .35s ease; }
.faq-item.open .faq-body { max-height: 400px; }
.faq-item .faq-icon { transition: transform .3s; }
.faq-item.open .faq-icon { transform: rotate(180deg); color: var(--brand); }

/* Gallery */
.gallery-item { position: relative; overflow: hidden; border-radius: 10px; cursor: zoom-in; }
.gallery-item img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s; }
.gallery-item:hover img { transform: scale(1.08); }
.gallery-item .cap { position: absolute; inset: 0; background: linear-gradient(180deg, transparent 40%, rgba(0,0,0,.85)); display: flex; align-items: flex-end; padding: 18px; opacity: 0; transition: opacity .3s; }
.gallery-item:hover .cap { opacity: 1; }
.filter-btn { padding: 9px 20px; border-radius: 999px; border: 1px solid rgba(255,255,255,.12); color: #d4d4d8; font-weight: 600; font-size: 14px; transition: all .2s; }
.filter-btn.active, .filter-btn:hover { background: var(--brand); border-color: var(--brand); color: #fff; }
#lightbox { background: rgba(0,0,0,.94); }

/* Testimonials */
.testi-pagination .swiper-pagination-bullet { background: #71717a; opacity: 1; }
.testi-pagination .swiper-pagination-bullet-active { background: var(--brand); }

/* Toast */
.toast { position: fixed; top: 24px; right: 24px; z-index: 100; min-width: 280px; max-width: 92vw; padding: 14px 18px; border-radius: 10px; color: #fff; font-weight: 600; box-shadow: 0 20px 40px rgba(0,0,0,.45); animation: fadeUp .35s; }

/* Reveal on scroll */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity .8s ease, transform .8s ease; }
.reveal.in { opacity: 1; transform: none; }
#toTop.show { opacity: 1; pointer-events: auto; }
.header-scrolled { background: rgba(12,12,14,.97) !important; box-shadow: 0 10px 30px rgba(0,0,0,.4); }
