/**
 * Formula Premium - Service 1 Template Stylesheet
 *
 * Scoped styles for the modernized Service page sections.
 * Uses theme CSS variables (--thm-primary) for color consistency.
 *
 * @package formula
 */

/* ==========================================================================
   Global & Utility Styles
   ========================================================================== */
.service-template-active .section {
    padding: 90px 0;
    position: relative;
    overflow: hidden;
}

.service-template-active .section-title-wrap {
    margin-bottom: 55px;
    text-align: center;
}

.service-template-active .section-subtitle {
    display: inline-block;
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2.5px;
    color: var(--thm-primary);
    margin-bottom: 12px;
}

.service-template-active .section-title {
    font-size: 36px;
    font-weight: 800;
    line-height: 1.3;
    color: #1e293b;
    margin-bottom: 0;
}

.svc-title-divider {
    width: 60px;
    height: 3px;
    background: var(--thm-primary);
    margin: 18px auto 0;
    border-radius: var(--thm-badge-radius, 2px);
}


/* ==========================================================================
   2. Service Cards Section
   ========================================================================== */
.svc-cards-section {
    background-color: #ffffff;
}

.svc-cards-grid {
    row-gap: 30px;
}

.svc-card {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: var(--thm-card-radius, 16px);
    padding: 40px 30px;
    text-align: center;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    height: 100%;
    position: relative;
    overflow: hidden;
}

.svc-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--thm-primary);
    transform: scaleX(0);
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    transform-origin: left;
}

.svc-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.08);
    border-color: transparent;
}

.svc-card:hover::before {
    transform: scaleX(1);
}

.svc-card-icon {
    width: 72px;
    height: 72px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 24px;
    font-size: 28px;
    color: var(--thm-primary);
    background-color: rgba(97, 206, 112, 0.1);
    transition: all 0.3s ease;
}

@supports (background-color: color-mix(in srgb, var(--thm-primary) 10%, transparent)) {
    .svc-card-icon {
        background-color: color-mix(in srgb, var(--thm-primary) 10%, transparent);
    }
}

.svc-card:hover .svc-card-icon {
    background-color: var(--thm-primary);
    color: #ffffff;
    transform: scale(1.1);
}

.svc-card-image {
    width: 100%;
    height: 180px;
    border-radius: var(--thm-card-radius, 10px);
    overflow: hidden;
    margin-bottom: 24px;
}

.svc-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.svc-card:hover .svc-card-image img {
    transform: scale(1.05);
}

.svc-card-title {
    font-size: 20px;
    font-weight: 700;
    color: #1e293b;
    margin-bottom: 14px;
}

.svc-card-title a {
    color: inherit;
    text-decoration: none;
    transition: color 0.3s ease;
}

.svc-card-title a:hover {
    color: var(--thm-primary);
}

.svc-card-text {
    font-size: 15px;
    line-height: 1.7;
    color: #64748b;
    margin-bottom: 20px;
}

.svc-card-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 14px;
    font-weight: 600;
    color: var(--thm-primary);
    text-decoration: none;
    transition: all 0.3s ease;
}

.svc-card-link i {
    font-size: 12px;
    transition: transform 0.3s ease;
}

.svc-card-link:hover {
    gap: 10px;
}

.svc-card-link:hover i {
    transform: translateX(3px);
}

/* ==========================================================================
   3. Process / How We Work Section
   ========================================================================== */
.svc-process-section {
    background: linear-gradient(135deg, #f1f5f9 0%, #e8eef6 100%);
}

.svc-process-grid {
    position: relative;
    row-gap: 30px;
}

.svc-step {
    text-align: center;
    padding: 35px 20px;
    position: relative;
}

.svc-step-number {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    background: var(--thm-primary);
    color: #ffffff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    font-weight: 800;
    margin-bottom: 24px;
    position: relative;
    z-index: 2;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.svc-step:hover .svc-step-number {
    transform: scale(1.1);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.18);
}

/* Connecting line between steps */
.svc-step.has-connector::after {
    content: '';
    position: absolute;
    top: 70px;
    right: -15%;
    width: 30%;
    height: 2px;
    background: linear-gradient(90deg, var(--thm-primary), rgba(148, 163, 184, 0.3));
    z-index: 1;
}

.svc-step-title {
    font-size: 18px;
    font-weight: 700;
    color: #1e293b;
    margin-bottom: 10px;
}

.svc-step-desc {
    font-size: 14px;
    line-height: 1.7;
    color: #64748b;
    margin-bottom: 0;
}

/* ==========================================================================
   4. Why Choose Us Section
   ========================================================================== */
.svc-why-section {
    background-color: #ffffff;
}

.svc-why-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.svc-feature {
    display: flex;
    align-items: flex-start;
    gap: 24px;
    padding: 32px 30px;
    border-radius: var(--thm-card-radius, 14px);
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-left: 4px solid var(--thm-primary);
    transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

.svc-feature:hover {
    background: #ffffff;
    transform: translateX(6px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.06);
    border-color: transparent;
    border-left-color: var(--thm-primary);
}

.svc-feature-icon {
    flex-shrink: 0;
    width: 64px;
    height: 64px;
    border-radius: var(--thm-badge-radius, 14px);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 26px;
    color: var(--thm-primary);
    background: rgba(97, 206, 112, 0.1);
    transition: all 0.3s ease;
}

@supports (background-color: color-mix(in srgb, var(--thm-primary) 10%, transparent)) {
    .svc-feature-icon {
        background: color-mix(in srgb, var(--thm-primary) 10%, transparent);
    }
}

.svc-feature:hover .svc-feature-icon {
    background: var(--thm-primary);
    color: #ffffff;
    transform: scale(1.08);
}

.svc-feature-body {
    flex: 1;
    min-width: 0;
}

.svc-feature-title {
    font-size: 19px;
    font-weight: 700;
    color: #1e293b;
    margin-bottom: 8px;
}

.svc-feature-desc {
    font-size: 15px;
    line-height: 1.7;
    color: #64748b;
    margin-bottom: 0;
}

/* ==========================================================================
   5. FAQ Accordion Section
   ========================================================================== */
.svc-faq-section {
    background: linear-gradient(135deg, #f8fafc 0%, #eef2ff 100%);
}

.svc-faq-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.svc-faq-item {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: var(--thm-card-radius, 12px);
    overflow: hidden;
    transition: all 0.3s ease;
}

.svc-faq-item:hover {
    border-color: #cbd5e1;
}

.svc-faq-item.active {
    border-color: var(--thm-primary);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.06);
}

.svc-faq-question {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 24px;
    cursor: pointer;
    user-select: none;
    gap: 16px;
}

.svc-faq-question span {
    font-size: 16px;
    font-weight: 600;
    color: #1e293b;
    flex: 1;
}

.svc-faq-icon {
    font-size: 14px;
    color: #94a3b8;
    transition: transform 0.3s ease, color 0.3s ease;
    flex-shrink: 0;
}

.svc-faq-item.active .svc-faq-icon {
    transform: rotate(180deg);
    color: var(--thm-primary);
}

.svc-faq-answer {
    padding: 0 24px 20px;
}

.svc-faq-answer p {
    font-size: 15px;
    line-height: 1.8;
    color: #64748b;
    margin: 0;
    padding-top: 4px;
    border-top: 1px solid #f1f5f9;
    padding-top: 16px;
}



/* ==========================================================================
   Dark Theme Overrides
   ========================================================================== */
.service-template-active.theme-dark .svc-hero,
.service-template-active.theme-dark .svc-process-section,
.service-template-active.theme-dark .svc-faq-section {
    background: var(--thm-black-rgb);
}

.service-template-active.theme-dark .svc-cards-section,
.service-template-active.theme-dark .svc-why-section {
    background-color: var(--thm-black);
}

.service-template-active.theme-dark .section-title,
.service-template-active.theme-dark .svc-hero-title,
.service-template-active.theme-dark .svc-card-title,
.service-template-active.theme-dark .svc-card-title a,
.service-template-active.theme-dark .svc-step-title,
.service-template-active.theme-dark .svc-feature-title,
.service-template-active.theme-dark .svc-faq-question span {
    color: var(--thm-light);
}

.service-template-active.theme-dark .svc-hero-desc,
.service-template-active.theme-dark .svc-hero-desc p,
.service-template-active.theme-dark .svc-card-text,
.service-template-active.theme-dark .svc-step-desc,
.service-template-active.theme-dark .svc-feature-desc,
.service-template-active.theme-dark .svc-faq-answer p {
    color: #cbd5e1;
}

.service-template-active.theme-dark .svc-card {
    background: var(--thm-gray-rgb);
    border-color: rgba(255, 255, 255, 0.1);
}

.service-template-active.theme-dark .svc-card:hover {
    border-color: rgba(255, 255, 255, 0.2);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

.service-template-active.theme-dark .svc-feature {
    background: var(--thm-gray-rgb);
    border-color: rgba(255, 255, 255, 0.1);
    border-left-color: var(--thm-primary);
}

.service-template-active.theme-dark .svc-feature:hover {
    background: var(--thm-black-rgb);
    border-color: rgba(255, 255, 255, 0.1);
    border-left-color: var(--thm-primary);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.service-template-active.theme-dark .svc-faq-item {
    background: var(--thm-gray-rgb);
    border-color: rgba(255, 255, 255, 0.1);
}

/* ==========================================================================
   Dual Tone Default Overrides (when section has .theme-dark)
   ========================================================================== */
.svc-cards-section.theme-dark .section-title,
.svc-cards-section.theme-dark .svc-card-title,
.svc-cards-section.theme-dark .svc-card-title a,
.svc-why-section.theme-dark .section-title,
.svc-why-section.theme-dark .svc-feature-title {
    color: var(--thm-light);
}

.svc-cards-section.theme-dark .svc-card-text,
.svc-why-section.theme-dark .svc-feature-desc {
    color: #cbd5e1;
}

.svc-cards-section.theme-dark .svc-card {
    background: var(--thm-gray-rgb);
    border-color: rgba(255, 255, 255, 0.1);
}

.svc-cards-section.theme-dark .svc-card:hover {
    border-color: rgba(255, 255, 255, 0.2);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

.svc-why-section.theme-dark .svc-feature {
    background: var(--thm-gray-rgb);
    border-color: rgba(255, 255, 255, 0.1);
    border-left-color: var(--thm-primary);
}

.svc-why-section.theme-dark .svc-feature:hover {
    background: var(--thm-black-rgb);
    border-color: rgba(255, 255, 255, 0.1);
    border-left-color: var(--thm-primary);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.service-template-active.theme-dark .svc-faq-item:hover {
    border-color: rgba(255, 255, 255, 0.2);
}

.service-template-active.theme-dark .svc-faq-answer p {
    border-top-color: rgba(255, 255, 255, 0.1);
}

/* ==========================================================================
   Light Theme Overrides (Exclusive Design)
   ========================================================================== */
.service-template-active.theme-light .svc-cards-section,
.service-template-active.theme-light .svc-why-section {
    background: linear-gradient(145deg, #f1f5f9 0%, #e2e8f0 100%);
}

.service-template-active.theme-light .svc-process-section {
    background: linear-gradient(135deg, #fdfbfb 0%, #ebedee 100%);
}

.service-template-active.theme-light .svc-faq-section,
.service-template-active.theme-light .svc-hero {
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 200%);
}

.service-template-active.theme-light .section-title,
.service-template-active.theme-light .svc-card-title,
.service-template-active.theme-light .svc-step-title,
.service-template-active.theme-light .svc-feature-title,
.service-template-active.theme-light .svc-faq-question span {
    color: #0f172a;
    letter-spacing: -0.5px;
}

.service-template-active.theme-light .svc-card-text,
.service-template-active.theme-light .svc-step-desc,
.service-template-active.theme-light .svc-feature-desc,
.service-template-active.theme-light .svc-faq-answer p {
    color: #334155;
    font-weight: 500;
}

.service-template-active.theme-light .svc-card,
.service-template-active.theme-light .svc-feature,
.service-template-active.theme-light .svc-faq-item {
    background: rgba(255, 255, 255, 0.5);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.9);
    box-shadow: 0 8px 32px rgba(15, 23, 42, 0.04);
}

.service-template-active.theme-light .svc-card:hover,
.service-template-active.theme-light .svc-feature:hover {
    background: rgba(255, 255, 255, 0.95);
    box-shadow: 0 20px 40px rgba(15, 23, 42, 0.08);
    border-color: #ffffff;
    transform: translateY(-8px) scale(1.02);
}

.service-template-active.theme-light .svc-step {
    transition: transform 0.4s ease;
}

.service-template-active.theme-light .svc-step:hover {
    transform: translateY(-8px);
}

.service-template-active.theme-light .svc-step-number {
    background: var(--thm-primary);
    box-shadow: 0 0 0 8px rgba(255, 255, 255, 0.6), 0 15px 35px rgba(15, 23, 42, 0.15);
    border: 2px solid #ffffff;
    z-index: 3;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.service-template-active.theme-light .svc-step:hover .svc-step-number {
    transform: scale(1.15);
    box-shadow: 0 0 0 12px rgba(255, 255, 255, 0.8), 0 20px 45px rgba(15, 23, 42, 0.2);
}

.service-template-active.theme-light .svc-step.has-connector::after {
    background: transparent;
    border-top: 2px dashed var(--thm-primary);
    opacity: 0.5;
    height: 0;
    z-index: 1;
}

.service-template-active.theme-light .svc-faq-item:hover {
    background: rgba(255, 255, 255, 0.95);
    border-color: #ffffff;
    box-shadow: 0 10px 25px rgba(15, 23, 42, 0.06);
}

.service-template-active.theme-light .svc-faq-item.active {
    background: rgba(255, 255, 255, 0.95);
    border-color: var(--thm-primary);
    box-shadow: 0 10px 25px rgba(15, 23, 42, 0.06);
}

/* ==========================================================================
   Responsive Breakpoints
   ========================================================================== */
@media (max-width: 991px) {
    .service-template-active .section {
        padding: 70px 0;
    }

    .svc-hero {
        padding: 80px 0 60px;
    }

    .svc-hero-title {
        font-size: 36px;
    }

    .service-template-active .section-title {
        font-size: 30px;
    }
    /* Hide connector lines on tablet */
    .svc-step.has-connector::after {
        display: none;
    }
}

@media (max-width: 767px) {
    .service-template-active .section {
        padding: 60px 0;
    }

    .svc-hero {
        padding: 60px 0 50px;
    }

    .svc-hero-title {
        font-size: 28px;
    }

    .svc-hero-desc {
        font-size: 16px;
    }

    .service-template-active .section-title {
        font-size: 26px;
    }

    .service-template-active .section-title-wrap {
        margin-bottom: 40px;
    }

    .svc-card {
        padding: 30px 24px;
    }

    .svc-step {
        padding: 25px 15px;
    }

    .svc-feature {
        padding: 24px 20px;
        gap: 18px;
    }

    .svc-feature-icon {
        width: 52px;
        height: 52px;
        font-size: 22px;
    }

    .svc-faq-question {
        padding: 16px 20px;
    }

    .svc-faq-answer {
        padding: 0 20px 16px;
    }
    .svc-cta-title {
        font-size: 22px;
    }

    .svc-cta-desc {
        font-size: 14px;
    }

    .svc-cta-btn {
        padding: 14px 28px;
        font-size: 14px;
    }
}

@media (max-width: 575px) {
    .svc-feature {
        flex-direction: column;
        align-items: flex-start;
    }
}
