/* Echo Fixes - Enhanced Premium Styles */
/* Design Systems inspired by 313 Local - 10/10 Quality Standard */

:root {
    /* Core Brand Colors */
    --primary: #FF6F00;
    /* Safety Orange - Energetic & Alert */
    --primary-dark: #E65100;
    --primary-light: #FF8F00;
    --secondary: #1E3A8A;
    /* Trust Navy - Professional & Corporate */
    --accent: #10B981;
    /* Success Green - Reliable */

    /* Premium Gradients */
    --gradient-primary: linear-gradient(135deg, #FF6F00 0%, #FF8F00 100%);
    --gradient-secondary: linear-gradient(135deg, #1E3A8A 0%, #2563EB 100%);
    --gradient-dark: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
    --gradient-glass: linear-gradient(145deg, rgba(255, 255, 255, 0.9), rgba(255, 255, 255, 0.6));

    /* Glassmorphism & Depth */
    --glass-bg: rgba(255, 255, 255, 0.85);
    --glass-border: 1px solid rgba(255, 255, 255, 0.5);
    --glass-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.1);
    --backdrop-blur: blur(12px);

    /* Neumorphic Shadows */
    --shadow-sm: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-md: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --shadow-lg: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    --shadow-glow: 0 0 20px rgba(255, 111, 0, 0.3);

    /* Typography */
    --font-heading: 'Outfit', 'Inter', sans-serif;
    --font-body: 'Inter', system-ui, sans-serif;
}

/* --- Base Enhancements --- */
body {
    background-color: #f8fafc;
    font-family: var(--font-body);
    font-feature-settings: 'cv11', 'ss01';
    -webkit-font-smoothing: antialiased;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-heading);
    letter-spacing: -0.025em;
}

/* --- Premium Animation Utilities --- */
.animate-on-scroll {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
    will-change: opacity, transform;
}

.animate-on-scroll.visible {
    opacity: 1;
    transform: translateY(0);
}

.hover-lift {
    transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.hover-lift:hover {
    transform: translateY(-8px) scale(1.02);
}

/* --- Glassmorphism Cards --- */
.premium-card {
    background: var(--glass-bg);
    backdrop-filter: var(--backdrop-blur);
    border: var(--glass-border);
    border-radius: 24px;
    box-shadow: var(--shadow-md);
    transition: all 0.4s ease;
    overflow: hidden;
    position: relative;
}

.premium-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 6px;
    background: var(--gradient-primary);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.premium-card:hover {
    box-shadow: var(--shadow-lg), var(--shadow-glow);
    transform: translateY(-5px);
}

.premium-card:hover::before {
    opacity: 1;
}

/* --- Price Calculator Styles --- */
.calculator-modal {
    background: white;
    border-radius: 20px;
    box-shadow: var(--shadow-xl);
    max-width: 800px;
    margin: 2rem auto;
    overflow: hidden;
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.calc-header {
    background: var(--gradient-secondary);
    padding: 2rem;
    color: white;
    text-align: center;
}

.calc-steps {
    padding: 2rem;
}

.calc-option {
    border: 2px solid #e2e8f0;
    border-radius: 12px;
    padding: 1.5rem;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: center;
}

.calc-option:hover {
    border-color: var(--primary);
    background: #fff7ed;
}

.calc-option.selected {
    border-color: var(--primary);
    background: #fff7ed;
    position: relative;
    box-shadow: 0 0 0 4px rgba(255, 111, 0, 0.1);
}

/* --- Interactive Elements --- */
.gradient-text {
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.btn-premium {
    background: var(--gradient-primary);
    color: white;
    padding: 1rem 2.5rem;
    border-radius: 50px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: var(--shadow-md);
    border: none;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.btn-premium::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(rgba(255, 255, 255, 0.2), rgba(255, 255, 255, 0));
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: -1;
}

.btn-premium:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg), var(--shadow-glow);
}

.btn-premium:hover::after {
    opacity: 1;
}

/* --- Scroll Progress Bar --- */
.scroll-progress {
    position: fixed;
    top: 0;
    left: 0;
    height: 4px;
    background: var(--gradient-primary);
    z-index: 9999;
    width: 0%;
    transition: width 0.1s ease;
    box-shadow: 0 0 10px rgba(255, 111, 0, 0.5);
}

/* --- Service Tri-Card Layout --- */
.tri-service-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin: 3rem 0;
}

.service-feature-item {
    display: flex;
    align-items: center;
    margin-bottom: 0.5rem;
    color: #4b5563;
}

.service-feature-icon {
    color: var(--accent);
    margin-right: 0.5rem;
}

/* --- Location Badge --- */
.location-pill {
    display: inline-flex;
    align-items: center;
    background: rgba(255, 111, 0, 0.1);
    color: var(--primary-dark);
    padding: 0.5rem 1.25rem;
    border-radius: 50px;
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 1rem;
    backdrop-filter: blur(4px);
}

/* --- Locksmith Specific (New) --- */
.locksmith-emergency {
    border-left: 4px solid var(--primary);
    background: #fff7ed;
}

/* --- Floating Contact Button --- */
.floating-contact {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    z-index: 100;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.float-btn {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    box-shadow: var(--shadow-lg);
    transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    color: white;
}

.float-call {
    background: var(--gradient-primary);
}

.float-chat {
    background: var(--gradient-secondary);
}

.float-btn:hover {
    transform: scale(1.1) rotate(5deg);
}

/* Dropdown Menu Styles */
.nav-item {
    position: relative;
    padding: 1rem 0;
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%) translateY(10px);
    background: white;
    min-width: 600px;
    /* Wide mega menu */
    padding: 2rem;
    border-radius: 16px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    /* 3 Columns for 3 Verticals */
    gap: 2rem;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 1000;
    margin-top: 0;
}

.nav-item:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
}

/* Triangle pointer */
.dropdown-menu::before {
    content: '';
    position: absolute;
    top: -8px;
    left: 50%;
    transform: translateX(-50%);
    border-left: 8px solid transparent;
    border-right: 8px solid transparent;
    border-bottom: 8px solid white;
}

.dropdown-col h4 {
    color: var(--primary);
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 1rem;
    border-bottom: 2px solid rgba(0, 0, 0, 0.05);
    padding-bottom: 0.5rem;
}

.dropdown-col ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.dropdown-col li {
    margin-bottom: 0.8rem;
}

.dropdown-col a {
    color: var(--text-dark);
    text-decoration: none;
    font-size: 0.95rem;
    transition: color 0.2s ease;
    display: flex;
    align-items: center;
    gap: 8px;
}

.dropdown-col a:hover {
    color: var(--secondary);
    transform: translateX(5px);
}

/* --- MEGA MENU FIXES --- */
/* Ensure header allows dropdowns to spill out */
.header,
.nav-container,
.nav-menu {
    overflow: visible !important;
    z-index: 1000;
}

/* Hard Mobile Visibility Fix */
@media (max-width: 991px) {
    .dropdown-menu {
        display: block !important;
        /* Force show on mobile */
        position: static !important;
        transform: none !important;
        opacity: 1 !important;
        visibility: visible !important;
        box-shadow: none;
        background: #f8fafc;
        border-radius: 8px;
        margin-top: 10px;
        padding: 10px;
        min-width: 100%;
        grid-template-columns: 1fr;
        /* Stack vertically */
    }

    .dropdown-menu::before {
        display: none;
        /* Hide arrow on mobile */
    }

    .dropdown-col {
        margin-bottom: 20px;
    }
}

/* --- CTA Section Fix --- */
.cta-section {
    background: var(--gradient-primary) !important;
    padding: 5rem 0;
    position: relative;
    overflow: hidden;
    color: white;
}

/* --- Breadcrumbs --- */
.breadcrumb-nav {
    background: #f1f5f9;
    border-bottom: 1px solid #e2e8f0;
    padding: 0.75rem 0;
}

.breadcrumb-nav .breadcrumb {
    list-style: none;
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.5rem;
    font-size: 0.9rem;
    margin: 0 auto;
    padding: 0 1rem;
    max-width: 1200px;
}

.breadcrumb-item {
    display: flex;
    align-items: center;
}

.breadcrumb-item+.breadcrumb-item::before {
    content: '›';
    color: #94a3b8;
    margin-right: 0.5rem;
    font-size: 1.2rem;
}

.breadcrumb-item a {
    color: #64748b;
    text-decoration: none;
    transition: color 0.2s;
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
}

.breadcrumb-item a:hover {
    color: var(--primary);
    background: rgba(255, 111, 0, 0.1);
}

.breadcrumb-item.active {
    color: var(--primary-dark);
    font-weight: 600;
}

/* Legacy breadcrumb support */
.breadcrumb-container {
    background: #f1f5f9;
    border-bottom: 1px solid #e2e8f0;
    padding: 1rem 0;
}

.breadcrumb-list {
    list-style: none;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9rem;
    margin: 0;
    padding: 0;
}

.breadcrumb-separator {
    color: #94a3b8;
    font-size: 0.8rem;
}

/* --- Why Choose Us Advanced --- */
.why-us-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.why-feature {
    display: flex;
    gap: 1rem;
    margin-bottom: 2rem;
    padding: 1.5rem;
    border-radius: 12px;
    background: white;
    box-shadow: var(--shadow-sm);
    transition: transform 0.3s ease;
}

.why-feature:hover {
    transform: translateX(10px);
    box-shadow: var(--shadow-md);
}

.stat-card {
    background: linear-gradient(135deg, #1e293b, #0f172a);
    color: white;
    padding: 2rem;
    border-radius: 20px;
    position: relative;
    overflow: hidden;
}

@media (max-width: 768px) {
    .why-us-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
}

/* --- Reviews Page --- */
.reviews-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1.5rem;
    padding: 2rem 0;
}

.review-card {
    background: white;
    padding: 2rem;
    border-radius: 16px;
    box-shadow: var(--shadow-sm);
    transition: transform 0.2s;
}

.review-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
}

.review-stars {
    color: #fbbf24;
    font-size: 1.2rem;
    margin-bottom: 1rem;
}

.review-author {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-top: 1.5rem;
    padding-top: 1rem;
    border-top: 1px solid #f1f5f9;
}

.review-avatar {
    width: 40px;
    height: 40px;
    background: #e0f2fe;
    color: var(--primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
}

/* --- Reviews Advanced --- */
.stats-dashboard {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    background: white;
    padding: 2rem;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    margin-top: -30px;
    margin-bottom: 3rem;
    position: relative;
    z-index: 10;
    text-align: center;
}

.stat-item h3 {
    font-size: 2.5rem;
    color: var(--primary);
    margin: 0;
    font-weight: 800;
}

.stat-item p {
    color: #64748b;
    margin: 0;
    font-weight: 500;
}

.verified-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    background: #ecfccb;
    color: #65a30d;
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.review-card {
    border: 1px solid #f1f5f9;
}

.review-card:hover {
    border-color: var(--primary-light);
}

/* --- Reviews UI Advanced --- */
.reviews-wrapper {
    background: #f8fafc;
    min-height: 100vh;
}

.reviews-hero-advanced {
    background: linear-gradient(135deg, #0f172a 0%, #334155 100%);
    color: white;
    padding: 10rem 0 6rem;
    position: relative;
    overflow: hidden;
    text-align: center;
}

.reviews-hero-advanced::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 100px;
    background: linear-gradient(to top, #f8fafc, transparent);
}

.filter-tabs {
    display: flex;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
    margin: -30px auto 3rem;
    position: relative;
    z-index: 20;
}

.filter-tab {
    background: white;
    border: 1px solid #e2e8f0;
    padding: 1rem 2rem;
    border-radius: 50px;
    font-weight: 600;
    color: #475569;
    cursor: pointer;
    transition: all 0.3s;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
}

.filter-tab.active,
.filter-tab:hover {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
    transform: translateY(-3px);
    box-shadow: 0 10px 15px -3px rgba(37, 99, 235, 0.3);
}

.masonry-grid {
    column-count: 3;
    column-gap: 2rem;
    padding: 2rem 0;
}

@media(max-width: 1024px) {
    .masonry-grid {
        column-count: 2;
    }
}

@media(max-width: 768px) {
    .masonry-grid {
        column-count: 1;
    }
}

.review-card-advanced {
    background: white;
    border-radius: 16px;
    padding: 2rem;
    margin-bottom: 2rem;
    break-inside: avoid;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
    border: 1px solid #f1f5f9;
}

.review-card-advanced:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
    border-color: var(--primary-light);
}

/* --- Mobile Header Fixes --- */
@media (max-width: 991px) {
    .nav-actions .btn-premium {
        display: none !important;
    }

    .nav-logo {
        position: relative;
        z-index: 11000;
        /* Ensure logo stays visible above menu */
    }

    /* Adjust Header Padding if needed */
    .header {
        padding: 0.5rem 0;
    }

    .nav-logo img {
        width: 40px;
        height: 40px;
    }
}

/* --- Sticky Mobile Footer --- */
.mobile-sticky-footer {
    display: none;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: white;
    padding: 1rem;
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.1);
    z-index: 900;
    text-align: center;
    border-top: 1px solid #e2e8f0;
    animation: slideUp 0.5s ease-out;
}

.mobile-sticky-footer .btn-premium {
    width: 100%;
    display: block;
    border-radius: 12px;
    font-size: 1rem;
}

@media (max-width: 991px) {
    .mobile-sticky-footer {
        display: block;
    }

    body {
        padding-bottom: 80px;
        /* Prevent content occlusion */
    }
}

@keyframes slideUp {
    from {
        transform: translateY(100%);
    }

    to {
        transform: translateY(0);
    }
}/ *   A d d i t i o n a l   S t y l e s   f o r   B l o g   S e c t i o n   * /  
  
 / *   B l o g   G r i d   L a y o u t   * /  
 . b l o g - g r i d   {  
         d i s p l a y :   g r i d ;  
         g r i d - t e m p l a t e - c o l u m n s :   r e p e a t ( a u t o - f i l l ,   m i n m a x ( 3 0 0 p x ,   1 f r ) ) ;  
         g a p :   2 r e m ;  
 }  
  
 / *   C a r d   H o v e r   E f f e c t   * /  
 . c a r d - h o v e r   {  
         t r a n s i t i o n :   t r a n s f o r m   0 . 3 s   c u b i c - b e z i e r ( 0 . 4 ,   0 ,   0 . 2 ,   1 ) ,   b o x - s h a d o w   0 . 3 s   e a s e ;  
 }  
  
 . c a r d - h o v e r : h o v e r   {  
         t r a n s f o r m :   t r a n s l a t e Y ( - 5 p x ) ;  
         b o x - s h a d o w :   0   2 0 p x   2 5 p x   - 5 p x   r g b a ( 0 ,   0 ,   0 ,   0 . 1 ) ,   0   1 0 p x   1 0 p x   - 5 p x   r g b a ( 0 ,   0 ,   0 ,   0 . 0 4 ) ;  
 }  
  
 / *   L i n e   C l a m p i n g   f o r   e x c e r p t s   * /  
 . l i n e - c l a m p - 3   {  
         d i s p l a y :   - w e b k i t - b o x ;  
         - w e b k i t - l i n e - c l a m p :   3 ;  
         - w e b k i t - b o x - o r i e n t :   v e r t i c a l ;  
         o v e r f l o w :   h i d d e n ;  
 }  
  
 / *   S t i c k y   H e a d e r   * /  
 . s t i c k y - t o p   {  
         p o s i t i o n :   s t i c k y ;  
         t o p :   0 ;  
         z - i n d e x :   1 0 0 0 ;  
 }  
  
 / *   T y p o g r a p h y   E n h a n c e m e n t s   * /  
 . p r o s e   h 3   {  
         c o l o r :   v a r ( - - p r i m a r y - d a r k ) ;  
         m a r g i n - t o p :   2 r e m ;  
         m a r g i n - b o t t o m :   0 . 7 5 r e m ;  
         f o n t - s i z e :   1 . 5 r e m ;  
         f o n t - w e i g h t :   7 0 0 ;  
 }  
  
 . p r o s e   p   {  
         l i n e - h e i g h t :   1 . 7 5 ;  
         m a r g i n - b o t t o m :   1 . 2 5 r e m ;  
         c o l o r :   # 4 b 5 5 6 3 ;  
 }  
 