/* ==========================================================================
   Home / Index — modern redesign
   Scoped entirely under .home-page so it cannot leak into other pages
   or into the shared header / navigation / footer.
   ========================================================================== */

.home-page {
    --ts-navy-900: #0a1122;
    --ts-navy-800: #0f172a;
    --ts-navy-700: #16234a;
    --ts-navy-600: #1e293b;
    --ts-teal-600: #0d9488;
    --ts-teal-500: #0fcabf;
    --ts-teal-400: #4fe0d3;
    --ts-teal-050: #e7faf8;
    --ts-text-900: #101a2c;
    --ts-text-600: #48566a;
    --ts-text-400: #8a97a8;
    --ts-border: #e6ecf1;
    --ts-bg-alt: #f5f8fa;
    --ts-white: #ffffff;
    --ts-shadow: 0 10px 30px rgba(15, 23, 42, 0.08);
    --ts-shadow-lg: 0 20px 45px rgba(10, 17, 34, 0.18);
    color: var(--ts-text-900);
}

.home-page *,
.home-page *::before,
.home-page *::after {
    box-sizing: border-box;
}

.home-page img {
    max-width: 100%;
}

.home-page a {
    text-decoration: none;
}

.home-wrap {
    max-width: 1320px;
    margin: 0 auto;
}

.home-page section {
    position: relative;
}

/* ---------- shared section heading ---------- */
.home-section-head {
    text-align: center;
    max-width: 720px;
    margin: 0 auto 44px;
}

.home-section-head__kicker {
    display: inline-block;
    color: var(--ts-teal-600);
    font-weight: 700;
    font-size: 15px;
    margin-bottom: 10px;
}

.home-section-head__title {
    font-size: 32px;
    font-weight: 700;
    color: var(--ts-text-900);
    margin: 0 0 10px;
    line-height: 1.4;
}

.home-section-head__subtitle {
    color: var(--ts-text-600);
    font-size: 16px;
    line-height: 1.9;
    margin: 0;
}

/* ==========================================================================
   PAGE H1 — sits in the brand teal band under the restored slider
   ========================================================================== */
.home-page-h1 {
    font-size: 26px;
    font-weight: 700;
}

/* ==========================================================================
   TRUST BAR — floating panel under the slider
   ========================================================================== */
.home-trust {
    padding: 0 15px;
    margin-top: 44px;
    margin-bottom: 60px;
}

.home-trust__grid {
    max-width: 1320px;
    margin: 0 auto;
    background: var(--ts-white);
    border-radius: 16px;
    box-shadow: var(--ts-shadow-lg);
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    padding: 10px 5px;
}

.home-trust__item {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 10px 26px;
    border-inline-start: 1px solid var(--ts-border);
}

.home-trust__item:first-child {
    border-inline-start: none;
}

.home-trust__item .glyphicon {
    flex: 0 0 auto;
    width: 46px;
    height: 46px;
    border-radius: 50%;
    background: var(--ts-teal-050);
    color: var(--ts-teal-600);
    font-size: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.home-trust__item span:last-child {
    font-size: 15px;
    font-weight: 600;
    color: var(--ts-text-900);
    line-height: 1.7;
}

/* ==========================================================================
   SERVICES — main card grid
   ========================================================================== */
.home-services {
    padding: 20px 15px 70px;
    background: var(--ts-white);
}

.home-card-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 28px;
}

.home-card {
    background: var(--ts-white);
    border: 1px solid var(--ts-border);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: var(--ts-shadow);
    transition: transform .25s ease, box-shadow .25s ease;
    display: flex;
    flex-direction: column;
}

.home-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--ts-shadow-lg);
}

.home-card__media {
    position: relative;
    display: block;
    height: 170px;
    overflow: hidden;
    background: var(--ts-bg-alt);
}

.home-card__media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform .35s ease;
}

.home-card:hover .home-card__media img {
    transform: scale(1.06);
}

.home-card__icon {
    position: absolute;
    bottom: -24px;
    inset-inline-start: 20px;
    width: 52px;
    height: 52px;
    border-radius: 14px;
    background: var(--ts-teal-500);
    color: var(--ts-navy-900);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    box-shadow: 0 8px 18px rgba(15, 202, 191, .45);
}

.home-card__body {
    padding: 36px 22px 22px;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.home-card__title {
    font-size: 19px;
    font-weight: 700;
    margin: 0 0 10px;
}

.home-card__title a {
    color: var(--ts-text-900);
}

.home-card__title a:hover {
    color: var(--ts-teal-600);
}

.home-card__excerpt {
    color: var(--ts-text-600);
    font-size: 14px;
    line-height: 1.9;
    margin: 0 0 18px;
    flex: 1;
}

.home-card__link {
    color: var(--ts-teal-600);
    font-weight: 700;
    font-size: 14px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.home-card__link:hover {
    color: var(--ts-navy-700);
}

/* ---------- secondary / compact products ---------- */
.home-more {
    padding: 60px 15px;
    background: var(--ts-bg-alt);
}

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

.home-more__item {
    background: var(--ts-white);
    border: 1px solid var(--ts-border);
    border-radius: 14px;
    padding: 24px 20px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    transition: box-shadow .2s ease, transform .2s ease;
}

.home-more__item:hover {
    box-shadow: var(--ts-shadow);
    transform: translateY(-3px);
}

.home-more__item .glyphicon {
    width: 42px;
    height: 42px;
    border-radius: 10px;
    background: var(--ts-teal-050);
    color: var(--ts-teal-600);
    font-size: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.home-more__item h3 {
    font-size: 16px;
    font-weight: 700;
    margin: 0;
}

.home-more__item h3 a {
    color: var(--ts-text-900);
}

.home-more__item h3 a:hover {
    color: var(--ts-teal-600);
}

.home-more__item p {
    color: var(--ts-text-600);
    font-size: 13.5px;
    line-height: 1.8;
    margin: 0;
}

/* ==========================================================================
   GRADIENT BANNER — rounded card sitting between white sections
   ========================================================================== */
.home-banner {
    padding: 10px 15px 70px;
    background: var(--ts-white);
}

.home-banner__card {
    border-radius: 24px;
    padding: 44px 34px;
    background: linear-gradient(115deg, var(--ts-navy-800) 0%, var(--ts-navy-700) 22%, #353e69 62%, var(--ts-teal-500) 100%);
    box-shadow: var(--ts-shadow-lg);
}

.home-banner__grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}

.home-banner__item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 16px;
    color: var(--ts-white);
    padding: 0 14px;
    border-inline-start: 1px solid rgba(255, 255, 255, .25);
}

.home-banner__item:first-child {
    border-inline-start: none;
}

.home-banner__item .glyphicon {
    flex: 0 0 auto;
    width: 68px;
    height: 68px;
    border-radius: 50%;
    background: rgba(255, 255, 255, .1);
    border: 1.5px solid rgba(255, 255, 255, .45);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    transition: transform .25s ease, background-color .25s ease;
}

.home-banner__item:hover .glyphicon {
    background: rgba(255, 255, 255, .2);
    transform: translateY(-4px);
}

.home-banner__item h3 {
    font-size: 17px;
    font-weight: 700;
    margin: 0 0 6px;
}

.home-banner__item p {
    font-size: 13.5px;
    line-height: 1.8;
    margin: 0;
    color: rgba(255, 255, 255, .88);
}

/* ==========================================================================
   NEWS
   ========================================================================== */
.home-news {
    padding: 70px 15px;
    background: var(--ts-white);
}

.home-news__grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 26px;
    margin-bottom: 34px;
}

.home-news__card {
    display: flex;
    flex-direction: column;
    background: var(--ts-white);
    border: 1px solid var(--ts-border);
    border-radius: 14px;
    overflow: hidden;
    transition: box-shadow .25s ease, transform .25s ease;
}

.home-news__card:hover {
    box-shadow: var(--ts-shadow-lg);
    transform: translateY(-4px);
}

.home-news__media {
    display: block;
    height: 150px;
    background: var(--ts-bg-alt);
    overflow: hidden;
}

.home-news__media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.home-news__body {
    padding: 18px 18px 20px;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.home-news__date {
    color: var(--ts-teal-600);
    font-size: 12.5px;
    font-weight: 700;
    margin-bottom: 8px;
}

.home-news__title {
    font-size: 16px;
    font-weight: 700;
    margin: 0 0 10px;
    line-height: 1.6;
}

.home-news__title a {
    color: var(--ts-text-900);
}

.home-news__title a:hover {
    color: var(--ts-teal-600);
}

.home-news__excerpt {
    color: var(--ts-text-600);
    font-size: 13.5px;
    line-height: 1.8;
    margin: 0 0 14px;
    flex: 1;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.home-news__link {
    color: var(--ts-teal-600);
    font-weight: 700;
    font-size: 13px;
}

.home-news__link:hover {
    color: var(--ts-navy-700);
}

.home-more-link {
    text-align: center;
}

.home-more-link a {
    color: var(--ts-navy-700);
    font-weight: 700;
    font-size: 15px;
    border-bottom: 2px solid var(--ts-teal-500);
    padding-bottom: 4px;
}

.home-more-link a:hover {
    color: var(--ts-teal-600);
}

/* ==========================================================================
   NEWSLETTER
   ========================================================================== */
.home-newsletter {
    display: grid;
    grid-template-columns: 1.1fr .9fr;
}

.home-newsletter__panel {
    padding: 56px 48px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.home-newsletter__panel--form {
    background: linear-gradient(120deg, var(--ts-teal-500), var(--ts-teal-600));
    color: var(--ts-navy-900);
}

.home-newsletter__panel--form h3 {
    font-size: 24px;
    font-weight: 700;
    margin: 0 0 8px;
}

.home-newsletter__panel--form p {
    margin: 0 0 22px;
    font-size: 15px;
    color: rgba(10, 23, 34, .75);
}

.home-newsletter__panel--form .input-group .form-control {
    height: 48px;
    border: none;
    border-radius: 8px 0 0 8px;
    box-shadow: none;
}

.home-newsletter__panel--form .input-group-btn .btn {
    height: 48px;
    background: var(--ts-navy-800);
    border-color: var(--ts-navy-800);
    color: var(--ts-white);
    font-weight: 700;
    padding: 0 26px;
    border-radius: 0 8px 8px 0;
}

.home-newsletter__panel--form .input-group-btn .btn:hover {
    background: var(--ts-navy-700);
    border-color: var(--ts-navy-700);
}

#subscribe-result {
    margin-top: 14px;
}

.home-newsletter__panel--info {
    background: linear-gradient(135deg, var(--ts-navy-800), var(--ts-navy-700));
    color: var(--ts-white);
    align-items: flex-start;
    text-align: right;
}

.home-newsletter__icon {
    width: 60px;
    height: 60px;
    border-radius: 16px;
    background: rgba(15, 202, 191, .18);
    color: var(--ts-teal-400);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 26px;
    margin-bottom: 18px;
}

.home-newsletter__panel--info h3 {
    font-size: 21px;
    font-weight: 700;
    margin: 0 0 10px;
}

.home-newsletter__panel--info p {
    color: #c7d2e0;
    font-size: 14.5px;
    line-height: 1.9;
    margin: 0 0 18px;
}

.home-newsletter__panel--info a {
    color: var(--ts-teal-400);
    font-weight: 700;
    border-bottom: 2px solid var(--ts-teal-400);
    padding-bottom: 3px;
}

.home-newsletter__panel--info a:hover {
    color: var(--ts-white);
    border-color: var(--ts-white);
}

/* ==========================================================================
   CUSTOMERS
   ========================================================================== */
.home-customers {
    padding: 60px 15px 70px;
    background: var(--ts-white);
    text-align: center;
}

.home-customers .home-section-head {
    margin-bottom: 30px;
}

.home-customers #customer-slider .img-customers {
    filter: grayscale(100%);
    opacity: .65;
    transition: filter .25s ease, opacity .25s ease;
}

.home-customers #customer-slider a:hover .img-customers {
    filter: grayscale(0%);
    opacity: 1;
}

/* ==========================================================================
   RESPONSIVE
   ========================================================================== */
@media (max-width: 1200px) {
    .home-card-grid,
    .home-more__grid,
    .home-banner__grid,
    .home-news__grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 992px) {
    .home-banner__card {
        padding: 36px 26px;
    }

    .home-trust__grid {
        grid-template-columns: 1fr;
        gap: 18px;
    }

    .home-trust__item {
        border-inline-start: none;
        border-top: 1px solid var(--ts-border);
        padding-top: 18px;
    }

    .home-trust__item:first-child {
        border-top: none;
        padding-top: 10px;
    }

    .home-newsletter {
        grid-template-columns: 1fr;
    }

    .home-newsletter__panel--info {
        align-items: center;
        text-align: center;
    }
}

@media (max-width: 640px) {
    .home-card-grid,
    .home-more__grid,
    .home-banner__grid,
    .home-news__grid {
        grid-template-columns: 1fr;
    }

    .home-banner__card {
        padding: 30px 20px;
        border-radius: 18px;
    }

    .home-banner__item {
        border-inline-start: none;
        border-top: 1px solid rgba(255, 255, 255, .25);
        padding-top: 18px;
    }

    .home-banner__item:first-child {
        border-top: none;
        padding-top: 0;
    }

    .home-newsletter__panel {
        padding: 40px 24px;
    }

    .home-section-head__title {
        font-size: 26px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .home-page * {
        transition: none !important;
        animation: none !important;
    }
}
