/* ---------------------------------------------------------------------------
   Homepage — corporate IT layout.

   Loaded only on the homepage, after style.css and site.css, so it can restyle
   the hero and section rhythm without touching any other page. The `tl-`
   prefix keeps it from colliding with the Bootstrap template's classes.
   --------------------------------------------------------------------------- */

:root {
    --tl-navy:      #10233f;   /* deep corporate blue — headings, dark panels */
    --tl-blue:      #0b62b1;   /* primary blue — links, icons, kickers        */
    --tl-blue-soft: #e8f1fa;
    --tl-accent:    #F57905;   /* INB orange — every call to action           */
    --tl-accent-d:  #d66703;
    --tl-ink:       #2b3448;
    --tl-muted:     #64708a;
    --tl-line:      #e2e8f2;
    --tl-grey:      #f5f8fb;
    --tl-radius:    .5rem;
    --tl-shadow:    0 8px 30px rgba(16, 35, 63, .09);
}

/* --- Shared section furniture --------------------------------------------- */

.tl-section { padding: 5rem 0; background: #fff; }
.tl-section--grey { background: var(--tl-grey); }
.tl-section--tight { padding: 3.5rem 0; }

.tl-head { text-align: center; max-width: 44rem; margin: 0 auto 3rem; }
.tl-head__title {
    font-size: clamp(1.6rem, 3.2vw, 2.3rem);
    font-weight: 700;
    color: var(--tl-navy);
    margin: .35rem 0 .75rem;
    line-height: 1.25;
}
.tl-head__sub { color: var(--tl-muted); margin: 0; font-size: 1.02rem; line-height: 1.7; }
.tl-head--light .tl-head__title { color: #fff; }

.tl-kicker {
    display: inline-block;
    font-size: .78rem;
    font-weight: 700;
    letter-spacing: .16em;
    text-transform: uppercase;
    color: var(--tl-blue);
    position: relative;
    padding-bottom: .5rem;
}
.tl-kicker::after {
    content: "";
    position: absolute;
    left: 50%; bottom: 0;
    transform: translateX(-50%);
    width: 34px; height: 3px;
    background: var(--tl-accent);
    border-radius: 2px;
}
.tl-kicker--light { color: #8fc4f5; }

.tl-center { text-align: center; margin-top: 2.75rem; }

/* --- Buttons --------------------------------------------------------------- */

.tl-btn {
    display: inline-flex;
    align-items: center;
    gap: .5rem;
    padding: .8rem 1.75rem;
    border-radius: var(--tl-radius);
    font-weight: 600;
    font-size: .95rem;
    text-decoration: none;
    border: 2px solid transparent;
    transition: background-color .2s ease, color .2s ease, border-color .2s ease, transform .2s ease;
}
.tl-btn:hover { transform: translateY(-2px); }
.tl-btn--lg { padding: 1rem 2.5rem; font-size: 1.02rem; }

.tl-btn--accent { background: var(--tl-accent); color: #fff; }
.tl-btn--accent:hover { background: var(--tl-accent-d); color: #fff; }

.tl-btn--outline { border-color: rgba(255, 255, 255, .75); color: #fff; }
.tl-btn--outline:hover { background: #fff; color: var(--tl-navy); }

.tl-btn--ghost { border-color: var(--tl-line); color: var(--tl-navy); background: #fff; }
.tl-btn--ghost:hover { border-color: var(--tl-blue); color: var(--tl-blue); }

/* --- Hero ------------------------------------------------------------------ */

.tl-hero { position: relative; background: var(--tl-navy); }

.tl-hero__slide { position: relative; min-height: 560px; display: flex; align-items: center; }
.tl-hero__slide > .container { position: relative; z-index: 2; }

.tl-hero__bg {
    position: absolute; inset: 0;
    width: 100%; height: 100%;
    object-fit: cover;
    z-index: 0;
}
/* A single gradient rather than a flat wash: the card side stays legible
   while the photograph is still readable on the right. */
.tl-hero__slide::after {
    content: "";
    position: absolute; inset: 0; z-index: 1;
    background: linear-gradient(100deg, rgba(16, 35, 63, .95) 0%, rgba(16, 35, 63, .86) 42%, rgba(16, 35, 63, .35) 100%);
}

.tl-hero__card { max-width: 42rem; color: #fff; padding: 2rem 0; }

.tl-hero__eyebrow {
    display: inline-flex; align-items: center; gap: .55rem;
    background: rgba(255, 255, 255, .12);
    border: 1px solid rgba(255, 255, 255, .22);
    color: #d9e8f7;
    padding: .4rem 1rem;
    border-radius: 999px;
    font-size: .78rem;
    font-weight: 600;
    letter-spacing: .1em;
    text-transform: uppercase;
    margin-bottom: 1.25rem;
}
.tl-hero__eyebrow i { color: var(--tl-accent); }

.tl-hero__title {
    font-size: clamp(2rem, 5vw, 3.4rem);
    font-weight: 700;
    line-height: 1.12;
    margin: 0 0 1rem;
    color: #fff;
}
.tl-hero__text {
    font-size: clamp(1rem, 1.6vw, 1.15rem);
    line-height: 1.75;
    color: rgba(255, 255, 255, .86);
    margin: 0 0 2rem;
    max-width: 34rem;
}
.tl-hero__actions { display: flex; flex-wrap: wrap; gap: .75rem; }

/* The Bootstrap defaults are full-height 15%-wide bars pinned to each edge,
   which run straight through left-aligned hero copy. Reduced to a pair of
   small buttons in the bottom-right corner, where they cannot collide with the
   text no matter how long the headline runs. */
.tl-hero .carousel-control-prev,
.tl-hero .carousel-control-next {
    top: auto;
    bottom: 1.5rem;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: rgba(255, 255, 255, .14);
    border: 1px solid rgba(255, 255, 255, .3);
    opacity: 1;
    z-index: 4;
    transition: background-color .2s ease, border-color .2s ease;
}
.tl-hero .carousel-control-prev { left: auto; right: 5.25rem; }
.tl-hero .carousel-control-next { right: 1.5rem; }

.tl-hero .carousel-control-prev:hover,
.tl-hero .carousel-control-next:hover {
    background: var(--tl-accent);
    border-color: var(--tl-accent);
}
.tl-hero .carousel-control-prev-icon,
.tl-hero .carousel-control-next-icon { width: 1rem; height: 1rem; }

/* Dots sit bottom-left, under the copy, leaving the right corner to the
   arrows so the two never sit on top of each other. */
.tl-hero__dots {
    z-index: 3;
    margin: 0 0 1.9rem;
    justify-content: flex-start;
    left: 50%;
    right: auto;
    transform: translateX(-50%);
    max-width: 1320px;
    width: 100%;
    padding: 0 calc(var(--bs-gutter-x, 1.5rem) * .5);
}
.tl-hero__dots button {
    width: 28px; height: 4px;
    border-radius: 2px;
    background: rgba(255, 255, 255, .45);
    border: 0;
    transition: background-color .2s ease, width .2s ease;
}
.tl-hero__dots button.active { background: var(--tl-accent); width: 44px; }

/* --- Welcome --------------------------------------------------------------- */

.tl-welcome { text-align: center; max-width: 50rem; margin: 0 auto; }
.tl-welcome__title {
    font-size: clamp(1.6rem, 3.2vw, 2.3rem);
    font-weight: 700;
    color: var(--tl-navy);
    margin: .5rem 0 1rem;
}
.tl-welcome__text { color: var(--tl-muted); font-size: 1.08rem; line-height: 1.85; margin: 0 0 2rem; }
.tl-welcome__actions { display: flex; gap: .75rem; justify-content: center; flex-wrap: wrap; }

/* --- Services grid ---------------------------------------------------------
   Five across on a wide screen, collapsing to two on a phone — the icon-led
   grid that makes a long service list scannable rather than a wall of cards. */

.tl-services {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 1.25rem;
}
.tl-service {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: .65rem;
    padding: 2rem 1rem 1.5rem;
    background: #fff;
    border: 1px solid var(--tl-line);
    border-radius: var(--tl-radius);
    text-decoration: none;
    transition: transform .22s ease, box-shadow .22s ease, border-color .22s ease;
}
.tl-service:hover {
    transform: translateY(-5px);
    box-shadow: var(--tl-shadow);
    border-color: transparent;
}
.tl-service__icon {
    width: 68px; height: 68px;
    display: inline-flex; align-items: center; justify-content: center;
    border-radius: 50%;
    background: var(--tl-blue-soft);
    color: var(--tl-blue);
    font-size: 1.6rem;
    transition: background-color .22s ease, color .22s ease;
}
.tl-service:hover .tl-service__icon { background: var(--tl-accent); color: #fff; }
.tl-service__title { font-weight: 600; color: var(--tl-navy); font-size: .98rem; line-height: 1.4; }
.tl-service__more { font-size: .82rem; color: var(--tl-accent); font-weight: 600; }
.tl-service__more i { font-size: .7rem; transition: transform .2s ease; }
.tl-service:hover .tl-service__more i { transform: translateX(3px); }

/* --- Two paths -------------------------------------------------------------- */

.tl-paths { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.5rem; }
.tl-path {
    padding: 2.75rem 2.25rem;
    border-radius: var(--tl-radius);
    background: var(--tl-grey);
    border: 1px solid var(--tl-line);
}
.tl-path--dark { background: var(--tl-navy); border-color: var(--tl-navy); }
.tl-path--dark .tl-path__title { color: #fff; }
.tl-path--dark .tl-path__text { color: rgba(255, 255, 255, .8); }
.tl-path--dark .tl-path__icon { background: rgba(255, 255, 255, .12); color: #fff; }

.tl-path__icon {
    width: 62px; height: 62px;
    display: inline-flex; align-items: center; justify-content: center;
    border-radius: var(--tl-radius);
    background: var(--tl-blue-soft);
    color: var(--tl-blue);
    font-size: 1.5rem;
    margin-bottom: 1.25rem;
}
.tl-path__title { font-size: 1.4rem; font-weight: 700; color: var(--tl-navy); margin: 0 0 .75rem; }
.tl-path__text { color: var(--tl-muted); line-height: 1.8; margin: 0 0 1.75rem; }

/* --- Stats ------------------------------------------------------------------ */

.tl-stats {
    padding: 3.5rem 0;
    background: linear-gradient(120deg, var(--tl-navy), #0b3161);
}
.tl-stats__grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.5rem; }
.tl-stat { text-align: center; color: #fff; }
.tl-stat__icon { font-size: 1.5rem; color: var(--tl-accent); display: block; margin-bottom: .6rem; }
.tl-stat__value { display: block; font-size: 2.6rem; font-weight: 700; line-height: 1.1; }
.tl-stat__label { display: block; color: rgba(255, 255, 255, .72); font-size: .9rem; margin-top: .35rem; }

/* --- Logo rows --------------------------------------------------------------
   Greyscale until hover, so a row of mismatched brand colours still reads as
   one calm band. */

.tl-logos {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 2.5rem 3.5rem;
}
.tl-logo { display: inline-flex; align-items: center; justify-content: center; }
.tl-logo img {
    max-height: 52px;
    max-width: 160px;
    width: auto;
    object-fit: contain;
    filter: grayscale(1);
    opacity: .65;
    transition: filter .25s ease, opacity .25s ease;
}
.tl-logo:hover img { filter: grayscale(0); opacity: 1; }
.tl-logos--muted img { max-height: 44px; }

/* --- Project / solution cards ------------------------------------------------ */

.tl-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
.tl-card {
    display: flex;
    flex-direction: column;
    background: #fff;
    border: 1px solid var(--tl-line);
    border-radius: var(--tl-radius);
    overflow: hidden;
    text-decoration: none;
    transition: transform .22s ease, box-shadow .22s ease;
}
.tl-card:hover { transform: translateY(-5px); box-shadow: var(--tl-shadow); }
.tl-card__media { display: block; aspect-ratio: 16 / 10; overflow: hidden; background: var(--tl-grey); }
.tl-card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
.tl-card:hover .tl-card__media img { transform: scale(1.05); }
.tl-card__body { display: flex; flex-direction: column; gap: .5rem; padding: 1.5rem; }
.tl-card__tag {
    align-self: flex-start;
    font-size: .72rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase;
    color: var(--tl-blue); background: var(--tl-blue-soft);
    padding: .25rem .65rem; border-radius: 999px;
}
.tl-card__title { font-size: 1.12rem; font-weight: 700; color: var(--tl-navy); line-height: 1.4; }
.tl-card__text { color: var(--tl-muted); font-size: .92rem; line-height: 1.65; }
.tl-card__more { color: var(--tl-accent); font-weight: 600; font-size: .88rem; margin-top: .25rem; }
.tl-card__more i { font-size: .72rem; transition: transform .2s ease; }
.tl-card:hover .tl-card__more i { transform: translateX(3px); }

/* --- Blog ------------------------------------------------------------------- */

.tl-posts { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.5rem; }
.tl-post {
    display: flex; flex-direction: column;
    background: #fff;
    border: 1px solid var(--tl-line);
    border-radius: var(--tl-radius);
    overflow: hidden;
    transition: transform .22s ease, box-shadow .22s ease;
}
.tl-post:hover { transform: translateY(-5px); box-shadow: var(--tl-shadow); }
.tl-post__media { display: block; aspect-ratio: 16 / 10; overflow: hidden; background: var(--tl-grey); }
.tl-post__media img { width: 100%; height: 100%; object-fit: cover; }
.tl-post__body { padding: 1.35rem; display: flex; flex-direction: column; gap: .55rem; flex: 1; }

.tl-post__author { display: flex; align-items: center; gap: .6rem; }
.tl-post__avatar {
    width: 36px; height: 36px; flex: 0 0 36px;
    display: inline-flex; align-items: center; justify-content: center;
    border-radius: 50%;
    background: var(--tl-blue-soft);
    font-size: 1.05rem;
}
.tl-post__name { display: block; font-size: .85rem; font-weight: 600; color: var(--tl-navy); }
.tl-post__date { display: block; font-size: .78rem; color: var(--tl-muted); }

.tl-post__title { font-size: 1.02rem; font-weight: 700; line-height: 1.45; margin: 0; }
.tl-post__title a { color: var(--tl-navy); text-decoration: none; }
.tl-post__title a:hover { color: var(--tl-blue); }
.tl-post__text { color: var(--tl-muted); font-size: .89rem; line-height: 1.65; margin: 0; flex: 1; }
.tl-post__more { color: var(--tl-accent); font-weight: 600; font-size: .85rem; text-decoration: none; }
.tl-post__more i { font-size: .7rem; transition: transform .2s ease; }
.tl-post__more:hover i { transform: translateX(3px); }

/* --- Contact strip ----------------------------------------------------------- */

.tl-contact {
    padding: 5rem 0;
    background: linear-gradient(120deg, var(--tl-navy), #0b3161);
    color: #fff;
}
.tl-contact__grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1.5rem;
}
.tl-contact__item {
    display: flex; flex-direction: column; gap: .3rem;
    padding: 1.75rem 1.5rem;
    background: rgba(255, 255, 255, .06);
    border: 1px solid rgba(255, 255, 255, .12);
    border-radius: var(--tl-radius);
}
.tl-contact__item > i { color: var(--tl-accent); font-size: 1.35rem; margin-bottom: .5rem; }
.tl-contact__label {
    font-size: .74rem; font-weight: 700; letter-spacing: .12em;
    text-transform: uppercase; color: rgba(255, 255, 255, .55);
}
.tl-contact__value { color: #fff; text-decoration: none; line-height: 1.6; }
a.tl-contact__value:hover { color: var(--tl-accent); }

/* --- Responsive -------------------------------------------------------------- */

@media (max-width: 1199px) {
    .tl-services { grid-template-columns: repeat(3, 1fr); }
    .tl-posts    { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 991px) {
    .tl-section { padding: 3.5rem 0; }
    .tl-hero__slide { min-height: 460px; }
    .tl-paths { grid-template-columns: 1fr; }
    .tl-cards { grid-template-columns: 1fr; }
    .tl-stats__grid { grid-template-columns: repeat(2, 1fr); }
    .tl-hero__slide::after {
        background: linear-gradient(180deg, rgba(16, 35, 63, .92), rgba(16, 35, 63, .88));
    }
}

@media (max-width: 575px) {
    .tl-services { grid-template-columns: repeat(2, 1fr); }
    .tl-posts    { grid-template-columns: 1fr; }
    .tl-hero__slide { min-height: 420px; }
    .tl-path { padding: 2rem 1.5rem; }
    .tl-logos { gap: 1.75rem 2.25rem; }
    .tl-btn { width: 100%; justify-content: center; }
    .tl-hero__actions { width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
    .tl-btn:hover,
    .tl-service:hover,
    .tl-card:hover,
    .tl-post:hover { transform: none; }
    .tl-card:hover .tl-card__media img { transform: none; }
}
