/**
 * Landing Page CSS Improvements
 * Addresses footer text color, shadow consistency, typography hierarchy, and interactive states
 */

/* ============================================
   FOOTER FIXES - Critical Issue
   ============================================ */
.site-footer {
    background-color: #111827 !important; /* bg-gray-900 */
}

.site-footer * {
    color: #ffffff !important; /* Force white text on all footer elements */
}

.site-footer h3,
.site-footer .text-white,
.site-footer .font-semibold {
    color: #ffffff !important;
}

.site-footer a {
    color: #d1d5db !important; /* text-gray-300 */
    transition: all 0.25s ease-in-out;
    position: relative;
    display: inline-block;
    padding: 2px 0;
}

.site-footer a:hover {
    color: #ffffff !important;
    transform: translateX(4px);
}

/* Footer link underline on hover - subtle and readable */
.site-footer a:hover::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background-color: #f97316; /* orange-500 */
    transform: scaleX(1);
    transition: transform 0.25s ease-in-out;
}

.site-footer a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background-color: #f97316;
    transform: scaleX(0);
    transition: transform 0.25s ease-in-out;
    transform-origin: left;
}

.site-footer .text-gray-300,
.site-footer .text-gray-400 {
    color: #d1d5db !important; /* gray-300 for main text */
}

.site-footer .text-gray-400 {
    color: #9ca3af !important; /* gray-400 for muted text */
    transition: all 0.25s ease-in-out;
}

.site-footer .text-gray-400:hover {
    color: #ffffff !important;
    transform: translateX(4px);
}

.site-footer p,
.site-footer li,
.site-footer span {
    color: #d1d5db !important;
}

/* Footer border */
.site-footer .border-gray-800 {
    border-color: #1f2937 !important;
}

/* ============================================
   SHADOW CONSISTENCY
   ============================================ */
/* Ensure all cards have consistent shadows */
.card,
.bg-white.rounded-xl,
.job-card,
.service-card,
.category-card,
.enhanced-card {
    box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px 0 rgba(0, 0, 0, 0.06) !important;
    transition: box-shadow 0.3s ease-in-out, transform 0.3s ease-in-out;
}

.card:hover,
.bg-white.rounded-xl:hover,
.job-card:hover,
.service-card:hover,
.category-card:hover,
.enhanced-card:hover {
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05) !important;
    transform: translateY(-2px);
}

/* Quick Actions cards */
.bg-white.rounded-lg.shadow-sm {
    box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05) !important;
}

.bg-white.rounded-lg.shadow-sm:hover {
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06) !important;
}

/* ============================================
   TYPOGRAPHY HIERARCHY REFINEMENT
   ============================================ */
/* Section titles */
.text-2xl.font-bold,
.text-3xl.font-bold,
h2.text-2xl,
h2.text-3xl {
    font-weight: 700;
    letter-spacing: -0.02em;
    line-height: 1.2;
    color: #111827; /* gray-900 */
}

/* Section subtitles - More distinct from card descriptions */
.text-gray-600:not(.card *),
p.text-gray-600:not(.card p) {
    font-size: 1rem;
    font-weight: 400;
    color: #4b5563; /* gray-600 */
    line-height: 1.6;
}

/* Card descriptions - Slightly lighter */
.card p.text-gray-600,
.job-card p,
.service-card p {
    font-size: 0.9375rem; /* 15px */
    color: #6b7280; /* gray-500 */
    line-height: 1.5;
}

/* Card titles - More prominent */
.card h3,
.job-card h3,
.service-card h3,
.text-lg.font-semibold {
    font-weight: 600;
    color: #111827; /* gray-900 */
    line-height: 1.4;
}

/* ============================================
   INTERACTIVE STATES (Hover/Focus)
   ============================================ */
/* Buttons - Enhanced hover states */
.btn-primary,
.bg-orange-500,
.inline-flex.items-center.px-6.py-3,
button[class*="bg-orange"] {
    transition: all 0.2s ease-in-out;
    position: relative;
    overflow: hidden;
}

.btn-primary:hover,
.bg-orange-500:hover,
.inline-flex.items-center.px-6.py-3:hover,
button[class*="bg-orange"]:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
}

.btn-primary:active,
.bg-orange-500:active,
.inline-flex.items-center.px-6.py-3:active {
    transform: translateY(0);
    box-shadow: 0 2px 4px -1px rgba(0, 0, 0, 0.1);
}

.btn-primary:focus,
.bg-orange-500:focus,
.inline-flex.items-center.px-6.py-3:focus {
    outline: 2px solid #f97316;
    outline-offset: 2px;
    box-shadow: 0 0 0 4px rgba(249, 115, 22, 0.2);
}

/* Secondary button hover states */
.btn-secondary:hover,
.bg-gray-200:hover,
button[class*="border"]:not(.btn-primary):hover {
    background-color: #f3f4f6;
    border-color: #f97316;
    color: #f97316;
    transform: translateY(-1px);
    box-shadow: 0 2px 4px -1px rgba(0, 0, 0, 0.1);
}

/* Outline button hover */
.btn-outline:hover,
.border-white:hover:not(.site-footer *) {
    background-color: #ffffff;
    border-color: #ffffff;
    color: #f97316;
    transform: translateY(-1px);
}

/* Links - Clear hover states (excluding footer links which are handled above) */
a:not(.btn-primary):not(.bg-orange-500):not(.site-footer a):not(.site-footer *):hover {
    color: #f97316; /* orange-500 */
    transition: color 0.2s ease-in-out;
    text-decoration: underline;
    text-decoration-color: #f97316;
    text-underline-offset: 4px;
}

/* Navigation links hover */
.nav-link:hover,
nav a:not(.site-footer a):hover {
    color: #f97316;
    text-decoration: underline;
    text-decoration-color: #f97316;
    text-underline-offset: 4px;
    transition: all 0.2s ease-in-out;
}

/* Remove underline from footer brand link on hover */
.site-footer a.text-2xl:hover::after {
    display: none;
}

/* Island toggle buttons */
.island-toggle {
    transition: all 0.2s ease-in-out;
    position: relative;
}

.island-toggle:hover:not(.bg-orange-600) {
    background-color: #f3f4f6; /* gray-100 */
    color: #111827; /* gray-900 */
    transform: translateY(-1px);
}

.island-toggle:active:not(.bg-orange-600) {
    transform: translateY(0);
}

.island-toggle.bg-orange-600:hover {
    background-color: #ea580c !important; /* orange-600 darker */
    transform: translateY(-1px);
    box-shadow: 0 2px 4px -1px rgba(0, 0, 0, 0.1);
}

/* Card hover effects */
.card,
.bg-white.rounded-xl,
.job-card,
.service-card,
.category-card,
.bg-white.rounded-lg {
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Quick Actions cards specific hover */
.bg-white.rounded-lg.shadow-sm:hover {
    border-color: #f97316 !important;
    transform: translateY(-2px);
}

/* Enhanced card hover with scale effect */
.card:hover,
.job-card:hover,
.service-card:hover,
.category-card:hover {
    border-color: #f97316 !important;
}

/* View Details button hover */
a[href*="job"]:not(.site-footer a):hover,
a[href*="service"]:not(.site-footer a):hover,
a[href*="category"]:not(.site-footer a):hover {
    text-decoration: none;
}

/* ============================================
   PROMO BANNER INTEGRATION
   ============================================ */
/* Ensure promo banners align with card design */
.promo-banner {
    border-radius: 0.75rem;
    box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px 0 rgba(0, 0, 0, 0.06);
    transition: box-shadow 0.3s ease-in-out, transform 0.3s ease-in-out;
}

.promo-banner:hover {
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    transform: translateY(-2px);
}

/* ============================================
   ICONOGRAPHY CONSISTENCY
   ============================================ */
/* Ensure all SVG icons have consistent styling */
svg {
    display: inline-block;
    vertical-align: middle;
}

/* Icon containers */
.w-12.h-12.bg-orange-100,
.bg-orange-100.rounded-lg {
    background-color: #ffedd5 !important; /* orange-100 */
    transition: all 0.2s ease-in-out;
}

.w-12.h-12.bg-orange-100:hover,
.bg-orange-100.rounded-lg:hover {
    background-color: #fed7aa !important; /* orange-200 */
    transform: scale(1.05);
    box-shadow: 0 2px 4px -1px rgba(0, 0, 0, 0.1);
}

/* Icon SVG hover */
.w-12.h-12.bg-orange-100:hover svg,
.bg-orange-100.rounded-lg:hover svg {
    transform: scale(1.1);
    color: #ea580c !important; /* orange-600 */
}

/* Social media icons hover in footer */
.site-footer svg {
    transition: all 0.2s ease-in-out;
}

.site-footer a:hover svg {
    transform: scale(1.15) rotate(5deg);
    color: #f97316 !important;
}

.site-footer a:hover svg path {
    fill: #f97316 !important;
}

/* ============================================
   HERO SECTION ENHANCEMENTS
   ============================================ */
.bg-gradient-to-r.from-orange-500.to-orange-600 {
    background: linear-gradient(135deg, #f97316 0%, #ea580c 100%) !important;
}

/* Hero text shadow for better readability */
.bg-gradient-to-r.from-orange-500.to-orange-600 h1,
.bg-gradient-to-r.from-orange-500.to-orange-600 p {
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

/* ============================================
   BUTTON STYLES - Third Style for Secondary Actions
   ============================================ */
/* Book button style (if different from View Details) */
.btn-book {
    background-color: #ffffff;
    color: #f97316;
    border: 2px solid #f97316;
    padding: 0.5rem 1rem;
    border-radius: 0.5rem;
    font-weight: 600;
    transition: all 0.2s ease-in-out;
}

.btn-book:hover {
    background-color: #f97316;
    color: #ffffff;
    transform: translateY(-1px);
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

/* ============================================
   RESPONSIVE IMPROVEMENTS
   ============================================ */
@media (max-width: 640px) {
    /* Mobile footer adjustments */
    .site-footer {
        padding: 2rem 1rem !important;
    }
    
    .site-footer .grid {
        grid-template-columns: 1fr !important;
        gap: 2rem !important;
    }
    
    /* Mobile hero text */
    .bg-gradient-to-r.from-orange-500.to-orange-600 h1 {
        font-size: 2rem !important;
    }
    
    .bg-gradient-to-r.from-orange-500.to-orange-600 p {
        font-size: 1rem !important;
    }
    
    /* Mobile button stack */
    .flex.flex-col.sm\:flex-row {
        flex-direction: column !important;
    }
    
    .flex.flex-col.sm\:flex-row > * {
        width: 100%;
        margin-bottom: 0.75rem;
    }
}

@media (max-width: 768px) {
    /* Tablet adjustments */
    .jobs-grid,
    .services-grid {
        grid-template-columns: repeat(1, 1fr) !important;
    }
    
    .category-grid {
        grid-template-columns: repeat(2, 1fr) !important;
    }
}

/* ============================================
   ADDITIONAL HOVER STATES
   ============================================ */
/* View Details / View All buttons */
a[class*="View"]:not(.site-footer a),
.view-all-link,
.view-details-link {
    transition: all 0.2s ease-in-out;
}

a[class*="View"]:not(.site-footer a):hover,
.view-all-link:hover,
.view-details-link:hover {
    color: #f97316 !important;
    text-decoration: underline;
    text-decoration-color: #f97316;
    text-underline-offset: 4px;
    transform: translateX(2px);
}

/* Category explore buttons */
.category-card button:hover,
.category-card a:hover:not(.site-footer a) {
    background-color: #f97316 !important;
    color: #ffffff !important;
    transform: translateY(-1px);
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

/* Stats cards hover */
.stat-card:hover {
    border-color: #f97316 !important;
}

/* Icon containers in cards */
.w-12.h-12.bg-orange-100:hover,
.bg-orange-100.rounded-lg:hover {
    background-color: #fed7aa !important; /* orange-200 */
    transform: scale(1.05);
}

/* Form inputs focus states */
input:focus,
textarea:focus,
select:focus {
    border-color: #f97316 !important;
    box-shadow: 0 0 0 3px rgba(249, 115, 22, 0.1) !important;
    outline: none;
}

input:hover:not(:focus),
textarea:hover:not(:focus),
select:hover:not(:focus) {
    border-color: #d1d5db;
}

/* ============================================
   ACCESSIBILITY IMPROVEMENTS
   ============================================ */
/* Focus visible states */
*:focus-visible {
    outline: 2px solid #f97316;
    outline-offset: 2px;
}

/* Improved focus states for interactive elements */
button:focus-visible,
a:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
    outline: 2px solid #f97316;
    outline-offset: 2px;
    box-shadow: 0 0 0 4px rgba(249, 115, 22, 0.2);
}

/* Skip to content link */
.skip-link {
    position: absolute;
    top: -40px;
    left: 0;
    background: #f97316;
    color: #ffffff;
    padding: 8px 16px;
    text-decoration: none;
    z-index: 100;
}

.skip-link:focus {
    top: 0;
}

/* ============================================
   LOADING STATES
   ============================================ */
.loading-skeleton {
    background: linear-gradient(
        90deg,
        #f3f4f6 25%,
        #e5e7eb 50%,
        #f3f4f6 75%
    );
    background-size: 200% 100%;
    animation: loading 1.5s ease-in-out infinite;
}

@keyframes loading {
    0% {
        background-position: 200% 0;
    }
    100% {
        background-position: -200% 0;
    }
}

/* ============================================
   SCROLL TO TOP BUTTON
   ============================================ */
.scroll-to-top {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    width: 48px;
    height: 48px;
    background-color: #f97316;
    color: #ffffff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease-in-out;
    z-index: 50;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
}

.scroll-to-top.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.scroll-to-top:hover {
    background-color: #ea580c;
    transform: translateY(-4px) scale(1.1);
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 0 20px rgba(249, 115, 22, 0.4);
}

.scroll-to-top:active {
    transform: translateY(-2px) scale(1.05);
    box-shadow: 0 5px 10px -3px rgba(0, 0, 0, 0.1);
}

/* Scroll to top button - new implementation */
.scroll-to-top-button {
    position: fixed !important;
    bottom: 2rem !important;
    right: 2rem !important;
    width: 56px !important;
    height: 56px !important;
    background-color: #f97316 !important;
    color: #ffffff !important;
    border-radius: 50% !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05) !important;
    transition: all 0.3s ease-in-out !important;
    z-index: 9999 !important;
    border: none !important;
    cursor: pointer !important;
}

.scroll-to-top-button:hover {
    background-color: #ea580c !important;
    transform: translateY(-4px) scale(1.1) !important;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 0 20px rgba(249, 115, 22, 0.4) !important;
}

.scroll-to-top-button:active {
    transform: translateY(-2px) scale(1.05) !important;
}

.scroll-to-top-button:focus {
    outline: 2px solid #f97316 !important;
    outline-offset: 2px !important;
}

/* ============================================
   PRINT STYLES
   ============================================ */
@media print {
    .site-footer {
        background-color: #ffffff !important;
        color: #000000 !important;
        border-top: 2px solid #000000;
    }
    
    .site-footer * {
        color: #000000 !important;
    }
    
    .no-print {
        display: none !important;
    }
}

