/* Custom CSS for DASH Consult Website */

/* Client Carousel Animation */
@keyframes scroll {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(-50%);
    }
}

.animate-scroll {
    animation: scroll 30s linear infinite;
}

.client-carousel:hover .animate-scroll {
    animation-play-state: paused;
}

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

/* Custom button hover effects */
.btn-primary {
    background-color: #0047a9;
    color: white;
    padding: 0.75rem 1.5rem;
    border-radius: 0.5rem;
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn-primary:hover {
    background-color: #709ede;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 71, 169, 0.3);
}

/* Service card hover effects */
.service-card {
    transition: all 0.3s ease;
}

.service-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

/* Form styling */
.form-input {
    width: 100%;
    padding: 0.75rem;
    border: 2px solid #e5e7eb;
    border-radius: 0.5rem;
    font-family: 'Montserrat', sans-serif;
    transition: border-color 0.3s ease;
}

.form-input:focus {
    outline: none;
    border-color: #0047a9;
    box-shadow: 0 0 0 3px rgba(0, 71, 169, 0.1);
}

.form-textarea {
    width: 100%;
    padding: 0.75rem;
    border: 2px solid #e5e7eb;
    border-radius: 0.5rem;
    font-family: 'Montserrat', sans-serif;
    resize: vertical;
    min-height: 120px;
    transition: border-color 0.3s ease;
}

.form-textarea:focus {
    outline: none;
    border-color: #0047a9;
    box-shadow: 0 0 0 3px rgba(0, 71, 169, 0.1);
}

.form-select {
    width: 100%;
    padding: 0.75rem;
    border: 2px solid #e5e7eb;
    border-radius: 0.5rem;
    font-family: 'Montserrat', sans-serif;
    background-color: white;
    transition: border-color 0.3s ease;
}

.form-select:focus {
    outline: none;
    border-color: #0047a9;
    box-shadow: 0 0 0 3px rgba(0, 71, 169, 0.1);
}

/* Loading animation for forms */
.loading {
    opacity: 0.6;
    pointer-events: none;
}

/* Success message styling */
.success-message {
    background-color: #d1fae5;
    color: #065f46;
    padding: 1rem;
    border-radius: 0.5rem;
    border: 1px solid #a7f3d0;
    margin-bottom: 1rem;
}

/* Error message styling */
.error-message {
    background-color: #fee2e2;
    color: #991b1b;
    padding: 1rem;
    border-radius: 0.5rem;
    border: 1px solid #fca5a5;
    margin-bottom: 1rem;
}

/* Blog post styling */
.blog-post {
    background: white;
    border-radius: 0.5rem;
    overflow: hidden;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.blog-post:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.blog-post img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.blog-post-content {
    padding: 1.5rem;
}

.blog-post h3 {
    color: #0047a9;
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.blog-post-meta {
    color: #6b7280;
    font-size: 0.875rem;
    margin-bottom: 1rem;
}

/* Service detail page styling */
.service-hero {
    background: linear-gradient(135deg, #0047a9 0%, #709ede 100%);
    color: white;
    padding: 4rem 0;
}

.service-content {
    padding: 3rem 0;
}

.service-features {
    background: #f8fafc;
    padding: 3rem 0;
}

.feature-item {
    display: flex;
    align-items: flex-start;
    margin-bottom: 2rem;
}

.feature-icon {
    background: #0047a9;
    color: white;
    width: 3rem;
    height: 3rem;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 1rem;
    flex-shrink: 0;
}

/* Contact page styling */
.contact-info {
    background: #f8fafc;
    padding: 2rem;
    border-radius: 0.5rem;
}

.contact-info h3 {
    color: #0047a9;
    margin-bottom: 1rem;
}

.contact-info p {
    margin-bottom: 0.5rem;
}

/* Map container */
.map-container {
    height: 300px;
    border-radius: 0.5rem;
    overflow: hidden;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .client-carousel .flex {
        animation: none;
    }
    
    .animate-scroll {
        animation: none;
    }
    
    .service-hero {
        padding: 2rem 0;
    }
    
    .service-content {
        padding: 2rem 0;
    }
}

/* Print styles */
@media print {
    .floating-whatsapp,
    .mobile-menu-button,
    .mobile-menu {
        display: none !important;
    }
}

/* Blog Post Tiles */
.blog-post-tile {
    transition: all 0.3s ease;
}

.blog-post-tile:hover {
    transform: translateY(-5px);
}

.blog-post-tile img {
    transition: transform 0.3s ease;
}

.blog-post-tile:hover img {
    transform: scale(1.05);
}

.line-clamp-3 {
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Carousel Styles */
.carousel-container {
    position: relative;
    width: 100%;
    overflow: hidden;
}

.carousel-wrapper {
    display: flex;
    transition: transform 0.5s ease-in-out;
    will-change: transform;
}

.carousel-slide {
    flex-shrink: 0;
    box-sizing: border-box;
}

.carousel-container:hover .carousel-wrapper {
    animation-play-state: paused;
}

/* Responsive carousel */
@media (max-width: 768px) {
    .carousel-slide {
        flex-direction: column;
    }
}

/* ============================================
   NESTED NAVIGATION SUBMENU STYLES
   ============================================ */

/* Parent menu item with submenu */
.nav-has-submenu {
    position: relative;
}

/* Arrow indicator for items with submenus */
.nav-has-submenu > a::after {
    content: '';
    display: inline-block;
    width: 0;
    height: 0;
    margin-left: 6px;
    border-left: 4px solid transparent;
    border-right: 4px solid transparent;
    border-top: 4px solid currentColor;
    vertical-align: middle;
    transition: transform 0.2s ease;
}

/* Right arrow for nested submenu items */
.nav-submenu-item.nav-has-submenu > a::after {
    border-left: 4px solid currentColor;
    border-right: 0;
    border-top: 4px solid transparent;
    border-bottom: 4px solid transparent;
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
}

/* Nested flyout submenu */
.nav-nested-submenu {
    position: absolute;
    left: 100%;
    top: 0;
    width: 220px;
    background: white;
    border-radius: 0.5rem;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
    opacity: 0;
    visibility: hidden;
    transform: translateX(-10px);
    transition: all 0.2s ease;
    z-index: 60;
}

/* Show nested submenu on hover */
.nav-submenu-item.nav-has-submenu:hover > .nav-nested-submenu {
    opacity: 1;
    visibility: visible;
    transform: translateX(0);
}

/* Submenu item styling */
.nav-submenu-item {
    position: relative;
}

.nav-submenu-item > a {
    display: block;
    padding: 0.5rem 1rem;
    font-size: 0.875rem;
    color: #111827;
    transition: background-color 0.2s ease;
}

.nav-submenu-item > a:hover {
    background-color: #f3f4f6;
    color: #0047a9;
}

/* Nested submenu link padding for arrow space */
.nav-submenu-item.nav-has-submenu > a {
    padding-right: 2rem;
}

/* Mobile Navigation Accordion Styles */
.mobile-submenu-toggle {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    padding: 0.5rem 0;
    background: none;
    border: none;
    cursor: pointer;
    font-family: inherit;
    font-size: inherit;
    color: inherit;
}

.mobile-submenu-toggle svg {
    transition: transform 0.2s ease;
}

.mobile-submenu-toggle.active svg {
    transform: rotate(180deg);
}

.mobile-nested-menu {
    display: none;
    padding-left: 1rem;
    border-left: 2px solid #e5e7eb;
    margin-left: 0.5rem;
    margin-top: 0.5rem;
}

.mobile-nested-menu.active {
    display: block;
}

.mobile-nested-menu a {
    display: block;
    padding: 0.375rem 0;
    font-size: 0.875rem;
    color: #4b5563;
}

.mobile-nested-menu a:hover {
    color: #0047a9;
}

/* Deep nested menu (sub-sub items) */
.mobile-deep-nested {
    display: none;
    padding-left: 1rem;
    border-left: 2px solid #e5e7eb;
    margin-left: 0.5rem;
    margin-top: 0.25rem;
}

.mobile-deep-nested.active {
    display: block;
}

.mobile-deep-nested a {
    font-size: 0.8125rem;
}
