/**
 * Tenant customer UI — light shell overrides for legacy dark blocks in style.css + home markup.
 * Loaded after per-page @stack('styles') so these rules win when paired with body.bg-light-custom.
 */

body.bg-light-custom #services,
body.bg-light-custom .services-section,
body.bg-light-custom .service-section {
    background-color: #fafafa !important;
    background-image: none !important;
}

body.bg-light-custom .service-section .service-card,
body.bg-light-custom .services-section .service-card {
    background: #ffffff !important;
    border: 1px solid rgba(15, 23, 42, 0.08) !important;
    box-shadow: 0 12px 28px rgba(15, 23, 42, 0.07) !important;
}

body.bg-light-custom .service-card h3,
body.bg-light-custom .service-card h4 {
    color: #0f172a !important;
}

body.bg-light-custom .service-card p,
body.bg-light-custom .service-card .service-price .duration {
    color: #475569 !important;
}

body.bg-light-custom .service-card .service-price .price {
    color: #0f172a !important;
}

body.bg-light-custom .service-card p.text-white-50 {
    color: #64748b !important;
}

body.bg-light-custom .section-title h2 {
    color: #0f172a !important;
    text-shadow: none !important;
}

body.bg-light-custom .section-title p,
body.bg-light-custom .section-title .text-light,
body.bg-light-custom .section-title .text-light-50 {
    color: #64748b !important;
}

body.bg-light-custom .section-title .subtitle {
    color: #ffffff !important;
    text-shadow: none !important;
}

body.bg-light-custom .section-title .subtitle::before {
    background: rgba(15, 23, 42, 0.08) !important;
}

body.bg-light-custom #about {
    background: #fafafa !important;
    color: #0f172a !important;
}

body.bg-light-custom #about .about-content h3 {
    color: #0f172a !important;
}

body.bg-light-custom #about .about-content p {
    color: #475569 !important;
}

body.bg-light-custom .achievement-box {
    background: #ffffff !important;
    border: 1px solid rgba(148, 163, 184, 0.35) !important;
}

body.bg-light-custom .achievement-box h4 {
    color: #0f172a !important;
}

body.bg-light-custom .achievement-box p {
    color: #64748b !important;
}

body.bg-light-custom .team-member {
    background: #ffffff !important;
    border: 1px solid rgba(15, 23, 42, 0.08) !important;
    box-shadow: 0 10px 26px rgba(15, 23, 42, 0.06) !important;
}

body.bg-light-custom .member-info h4 {
    color: #0f172a !important;
}

body.bg-light-custom .member-info p {
    color: #64748b !important;
}

body.bg-light-custom #contact {
    background: #fafafa !important;
    color: #0f172a !important;
}

body.bg-light-custom .contact-info-card {
    background: #ffffff !important;
    border: 1px solid rgba(15, 23, 42, 0.08) !important;
    box-shadow: 0 10px 26px rgba(15, 23, 42, 0.06) !important;
}

body.bg-light-custom .contact-info-card h4 {
    color: #0f172a !important;
}

body.bg-light-custom .contact-info-card p,
body.bg-light-custom .contact-info-card .business-hours p {
    color: #475569 !important;
}

body.bg-light-custom .direction-link {
    color: var(--primary-color, #b8860b) !important;
}

body.bg-light-custom .gallery-filter .nav-pills {
    background: #eef2f7 !important;
    border: 1px solid rgba(148, 163, 184, 0.35);
}

body.bg-light-custom .gallery-filter .nav-pills .nav-link {
    color: #334155 !important;
}

body.bg-light-custom .gallery-filter .nav-pills .nav-link.active {
    color: var(--dark-color, #1a1a1a) !important;
}

/*
 * Homepage hero: photo-forward + tenant-branded scrim (uses --primary-color-rgb from tenant CSS vars).
 * Rest of the site stays on the light shell.
 */
body.bg-light-custom section#home.hero-section.tenant-brand-hero {
    color: #ffffff !important;
    background-color: #0f172a;
}

body.bg-light-custom section#home.hero-section.tenant-brand-hero .overlay {
    background: linear-gradient(
        118deg,
        rgba(var(--primary-color-rgb, 212, 175, 55), 0.22) 0%,
        rgba(15, 23, 42, 0.22) 42%,
        rgba(15, 23, 42, 0.78) 100%
    ) !important;
}

body.bg-light-custom section#home.hero-section.tenant-brand-hero .lead {
    color: rgba(255, 255, 255, 0.92) !important;
}

body.bg-light-custom section#home.hero-section.tenant-brand-hero .hero-features span {
    color: rgba(255, 255, 255, 0.96) !important;
}

body.bg-light-custom section#home.hero-section.tenant-brand-hero .services-btn {
    color: #ffffff !important;
    border-color: rgba(255, 255, 255, 0.45) !important;
    background: rgba(15, 23, 42, 0.22) !important;
    backdrop-filter: blur(8px);
}

body.bg-light-custom section#home.hero-section.tenant-brand-hero .services-btn:hover {
    background: rgba(255, 255, 255, 0.14) !important;
    color: #ffffff !important;
    border-color: rgba(var(--primary-color-rgb, 212, 175, 55), 0.85) !important;
}

body.bg-light-custom section#home.hero-section.tenant-brand-hero .badge-item {
    background: rgba(15, 23, 42, 0.48) !important;
    border: 1px solid rgba(var(--primary-color-rgb, 212, 175, 55), 0.38) !important;
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.25);
}

body.bg-light-custom section#home.hero-section.tenant-brand-hero .badge-item:hover {
    background: rgba(15, 23, 42, 0.62) !important;
}

body.bg-light-custom section#home.hero-section.tenant-brand-hero .badge-item h4 {
    color: #ffffff !important;
}

body.bg-light-custom section#home.hero-section.tenant-brand-hero .badge-item p {
    color: rgba(255, 255, 255, 0.82) !important;
}

/* Services catalog (resources/views/services.blade.php + style.css .service-header) */
body.bg-light-custom header.service-header {
    background: #fafafa !important;
    border-bottom: 1px solid rgba(148, 163, 184, 0.22);
    color: #0f172a !important;
}

body.bg-light-custom header.service-header h1 {
    color: #0f172a !important;
}

body.bg-light-custom header.service-header .lead {
    color: #475569 !important;
    opacity: 1 !important;
}

/*
 * Category & service item tiles (home + services catalog grid).
 * Keep markup aligned with resources/views/components/service-category-card.blade.php.
 */
body.bg-light-custom .tenant-category-card {
    transition: box-shadow 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
    border: 1px solid rgba(15, 23, 42, 0.06);
    background: #fff;
}

body.bg-light-custom .tenant-category-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 18px 40px rgba(15, 23, 42, 0.08);
    border-color: rgba(var(--primary-color-rgb, 212, 175, 55), 0.28);
}

body.bg-light-custom .tenant-category-card__icon {
    width: 48px;
    height: 48px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(var(--primary-color-rgb, 212, 175, 55), 0.12);
    color: var(--primary-color, #b8860b);
    font-size: 1.15rem;
}

body.bg-light-custom .tenant-category-card__icon img {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    object-fit: cover;
}

body.bg-light-custom .tenant-category-card__title {
    letter-spacing: -0.02em;
    font-weight: 600;
    color: #0f172a;
}

body.bg-light-custom .tenant-category-card--alt {
    background: #ffffff;
}

body.bg-light-custom .tenant-section-head .subtitle {
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: #64748b;
    margin-bottom: 0.35rem;
    display: block;
}

body.bg-light-custom .tenant-section-head h2 {
    letter-spacing: -0.03em;
    font-weight: 600;
    color: #0f172a;
}

body.bg-light-custom .service-section .tenant-section-head h2 {
    font-size: clamp(1.35rem, 2.4vw, 1.85rem);
}

body.bg-light-custom .catalog-toolbar,
body.bg-light-custom .service-table-card,
body.bg-light-custom .portfolio-hero,
body.bg-light-custom .portfolio-stage,
body.bg-light-custom .booking-priority-strip {
    border-radius: 18px;
}

body.bg-light-custom .catalog-toolbar,
body.bg-light-custom .service-table-card,
body.bg-light-custom .tenant-product-card,
body.bg-light-custom .gallery-item,
body.bg-light-custom .contact-info-card,
body.bg-light-custom .team-member {
    transition: transform 0.2s ease, box-shadow 0.22s ease, border-color 0.2s ease;
}

body.bg-light-custom .tenant-product-card:hover,
body.bg-light-custom .gallery-item:hover,
body.bg-light-custom .contact-info-card:hover,
body.bg-light-custom .team-member:hover {
    transform: translateY(-3px);
    box-shadow: 0 18px 34px rgba(15, 23, 42, 0.11) !important;
}

body.bg-light-custom .portfolio-filter .btn,
body.bg-light-custom .catalog-toolbar .btn-group .btn {
    min-height: 40px;
    font-size: 0.88rem;
}

body.bg-light-custom .portfolio-grid .gallery-overlay {
    backdrop-filter: blur(4px);
}
