/********** Trevix Design System **********/

:root {
    --primary: #f07f22;
    --secondary: #12315c;
    --light: #f5f7fb;
    --dark: #0f1f36;
    --surface: rgba(255, 255, 255, 0.88);
    --border-soft: rgba(18, 49, 92, 0.10);
    --text-main: #243447;
    --text-muted: #5d6b7c;
    --heading-font: "Sora", sans-serif;
    --body-font: "Manrope", sans-serif;
    --shadow-sm: 0 18px 45px rgba(15, 31, 54, 0.08);
    --shadow-md: 0 24px 65px rgba(15, 31, 54, 0.14);
    --radius-lg: 24px;
    --radius-md: 18px;
    --radius-sm: 14px;
}

/*** Base ***/
html {
    scroll-behavior: smooth;
}

body {
    overflow-x: hidden;
    font-family: var(--body-font);
    color: var(--text-main);
    background:
        radial-gradient(circle at top left, rgba(240, 127, 34, 0.12), transparent 26%),
        radial-gradient(circle at top right, rgba(18, 49, 92, 0.11), transparent 34%),
        linear-gradient(180deg, #f7f8fb 0%, #eef3f8 100%);
}

h1, h2, h3, h4, h5, h6,
.display-1, .display-2, .display-3, .display-4, .display-5, .display-6,
.navbar-brand h1 {
    font-family: var(--heading-font);
    letter-spacing: -0.03em;
    color: var(--dark);
}

p, span, small, .text-body {
    color: var(--text-muted);
}

a {
    color: var(--secondary);
    transition: all .25s ease;
}

a:hover {
    color: var(--primary);
}

.eyebrow {
    display: inline-block;
    margin-bottom: 14px;
    color: var(--primary);
    font-size: .85rem;
    font-weight: 700;
    letter-spacing: .12em;
    text-transform: uppercase;
}

.eyebrow--light {
    color: rgba(255, 255, 255, .8);
}

/*** Spinner ***/
#spinner {
    opacity: 0;
    visibility: hidden;
    transition: opacity .5s ease-out, visibility 0s linear .5s;
    z-index: 99999;
}

#spinner.show {
    transition: opacity .5s ease-out, visibility 0s linear 0s;
    visibility: visible;
    opacity: 1;
}

/*** Back to top ***/
.back-to-top {
    position: fixed;
    display: none;
    right: 30px;
    bottom: 30px;
    z-index: 99;
}

@media (max-width: 767.98px) {
    .back-to-top {
        right: 16px;
        bottom: 16px;
    }
}

/*** Buttons ***/
.btn {
    transition: .3s;
    border-radius: var(--radius-sm);
    font-weight: 600;
    letter-spacing: .01em;
}

.btn.btn-primary,
.btn.btn-link {
    color: #ffffff;
}

.nav-cta,
.footer-cta,
.btn.btn-primary {
    border: 0;
    border-radius: 999px;
    padding: .9rem 1.5rem;
    font-weight: 800;
    background: linear-gradient(135deg, #f07f22 0%, #ff9a43 100%);
    box-shadow: 0 14px 34px rgba(240, 127, 34, 0.24);
}

.btn.btn-primary:hover,
.nav-cta:hover,
.footer-cta:hover {
    transform: translateY(-1px);
    box-shadow: 0 18px 38px rgba(240, 127, 34, 0.32);
    color: #ffffff;
}

.btn-square,
.btn-sm-square,
.btn-lg-square {
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: normal;
}

.btn-square {
    width: 38px;
    height: 38px;
}

.btn-sm-square {
    width: 32px;
    height: 32px;
}

.btn-lg-square {
    width: 48px;
    height: 48px;
}

.btn-lg-square.bg-primary,
.btn-square.bg-primary {
    box-shadow: 0 14px 34px rgba(18, 49, 92, 0.18);
}

@media (max-width: 575.98px) {
    .btn.py-3.px-5,
    .btn.py-3.px-4 {
        width: 100%;
        padding-left: 1.25rem !important;
        padding-right: 1.25rem !important;
    }
}

/*** Topbar ***/
.site-topbar {
    background: linear-gradient(90deg, #11223b 0%, #173e72 100%);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.topbar-pill {
    display: inline-flex;
    align-items: center;
    padding: .45rem .85rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.08);
    color: rgba(255, 255, 255, 0.86);
    backdrop-filter: blur(8px);
}

.topbar-pill small,
.topbar-note {
    color: inherit;
}

/*** Navbar ***/
.site-navbar {
    top: 14px;
    margin: 14px auto 0;
    width: min(1240px, calc(100% - 24px));
    border: 1px solid rgba(255, 255, 255, 0.72);
    border-radius: var(--radius-lg);
    background: rgba(255, 255, 255, 0.94);
    backdrop-filter: blur(18px);
    box-shadow: var(--shadow-sm);
    transition: box-shadow .3s ease;
}

.navbar-brand h1 {
    display: flex;
    align-items: center;
    font-size: 1.85rem;
}

.brand-lockup img {
    max-height: 52px;
}

.navbar .navbar-nav {
    gap: .5rem;
}

.navbar .navbar-nav .nav-link {
    margin: 0;
    padding: .75rem 1rem;
    border-radius: 999px;
    font-weight: 700;
    color: var(--dark);
}

.navbar .navbar-nav .nav-link:hover,
.navbar .navbar-nav .nav-link.active {
    color: var(--secondary);
    background: rgba(18, 49, 92, 0.08);
}

.navbar-toggler {
    border: 0;
    box-shadow: none !important;
}

@media (max-width: 991.98px) {
    .site-navbar {
        top: 0;
        margin: 0;
        width: 100%;
        border-radius: 0 0 var(--radius-lg) var(--radius-lg);
    }

    .navbar {
        padding-left: 1rem !important;
        padding-right: 1rem !important;
    }

    .navbar .navbar-nav {
        gap: 0;
        padding: 1rem 0 0;
    }

    .navbar .navbar-nav .nav-link {
        border-bottom: 1px solid rgba(1, 10, 53, .08);
        border-radius: 0;
    }

    .navbar .navbar-nav .nav-link:last-child {
        border-bottom: 0;
    }

    .nav-cta {
        width: 100%;
    }
}

@media (max-width: 767.98px) {
    .navbar-brand h1 {
        font-size: 1.55rem;
    }
}

/*** Hero carousel ***/
.carousel-caption {
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    z-index: 1;
    position: relative;
    overflow: hidden;
    background: linear-gradient(160deg, #16274a 0%, #0a1830 100%);
}

.carousel-caption::after {
    content: "";
    position: absolute;
    inset: auto -10% -35% auto;
    width: 420px;
    height: 420px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(240, 127, 34, 0.22), transparent 68%);
    pointer-events: none;
}

.carousel-caption h1 {
    max-width: 14ch;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.04;
    text-wrap: balance;
    color: #ffffff;
}

.carousel-caption p {
    color: rgba(255, 255, 255, .78) !important;
}

.hero-kicker {
    display: inline-block;
    margin-bottom: 16px;
    padding: 8px 14px;
    border: 1px solid rgba(255, 255, 255, .22);
    border-radius: 999px;
    color: #fff;
    font-size: .85rem;
    font-weight: 600;
    letter-spacing: .04em;
    background: rgba(255, 255, 255, .1);
    box-shadow: 0 10px 30px rgba(0, 0, 0, .14);
}

.carousel-control-prev,
.carousel-control-next {
    width: 15%;
}

.carousel-control-prev-icon,
.carousel-control-next-icon {
    width: 3rem;
    height: 3rem;
    background-color: var(--dark);
    border: 12px solid var(--dark);
    border-radius: 3rem;
}

@media (max-width: 991.98px) {
    .carousel-caption h1 {
        max-width: none;
    }
}

@media (max-width: 767.98px) {
    .carousel-caption {
        align-items: flex-end;
        padding: 1.5rem;
        padding-bottom: 2rem;
        text-align: left;
    }

    .carousel-caption .col-xl-8,
    .carousel-caption .col-lg-9 {
        padding-top: 1rem !important;
    }

    .carousel-caption .btn {
        width: 100%;
        max-width: 320px;
    }

    .carousel-caption p.fs-5 {
        font-size: 1rem !important;
        line-height: 1.6;
        margin-left: 0 !important;
        margin-right: 0 !important;
    }

    .carousel-control-prev,
    .carousel-control-next {
        display: none;
    }

    .hero-kicker {
        margin-bottom: 12px;
        font-size: .78rem;
    }

    .display-4 {
        font-size: calc(1.475rem + 2vw);
    }

    .display-6 {
        font-size: calc(1.275rem + 1vw);
    }

    #header-carousel .carousel-item {
        min-height: 520px;
    }
}

/*** Service navigation strip ***/
.service-strip-wrapper {
    border-bottom: 1px solid var(--border-soft);
    background: rgba(255, 255, 255, 0.7) !important;
    backdrop-filter: blur(10px);
}

.service-strip {
    min-height: 64px;
    display: flex;
    align-items: center;
    gap: 1rem;
}

.service-strip-label {
    flex: 0 0 auto;
    color: var(--text-muted);
    font-size: .75rem;
    font-weight: 800;
    letter-spacing: .1em;
    text-transform: uppercase;
}

.service-strip-links {
    min-width: 0;
    flex: 1;
    display: flex;
    align-items: center;
    gap: .5rem;
    overflow-x: auto;
    scrollbar-width: none;
}

.service-strip-links::-webkit-scrollbar {
    display: none;
}

.service-strip-link {
    flex: 0 0 auto;
    padding: .5rem .8rem;
    border: 1px solid rgba(18, 49, 92, .1);
    border-radius: 999px;
    color: var(--text-main);
    background: rgba(255, 255, 255, .72);
    font-size: .78rem;
    font-weight: 700;
    line-height: 1;
    white-space: nowrap;
}

.service-strip-link:hover {
    border-color: rgba(240, 127, 34, .35);
    color: var(--primary);
    background: #fff;
}

.service-strip-more {
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    color: var(--secondary);
    background: rgba(18, 49, 92, .08);
}

@media (max-width: 767.98px) {
    .service-strip {
        min-height: 58px;
        gap: .65rem;
    }

    .service-strip-label {
        display: none;
    }

    .service-strip-link {
        padding: .48rem .7rem;
        font-size: .74rem;
    }
}

/*** Page header banner ***/
.page-header {
    position: relative;
    overflow: hidden;
    margin-top: 2rem;
    border-radius: 0 0 34px 34px;
    background: var(--dark);
}

.page-header::after {
    content: "";
    position: absolute;
    inset: auto -10% -35% auto;
    width: 420px;
    height: 420px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(240, 127, 34, 0.22), transparent 68%);
    pointer-events: none;
}

@media (max-width: 991.98px) {
    .page-header {
        margin-top: 0;
        border-radius: 0 0 28px 28px;
    }

    .page-header .container {
        padding-top: 2rem !important;
        padding-bottom: 2rem !important;
    }
}

/*** Facts / stats ***/
.facts {
    position: relative;
    overflow: hidden;
}

/*** Home contact panel ***/
.home-contact-panel {
    max-width: 980px;
    margin: 0 auto;
    padding: clamp(2rem, 5vw, 4rem);
    border: 1px solid var(--border-soft);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    background: rgba(255, 255, 255, .88);
}

.home-contact-heading {
    max-width: 650px;
    margin: 0 auto 2.5rem;
}

.home-contact-form {
    max-width: 820px;
    margin: 0 auto;
}

.home-contact-form .form-select {
    padding-top: 1.625rem;
    padding-bottom: .625rem;
}

.home-contact-note {
    color: var(--text-muted);
}

@media (max-width: 575.98px) {
    .home-contact-panel {
        padding: 1.5rem;
    }

    .home-contact-heading {
        margin-bottom: 1.75rem;
        text-align: left !important;
    }

    .home-contact-form .btn {
        width: 100%;
    }
}

/*** Panels / profile / process / sectors ***/
.section-panel,
.profile-panel,
.process-card,
.testimonial-item {
    background: var(--surface);
    border: 1px solid var(--border-soft);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    backdrop-filter: blur(12px);
}

.section-panel,
.profile-panel {
    padding: 2rem;
}

.process-card {
    height: 100%;
    min-height: 230px;
    padding: 1.75rem;
    transition: transform .25s ease, box-shadow .25s ease;
}

.process-card h5 {
    margin-bottom: .75rem;
    line-height: 1.3;
}

.process-card p {
    line-height: 1.65;
}

.process-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
}

.process-step {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 54px;
    height: 54px;
    margin-bottom: .9rem;
    border-radius: 50%;
    background: linear-gradient(135deg, rgba(255, 128, 15, .16), rgba(255, 128, 15, .04));
    color: var(--primary);
    font-size: 1.15rem;
    font-weight: 800;
    letter-spacing: .08em;
}

.profile-panel {
    position: relative;
    overflow: hidden;
}

.profile-panel::after {
    content: "";
    position: absolute;
    right: -40px;
    top: -40px;
    width: 180px;
    height: 180px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(255, 128, 15, .12), transparent 70%);
    pointer-events: none;
}

.profile-photo {
    max-height: 420px;
    width: auto;
    border-radius: var(--radius-lg);
    border: 6px solid rgba(255, 255, 255, .92);
    box-shadow: var(--shadow-sm);
}

.profile-point,
.sector-chip {
    height: 100%;
    padding: 1rem 1.1rem;
    border-radius: var(--radius-md);
    background: rgba(18, 49, 92, 0.05);
    border: 1px solid rgba(18, 49, 92, 0.08);
    color: var(--text-main);
    font-weight: 700;
}

@media (max-width: 991.98px) {
    .section-panel,
    .profile-panel {
        padding: 1.5rem;
    }

    .profile-photo {
        max-height: 320px;
    }
}

@media (max-width: 767.98px) {
    .section-panel,
    .profile-panel {
        padding: 1.25rem;
        border-radius: var(--radius-md);
    }

    .process-card,
    .profile-point,
    .sector-chip {
        padding: 1rem;
    }

    .process-card {
        min-height: 0;
    }

    .process-step {
        margin-bottom: .65rem;
    }

    .profile-photo {
        width: 100%;
        max-height: none;
    }
}

/*** Services ***/
.service-item--card {
    border-radius: var(--radius-md);
    overflow: hidden;
    background: #fff;
    border: 1px solid var(--border-soft);
    box-shadow: var(--shadow-sm);
    transition: transform .25s ease, box-shadow .25s ease;
}

.service-item--card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-md);
}

.service-item--card img.img-fluid {
    aspect-ratio: 1.25 / 1;
    object-fit: cover;
}

.service-item--card .bg-light {
    background: linear-gradient(180deg, #f8fafc 0%, #f2f5f9 100%) !important;
}

.service-item--card .service-copy {
    border-top: 1px solid var(--border-soft);
}

.service-item--card .service-copy p {
    color: var(--text-muted);
    line-height: 1.65;
}

.service-icon {
    width: 90px;
    height: 90px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    box-shadow: 0 14px 34px rgba(18, 49, 92, 0.18);
}

.service-icon img {
    max-width: 60px;
    max-height: 60px;
}

.sector-chip {
    background: linear-gradient(180deg, #fff8f2 0%, #fff3e6 100%);
    border-color: rgba(255, 128, 15, .15);
}

@media (max-width: 767.98px) {
    .service-item--card .d-flex.align-items-center.bg-light {
        flex-direction: column;
        align-items: flex-start !important;
    }

    .service-item--card .service-icon {
        margin: 1rem 1rem 0;
    }

    .service-item--card .mx-4.py-3 {
        margin: 1rem !important;
        padding-top: 0 !important;
    }

    .service-item--card img.img-fluid {
        aspect-ratio: 1.45 / 1;
    }
}

/*** Partners ***/
.partner-card {
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    transition: transform .25s ease, box-shadow .25s ease;
}

.partner-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
}

.partner-card a {
    display: block;
    width: 100%;
    text-align: center;
}

.partner-card h5 {
    margin-top: 12px;
    font-weight: 600;
    text-align: center;
}

.partner-logo {
    display: block;
    max-width: 90%;
    max-height: 150px;
    width: auto;
    height: auto;
    margin: 0 auto;
    object-fit: contain;
    filter: grayscale(100%);
    transition: filter .25s ease, transform .25s ease;
}

.partner-logo:hover {
    filter: grayscale(0%);
    transform: scale(1.03);
}

@media (max-width: 767.98px) {
    .partner-card {
        height: 160px;
    }

    .partner-logo {
        max-height: 120px;
    }
}

/*** Testimonials ***/
.testimonial-item {
    padding: 2rem;
}

.testimonial-carousel .owl-item img {
    width: 100px;
    height: 100px;
    border-radius: 100px;
}

.testimonial-carousel .owl-nav {
    margin-top: 30px;
    display: flex;
    justify-content: center;
}

.testimonial-carousel .owl-nav .owl-prev,
.testimonial-carousel .owl-nav .owl-next {
    margin: 0 5px;
    width: 45px;
    height: 45px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    background: var(--primary);
    border-radius: 45px;
    font-size: 22px;
    transition: .3s;
}

.testimonial-carousel .owl-nav .owl-prev:hover,
.testimonial-carousel .owl-nav .owl-next:hover {
    background: var(--secondary);
}

@media (max-width: 767.98px) {
    .testimonial-item {
        padding: 1.25rem;
    }
}

/*** Contact / forms ***/
.contact-list li {
    line-height: 1.7;
}

.form-control,
.form-select {
    min-height: 56px;
    border-radius: var(--radius-md);
    border: 1px solid rgba(18, 49, 92, 0.12);
    padding-inline: 1rem;
    background: rgba(255, 255, 255, 0.95);
}

textarea.form-control {
    min-height: 150px;
    padding-top: .95rem;
}

.form-control:focus,
.form-select:focus {
    border-color: rgba(240, 127, 34, 0.5);
    box-shadow: 0 0 0 .25rem rgba(240, 127, 34, 0.12);
}

/*** Footer ***/
.footer {
    background: linear-gradient(180deg, rgba(10, 23, 40, 0.96) 0%, rgba(15, 31, 54, 0.98) 100%);
    color: rgba(255, 255, 255, 0.72);
    border-radius: 36px 36px 0 0;
}

.footer-brand {
    display: flex;
    align-items: center;
}

.footer-brand img {
    max-width: 45px;
    height: auto;
    vertical-align: middle;
}

.footer-brand span,
.footer h5,
.footer a,
.footer-contact,
.footer-summary,
.footer p,
.footer span {
    color: rgba(255, 255, 255, 0.82);
    line-height: 1.7;
}

.footer .btn.btn-link {
    display: block;
    margin-bottom: 5px;
    padding: 0;
    text-align: left;
    color: rgba(255, 255, 255, 0.7);
    font-weight: normal;
    text-transform: capitalize;
    transition: .3s;
}

.footer .btn.btn-link::before {
    position: relative;
    content: "\f105";
    font-family: "Font Awesome 5 Free";
    font-weight: 900;
    color: inherit;
    margin-right: 10px;
}

.footer .btn.btn-link:hover {
    color: #ffffff;
    transform: translateX(4px);
    box-shadow: none;
}

.footer .row.g-5 {
    row-gap: 2rem;
}

.copyright {
    padding: 25px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(255, 255, 255, 0.03);
}

.copyright a {
    color: var(--primary);
}

.copyright a:hover {
    color: #ffffff;
}

@media (max-width: 991.98px) {
    .footer {
        text-align: left;
    }
}

@media (max-width: 767.98px) {
    .footer {
        border-radius: 28px 28px 0 0;
    }

    .footer .copyright .row > div {
        text-align: left !important;
    }
}
