/*
 * Sidebar Components (Business Hours, Contact Info)
 */

.hours-list {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.business-hour-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.5rem 0;
    border-bottom: 1px dashed var(--color-border-light);
}

.business-hour-row:last-child {
    border-bottom: none;
}

.business-hour-row.is-today {
    color: var(--color-primary);
    font-weight: 600;
    background: rgba(37, 99, 235, 0.05);
    padding: 0.5rem;
    border-radius: var(--radius-sm);
    border-bottom: none;
}

.contact-details a {
    transition: var(--transition-fast);
}

.contact-details a:hover {
    color: var(--color-primary) !important;
}

/* Load More Button for Reviews */
.load-more-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    padding: 0.75rem;
    background: var(--color-bg-card);
    border: 1px dashed var(--color-border-light);
    color: var(--color-text-muted);
    font-weight: 500;
    transition: var(--transition-normal);
    cursor: pointer;
}

.load-more-btn:hover {
    border-color: var(--color-primary);
    color: var(--color-primary);
    background: rgba(37, 99, 235, 0.02);
}

/* ═══════════════════════════════════════════════════
   Bright Clean / Compact Theme
   ═══════════════════════════════════════════════════ */

body.theme-compact {
    background-color: var(--c-bg) !important;
    color: var(--c-text-main) !important;
    font-family: 'Inter', system-ui, -apple-system, sans-serif !important;
}

/* ── Design Tokens ── */
:root {
    --c-bg: #f8fafc;
    --c-surface: #ffffff;
    --c-text-main: #0f172a;
    --c-text-muted: #64748b;
    --c-border: #e2e8f0;

    --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.06), 0 1px 2px rgba(0, 0, 0, 0.04);
    --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.08), 0 2px 4px rgba(0, 0, 0, 0.04);
    --shadow-lg: 0 12px 28px rgba(0, 0, 0, 0.10), 0 4px 10px rgba(0, 0, 0, 0.05);
    --shadow-hover: 0 20px 40px rgba(0, 0, 0, 0.12), 0 8px 16px rgba(0, 0, 0, 0.06);

    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 14px;
    --radius-xl: 20px;

    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-fast: all 0.2s ease;
}

/* ── Cards ── */
.theme-light-card {
    background: var(--c-surface);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--c-border);
    transition: var(--transition);
}

.theme-light-card:hover {
    box-shadow: var(--shadow-md);
    border-color: rgba(0, 0, 0, 0.08);
}

/* Service list cards should NOT jump on hover — subtle left-accent instead */
.theme-light-card.hover-lift:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
    border-color: var(--c-primary);
}

/* Showcase/feature cards CAN lift */
#showcase-services-grid .theme-light-card:hover,
#reviews-grid .theme-light-card:hover,
#employees-grid .theme-light-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

/* ── Primary Button ── */
.btn-light-primary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background: var(--c-primary);
    color: #ffffff !important;
    border: none;
    padding: 0.65rem 1.5rem;
    font-weight: 600;
    font-size: 0.9rem;
    border-radius: var(--radius-md);
    transition: var(--transition);
    text-decoration: none;
    cursor: pointer;
    box-shadow: 0 2px 8px color-mix(in srgb, var(--c-primary) 25%, transparent);
}

.btn-light-primary:hover {
    background: var(--c-secondary);
    color: #ffffff !important;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px color-mix(in srgb, var(--c-primary) 40%, transparent);
    text-decoration: none;
}

.btn-light-primary:active {
    transform: translateY(0);
}

/* ── Outline Button ── */
.btn-light-outline {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background: var(--c-surface);
    color: var(--c-text-main);
    border: 1.5px solid var(--c-border);
    padding: 0.65rem 1.5rem;
    font-weight: 600;
    font-size: 0.9rem;
    border-radius: var(--radius-md);
    transition: var(--transition);
    text-decoration: none;
    cursor: pointer;
}

.btn-light-outline:hover {
    background: var(--c-surface);
    border-color: var(--c-primary);
    color: var(--c-primary);
    transform: translateY(-1px);
    box-shadow: var(--shadow-sm);
    text-decoration: none;
}

.btn-light-outline:active {
    transform: translateY(0);
}

/* Small / filter buttons */
.btn-light-outline.btn-sm {
    padding: 0.4rem 1rem;
    font-size: 0.82rem;
    border-radius: var(--radius-sm);
}

.btn-light-outline.btn-sm.active,
.btn-light-outline.btn-sm[data-category].active,
.btn-light-outline.btn-sm[data-gallery-cat].active {
    background: var(--c-primary);
    color: #fff;
    border-color: var(--c-primary);
    box-shadow: 0 2px 8px color-mix(in srgb, var(--c-primary) 20%, transparent);
}

/* ── Section Titles ── */
.section-title-light {
    font-weight: 800;
    font-size: 1.35rem;
    color: var(--c-text-main);
    margin-bottom: 2.5rem;
    position: relative;
    display: inline-block;
}

.section-title-light::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 0;
    width: 36px;
    height: 3px;
    background: var(--c-primary);
    border-radius: 2px;
}

/* ── Hero Section ── */
.hero-light {
    background: var(--c-surface);
    position: relative;
    overflow: hidden;
}

.hero-title {
    font-size: clamp(2.5rem, 6vw, 4rem);
    font-weight: 900;
    letter-spacing: -1.5px;
    line-height: 1.1;
}

body.theme-compact .hero-light .hero-title {
    color: var(--c-text-main) !important;
}

.hero-subtitle {
    font-size: 1.15rem;
    line-height: 1.7;
    font-weight: 400;
}

body.theme-compact .hero-light .hero-subtitle {
    color: var(--c-text-muted) !important;
}

/* ── Stat Cards ── */
.stat-card-light {
    background: var(--c-surface);
    border-radius: var(--radius-lg);
    padding: 1.5rem;
    text-align: center;
    border: 1px solid var(--c-border);
    box-shadow: var(--shadow-sm);
}

.stat-value-light {
    font-size: 1.8rem;
    font-weight: 800;
    color: var(--c-primary);
    line-height: 1;
    margin-bottom: 0.5rem;
}

.stat-label-light {
    font-size: 0.8rem;
    color: var(--c-text-muted);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* ── Service Cards ── */
.service-card-light {
    display: flex;
    flex-direction: column;
    background: var(--c-surface);
    border-radius: var(--radius-lg);
    padding: 1.5rem;
    border: 1px solid var(--c-border);
    transition: var(--transition);
    height: 100%;
}

.service-card-light:hover {
    border-color: var(--c-primary);
    box-shadow: var(--shadow-md);
}

/* ── Sidebar Widgets ── */
.sidebar-widget-light {
    background: var(--c-surface);
    border-radius: var(--radius-lg);
    padding: 1.75rem;
    margin-bottom: 1.5rem;
    border: 1px solid var(--c-border);
    box-shadow: var(--shadow-sm);
}

.sidebar-widget-title {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--c-text-main);
    margin-bottom: 1.25rem;
    padding-bottom: 0.85rem;
    border-bottom: 1px solid var(--c-border);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

/* ── Service List Row Styling ── */
body.theme-compact .services-list .theme-light-card {
    border-radius: var(--radius-md);
    margin-bottom: 0.5rem;
}

body.theme-compact .services-list .theme-light-card:hover {
    transform: none;
    border-left: 3px solid var(--c-primary);
    box-shadow: var(--shadow-md);
}

/* Service category heading */
body.theme-compact .service-category-group h4 {
    font-size: 1rem;
    color: var(--c-text-main) !important;
}

/* ── Scoped Color Overrides for Compact Theme ── */
body.theme-compact h1,
body.theme-compact h2,
body.theme-compact h3,
body.theme-compact h4,
body.theme-compact h5,
body.theme-compact .fw-bold,
body.theme-compact .text-main {
    color: var(--c-text-main) !important;
}

body.theme-compact .text-muted {
    color: var(--c-text-muted) !important;
}

body.theme-compact .sidebar-widget-title i,
body.theme-compact .section-title-light {
    color: var(--c-text-main);
}

/* Ensure Bootstrap text-primary maps to theme primary */
body.theme-compact .text-primary {
    color: var(--c-primary) !important;
}

body.theme-compact .bg-primary {
    background-color: var(--c-primary) !important;
}

/* ── Gallery Items ── */
body.theme-compact .compact-gallery-item {
    border-radius: var(--radius-lg);
    overflow: hidden;
}

body.theme-compact .compact-gallery-item img {
    border-radius: var(--radius-lg);
    transition: transform 0.5s ease;
}

body.theme-compact .compact-gallery-item:hover img {
    transform: scale(1.04);
}

/* ── Search Input ── */
body.theme-compact #serviceSearchInput {
    border-radius: var(--radius-sm) !important;
    border: 1px solid var(--c-border) !important;
    background: var(--c-bg) !important;
}

body.theme-compact #serviceSearchInput:focus {
    border-color: var(--c-primary) !important;
    box-shadow: 0 0 0 3px color-mix(in srgb, var(--c-primary) 12%, transparent) !important;
}

/* ── Map Card ── */
body.theme-compact .theme-light-card iframe {
    border-radius: 0;
}

/* ── Responsive Tweaks ── */
@media (max-width: 767px) {
    .hero-light {
        padding: 4rem 0 3rem;
    }

    .hero-title {
        font-size: 2rem;
    }

    .stat-value-light {
        font-size: 1.4rem;
    }

    .btn-light-primary,
    .btn-light-outline {
        padding: 0.55rem 1.1rem;
        font-size: 0.85rem;
    }

    .sidebar-widget-light {
        padding: 1.25rem;
    }
}

