﻿/**
 * Service Location Template Styles
 * Enqueued only on service-location.php via functions.php
 * Extracted from inline <style> block to eliminate render-blocking inline CSS
 */

.dir-res {
    font-family: var(--font-main);
    color: var(--text-main);
    background: #ffffff;
}
.dir-c {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--space-sm);
}
.dir-2col {
    display: grid;
    grid-template-columns: 1fr 360px;
    gap: var(--space-xl);
}
.dir-card {
    background: #fff;
    border: 1px solid var(--border-light);
    border-radius: 16px;
    padding: var(--space-md);
    box-shadow: 0 4px 6px -1px rgba(0,0,0,0.05), 0 2px 4px -1px rgba(0,0,0,0.03);
    transition: var(--transition-standard);
    position: relative;
    overflow: hidden;
}
.dir-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 25px -5px rgba(37,99,235,0.1), 0 10px 10px -5px rgba(37,99,235,0.04);
    border-color: rgba(37,99,235,0.3);
}
.dir-section { padding: var(--space-xl) 0; }
.dir-section + .dir-section { border-top: 1px solid var(--border-light); }
.dir-h2 {
    font-size: clamp(1.5rem, 4vw, 2.25rem);
    font-weight: 900;
    margin-bottom: var(--space-md);
    line-height: 1.1;
    color: var(--brand-primary);
    letter-spacing: -0.02em;
}
.dir-cta-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    background: var(--grad-primary);
    color: #fff;
    padding: 1rem 2rem;
    border-radius: 99px;
    font-weight: 800;
    font-size: 1rem;
    text-decoration: none;
    transition: var(--transition-standard);
    box-shadow: 0 4px 14px 0 rgba(37,99,235,0.39);
    cursor: pointer;
}
.dir-cta-btn:hover {
    transform: translateY(-2px) scale(1.02);
    box-shadow: 0 6px 20px rgba(37,99,235,0.23);
    color: #fff;
    text-decoration: none;
}
.dir-aside-card {
    border: 1px solid var(--border-light);
    border-radius: var(--radius-lg);
    padding: var(--space-lg);
    background: #fff;
    box-shadow: var(--shadow-hover);
    margin-bottom: var(--space-lg);
    position: static;
}
.dir-mobile-cta {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(255,255,255,0.9);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-top: 1px solid rgba(226,232,240,0.8);
    padding: 1rem 1.5rem;
    box-shadow: 0 -10px 20px rgba(0,0,0,0.05);
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 9999;
}
.dir-stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 24px;
    text-align: center;
}
details summary {
    font-weight: 700;
    cursor: pointer;
    list-style: none;
    display: flex;
    justify-content: space-between;
    align-items: center;
}
details summary::-webkit-details-marker { display: none; }
details[open] summary { color: var(--brand-primary); }


/* Floating Sticky Sidebar Phone CTA */
.dir-sticky-cta {
    position: -webkit-sticky;
    position: sticky;
    top: 90px;
    background: #ffffff;
    border: 2px solid #22c55e;
    border-radius: 18px;
    padding: 22px 20px;
    box-shadow: 0 10px 25px -5px rgba(34, 197, 94, 0.18), 0 8px 10px -6px rgba(0, 0, 0, 0.04);
    text-align: center;
    margin-top: 24px;
    z-index: 25;
    transition: box-shadow 0.2s ease, transform 0.2s ease;
}
.dir-sticky-cta:hover {
    box-shadow: 0 16px 30px -5px rgba(34, 197, 94, 0.25), 0 10px 12px -5px rgba(0, 0, 0, 0.06);
}
.dir-sticky-header {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    background: #f0fdf4;
    border: 1px solid #bbf7d0;
    padding: 4px 12px;
    border-radius: 99px;
    margin-bottom: 12px;
}
.dir-sticky-pulse-dot {
    width: 8px;
    height: 8px;
    background-color: #22c55e;
    border-radius: 50%;
    display: inline-block;
    box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.7);
    animation: cta-radar-pulse 2s infinite cubic-bezier(0.66, 0, 0, 1);
}
@keyframes cta-radar-pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.7);
    }
    70% {
        box-shadow: 0 0 0 8px rgba(34, 197, 94, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(34, 197, 94, 0);
    }
}
.dir-sticky-status {
    font-size: 0.68rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    color: #15803d;
    text-transform: uppercase;
}
.dir-sticky-title {
    font-size: 1.15rem;
    font-weight: 800;
    color: #0f172a;
    line-height: 1.25;
    margin: 0 0 6px 0;
}
.dir-sticky-desc {
    font-size: 0.82rem;
    color: #64748b;
    line-height: 1.45;
    margin: 0 0 16px 0;
}
.dir-sticky-phone-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    background: linear-gradient(135deg, #16a34a, #15803d);
    color: #ffffff !important;
    padding: 13px 18px;
    border-radius: 12px;
    font-weight: 800;
    font-size: 1.05rem;
    text-decoration: none !important;
    box-shadow: 0 4px 14px 0 rgba(22, 163, 74, 0.35);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.dir-sticky-phone-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(22, 163, 74, 0.45);
    background: linear-gradient(135deg, #15803d, #166534);
    color: #ffffff !important;
}
.dir-sticky-trust-badges {
    display: flex;
    flex-direction: column;
    gap: 5px;
    margin-top: 14px;
    padding-top: 12px;
    border-top: 1px solid #f1f5f9;
    text-align: left;
}
.dir-sticky-badge-item {
    font-size: 0.74rem;
    color: #475569;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 7px;
}
.dir-sticky-badge-item i {
    color: #16a34a;
    font-size: 0.8rem;
    width: 14px;
    text-align: center;
}
.dir-sticky-form-link {
    display: inline-block;
    margin-top: 12px;
    font-size: 0.78rem;
    font-weight: 700;
    color: #2563eb;
    text-decoration: none;
    transition: color 0.15s ease;
}
.dir-sticky-form-link:hover {
    color: #1d4ed8;
    text-decoration: underline;
}

@media (min-width: 1025px) {
    .dir-mobile-cta { display: none !important; }
}
@media (max-width: 1024px) {
    .dir-2col        { grid-template-columns: 1fr; }
    .dir-aside-card  { position: static; }
    .dir-sticky-cta  { position: static; margin-top: 20px; }
    .dir-res         { padding-bottom: 80px; }
    .dir-stats-grid  { gap: 16px; grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 768px) {
    .dir-h2         { font-size: clamp(1.5rem, 5vw, 1.75rem); }
    .dir-stats-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
}
