/* services.html — visual polish */

/* ── Page shell ── */
.page-services #pricing {
    position: relative;
    isolation: isolate;
}

.page-services #pricing::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse 80% 50% at 10% -10%, rgba(59, 130, 246, 0.12), transparent 55%),
        radial-gradient(ellipse 60% 40% at 95% 20%, rgba(99, 102, 241, 0.1), transparent 50%),
        radial-gradient(ellipse 50% 30% at 50% 100%, rgba(16, 185, 129, 0.06), transparent 45%);
    pointer-events: none;
    z-index: 0;
}

html.dark.page-services #pricing::before,
html.dark .page-services #pricing::before {
    background:
        radial-gradient(ellipse 80% 50% at 10% -10%, rgba(59, 130, 246, 0.18), transparent 55%),
        radial-gradient(ellipse 60% 40% at 95% 20%, rgba(139, 92, 246, 0.12), transparent 50%),
        radial-gradient(ellipse 50% 30% at 50% 100%, rgba(16, 185, 129, 0.08), transparent 45%);
}

.page-services #pricing > .services-content-wrap {
    position: relative;
    z-index: 1;
}

.services-content-wrap {
    width: 100%;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
    padding-left: 1rem;
    padding-right: 1rem;
    box-sizing: border-box;
}

/* ── Hero / banner ── */
#banner-section.services-hero {
    background: linear-gradient(160deg, #ffffff 0%, #f0f7ff 35%, #eef2ff 70%, #f8fafc 100%);
    overflow: hidden;
}

#banner-section.services-hero::before {
    background:
        radial-gradient(circle at 15% 40%, rgba(59, 130, 246, 0.14) 0%, transparent 42%),
        radial-gradient(circle at 85% 25%, rgba(99, 102, 241, 0.12) 0%, transparent 40%),
        radial-gradient(circle at 55% 90%, rgba(16, 185, 129, 0.08) 0%, transparent 38%);
}

#banner-section.services-hero::after {
    content: '';
    position: absolute;
    width: 420px;
    height: 420px;
    right: -120px;
    top: 20%;
    background: radial-gradient(circle, rgba(59, 130, 246, 0.15) 0%, transparent 70%);
    pointer-events: none;
    z-index: 1;
    animation: servicesOrbFloat 12s ease-in-out infinite;
}

html.dark #banner-section.services-hero {
    background: linear-gradient(160deg, #0f172a 0%, #1e293b 40%, #1e1b4b 75%, #0f172a 100%);
}

html.dark #banner-section.services-hero::before {
    background:
        radial-gradient(circle at 15% 40%, rgba(59, 130, 246, 0.2) 0%, transparent 42%),
        radial-gradient(circle at 85% 25%, rgba(139, 92, 246, 0.15) 0%, transparent 40%),
        radial-gradient(circle at 55% 90%, rgba(16, 185, 129, 0.1) 0%, transparent 38%);
}

@keyframes servicesOrbFloat {
    0%, 100% { transform: translate(0, 0) scale(1); opacity: 0.7; }
    50% { transform: translate(-24px, 16px) scale(1.05); opacity: 1; }
}

.services-hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.375rem 0.875rem;
    margin-bottom: 1rem;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: #1d4ed8;
    background: rgba(59, 130, 246, 0.1);
    border: 1px solid rgba(59, 130, 246, 0.25);
    border-radius: 9999px;
}

.services-hero-badge::before {
    content: '';
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.35);
    animation: servicesPulseDot 2s ease-in-out infinite;
}

html.dark .services-hero-badge {
    color: #93c5fd;
    background: rgba(59, 130, 246, 0.15);
    border-color: rgba(96, 165, 250, 0.35);
}

@keyframes servicesPulseDot {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.6; transform: scale(0.85); }
}

.services-hero-title {
    background: linear-gradient(135deg, #0f172a 0%, #1e40af 50%, #4f46e5 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    letter-spacing: -0.02em;
}

html.dark .services-hero-title {
    background: linear-gradient(135deg, #f8fafc 0%, #93c5fd 45%, #a78bfa 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.services-hero-lead {
    max-width: 36rem;
    margin-left: auto;
    margin-right: auto;
    font-size: 1.0625rem;
    line-height: 1.65;
}

.services-hero-stats {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.75rem;
    margin-top: 1.5rem;
    margin-bottom: 0.5rem;
}

.hero-stat {
    display: flex;
    flex-direction: column;
    align-items: center;
    min-width: 7rem;
    padding: 0.75rem 1.25rem;
    background: rgba(255, 255, 255, 0.85);
    border: 1px solid rgba(226, 232, 240, 0.9);
    border-radius: 14px;
    box-shadow: 0 4px 14px rgba(15, 23, 42, 0.06);
}

html.dark .hero-stat {
    background: rgba(30, 41, 59, 0.75);
    border-color: rgba(71, 85, 105, 0.6);
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.25);
}

.hero-stat-value {
    font-size: 1.375rem;
    font-weight: 800;
    line-height: 1.2;
    color: #1e40af;
}

html.dark .hero-stat-value {
    color: #60a5fa;
}

.hero-stat-label {
    font-size: 0.6875rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #64748b;
    margin-top: 0.125rem;
}

html.dark .hero-stat-label {
    color: #94a3b8;
}

.services-breadcrumb {
    margin-top: 1.25rem;
    padding: 0.5rem 1rem;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(255, 255, 255, 0.6);
    border: 1px solid rgba(226, 232, 240, 0.8);
    border-radius: 9999px;
    backdrop-filter: none;
}

html.dark .services-breadcrumb {
    background: rgba(30, 41, 59, 0.5);
    border-color: rgba(71, 85, 105, 0.5);
}

/* Info card — override legacy inline header (gradual HTML cleanup) */
.page-services .info-card.services-info-card .info-card-header,
.page-services .info-card.services-info-card > div[style*="flex-start"] {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    margin-bottom: 1.25rem;
}

.page-services .info-card.services-info-card .info-card-icon,
.page-services .info-card.services-info-card > div[style*="flex-start"] > div:first-child {
    flex-shrink: 0;
    width: 48px;
    height: 48px;
    background: linear-gradient(135deg, #3b82f6 0%, #4f46e5 100%) !important;
    border-radius: 14px !important;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 8px 20px rgba(59, 130, 246, 0.35);
}

.page-services .info-box.services-info-box,
.page-services .info-card .info-box[data-highlight] {
    border-radius: 14px !important;
    padding: 1rem !important;
    border: 1px solid transparent !important;
    border-left-width: 3px !important;
}

.page-services .info-card .info-box[data-highlight="price"] {
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.1) 0%, rgba(59, 130, 246, 0.02) 100%) !important;
    border-left-color: #3b82f6 !important;
}

.page-services .info-card .info-box[data-highlight="items"] {
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.1) 0%, rgba(16, 185, 129, 0.02) 100%) !important;
    border-left-color: #10b981 !important;
}

.page-services .info-card .info-box[data-highlight="timeframe"] {
    background: linear-gradient(135deg, rgba(245, 158, 11, 0.1) 0%, rgba(245, 158, 11, 0.02) 100%) !important;
    border-left-color: #f59e0b !important;
}

.page-services .info-card .info-box[data-highlight="success"] {
    background: linear-gradient(135deg, rgba(139, 92, 246, 0.1) 0%, rgba(139, 92, 246, 0.02) 100%) !important;
    border-left-color: #8b5cf6 !important;
}

/* ── Info card ── */
.info-card.services-info-card {
    max-width: calc(1200px - 2rem);
    width: calc(100% - 2rem);
    margin: 0 auto 2rem auto;
    padding: 1.5rem 1.5rem 1.25rem;
    background: linear-gradient(145deg, #ffffff 0%, #f8fafc 100%);
    border-radius: 20px;
    border: 1px solid rgba(226, 232, 240, 0.9);
    box-shadow:
        0 4px 6px -1px rgba(15, 23, 42, 0.05),
        0 12px 32px -8px rgba(59, 130, 246, 0.12);
    position: relative;
    opacity: 0;
    animation: slideDownFadeIn 0.5s ease forwards;
    overflow: hidden;
}

.info-card.services-info-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #3b82f6, #6366f1, #8b5cf6);
}

.info-card-header {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    margin-bottom: 1.25rem;
}

.info-card-icon {
    flex-shrink: 0;
    width: 48px;
    height: 48px;
    background: linear-gradient(135deg, #3b82f6 0%, #4f46e5 100%);
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 8px 20px rgba(59, 130, 246, 0.35);
}

.info-card-icon svg {
    width: 24px;
    height: 24px;
    color: white;
}

.info-card-title {
    font-size: 1.125rem;
    font-weight: 700;
    color: #0f172a;
    margin: 0 0 0.5rem 0;
}

.info-card-desc {
    font-size: 0.875rem;
    color: #64748b;
    line-height: 1.6;
    margin: 0;
}

#infoCardContent.services-info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1rem;
    max-height: 500px;
    overflow: visible;
    transition: all 0.3s ease;
}

.info-box.services-info-box {
    border-radius: 14px;
    padding: 1rem;
    cursor: pointer;
    transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
    border: 1px solid transparent;
    border-left-width: 3px;
}

.info-box.services-info-box[data-highlight="price"] {
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.08) 0%, rgba(59, 130, 246, 0.02) 100%);
    border-left-color: #3b82f6;
}

.info-box.services-info-box[data-highlight="items"] {
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.08) 0%, rgba(16, 185, 129, 0.02) 100%);
    border-left-color: #10b981;
}

.info-box.services-info-box[data-highlight="timeframe"] {
    background: linear-gradient(135deg, rgba(245, 158, 11, 0.08) 0%, rgba(245, 158, 11, 0.02) 100%);
    border-left-color: #f59e0b;
}

.info-box.services-info-box[data-highlight="success"] {
    background: linear-gradient(135deg, rgba(139, 92, 246, 0.08) 0%, rgba(139, 92, 246, 0.02) 100%);
    border-left-color: #8b5cf6;
}

.info-box-label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.5rem;
    font-weight: 600;
    font-size: 0.8125rem;
    color: #1e293b;
}

.info-box-label svg {
    width: 18px;
    height: 18px;
}

.info-box.services-info-box[data-highlight="price"] .info-box-label svg { color: #3b82f6; }
.info-box.services-info-box[data-highlight="items"] .info-box-label svg { color: #10b981; }
.info-box.services-info-box[data-highlight="timeframe"] .info-box-label svg { color: #f59e0b; }
.info-box.services-info-box[data-highlight="success"] .info-box-label svg { color: #8b5cf6; }

.info-box-text {
    font-size: 0.75rem;
    color: #64748b;
    line-height: 1.5;
    margin: 0;
}

#hideInfoCardBtn.services-info-toggle {
    position: absolute;
    top: 1rem;
    right: 1rem;
    width: 32px;
    height: 32px;
    background: rgba(15, 23, 42, 0.05);
    border: none;
    border-radius: 10px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s ease, transform 0.2s ease;
    z-index: 10;
}

#hideInfoCardIcon {
    width: 20px;
    height: 20px;
    color: #64748b;
    transition: transform 0.3s ease;
}

html.dark .info-card.services-info-card {
    background: linear-gradient(145deg, #1e293b 0%, #0f172a 100%);
    border-color: rgba(71, 85, 105, 0.5);
}

html.dark .info-card-title {
    color: #f1f5f9;
}

html.dark .info-box-label {
    color: #e2e8f0;
}

/* ── Filter bar label ── */
.page-services .filter-panel {
    padding: 1rem 1.25rem;
    border-radius: 20px;
    box-shadow:
        0 4px 6px -1px rgba(15, 23, 42, 0.06),
        0 16px 40px -12px rgba(59, 130, 246, 0.15);
}

.page-services .filter-panel::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: inherit;
    padding: 1px;
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.35), rgba(99, 102, 241, 0.15), transparent 60%);
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    pointer-events: none;
}

html.dark .page-services .filter-panel::before {
    background: linear-gradient(135deg, rgba(96, 165, 250, 0.4), rgba(139, 92, 246, 0.2), transparent 60%);
}

/* ── Store cards (no ::after — patched/on-hold use it for lock icon) ── */
.page-services .pricing-card {
    border-radius: 18px;
    overflow: visible;
}

.page-services .pricing-card.patched,
.page-services .pricing-card.on-hold,
.page-services .pricing-card.new-store {
    overflow: visible;
}

.page-services .pricing-card .card-logo {
    width: 2.75rem;
    height: 2.75rem;
    border: 2px solid rgba(226, 232, 240, 0.9);
    box-shadow: 0 4px 12px rgba(15, 23, 42, 0.08);
}

.dark .page-services .pricing-card .card-logo {
    border-color: rgba(71, 85, 105, 0.6);
}


.page-services .pricing-card .card-stats {
    flex-wrap: wrap;
    gap: 0.375rem;
    margin-top: 0.5rem;
    font-size: 0;
}

.page-services .pricing-card .card-stats span {
    display: inline-flex;
    align-items: center;
    padding: 0.2rem 0.5rem;
    font-size: 0.6875rem;
    font-weight: 600;
    color: #475569;
    background: #f1f5f9;
    border-radius: 6px;
    border: none;
}

.page-services .pricing-card .card-stats span::before {
    display: none;
}

.dark .page-services .pricing-card .card-stats span {
    color: #cbd5e1;
    background: rgba(51, 65, 85, 0.6);
}

.page-services .pricing-card .card-title a {
    transition: color 0.2s ease;
}

.page-services .pricing-card .card-title a:hover {
    color: #2563eb;
}

.dark .page-services .pricing-card .card-title a:hover {
    color: #60a5fa;
}

.page-services .pricing-grid {
    gap: 1.25rem;
}

/* Search bar polish */
.page-services .search-container {
    border-radius: 12px;
    overflow: hidden;
    box-shadow: inset 0 1px 2px rgba(15, 23, 42, 0.06);
}

.page-services .search-input {
    border-radius: 12px 0 0 12px;
    font-weight: 500;
}

.page-services .search-input:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.2);
}

.page-services .search-button {
    border-radius: 0 12px 12px 0;
}

.page-services .place-order-btn {
    letter-spacing: 0.01em;
}

/* Empty / filtered state message area */
.services-results-hint {
    grid-column: 1 / -1;
    text-align: center;
    padding: 2rem;
    color: #64748b;
    font-size: 0.9375rem;
}

@media (max-width: 640px) {
    .services-hero-stats {
        gap: 0.5rem;
    }

    .hero-stat {
        min-width: calc(50% - 0.5rem);
        flex: 1 1 calc(50% - 0.5rem);
        padding: 0.625rem 0.75rem;
    }

    .hero-stat-value {
        font-size: 1.125rem;
    }

    .info-card.services-info-card {
        width: calc(100% - 1rem);
        max-width: calc(100% - 1rem);
        padding: 1.25rem 1rem;
    }
}
