/**
 * Module Styles: Home Service Builder Element & Single Service Detail
 * Loaded conditionally only when home-service is used or single service is viewed
 */

/* ==========================================================================
   1. HOME SERVICE BUILDER ELEMENT
   ========================================================================== */
.home-service {
    font-family: inherit;
    width: 100%;
    padding: 40px 0 30px;
    position: relative;
    box-sizing: border-box;
}

.home-service * {
    box-sizing: border-box;
}

.home-service .home-service-container {
    max-width: 1360px;
    margin: 0 auto;
    padding: 0 20px;
}

.home-service .home-service-header {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 36px;
}

.home-service .home-service-subtitle {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 8px;
}

.home-service .home-service-subline {
    display: inline-block;
    width: 24px;
    height: 3px;
    border-radius: 2px;
    background-color: var(--ltc-primary, #006039);
}

.home-service .home-service-subtext {
    font-size: 13.5px;
    font-weight: 800;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: var(--ltc-primary, #006039);
}

.home-service .home-service-title {
    font-size: 28px;
    font-weight: 800;
    color: var(--ltc-heading, #0b2e1f);
    line-height: 1.25;
    margin: 0 !important;
    padding: 0 !important;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

.home-service .home-service-view-all {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    font-size: 14.5px;
    font-weight: 700;
    color: var(--ltc-primary, #006039);
    text-decoration: none !important;
    transition: transform 0.25s ease, opacity 0.25s ease;
    white-space: nowrap;
}

.home-service .home-service-view-all:hover {
    transform: translateX(4px);
    opacity: 0.88;
}

.home-service .home-service-grid {
    display: grid;
    gap: 24px;
}

.home-service .home-service-cols-4 {
    grid-template-columns: repeat(4, 1fr);
}

.home-service .home-service-cols-3 {
    grid-template-columns: repeat(3, 1fr);
}

.home-service .home-service-cols-2 {
    grid-template-columns: repeat(2, 1fr);
}

.home-service .home-service-card {
    background: #ffffff;
    border: 1px solid var(--ltc-border, #e7ede9);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 4px 18px rgba(11, 46, 31, 0.05);
    display: flex;
    flex-direction: column;
    height: 100%;
    transition: transform 0.35s cubic-bezier(0.2, 0.8, 0.2, 1), box-shadow 0.35s ease, border-color 0.35s ease;
}

.home-service .home-service-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 16px 36px rgba(0, 96, 57, 0.12);
    border-color: #bee3d0;
}

.home-service .home-service-thumb-wrap {
    display: block;
    position: relative;
    width: 100%;
    height: 200px;
    overflow: hidden;
    background-color: #f1f5f3;
    text-decoration: none;
}

.home-service .home-service-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.6s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.home-service .home-service-card:hover .home-service-img {
    transform: scale(1.08);
}

.home-service .home-service-body {
    padding: 20px 22px 24px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.home-service .home-service-card-top {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 12px;
}

.home-service .home-service-icon-badge {
    width: 48px;
    height: 48px;
    min-width: 48px;
    border-radius: 50%;
    background-color: var(--ltc-primary, #006039);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    box-shadow: 0 4px 14px rgba(0, 96, 57, 0.28);
    transition: transform 0.3s ease;
}

.home-service .home-service-card:hover .home-service-icon-badge {
    transform: scale(1.08) rotate(4deg);
}

.home-service .home-service-icon-badge svg {
    width: 24px;
    height: 24px;
    stroke: currentColor;
    fill: none;
}

.home-service .home-service-item-title {
    font-size: 17.5px;
    font-weight: 700;
    line-height: 1.35;
    margin: 0 !important;
    padding: 0 !important;
}

.home-service .home-service-item-title a {
    color: #1a202c;
    text-decoration: none !important;
    transition: color 0.2s ease;
}

.home-service .home-service-card:hover .home-service-item-title a {
    color: var(--ltc-primary, #006039);
}

.home-service .home-service-excerpt {
    font-size: 13.5px;
    line-height: 1.6;
    color: #4a5568;
    margin: 6px 0 18px;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    flex-grow: 1;
}

.home-service .home-service-card-footer {
    margin-top: auto;
    padding-top: 4px;
}

.home-service .home-service-link-more {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 13.5px;
    font-weight: 700;
    text-decoration: none !important;
    transition: gap 0.25s ease;
}

.home-service .home-service-card:hover .home-service-link-more {
    gap: 10px;
}


/* ==========================================================================
   2. SINGLE SERVICE DETAIL PAGE (.service-single-wrapper)
   ========================================================================== */
.service-single-wrapper {
    background-color: #fbfdfc;
    padding: 40px 0 80px;
    color: var(--ltc-text, #374151);
    font-family: inherit;
}

.service-single-wrapper * {
    box-sizing: border-box;
}

.service-single-wrapper .service-container {
    max-width: 1360px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Two Column Main Grid */
.service-main-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 390px;
    gap: 32px;
    align-items: start;
}

.service-col-left {
    min-width: 0;
}

.service-col-right {
    min-width: 0;
}

.service-info-card,
.service-quote-card {
    width: 100%;
    box-sizing: border-box;
}

/* Left Column: Gallery & Slider */
.service-gallery-box {
    margin-bottom: 30px;
}

.service-main-image-wrap {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 10;
    border-radius: 14px;
    overflow: hidden;
    background-color: #e5ece8;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.service-main-image-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: opacity 0.3s ease;
}

.service-slide-counter {
    position: absolute;
    right: 18px;
    bottom: 18px;
    background: rgba(11, 46, 31, 0.75);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    color: #ffffff;
    font-size: 13px;
    font-weight: 600;
    padding: 6px 14px;
    border-radius: 999px;
    display: flex;
    align-items: center;
    gap: 6px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

/* Thumbs */
.service-thumbs-container {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 14px;
    position: relative;
}

.service-thumb-nav {
    width: 36px;
    height: 36px;
    min-width: 36px;
    border-radius: 50%;
    background: #ffffff;
    border: 1px solid var(--ltc-border, #e7ede9);
    color: var(--ltc-primary, #006039);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
    transition: all 0.2s ease;
    padding: 0;
}

.service-thumb-nav:hover {
    background: var(--ltc-primary, #006039);
    color: #ffffff;
    transform: scale(1.06);
}

.service-thumbs-track-wrap {
    overflow: hidden;
    flex-grow: 1;
}

.service-thumbs-track {
    display: flex;
    gap: 12px;
    overflow-x: auto;
    scrollbar-width: none;
    padding: 4px 2px;
}

.service-thumbs-track::-webkit-scrollbar {
    display: none;
}

.service-thumb-item {
    width: 105px;
    height: 70px;
    min-width: 105px;
    border-radius: 10px;
    overflow: hidden;
    cursor: pointer;
    border: 2.5px solid transparent;
    opacity: 0.72;
    transition: all 0.25s ease;
    background-color: #e5ece8;
}

.service-thumb-item:hover {
    opacity: 1;
}

.service-thumb-item.active {
    border-color: var(--ltc-primary, #006039);
    opacity: 1;
    transform: scale(1.03);
    box-shadow: 0 4px 10px rgba(0, 96, 57, 0.2);
}

.service-thumb-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* Tabs */
.service-tabs-wrapper {
    background: #ffffff;
    border: 1px solid var(--ltc-border, #e7ede9);
    border-radius: 14px;
    padding: 24px 28px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.service-tabs-header {
    display: flex;
    gap: 8px;
    border-bottom: 2px solid #edf3ef;
    padding-bottom: 12px;
    overflow-x: auto;
    scrollbar-width: none;
}

.service-tabs-header::-webkit-scrollbar {
    display: none;
}

.service-tab-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 18px;
    border: none;
    background: transparent;
    color: #4b5563;
    font-size: 14.5px;
    font-weight: 700;
    border-radius: 8px;
    cursor: pointer;
    white-space: nowrap;
    transition: all 0.2s ease;
}

.service-tab-btn:hover {
    color: var(--ltc-primary, #006039);
    background: #f0f7f3;
}

.service-tab-btn.active {
    color: var(--ltc-primary, #006039);
    background: var(--ltc-primary-light, #e6f3ec);
}

.service-tab-btn svg {
    stroke: currentColor;
}

.service-tabs-content {
    padding-top: 24px;
}

.service-tab-pane {
    display: none;
}

.service-tab-pane.active {
    display: block;
    animation: ltcFadeIn 0.3s ease;
}

.service-pane-title {
    font-size: 20px;
    font-weight: 800;
    color: var(--ltc-primary, #006039);
    text-transform: uppercase;
    margin: 0 0 16px !important;
}

.service-pane-desc {
    font-size: 15px;
    line-height: 1.75;
    color: #374151;
}

.service-pane-desc p {
    margin-bottom: 14px;
}

/* Highlights */
.service-highlights-box {
    margin-top: 36px;
    padding-top: 24px;
    border-top: 1px dashed #d1e3d9;
}

.service-highlights-title {
    font-size: 16px;
    font-weight: 800;
    color: #111827;
    margin: 0 0 18px !important;
    text-transform: uppercase;
    display: flex;
    align-items: center;
    gap: 8px;
}

.service-highlights-title .highlight-bar {
    color: var(--ltc-primary, #006039);
    font-weight: 900;
}

.service-highlights-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
}

.service-highlight-item {
    border: 1px solid var(--ltc-border, #e7ede9);
    border-radius: 8px;
    background: #fbfdfc;
    padding: 20px 14px;
    text-align: center;
    transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.service-highlight-item:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 18px rgba(0, 96, 57, 0.08);
    border-color: #bee3d0;
}

.service-highlight-item .highlight-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 12px;
}

.service-highlight-item .highlight-label {
    font-size: 13.5px;
    font-weight: 700;
    color: #1f2937;
    line-height: 1.4;
}

/* Process Steps (Tab 2) */
.service-process-list {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.process-step-item {
    display: flex;
    gap: 20px;
    padding: 16px 20px;
    background: #f9fbf9;
    border: 1px solid var(--ltc-border, #e7ede9);
    border-radius: 12px;
    transition: all 0.2s ease;
}

.process-step-item:hover {
    border-color: #bee3d0;
    box-shadow: 0 4px 14px rgba(0, 96, 57, 0.06);
}

.process-step-item .step-num {
    font-size: 26px;
    font-weight: 900;
    color: var(--ltc-primary, #006039);
    font-family: inherit;
    line-height: 1;
    min-width: 40px;
}

.process-step-item .step-content h4 {
    font-size: 16px;
    font-weight: 700;
    color: #111827;
    margin: 0 0 6px !important;
}

.process-step-item .step-content p {
    font-size: 14px;
    color: #4b5563;
    line-height: 1.6;
    margin: 0 !important;
}

/* Right Column: Service Info Card */
.service-info-card {
    background: #ffffff;
    border: 1px solid var(--ltc-border, #e7ede9);
    border-radius: 14px;
    padding: 28px 24px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.service-info-header {
    font-size: 16.5px;
    font-weight: 800;
    color: var(--ltc-primary, #006039);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin: 0 0 20px !important;
    padding-bottom: 12px;
    border-bottom: 2px solid #edf3ef;
}

.service-info-list {
    display: flex;
    flex-direction: column;
}

.service-info-row {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 12px 0;
    border-bottom: 1px solid #f1f5f3;
    font-size: 14px;
}

.service-info-row:last-child {
    border-bottom: none;
}

.service-info-row .info-icon {
    width: 32px;
    height: 32px;
    min-width: 32px;
    border-radius: 50%;
    background-color: var(--ltc-primary-light, #e6f3ec);
    color: var(--ltc-primary, #006039);
    display: flex;
    align-items: center;
    justify-content: center;
}

.service-info-row .info-label {
    width: 125px;
    min-width: 125px;
    color: var(--ltc-text-muted, #6b7280);
    font-size: 13.5px;
}

.service-info-row .info-value {
    color: #111827;
    font-weight: 600;
    line-height: 1.45;
    flex-grow: 1;
}

.service-info-cta {
    margin-top: 22px;
}

.service-btn-consult {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    width: 100%;
    padding: 14px 20px;
    border-radius: 999px;
    background-color: var(--ltc-primary, #006039);
    color: #ffffff !important;
    font-size: 14px;
    font-weight: 700;
    text-transform: uppercase;
    text-decoration: none !important;
    letter-spacing: 0.5px;
    box-shadow: 0 6px 16px rgba(0, 96, 57, 0.28);
    transition: background-color 0.25s ease, transform 0.25s ease;
}

.service-btn-consult:hover {
    background-color: var(--ltc-primary-dark, #004d2e);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0, 96, 57, 0.35);
}

/* Right Column: Quote Card */
.service-quote-card {
    margin-top: 28px;
    background: #ffffff;
    border: 1px solid var(--ltc-border, #e7ede9);
    border-radius: 14px;
    padding: 26px 24px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
    position: relative;
}

.service-quote-symbol {
    font-size: 48px;
    line-height: 1;
    font-family: Georgia, serif;
    color: var(--ltc-primary, #006039);
    font-weight: bold;
    margin-bottom: 6px;
}

.service-quote-text {
    font-size: 14.5px;
    font-style: italic;
    font-weight: 600;
    color: #1f2937;
    line-height: 1.65;
    margin-bottom: 12px;
}

.service-quote-author {
    font-size: 13px;
    font-weight: 600;
    color: var(--ltc-text-muted, #6b7280);
    margin-bottom: 18px;
}

.service-quote-photo {
    width: 100%;
    height: 190px;
    border-radius: 12px;
    overflow: hidden;
    background-color: #e5ece8;
}

.service-quote-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* Actual Images Section */
.service-actual-section {
    margin-top: 50px;
}

.service-actual-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 22px;
}

.service-actual-title {
    font-size: 20px;
    font-weight: 800;
    color: var(--ltc-heading, #0b2e1f);
    text-transform: uppercase;
    margin: 0 !important;
}

.service-actual-navs {
    display: flex;
    gap: 8px;
}

.service-actual-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    overflow-x: auto;
    scroll-behavior: smooth;
}

/* CTA Banner */
.service-cta-banner {
    margin-top: 55px;
    border-radius: 18px;
    background: linear-gradient(135deg, #eaf6ef 0%, #d5eedf 60%, #c4e7d4 100%);
    padding: 38px 44px;
    position: relative;
    overflow: hidden;
    border: 1px solid #cce3d5;
}

.service-cta-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 30px;
}

.service-cta-eyebrow {
    font-size: 13px;
    font-weight: 800;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: var(--ltc-primary, #006039);
    margin-bottom: 6px;
}

.service-cta-headline {
    font-size: 24px;
    font-weight: 800;
    color: #0b3020;
    line-height: 1.35;
    margin: 0 0 10px !important;
}

.service-cta-desc {
    font-size: 14.5px;
    color: #2d3748;
    margin: 0 !important;
}

.service-cta-actions {
    display: flex;
    align-items: center;
    gap: 14px;
    flex-shrink: 0;
}

/* Other Services */
.service-other-section {
    margin-top: 55px;
}

.service-other-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 24px;
}

.service-other-title {
    font-size: 20px;
    font-weight: 800;
    color: var(--ltc-heading, #0b2e1f);
    text-transform: uppercase;
    margin: 0 !important;
}

.service-other-view-all {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 14px;
    font-weight: 700;
    color: var(--ltc-primary, #006039);
    text-decoration: none !important;
    transition: transform 0.25s ease;
}

.service-other-view-all:hover {
    transform: translateX(4px);
}

.service-other-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 22px;
}

.service-other-card {
    background: #ffffff;
    border: 1px solid var(--ltc-border, #e7ede9);
    border-radius: 14px;
    overflow: hidden;
    text-decoration: none !important;
    color: inherit !important;
    display: flex;
    flex-direction: column;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
    transition: transform 0.3s cubic-bezier(0.2, 0.8, 0.2, 1), box-shadow 0.3s ease, border-color 0.3s ease;
}

.service-other-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 28px rgba(0, 96, 57, 0.12);
    border-color: #bee3d0;
}

.s-card-thumb {
    width: 100%;
    height: 180px;
    overflow: hidden;
    background-color: #e5ece8;
}

.s-card-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.5s ease;
}

.service-other-card:hover .s-card-thumb img {
    transform: scale(1.08);
}

.s-card-body {
    padding: 16px 18px 20px;
    position: relative;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.s-card-title {
    font-size: 16px;
    font-weight: 700;
    color: #111827;
    margin: 0 0 10px !important;
    line-height: 1.35;
}

.s-card-excerpt {
    font-size: 13.5px;
    line-height: 1.6;
    color: #4b5563;
    margin-bottom: 14px;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    flex-grow: 1;
}

.s-card-more {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    font-weight: 700;
    color: var(--ltc-primary, #006039);
    margin-top: auto;
    transition: gap 0.25s ease;
}

.service-other-card:hover .s-card-more {
    gap: 9px;
}

/* Responsive */
@media (max-width: 1200px) {
    .service-main-grid {
        grid-template-columns: minmax(0, 1fr) 350px;
        gap: 24px;
    }
    .service-highlights-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 1024px) {
    .service-main-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    .service-actual-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .service-other-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .service-cta-inner {
        flex-direction: column;
        align-items: flex-start;
    }
}

@media (max-width: 640px) {
    .service-single-wrapper {
        padding: 24px 0 50px;
    }
    .service-highlights-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .service-actual-grid {
        grid-template-columns: 1fr;
    }
    .service-other-grid {
        grid-template-columns: 1fr;
    }
    .service-cta-banner {
        padding: 28px 20px;
    }
    .service-cta-headline {
        font-size: 19px;
    }
    .service-cta-actions {
        flex-direction: column;
        width: 100%;
    }
    .service-cta-actions a {
        width: 100%;
        justify-content: center;
    }
}
