/* Custom CSS for Sherlock Locksmith */

/* Services Dropdown */
@media (min-width: 768px) {
    .services-dropdown {
        opacity: 0;
        visibility: hidden;
        transform: translateY(10px);
        transition: all 0.3s ease;
    }
    .services-nav-item:hover .services-dropdown,
    .services-nav-item.clicked .services-dropdown {
        opacity: 1;
        visibility: visible;
        transform: translateY(0);
    }
    .services-dropdown > div {
        width: 300px !important; /* USER requested 300px width */
    }
}

/* Mobile Menu Drawer */
.mobile-menu-drawer {
    transform: translateX(100%);
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}
.mobile-menu-drawer.active {
    transform: translateX(0);
}

/* Top Gap Fix for All Pages */
main {
    padding-top: 112px;
}
@media (max-width: 767px) {
    main {
        padding-top: 96px;
    }
}

/* Tabs & FAQ Styling */
.faq-content {
    max-height: 0;
    padding-bottom: 0 !important;
    padding-top: 0 !important;
    overflow: hidden;
    transition: all 0.4s ease-in-out;
}
.faq-item.active .faq-content {
    max-height: 500px;
    padding-bottom: 1.25rem !important;
    padding-top: 0.5rem !important;
}
.faq-item.active .ri-add-line {
    display: none !important;
}
.faq-item.active .ri-subtract-line {
    display: block !important;
}
.faq-item .ri-subtract-line {
    display: none;
}

.service-tab-content {
    display: none;
}
.service-tab-content.active {
    display: block;
    animation: fadeIn 0.5s ease;
}

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

/* Animations */
.hover-scale {
    transition: transform 0.2s ease;
}
.hover-scale:hover {
    transform: scale(1.05);
}

button, a.bg-red-600, .service-tab-btn {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
}

button:hover, a.bg-red-600:hover, .service-tab-btn:hover {
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 10px 25px -5px rgba(220, 38, 38, 0.5) !important;
}

.section-heading {
    position: relative;
}

/* Form Feedback */
.form-message {
    padding: 10px;
    border-radius: 6px;
    margin-top: 10px;
    font-size: 0.875rem;
    display: none;
}
.form-message.success {
    display: block;
    background-color: #dcfce7;
    color: #166534;
    border: 1px solid #bbf7d0;
}
.form-message.error {
    display: block;
    background-color: #fee2e2;
    color: #991b1b;
    border: 1px solid #fecaca;
}

/* Privacy Policy Modal */
.modal {
    display: none;
    position: fixed;
    z-index: 100;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.5);
    backdrop-filter: blur(4px);
}
.modal-content {
    background-color: #fefefe;
    margin: 5% auto;
    padding: 30px;
    border-radius: 12px;
    width: 90%;
    max-width: 800px;
    max-height: 80vh;
    overflow-y: auto;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
}
.close-modal {
    float: right;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
}
