/* Modern Service Page Styles for HubPatches Theme */
/* Matching the theme's design system and color variables */

/* Navigation Consistency - Ensure header styling matches across all pages */
.single-service .header-container {
    padding: 1rem !important;
}

.single-service .header {
    background: var(--white);
    box-shadow: var(--shadow);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.single-service .nav-menu {
    display: flex;
    list-style: none;
    align-items: center;
}

.single-service .nav-menu li {
    position: relative;
    list-style: none;
}

.single-service .nav-menu a {
    text-decoration: none;
    color: var(--text-color);
    font-weight: 500;
    padding: 0.5rem 1rem;
    border-radius: 0.5rem;
    transition: all 0.3s ease;
}

.single-service .nav-menu a:hover {
    color: var(--primary-color);
    background: rgba(37, 99, 235, 0.08);
}

/* Service Single Wrapper */
.service-single-wrapper {
    background: var(--light-color);
    min-height: 100vh;
}

/* Modern Service Hero Section */
.service-hero-modern {
    background: linear-gradient(135deg, var(--primary-color) 0%, #1e40af 100%);
    color: var(--white);
    padding: 5rem 0 3rem;
    position: relative;
    overflow: hidden;
}

.service-hero-modern::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="dots" width="20" height="20" patternUnits="userSpaceOnUse"><circle cx="10" cy="10" r="1" fill="rgba(255,255,255,0.1)"/></pattern></defs><rect width="100" height="100" fill="url(%23dots)"/></svg>');
    opacity: 0.3;
}

.hero-content {
    position: relative;
    z-index: 2;
}

.service-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 80px;
    height: 80px;
    background: var(--secondary-color);
    border-radius: 50%;
    margin-bottom: 1.5rem;
    font-size: 2rem;
    color: var(--white);
    box-shadow: 0 8px 25px rgba(245, 158, 11, 0.3);
    border: 3px solid rgba(255, 255, 255, 0.2);
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 800;
    margin-bottom: 1.5rem;
    line-height: 1.2;
    text-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    background: linear-gradient(135deg, var(--white), #e2e8f0);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle {
    font-size: 1.25rem;
    opacity: 0.95;
    margin-bottom: 2rem;
    line-height: 1.6;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
    max-width: 600px;
}

.hero-stats {
    display: flex;
    gap: 3rem;
    margin-bottom: 3rem;
    justify-content: center;
    flex-wrap: wrap;
}

.stat-item {
    text-align: center;
    background: rgba(255, 255, 255, 0.15);
    padding: 1.5rem;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    min-width: 140px;
    backdrop-filter: blur(10px);
}

.stat-number {
    display: block;
    font-size: 2rem;
    font-weight: 700;
    color: var(--secondary-color);
    margin-bottom: 0.5rem;
}

.stat-label {
    font-size: 0.875rem;
    opacity: 0.9;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 600;
}

.hero-actions {
    display: flex;
    gap: 1.5rem;
    justify-content: center;
    flex-wrap: wrap;
}

.hero-image {
    position: relative;
    z-index: 2;
    text-align: center;
}

.hero-image img {
    border-radius: 1rem;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    transition: all 0.3s ease;
}

.hero-image img:hover {
    transform: translateY(-10px) scale(1.02);
}

/* Service Content Section */
.service-content-section {
    background: var(--light-color);
    padding: 5rem 0;
    position: relative;
}

.service-content-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 100px;
    background: linear-gradient(180deg, var(--primary-color) 0%, var(--light-color) 100%);
    z-index: 1;
}

.service-content-section .container {
    position: relative;
    z-index: 2;
}

.content-block {
    background: var(--white);
    padding: 2.5rem;
    border-radius: 12px;
    margin-bottom: 2rem;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
    border-left: 4px solid var(--primary-color);
    transition: all 0.3s ease;
}

.content-block:hover {
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.12);
    transform: translateY(-2px);
}

.content-block h2 {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 2rem;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    position: relative;
    padding-bottom: 1rem;
}

.content-block h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 60px;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
    border-radius: 2px;
}

.content-text {
    color: var(--text-color);
    line-height: 1.8;
    font-size: 1.1rem;
}

.content-text p {
    margin-bottom: 1.5rem;
}

.content-text h3 {
    color: var(--primary-color);
    font-weight: 600;
    margin: 2rem 0 1rem;
}

/* Features Grid */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
    margin-top: 2rem;
}

.feature-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    padding: 1.25rem;
    background: var(--white);
    border-radius: 8px;
    border: 1px solid #e2e8f0;
    transition: all 0.3s ease;
}

.feature-item:hover {
    border-color: var(--primary-color);
    box-shadow: 0 4px 15px rgba(37, 99, 235, 0.1);
}

.feature-icon {
    color: var(--accent-color);
    font-size: 1.25rem;
    margin-top: 0.25rem;
    width: 20px;
    text-align: center;
}

.feature-content p {
    margin: 0;
    color: var(--text-color);
    font-weight: 500;
    line-height: 1.6;
}

/* Pricing Sidebar */
.pricing-sidebar {
    position: sticky;
    top: 2rem;
}

.sidebar-widget {
    background: var(--white);
    padding: 2rem;
    border-radius: 12px;
    margin-bottom: 1.5rem;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
    border: 1px solid #e2e8f0;
}

.sidebar-widget:hover {
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.12);
}

.sidebar-widget h3 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 2rem;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Pricing Cards */
.pricing-cards {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.pricing-card {
    background: var(--white);
    padding: 1.5rem;
    border-radius: 8px;
    border: 1px solid #e2e8f0;
    text-align: center;
    transition: all 0.3s ease;
}

.pricing-card:hover {
    border-color: var(--primary-color);
    box-shadow: 0 4px 15px rgba(37, 99, 235, 0.1);
}

.pricing-header h4 {
    margin-bottom: 1rem;
    color: var(--primary-color);
    font-size: 1.25rem;
    font-weight: 700;
}

.price {
    font-size: 2rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.pricing-description p {
    margin: 0;
    color: var(--text-color);
    font-size: 0.95rem;
    line-height: 1.6;
}

/* Payment Widget */
.payment-widget {
    background: var(--primary-color);
    color: var(--white);
}

.payment-widget h3 {
    color: var(--white);
}

.payment-methods h4 {
    color: var(--secondary-color);
    margin-bottom: 0.75rem;
    font-size: 1.1rem;
    font-weight: 600;
}

.payment-methods p {
    margin: 0;
    opacity: 0.95;
    font-size: 0.95rem;
    line-height: 1.6;
}

.order-actions {
    margin: 2rem 0;
}

.contact-actions {
    margin-top: 1rem;
}

/* Contact Widget */
.contact-widget {
    background: var(--dark-color);
    color: var(--white);
}

.contact-widget h3 {
    color: var(--white);
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 0.75rem;
    border-radius: 6px;
    background: rgba(255, 255, 255, 0.05);
}

.contact-item i {
    font-size: 1.25rem;
    color: var(--secondary-color);
    width: 24px;
    text-align: center;
}

.contact-item div {
    display: flex;
    flex-direction: column;
}

.contact-item strong {
    color: var(--secondary-color);
    font-size: 0.9rem;
    margin-bottom: 0.25rem;
    font-weight: 600;
}

.contact-item span {
    opacity: 0.95;
    font-size: 0.9rem;
}

/* Related Services */
.related-services-list {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.related-service-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    background: var(--light-color);
    border-radius: 8px;
    border: 1px solid #e2e8f0;
    transition: all 0.3s ease;
}

.related-service-item:hover {
    border-color: var(--primary-color);
    box-shadow: 0 2px 8px rgba(37, 99, 235, 0.1);
}

.related-service-item .service-icon {
    color: var(--primary-color);
    font-size: 1.25rem;
    width: 30px;
    text-align: center;
}

.service-info h4 {
    margin: 0 0 0.25rem 0;
    font-size: 1rem;
    font-weight: 600;
}

.service-info h4 a {
    color: var(--text-color);
    text-decoration: none;
    transition: color 0.3s ease;
}

.service-info h4 a:hover {
    color: var(--primary-color);
}

.service-info .price {
    font-size: 0.875rem;
    color: var(--text-light);
    font-weight: 500;
}

/* Button Styles */
.btn {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    border: 2px solid transparent;
    cursor: pointer;
    text-align: center;
    font-size: 0.9rem;
}

.btn-primary {
    background: var(--primary-color);
    color: var(--white);
}

.btn-primary:hover {
    background: #1e40af;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.2);
}

.btn-outline-light {
    background: transparent;
    color: var(--white);
    border-color: rgba(255, 255, 255, 0.5);
}

.btn-outline-light:hover {
    background: var(--white);
    color: var(--primary-color);
    border-color: var(--white);
}

.btn-outline-primary {
    background: transparent;
    color: var(--primary-color);
    border-color: var(--primary-color);
}

.btn-outline-primary:hover {
    background: var(--primary-color);
    color: var(--white);
    border-color: var(--primary-color);
}

.btn-lg {
    padding: 1.25rem 2.5rem;
    font-size: 1.1rem;
}

.btn-block {
    width: 100%;
    display: block;
}

.btn i {
    margin-right: 0.75rem;
    transition: transform 0.3s ease;
}

.btn:hover i {
    transform: translateX(2px);
}

/* FAQ Styles */
.faq-accordion {
    margin-top: 2rem;
}

.faq-item {
    border: 1px solid rgba(37, 99, 235, 0.1);
    border-radius: 1rem;
    margin-bottom: 1rem;
    overflow: hidden;
    background: var(--white);
    transition: all 0.3s ease;
}

.faq-item:hover {
    border-color: var(--primary-color);
    box-shadow: 0 4px 15px rgba(37, 99, 235, 0.1);
}

.faq-question {
    padding: 1.5rem 2rem;
    background: var(--light-color);
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: all 0.3s ease;
    border: none;
    width: 100%;
    text-align: left;
}

.faq-question:hover {
    background: rgba(37, 99, 235, 0.05);
}

.faq-question h4 {
    margin: 0;
    color: var(--primary-color);
    font-size: 1.1rem;
    font-weight: 600;
}

.faq-question i {
    color: var(--secondary-color);
    transition: transform 0.3s ease;
    font-size: 1.2rem;
}

.faq-answer {
    padding: 2rem;
    background: var(--white);
    border-top: 1px solid rgba(37, 99, 235, 0.1);
    display: none;
}

.faq-answer p {
    margin: 0;
    color: var(--text-color);
    line-height: 1.7;
    font-size: 1rem;
}

/* Bootstrap Grid System */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
}

.row {
    display: flex;
    flex-wrap: wrap;
    margin: 0 -1rem;
}

.col-lg-8 {
    flex: 0 0 66.666667%;
    max-width: 66.666667%;
    padding: 0 1rem;
}

.col-lg-4 {
    flex: 0 0 33.333333%;
    max-width: 33.333333%;
    padding: 0 1rem;
}

.align-items-center {
    align-items: center;
}

.py-5 {
    padding-top: 3rem;
    padding-bottom: 3rem;
}

.img-fluid {
    max-width: 100%;
    height: auto;
}

/* Responsive Design */
@media (max-width: 992px) {
    .col-lg-8,
    .col-lg-4 {
        flex: 0 0 100%;
        max-width: 100%;
        margin-bottom: 2rem;
    }

    .pricing-sidebar {
        position: static;
    }

    .hero-title {
        font-size: 2.5rem;
    }

    .features-grid {
        grid-template-columns: 1fr;
    }

    .hero-stats {
        gap: 1.5rem;
    }

    .stat-item {
        min-width: 120px;
        padding: 1rem 1.5rem;
    }
}

@media (max-width: 768px) {
    .hero-title {
        font-size: 2rem;
    }

    .hero-stats {
        flex-direction: column;
        align-items: center;
        gap: 1rem;
    }

    .hero-actions {
        flex-direction: column;
        align-items: center;
    }

    .content-block {
        padding: 2rem;
    }

    .sidebar-widget {
        padding: 2rem;
    }

    .container {
        padding: 0 1rem;
    }

    .service-badge {
        width: 80px;
        height: 80px;
        font-size: 2rem;
    }

    .stat-number {
        font-size: 2rem;
    }

    .pricing-card {
        padding: 1.5rem;
    }

    .feature-item {
        padding: 1rem;
    }
}

/* Animation Classes */
.animate-on-scroll {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s ease;
}

.animate-on-scroll.animated {
    opacity: 1;
    transform: translateY(0);
}

/* Loading States */
.loading {
    opacity: 0.6;
    pointer-events: none;
}

.loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 20px;
    height: 20px;
    border: 2px solid var(--primary-color);
    border-top: 2px solid transparent;
    border-radius: 50%;
    transform: translate(-50%, -50%);
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to {
        transform: translate(-50%, -50%) rotate(360deg);
    }
}