/* Uber-like Design System */

/* Font Override */
body {
    font-family: 'DM Sans', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

/* Smooth Scrolling */
html {
    scroll-behavior: smooth;
}

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

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

::-webkit-scrollbar-thumb {
    background: #d4d4d4;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #a3a3a3;
}

/* Navbar Scroll Effect */
.navbar-scrolled {
    border-bottom: 1px solid #e5e5e5;
}

/* FAQ Accordion */
.faq-question {
    border: none !important;
    border-bottom: 1px solid #e5e7eb !important;
    outline: none !important;
    box-shadow: none !important;
}

.faq-question.active,
.faq-question.active:focus,
.faq-question.active:active,
.faq-question.active:hover {
    border: none !important;
    border-bottom: none !important;
    outline: none !important;
    box-shadow: none !important;
}

.faq-question:focus,
.faq-question:active,
.faq-question:focus-visible,
.faq-question:focus-within {
    outline: none !important;
    box-shadow: none !important;
    border-color: #e5e7eb !important;
}

.faq-question svg,
.faq-question [data-feather] {
    transition: transform 0.2s ease;
}

.faq-question.active svg {
    transform: rotate(180deg);
}

/* Focus States */
input:focus,
button:focus {
    outline: 2px solid #000;
    outline-offset: 2px;
}

/* Input placeholder styling */
input::placeholder {
    color: #6b7280;
}

/* Transition defaults */
a, button {
    transition: color 0.15s ease, border-color 0.15s ease, transform 0.15s ease, box-shadow 0.15s ease;
}

/* Card hover effects */
.card-hover {
    transition: all 0.2s ease;
}

.card-hover:hover {
    transform: translateY(-2px);
}

/* Loading Animation */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in {
    animation: fadeIn 0.4s ease-out;
}

/* Responsive Typography */
@media (max-width: 768px) {
    h1 {
        font-size: 36px !important;
    }
    h2 {
        font-size: 28px !important;
    }
}

/* Print Styles */
@media print {
    nav, footer, .no-print {
        display: none;
    }
}

/* Remove default button styles */
button {
    background: none;
    border: none;
    cursor: pointer;
}

/* Link underline animation */
.link-hover {
    position: relative;
}

.link-hover::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -2px;
    left: 0;
    background-color: #000;
    transition: width 0.2s ease;
}

.link-hover:hover::after {
    width: 100%;
}

/* Booking form connection line */
.booking-line {
    position: absolute;
    left: 20px;
    top: 50%;
    width: 2px;
    height: calc(100% - 20px);
    background: linear-gradient(to bottom, #000 0%, #000 50%, #d4d4d4 50%, #d4d4d4 100%);
}

/* Hero illustration overlay */
.hero-overlay {
    background: linear-gradient(135deg, rgba(251, 191, 36, 0.1) 0%, rgba(249, 115, 22, 0.1) 100%);
}

/* Stats counter animation */
@keyframes countUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.stat-number {
    animation: countUp 0.6s ease-out forwards;
}

/* Package card hover */
.package-card {
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.package-card:hover {
    border-color: #000;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

/* Mobile menu animation */
#mobile-menu {
    transition: max-height 0.3s ease, opacity 0.3s ease;
    max-height: 0;
    opacity: 0;
    overflow: hidden;
}

#mobile-menu.active {
    max-height: 400px;
    opacity: 1;
}

/* Feather icon styling */
[data-feather] {
    display: inline-block;
    vertical-align: middle;
}

/* Button active state */
button:active,
a:active {
    transform: scale(0.98);
}

/* Form input styling */
input[type="text"],
input[type="date"],
input[type="time"] {
    font-size: 16px; /* Prevents zoom on iOS */
}

/* Date and time input styling */
input[type="date"]::-webkit-calendar-picker-indicator,
input[type="time"]::-webkit-calendar-picker-indicator {
    color: #6b7280;
    cursor: pointer;
    opacity: 0.8;
}

input[type="date"]::-webkit-calendar-picker-indicator:hover,
input[type="time"]::-webkit-calendar-picker-indicator:hover {
    opacity: 1;
}

input[type="date"]:focus::-webkit-calendar-picker-indicator,
input[type="time"]:focus::-webkit-calendar-picker-indicator {
    color: #000;
}

/* Selection color */
::selection {
    background-color: #000;
    color: #fff;
}

/* Fading text animation */
.fading-text-container {
    position: relative;
    height: 24px;
    overflow: hidden;
}

/* Hero Video Section */
.hero-video-section {
    position: relative;
    width: 100%;
    height: 75vh;
    min-height: 550px;
}

.hero-video-section video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 0;
}

/* Glassmorphism for booking form */
.booking-form-glass {
    animation: slideUpFadeIn 0.8s ease-out;
}

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

/* Hero responsive adjustments */
@media (max-width: 768px) {
    .hero-video-section {
        height: 80vh;
        min-height: 550px;
    }
    
    .hero-video-section h1 {
        font-size: 34px !important;
        line-height: 1.1 !important;
    }
    
    .booking-form-glass {
        margin-top: 1rem;
    }
    
    /* Adjust form padding on tablet */
    .booking-form-glass > div[style*="padding: 20px 24px"] {
        padding: 18px 20px !important;
    }
    
    .booking-form-glass > div[style*="padding: 16px 24px"] {
        padding: 14px 20px !important;
    }
}

@media (max-width: 640px) {
    .hero-video-section {
        height: 75vh;
        min-height: 500px;
    }
    
    .hero-video-section h1 {
        font-size: 28px !important;
    }
    
    .hero-video-section p {
        font-size: 14px !important;
    }
    
    /* Reduce horizontal padding on mobile for better fit */
    .booking-form-glass > div[style*="padding: 20px 24px"] {
        padding: 16px 18px !important;
    }
    
    .booking-form-glass > div[style*="padding: 16px 24px"] {
        padding: 12px 18px !important;
    }
}

/* Booking Form Styles */
.service-type-btn {
    position: relative;
}

.service-type-btn:hover {
    transform: translateY(-1px);
}

.service-type-btn:active {
    transform: translateY(0);
}

.service-type-btn.active {
    background: black !important;
    color: white !important;
    border-color: black !important;
}

.service-type-btn:not(.active) {
    background: white !important;
    color: #374151 !important;
    border: 1px solid #e5e7eb !important;
}

.service-type-btn:not(.active):hover {
    background: #f9fafb !important;
    border-color: #d1d5db !important;
}

/* Form Input Focus States */
input[type="text"]:focus,
input[type="date"]:focus,
input[type="time"]:focus {
    outline: none;
    border-color: black !important;
}

/* Book Button Hover - Only for actual call buttons, not card links */
a[href^="tel:"][style*="background: black"]:hover,
a[href^="tel:"].bg-black:hover {
    background: #1a1a1a !important;
    transform: translateY(-2px);
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.15);
}

a[href^="tel:"]:active {
    transform: translateY(0);
}

/* Service cards should maintain white background on hover */
a[href^="tel:"].bg-white:hover,
a.group.bg-white:hover,
a.group.bg-white:hover *,
#services a.group:hover,
#services a.group:hover * {
    background-color: inherit;
}

/* Ensure "Most Popular" label maintains its black background */
#services a.group:hover .bg-black\/90 {
    background-color: rgba(0, 0, 0, 0.9) !important;
}

a.group.bg-white,
a.group.bg-white:hover {
    background-color: white !important;
}

a.group.bg-white .p-6,
a.group.bg-white:hover .p-6 {
    background-color: transparent !important;
}

/* Responsive Date/Time Grid */
@media (max-width: 640px) {
    div[style*="grid-template-columns: 1fr 1fr"] {
        grid-template-columns: 1fr !important;
    }
}

.fading-text {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    opacity: 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 220px;
}

/* 5 items, 15s total cycle, each visible for ~3s */
.fading-text:nth-child(1) { animation: fadeText1 15s ease-in-out infinite; }
.fading-text:nth-child(2) { animation: fadeText2 15s ease-in-out infinite; }
.fading-text:nth-child(3) { animation: fadeText3 15s ease-in-out infinite; }
.fading-text:nth-child(4) { animation: fadeText4 15s ease-in-out infinite; }
.fading-text:nth-child(5) { animation: fadeText5 15s ease-in-out infinite; }

@keyframes fadeText1 {
    0% { opacity: 1; transform: translateY(0); }
    16% { opacity: 1; transform: translateY(0); }
    20% { opacity: 0; transform: translateY(-10px); }
    100% { opacity: 0; transform: translateY(-10px); }
}

@keyframes fadeText2 {
    0%, 16% { opacity: 0; transform: translateY(10px); }
    20% { opacity: 1; transform: translateY(0); }
    36% { opacity: 1; transform: translateY(0); }
    40% { opacity: 0; transform: translateY(-10px); }
    100% { opacity: 0; transform: translateY(-10px); }
}

@keyframes fadeText3 {
    0%, 36% { opacity: 0; transform: translateY(10px); }
    40% { opacity: 1; transform: translateY(0); }
    56% { opacity: 1; transform: translateY(0); }
    60% { opacity: 0; transform: translateY(-10px); }
    100% { opacity: 0; transform: translateY(-10px); }
}

@keyframes fadeText4 {
    0%, 56% { opacity: 0; transform: translateY(10px); }
    60% { opacity: 1; transform: translateY(0); }
    76% { opacity: 1; transform: translateY(0); }
    80% { opacity: 0; transform: translateY(-10px); }
    100% { opacity: 0; transform: translateY(-10px); }
}

@keyframes fadeText5 {
    0%, 76% { opacity: 0; transform: translateY(10px); }
    80% { opacity: 1; transform: translateY(0); }
    96% { opacity: 1; transform: translateY(0); }
    100% { opacity: 0; transform: translateY(-10px); }
}

/* Testimonial Slider */
.testimonial-slider {
    position: relative;
}

.testimonial-track {
    display: flex;
    width: 100%;
}

.testimonial-slide {
    width: 100%;
    flex-shrink: 0;
}

.testimonial-prev,
.testimonial-next {
    transition: all 0.2s ease;
}

.testimonial-prev:hover,
.testimonial-next:hover {
    border-color: #000;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    transform: translateY(-1px);
}

.testimonial-prev:active,
.testimonial-next:active {
    transform: translateY(0);
}

.testimonial-dots {
    display: flex;
    gap: 8px;
}

.testimonial-dot {
    border: none;
    cursor: pointer;
    transition: all 0.2s ease;
}

.testimonial-dot:hover {
    background-color: #6b7280;
}

.testimonial-dot.active {
    background-color: #000;
}

/* Testimonial Card Hover Effect */
.testimonial-slide .bg-white {
    transition: all 0.3s ease;
}

.testimonial-slide .bg-white:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px -8px rgba(0, 0, 0, 0.1);
}

/* Responsive Testimonial Slider */
@media (max-width: 768px) {
    .testimonial-slide .flex-col {
        flex-direction: column !important;
        align-items: flex-start !important;
        gap: 1rem !important;
    }

    .testimonial-slide .w-16 {
        width: 3rem !important;
        height: 3rem !important;
    }

    .testimonial-slide blockquote {
        font-size: 16px !important;
    }
}
