/*!
 * Titas Build Engineering Ltd. - brand stylesheet
 * Layered on Bootstrap 5.3. Edit the tokens below to re-skin the site.
 */

:root {
    /* Brand */
    --tb-navy: #06254c;
    --tb-blue: #0b3c7a;
    --tb-blue-dark: #061d3d;
    --tb-blue-light: #1a5fb4;
    --tb-orange: #f26a21;
    --tb-orange-dark: #d2540f;
    --tb-graphite: #1c2733;
    --tb-slate: #55657a;
    --tb-mist: #f5f7fa;
    --tb-line: #e5eaf1;
    --tb-white: #ffffff;

    /* Type */
    --tb-font-display: "Archivo", "Segoe UI", system-ui, sans-serif;
    --tb-font-body: "Inter", "Segoe UI", system-ui, sans-serif;

    /* Shape & depth */
    --tb-radius: 14px;
    --tb-radius-sm: 8px;
    --tb-shadow: 0 18px 40px -18px rgba(6, 37, 76, .28);
    --tb-shadow-lg: 0 28px 60px -22px rgba(6, 37, 76, .38);
    --tb-shadow-sm: 0 2px 10px rgba(28, 39, 51, .06);
    --tb-ease: cubic-bezier(.22, .61, .36, 1);
}

html { scroll-behavior: smooth; }

body {
    font-family: var(--tb-font-body);
    color: var(--tb-slate);
    background: var(--tb-white);
    line-height: 1.72;
    font-size: 1rem;
    -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--tb-font-display);
    color: var(--tb-graphite);
    font-weight: 700;
    line-height: 1.18;
    letter-spacing: -.015em;
}

p { margin-bottom: 1rem; }

a { color: var(--tb-blue); text-decoration: none; transition: color .18s var(--tb-ease); }
a:hover, a:focus { color: var(--tb-orange); }

::selection { background: var(--tb-orange); color: #fff; }

a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
    outline: 3px solid var(--tb-orange);
    outline-offset: 3px;
    border-radius: 3px;
}

.skip-link {
    position: absolute; left: -9999px; top: 0; z-index: 2000;
    background: var(--tb-graphite); color: #fff; padding: .8rem 1.4rem;
    border-radius: 0 0 var(--tb-radius-sm) 0;
}
.skip-link:focus { left: 0; color: #fff; }

/* ---------------------------------------------------------------- buttons */
.btn {
    font-family: var(--tb-font-display);
    font-weight: 600;
    letter-spacing: .01em;
    border-radius: var(--tb-radius-sm);
    padding: .8rem 1.7rem;
    border-width: 2px;
    transition: transform .2s var(--tb-ease), box-shadow .2s var(--tb-ease),
                background-color .2s var(--tb-ease), color .2s var(--tb-ease);
}
.btn:active { transform: translateY(1px); }

.btn-tb-primary {
    background: var(--tb-orange); border-color: var(--tb-orange); color: #fff;
    box-shadow: 0 10px 24px -12px rgba(242, 106, 33, .9);
}
.btn-tb-primary:hover, .btn-tb-primary:focus {
    background: var(--tb-orange-dark); border-color: var(--tb-orange-dark); color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 16px 30px -12px rgba(242, 106, 33, .95);
}

.btn-tb-secondary {
    background: var(--tb-blue); border-color: var(--tb-blue); color: #fff;
}
.btn-tb-secondary:hover, .btn-tb-secondary:focus {
    background: var(--tb-navy); border-color: var(--tb-navy); color: #fff; transform: translateY(-2px);
}

.btn-tb-outline {
    border: 2px solid rgba(255, 255, 255, .55); color: #fff; background: rgba(255, 255, 255, .06);
    backdrop-filter: blur(4px);
}
.btn-tb-outline:hover, .btn-tb-outline:focus {
    background: #fff; border-color: #fff; color: var(--tb-navy); transform: translateY(-2px);
}

/* ----------------------------------------------------------------- header */
.topbar {
    background: var(--tb-graphite);
    color: #b9c6d6;
    font-size: .85rem;
    padding: .6rem 0;
    letter-spacing: .01em;
}
.topbar a { color: #b9c6d6; }
.topbar a:hover { color: var(--tb-orange); }
.topbar i { color: var(--tb-orange); opacity: .9; }

.site-header {
    background: rgba(255, 255, 255, .96);
    backdrop-filter: saturate(180%) blur(10px);
    box-shadow: 0 1px 0 var(--tb-line), 0 6px 24px -18px rgba(6, 37, 76, .5);
    position: sticky; top: 0; z-index: 1030;
}
.site-header .navbar { min-height: 78px; }

.brand-mark {
    font-family: var(--tb-font-display);
    font-weight: 800; font-size: 1.45rem; color: var(--tb-blue);
    letter-spacing: -.03em; line-height: 1.05;
}
.brand-mark span { color: var(--tb-orange); }
.brand-sub {
    font-size: .64rem; letter-spacing: .22em; text-transform: uppercase;
    color: var(--tb-slate); font-weight: 600;
}

.navbar-nav .nav-link {
    font-family: var(--tb-font-display);
    font-weight: 600; color: var(--tb-graphite);
    padding: .55rem 0; margin: 0 .85rem; position: relative;
    font-size: .97rem;
}
.navbar-nav .nav-link::after {
    content: ""; position: absolute; left: 0; right: 100%; bottom: .1rem;
    height: 2px; background: var(--tb-orange); transition: right .25s var(--tb-ease);
}
.navbar-nav .nav-link:hover::after,
.navbar-nav .nav-link.active::after { right: 0; }
.navbar-nav .nav-link.active { color: var(--tb-blue); }

/* ------------------------------------------------------------------- hero */
.hero {
    position: relative;
    background:
        linear-gradient(105deg, rgba(6, 29, 61, .95) 0%, rgba(6, 37, 76, .82) 45%, rgba(11, 60, 122, .55) 100%),
        var(--tb-graphite);
    background-size: cover;
    background-position: center;
    color: #fff;
    padding: clamp(4.5rem, 11vw, 9rem) 0;
    overflow: hidden;
}
.hero::after {
    /* Blends the hero into the statistics band below it. */
    content: ""; position: absolute; inset: auto 0 0 0; height: 120px;
    background: linear-gradient(to bottom, transparent, rgba(6, 29, 61, .55));
    pointer-events: none;
}
.hero > .container { position: relative; z-index: 1; }

.hero h1 {
    color: #fff;
    font-size: clamp(2.1rem, 5vw, 4rem);
    font-weight: 800;
    letter-spacing: -.03em;
    line-height: 1.06;
    text-wrap: balance;
}
.hero p.lead {
    color: #cddcef; max-width: 40rem; font-size: clamp(1rem, 1.5vw, 1.15rem);
    line-height: 1.75;
}

.hero .eyebrow {
    display: inline-flex; align-items: center; gap: .7rem;
    background: rgba(242, 106, 33, .14);
    border: 1px solid rgba(242, 106, 33, .38);
    color: #ffc7a4;
    font-family: var(--tb-font-display);
    font-weight: 600; letter-spacing: .16em; text-transform: uppercase;
    font-size: .72rem; padding: .5rem 1.1rem; border-radius: 100px;
    margin-bottom: 1.5rem;
}
.hero .eyebrow::before {
    content: ""; width: 22px; height: 2px; background: var(--tb-orange); flex: none;
}

/* --------------------------------------------------------- page title bar */
.page-title {
    background:
        linear-gradient(100deg, rgba(6, 29, 61, .96) 0%, rgba(11, 60, 122, .78) 100%),
        var(--tb-graphite);
    background-size: cover; background-position: center;
    color: #fff; padding: clamp(3rem, 6vw, 5rem) 0 clamp(2.4rem, 4vw, 3.4rem);
}
.page-title h1 {
    color: #fff; margin-bottom: .4rem;
    font-size: clamp(1.8rem, 3.6vw, 2.9rem); font-weight: 800;
}
.page-title p { color: #b9cbe2; max-width: 46rem; }
.breadcrumb { margin: 0; font-size: .9rem; }
.breadcrumb a { color: #adc0d8; }
.breadcrumb a:hover { color: #fff; }
.breadcrumb .breadcrumb-item.active { color: var(--tb-orange); font-weight: 500; }
.breadcrumb-item + .breadcrumb-item::before { color: #6d8199; }

/* --------------------------------------------------------------- sections */
.section { padding: clamp(3.5rem, 7vw, 6.5rem) 0; }
.section-mist { background: var(--tb-mist); }

.section-heading { margin-bottom: 3rem; }
.section-heading .eyebrow {
    display: inline-flex; align-items: center; gap: .6rem;
    color: var(--tb-orange); font-family: var(--tb-font-display);
    font-weight: 700; letter-spacing: .18em; text-transform: uppercase;
    font-size: .74rem; margin-bottom: .85rem;
}
.section-heading .eyebrow::before,
.section-heading .eyebrow::after {
    content: ""; width: 26px; height: 2px; background: currentColor; opacity: .55;
}
.section-heading:not(.text-center) .eyebrow::after { display: none; }
.section-heading h2 {
    font-size: clamp(1.7rem, 3.2vw, 2.6rem); font-weight: 800; margin-bottom: .75rem;
    text-wrap: balance;
}
.section-heading p { max-width: 46rem; font-size: 1.03rem; }

/* ------------------------------------------------------------------ cards */
.tb-card {
    display: flex; flex-direction: column;
    background: #fff;
    border: 1px solid var(--tb-line);
    border-radius: var(--tb-radius);
    overflow: hidden;
    box-shadow: var(--tb-shadow-sm);
    transition: transform .28s var(--tb-ease), box-shadow .28s var(--tb-ease),
                border-color .28s var(--tb-ease);
}
/* Equal-height cards are opt-in via Bootstrap's .h-100 on the card itself.
   A blanket height:100% here breaks any column holding more than one card. */
.tb-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--tb-shadow);
    border-color: transparent;
}
.tb-card__body {
    padding: 1.6rem 1.5rem 1.7rem;
    display: flex; flex-direction: column; flex: 1 1 auto;
}

/* The icon overlaps the image edge. Absolute positioning is used because a
   negative margin leaves the chip painted underneath the image. */
.tb-card__body--icon { position: relative; padding-top: 2.7rem; }
.tb-card__body--icon .service-icon { position: absolute; top: -28px; left: 1.5rem; margin: 0; }
.tb-card__title {
    font-size: 1.16rem; margin-bottom: .6rem; font-weight: 700; line-height: 1.3;
}
.tb-card__title a { color: var(--tb-graphite); }
.tb-card:hover .tb-card__title a { color: var(--tb-blue); }

.tb-media {
    display: block; width: 100%; flex: none; aspect-ratio: 16 / 10;
    object-fit: cover; background: var(--tb-mist);
    transition: transform .6s var(--tb-ease);
}
.tb-card:hover .tb-media { transform: scale(1.06); }

/* Service icon lifts over the image edge so the card reads as designed. */
.service-icon {
    width: 56px; height: 56px; display: grid; place-items: center;
    border-radius: var(--tb-radius-sm);
    background: #fff; color: var(--tb-blue);
    font-size: 1.5rem; margin: 0 0 1.1rem;
    position: relative; z-index: 2;
    box-shadow: 0 10px 24px -10px rgba(6, 37, 76, .45);
    transition: background .25s var(--tb-ease), color .25s var(--tb-ease);
}
.tb-card:hover .service-icon { background: var(--tb-orange); color: #fff; }

.read-more {
    margin-top: auto; padding-top: .4rem;
    align-self: flex-start;
    font-family: var(--tb-font-display);
    font-weight: 700; font-size: .78rem; letter-spacing: .12em; text-transform: uppercase;
    display: inline-flex; align-items: center; gap: .45rem;
}
.read-more i { transition: transform .25s var(--tb-ease); }
.tb-card:hover .read-more i { transform: translateX(4px); }

.project-card { position: relative; }
.project-card .badge-category {
    position: absolute; top: 1.1rem; left: 1.1rem; z-index: 2;
    background: rgba(242, 106, 33, .96); color: #fff;
    font-family: var(--tb-font-display);
    font-size: .68rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase;
    padding: .4rem .8rem; border-radius: 100px;
    box-shadow: 0 6px 18px -8px rgba(0, 0, 0, .6);
}

/* -------------------------------------------------------------- statistics */
.stats-band {
    background:
        radial-gradient(1100px 320px at 15% -30%, rgba(26, 95, 180, .55), transparent 70%),
        linear-gradient(100deg, var(--tb-blue-dark), var(--tb-blue));
    color: #fff; padding: clamp(2.6rem, 5vw, 4rem) 0;
}
.stats-band .row > [class*="col"] { position: relative; }
@media (min-width: 992px) {
    .stats-band .row > [class*="col"] + [class*="col"]::before {
        content: ""; position: absolute; left: 0; top: 18%; bottom: 18%;
        width: 1px; background: rgba(255, 255, 255, .16);
    }
}
.stat-value {
    font-family: var(--tb-font-display);
    font-size: clamp(2.2rem, 4.4vw, 3.4rem); font-weight: 800; color: #fff;
    line-height: 1; letter-spacing: -.03em;
}
.stat-value span[aria-hidden] { color: var(--tb-orange); }
.stat-label {
    text-transform: uppercase; letter-spacing: .16em; font-size: .74rem;
    color: #a8c2e0; margin-top: .7rem; font-weight: 600;
}

/* ----------------------------------------------------------- testimonials */
.testimonial {
    background: #fff; border: 1px solid var(--tb-line);
    border-radius: var(--tb-radius); padding: 2rem 1.75rem 1.75rem;
    height: 100%; position: relative; box-shadow: var(--tb-shadow-sm);
    transition: transform .28s var(--tb-ease), box-shadow .28s var(--tb-ease);
}
.testimonial::before {
    content: "\201C";
    position: absolute; top: .1rem; right: 1.2rem;
    font-family: Georgia, serif; font-size: 5.5rem; line-height: 1;
    color: var(--tb-orange); opacity: .16;
}
.testimonial:hover { transform: translateY(-4px); box-shadow: var(--tb-shadow); }
.testimonial__quote { color: var(--tb-slate); font-size: 1.02rem; font-style: normal; }
.testimonial__name { font-family: var(--tb-font-display); font-weight: 700; color: var(--tb-graphite); margin-bottom: 0; }
.testimonial__role { font-size: .85rem; color: var(--tb-slate); }
.rating { color: var(--tb-orange); letter-spacing: .14em; font-size: .95rem; }

.avatar-circle {
    width: 52px; height: 52px; border-radius: 50%; object-fit: cover;
    background: var(--tb-mist); border: 2px solid #fff; box-shadow: var(--tb-shadow-sm);
}

/* ---------------------------------------------------------------- CTA band */
.cta-band {
    background:
        radial-gradient(700px 240px at 85% 120%, rgba(255, 255, 255, .18), transparent 70%),
        linear-gradient(100deg, var(--tb-orange), #f0902e);
    color: #fff; padding: clamp(2.6rem, 5vw, 3.6rem) 0;
}
.cta-band h2 { color: #fff; font-weight: 800; }
.cta-band p { color: rgba(255, 255, 255, .92); margin-bottom: 0; }
.cta-band .btn-light { font-weight: 700; color: var(--tb-orange-dark); }
.cta-band .btn-light:hover { transform: translateY(-2px); }

/* ----------------------------------------------------------------- footer */
.site-footer {
    background: var(--tb-graphite); color: #9fb0c4;
    padding-top: clamp(3rem, 6vw, 4.5rem);
    border-top: 4px solid var(--tb-orange);
}
.site-footer h3 {
    color: #fff; font-size: .92rem; text-transform: uppercase;
    letter-spacing: .16em; margin-bottom: 1.4rem; position: relative; padding-bottom: .7rem;
    font-weight: 700;
}
.site-footer h3::after {
    content: ""; position: absolute; left: 0; bottom: 0; width: 36px; height: 2px;
    background: var(--tb-orange);
}
.site-footer a { color: #9fb0c4; }
.site-footer a:hover { color: var(--tb-orange); }
.footer-links { list-style: none; padding: 0; margin: 0; }
.footer-links li { margin-bottom: .65rem; }
.footer-links a { transition: padding-left .22s var(--tb-ease), color .18s var(--tb-ease); }
.footer-links > li > a:hover { padding-left: 5px; }
.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, .08);
    margin-top: 3rem; padding: 1.4rem 0; font-size: .875rem;
}

.social-links a {
    width: 40px; height: 40px; display: inline-grid; place-items: center;
    border: 1px solid rgba(255, 255, 255, .18); border-radius: 50%; margin-right: .45rem;
    transition: background .22s var(--tb-ease), border-color .22s var(--tb-ease),
                transform .22s var(--tb-ease), color .22s var(--tb-ease);
}
.social-links a:hover {
    background: var(--tb-orange); border-color: var(--tb-orange);
    color: #fff; transform: translateY(-3px);
}

/* -------------------------------------------------------- whatsapp button */
.whatsapp-float {
    position: fixed; right: 20px; bottom: 20px; z-index: 1040;
    width: 58px; height: 58px; border-radius: 50%;
    background: #25d366; color: #fff;
    display: grid; place-items: center; font-size: 1.75rem;
    box-shadow: 0 12px 30px -8px rgba(37, 211, 102, .7);
    transition: transform .25s var(--tb-ease), box-shadow .25s var(--tb-ease);
}
.whatsapp-float:hover, .whatsapp-float:focus {
    background: #1da851; color: #fff; transform: scale(1.07);
}

/* ------------------------------------------------------------------ prose */
.prose { font-size: 1.03rem; color: var(--tb-slate); }
.prose img { max-width: 100%; height: auto; border-radius: var(--tb-radius); }
.prose h2 {
    margin-top: 2.4rem; margin-bottom: .9rem;
    font-size: clamp(1.3rem, 2.2vw, 1.7rem); font-weight: 700;
}
.prose h3 { margin-top: 1.8rem; margin-bottom: .7rem; font-size: 1.2rem; }
.prose ul, .prose ol { padding-left: 1.3rem; margin-bottom: 1.2rem; }
.prose li { margin-bottom: .5rem; }
.prose li::marker { color: var(--tb-orange); }
.prose > p:first-child { font-size: 1.1rem; color: #46586e; }

/* ------------------------------------------------------------------ forms */
.form-control, .form-select {
    border-radius: var(--tb-radius-sm); padding: .8rem 1rem;
    border-color: var(--tb-line); font-size: .97rem;
    transition: border-color .2s var(--tb-ease), box-shadow .2s var(--tb-ease);
}
.form-control:focus, .form-select:focus {
    border-color: var(--tb-blue-light);
    box-shadow: 0 0 0 .22rem rgba(26, 95, 180, .14);
}
.form-label {
    font-family: var(--tb-font-display);
    font-weight: 600; color: var(--tb-graphite); font-size: .92rem; margin-bottom: .4rem;
}
.form-text { font-size: .85rem; }

.info-tile { display: flex; gap: 1.1rem; align-items: flex-start; }
.info-tile__icon {
    flex: 0 0 auto; width: 50px; height: 50px; border-radius: var(--tb-radius-sm);
    background: rgba(242, 106, 33, .1); color: var(--tb-orange);
    display: grid; place-items: center; font-size: 1.3rem;
}
.info-tile strong { font-family: var(--tb-font-display); }

/* --------------------------------------------------------------- utilities */
.pagination { --bs-pagination-color: var(--tb-blue); --bs-pagination-active-bg: var(--tb-blue);
              --bs-pagination-active-border-color: var(--tb-blue); --bs-pagination-border-radius: var(--tb-radius-sm); }
.pagination .page-link { padding: .55rem .9rem; font-weight: 600; }

.alert { border-radius: var(--tb-radius-sm); border: 0; font-size: .96rem; }
.alert-success { background: #e6f6ee; color: #10683f; }
.alert-danger { background: #fdeaea; color: #a12525; }

/* Reduced-motion users get the layout without the movement. */
@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *, *::before, *::after {
        transition-duration: .01ms !important;
        animation-duration: .01ms !important;
    }
    .tb-card:hover, .testimonial:hover, .btn:hover { transform: none; }
    .tb-card:hover .tb-media { transform: none; }
}

@media (max-width: 991.98px) {
    .navbar-nav .nav-link { margin: 0; padding: .6rem 0; }
    .navbar-nav .nav-link::after { display: none; }
    .site-header .navbar { min-height: 68px; }
}
