
/* =========================================
   TITLI ENGINEERING - PREMIUM SERVICES
   Brand: #F4FAF6 + #073B2E
========================================= */

.te-services {
    --te-bg: #F4FAF6;
    --te-green: #073B2E;
    --te-white: #FFFFFF;
    --te-muted: #63766B;
    --te-border: #DCE9E0;

    background: var(--te-bg);
    padding: 105px 0;
    font-family: 'Inter', 'Segoe UI', sans-serif;
    color: var(--te-green);
    position: relative;
    overflow: hidden;
}

.te-services * {
    box-sizing: border-box;
}

.te-container {
    width: min(1440px, 92%);
    margin: auto;
}

/* SECTION HEADING */

.te-heading {
    text-align: center;
    max-width: 780px;
    margin: 0 auto 65px;
}

.te-heading-tag {
    display: inline-flex;
    align-items: center;
    gap: 13px;
    color: var(--te-green);
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 3px;
    margin-bottom: 22px;
}

.te-heading-tag span {
    width: 30px;
    height: 1px;
    background: var(--te-green);
    opacity: .5;
}

.te-heading h2 {
    color: var(--te-green);
    font-size: clamp(32px, 4vw, 51px);
    font-weight: 800;
    line-height: 1.18;
    letter-spacing: -1.8px;
    margin: 0 0 20px;
}

.te-heading h2 span {
    color: #47765C;
}

.te-heading p {
    color: var(--te-muted);
    font-size: 15px;
    line-height: 1.9;
    max-width: 690px;
    margin: auto;
}

/* MAIN LAYOUT */

.te-services-layout {
    display: grid;
    grid-template-columns: 340px minmax(0, 1fr);
    gap: 28px;
    align-items: start;
}

/* SIDEBAR */

.te-sidebar {
    background: #FFFFFF;
    border: 1px solid var(--te-border);
    border-radius: 20px;
    padding: 25px 17px;
    box-shadow: 0 15px 45px rgba(7,59,46,.055);
    position: sticky;
    top: 25px;
}

.te-sidebar-heading {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: 0 3px 20px;
}

.te-small-label {
    color: #799183;
    font-size: 9px;
    font-weight: 800;
    letter-spacing: 2px;
}

.te-sidebar-heading h3 {
    font-size: 22px;
    color: var(--te-green);
    margin: 5px 0 0;
    font-weight: 800;
}

.te-service-count {
    background: var(--te-bg);
    padding: 7px 10px;
    border-radius: 30px;
    color: var(--te-green);
    font-size: 10px;
    font-weight: 700;
    white-space: nowrap;
}

/* SEARCH */

.te-search {
    height: 45px;
    display: flex;
    align-items: center;
    gap: 12px;
    background: var(--te-bg);
    border: 1px solid var(--te-border);
    padding: 0 14px;
    border-radius: 10px;
    margin-bottom: 17px;
}

.te-search i {
    color: var(--te-green);
    font-size: 13px;
}

.te-search input {
    border: 0;
    outline: 0;
    width: 100%;
    background: transparent;
    color: var(--te-green);
    font-size: 12px;
}

.te-search input::placeholder {
    color: #91A297;
}

/* SERVICE FILTER BUTTONS */

.te-service-menu {
    display: flex;
    flex-direction: column;
    gap: 7px;
    max-height: 610px;
    overflow-y: auto;
    padding-right: 4px;
}

.te-service-menu::-webkit-scrollbar {
    width: 4px;
}

.te-service-menu::-webkit-scrollbar-thumb {
    background: #B8CDBE;
    border-radius: 10px;
}

.te-service-tab {
    width: 100%;
    min-height: 55px;
    border: 1px solid transparent;
    background: transparent;
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 9px 11px;
    text-align: left;
    border-radius: 11px;
    cursor: pointer;
    color: var(--te-green);
    transition: all .3s ease;
}

.te-tab-icon {
    flex-shrink: 0;
    width: 35px;
    height: 35px;
    border-radius: 9px;
    display: grid;
    place-items: center;
    background: #EDF5EF;
    color: var(--te-green);
    font-size: 14px;
    transition: all .3s ease;
}

.te-service-tab > span:nth-child(2) {
    font-size: 12px;
    font-weight: 700;
    line-height: 1.5;
    flex: 1;
}

.te-service-tab small {
    display: block;
    font-size: 10px;
    color: #8B9B91;
    font-weight: 500;
}

.te-tab-arrow {
    font-size: 11px;
    opacity: 0;
    transform: translateX(-5px);
    transition: .3s ease;
}

.te-service-tab:hover {
    background: var(--te-bg);
    border-color: var(--te-border);
    transform: translateX(3px);
}

.te-service-tab:hover .te-tab-arrow {
    opacity: 1;
    transform: translateX(0);
}

.te-service-tab.active {
    background: var(--te-green);
    color: #FFFFFF;
    border-color: var(--te-green);
    box-shadow: 0 7px 18px rgba(7,59,46,.16);
}

.te-service-tab.active .te-tab-icon {
    background: rgba(255,255,255,.13);
    color: white;
}

.te-service-tab.active small {
    color: rgba(255,255,255,.7);
}

.te-service-tab.active .te-tab-arrow {
    opacity: 1;
    transform: translateX(0);
    color: white;
}

/* SIDEBAR FOOTER */

.te-sidebar-footer {
    background: var(--te-bg);
    border: 1px solid var(--te-border);
    padding: 17px 13px;
    border-radius: 12px;
    margin-top: 20px;
    display: flex;
    align-items: flex-start;
    gap: 12px;
}

.te-sidebar-footer > i {
    font-size: 20px;
    margin-top: 3px;
}

.te-sidebar-footer strong,
.te-sidebar-footer span,
.te-sidebar-footer a {
    display: block;
}

.te-sidebar-footer strong {
    font-size: 12px;
    margin-bottom: 5px;
}

.te-sidebar-footer span {
    color: var(--te-muted);
    font-size: 10px;
}

.te-sidebar-footer a {
    margin-top: 9px;
    font-size: 11px;
    font-weight: 800;
    color: var(--te-green);
    text-decoration: none;
}

/* MAIN CONTENT */

.te-main-content {
    background: #FFFFFF;
    border: 1px solid var(--te-border);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 15px 45px rgba(7,59,46,.055);
}

.te-content-top {
    padding: 28px 35px 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.te-content-tag {
    display: flex;
    align-items: center;
    gap: 9px;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 1.5px;
    color: #547C62;
}

.te-content-tag i {
    font-size: 7px;
}

.te-index {
    font-size: 11px;
    font-weight: 800;
    color: #91A398;
    letter-spacing: 1px;
}

/* CONTENT BODY */

.te-content-body {
    padding: 25px 35px 30px;
    transition: opacity .2s ease, transform .2s ease;
}

.te-content-body.changing {
    opacity: 0;
    transform: translateY(8px);
}

.te-service-icon-large {
    width: 64px;
    height: 64px;
    display: grid;
    place-items: center;
    background: var(--te-green);
    color: white;
    border-radius: 16px;
    font-size: 25px;
    margin-bottom: 23px;
    box-shadow: 0 9px 20px rgba(7,59,46,.16);
}

.te-content-body h2 {
    font-size: clamp(25px, 3vw, 35px);
    line-height: 1.25;
    font-weight: 800;
    color: var(--te-green);
    letter-spacing: -.8px;
    margin: 0 0 17px;
    max-width: 700px;
}

.te-content-body > p {
    color: var(--te-muted);
    font-size: 14px;
    line-height: 1.9;
    max-width: 760px;
    margin-bottom: 32px;
}

/* FEATURES */

.te-feature-heading {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 18px;
}

.te-feature-heading span {
    font-size: 10px;
    letter-spacing: 2px;
    font-weight: 800;
    white-space: nowrap;
}

.te-feature-heading div {
    height: 1px;
    background: var(--te-border);
    flex: 1;
}

.te-feature-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 18px 25px;
}

.te-feature {
    display: flex;
    align-items: flex-start;
    gap: 12px;
}

.te-feature > span {
    flex-shrink: 0;
    width: 25px;
    height: 25px;
    border-radius: 50%;
    background: #EAF3EC;
    display: grid;
    place-items: center;
    font-size: 10px;
    color: var(--te-green);
}

.te-feature strong {
    display: block;
    font-size: 12px;
    color: var(--te-green);
    margin-bottom: 4px;
}

.te-feature small {
    color: #84958B;
    font-size: 10px;
    line-height: 1.5;
}

/* CONTENT BUTTON */

.te-content-bottom {
    margin-top: 34px;
    padding-top: 25px;
    border-top: 1px solid var(--te-border);
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 15px;
}

.te-explore-btn {
    background: var(--te-green);
    color: white;
    text-decoration: none;
    padding: 13px 17px 13px 22px;
    display: inline-flex;
    align-items: center;
    gap: 25px;
    border-radius: 8px;
    font-size: 12px;
    font-weight: 700;
    transition: .3s ease;
}

.te-explore-btn span {
    width: 25px;
    height: 25px;
    background: rgba(255,255,255,.14);
    border-radius: 50%;
    display: grid;
    place-items: center;
}

.te-explore-btn:hover {
    background: #125A43;
    color: white;
    transform: translateY(-3px);
}

.te-trust-note {
    display: flex;
    align-items: center;
    gap: 9px;
    color: #7E9285;
    font-size: 10px;
    font-weight: 600;
}

/* IMAGE PANEL */

.te-image-panel {
    height: 340px;
    position: relative;
    overflow: hidden;
    background: var(--te-green);
}

.te-image-panel > img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform .8s ease;
}

.te-image-panel:hover > img {
    transform: scale(1.04);
}

.te-image-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        90deg,
        rgba(7,59,46,.88) 0%,
        rgba(7,59,46,.45) 48%,
        rgba(7,59,46,.05) 100%
    );
}

.te-image-caption {
    position: absolute;
    left: 35px;
    bottom: 35px;
    max-width: 420px;
    color: white;
}

.te-image-caption > span {
    font-size: 9px;
    font-weight: 800;
    letter-spacing: 2px;
    opacity: .8;
}

.te-image-caption h3 {
    font-size: 26px;
    line-height: 1.25;
    font-weight: 800;
    margin: 12px 0 9px;
    color: white;
}

.te-image-caption p {
    font-size: 12px;
    color: rgba(255,255,255,.8);
    margin: 0;
}

.te-image-badge {
    position: absolute;
    right: 25px;
    bottom: 25px;
    background: rgba(244,250,246,.96);
    color: var(--te-green);
    border-radius: 12px;
    padding: 14px 18px;
    display: flex;
    align-items: center;
    gap: 12px;
    box-shadow: 0 8px 25px rgba(0,0,0,.15);
}

.te-image-badge i {
    font-size: 25px;
}

.te-image-badge span {
    font-size: 10px;
    line-height: 1.6;
}

/* BENEFITS */

.te-benefits {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    padding: 22px 30px;
    background: var(--te-bg);
}

.te-benefit {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    border-right: 1px solid var(--te-border);
}

.te-benefit:last-child {
    border: 0;
}

.te-benefit > span {
    width: 38px;
    height: 38px;
    background: white;
    border: 1px solid var(--te-border);
    border-radius: 10px;
    display: grid;
    place-items: center;
    font-size: 15px;
}

.te-benefit strong,
.te-benefit small {
    display: block;
}

.te-benefit strong {
    font-size: 11px;
    margin-bottom: 4px;
}

.te-benefit small {
    font-size: 9px;
    color: #84958B;
}

/* EMPTY SEARCH */

.te-no-results {
    text-align: center;
    padding: 25px 10px;
    color: var(--te-muted);
    font-size: 12px;
}

/* RESPONSIVE DESIGN */

@media (max-width: 1100px) {

    .te-services-layout {
        grid-template-columns: 290px minmax(0, 1fr);
        gap: 18px;
    }

    .te-content-body {
        padding: 24px;
    }

    .te-content-top {
        padding: 24px 24px 0;
    }

    .te-feature-grid {
        gap: 16px;
    }

    .te-trust-note {
        font-size: 9px;
    }
}

@media (max-width: 767px) {

    .te-services {
        padding: 65px 0;
    }

    .te-container {
        width: 92%;
    }

    .te-heading {
        margin-bottom: 35px;
    }

    .te-heading h2 {
        font-size: 32px;
        letter-spacing: -1px;
    }

    .te-heading h2 br {
        display: none;
    }

    .te-heading p {
        font-size: 13px;
        line-height: 1.8;
    }

    .te-services-layout {
        grid-template-columns: 1fr;
    }

    .te-sidebar {
        position: relative;
        top: 0;
        padding: 18px 13px;
    }

    .te-service-menu {
        display: grid;
        grid-template-columns: 1fr 1fr;
        max-height: 340px;
        gap: 7px;
    }

    .te-service-tab {
        min-height: 65px;
        gap: 7px;
        padding: 8px;
    }

    .te-tab-icon {
        width: 29px;
        height: 29px;
        font-size: 12px;
    }

    .te-service-tab > span:nth-child(2) {
        font-size: 10px;
    }

    .te-service-tab small {
        font-size: 9px;
    }

    .te-tab-arrow {
        display: none;
    }

    .te-content-top {
        padding: 22px 18px 0;
    }

    .te-content-body {
        padding: 22px 18px 25px;
    }

    .te-content-body h2 {
        font-size: 27px;
    }

    .te-content-body > p {
        font-size: 13px;
    }

    .te-feature-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .te-content-bottom {
        flex-direction: column;
        align-items: flex-start;
    }

    .te-image-panel {
        height: 280px;
    }

    .te-image-caption {
        left: 20px;
        bottom: 25px;
        max-width: 65%;
    }

    .te-image-caption h3 {
        font-size: 20px;
    }

    .te-image-badge {
        right: 12px;
        bottom: 15px;
        padding: 10px;
    }

    .te-image-badge i {
        font-size: 19px;
    }

    .te-image-badge span {
        font-size: 9px;
    }

    .te-benefits {
        padding: 17px 10px;
        gap: 5px;
    }

    .te-benefit {
        flex-direction: column;
        text-align: center;
        gap: 7px;
        padding: 5px;
    }

    .te-benefit > span {
        width: 32px;
        height: 32px;
        font-size: 12px;
    }

    .te-benefit strong {
        font-size: 9px;
    }

    .te-benefit small {
        font-size: 8px;
    }
}

@media (max-width: 380px) {

    .te-service-menu {
        grid-template-columns: 1fr;
    }

    .te-heading h2 {
        font-size: 28px;
    }

    .te-image-caption {
        max-width: 60%;
    }
}
