/* =========================================================================
   TSL EXPRESS — Design System
   Layered on top of Bootstrap 5.0 (grid + utilities only).
   ========================================================================= */

/* -------------------------------------------------------------------------
   1. Tokens
   ---------------------------------------------------------------------- */
:root {
    /* Brand */
    --navy-900: #04182b;
    --navy-800: #052744;
    --navy: #003a66;
    --navy-600: #0b4e85;
    --navy-400: #2f79b4;

    --accent: #e02454;
    --accent-600: #c01842;
    --accent-700: #a4123a;
    --accent-tint: rgba(224, 36, 84, .09);

    /* Neutrals */
    --ink: #0d1c2b;
    --body: #5c6b7d;
    --muted: #8593a4;
    --line: #e3eaf3;
    --line-soft: #eef3f9;
    --surface: #ffffff;
    --surface-alt: #f4f7fc;
    --surface-deep: #eaf1f9;

    /* Type */
    --font-display: "Plus Jakarta Sans", "Segoe UI", sans-serif;
    --font-body: "Inter", "Segoe UI", sans-serif;

    /* Shape */
    --r-sm: 10px;
    --r-md: 16px;
    --r-lg: 22px;
    --r-xl: 30px;
    --r-pill: 999px;

    /* Elevation */
    --sh-sm: 0 2px 10px rgba(4, 24, 43, .05);
    --sh-md: 0 12px 30px rgba(4, 24, 43, .08);
    --sh-lg: 0 26px 60px rgba(4, 24, 43, .14);
    --sh-accent: 0 14px 30px rgba(224, 36, 84, .28);

    /* Motion */
    --ease: cubic-bezier(.22, .68, .36, 1);
    --dur: .38s;

    /* Rhythm */
    --section-y: clamp(64px, 8vw, 112px);
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 110px;
}

body {
    font-family: var(--font-body);
    font-size: 1rem;
    line-height: 1.75;
    color: var(--body);
    background: var(--surface);
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6,
.display-1, .display-2, .display-3, .display-4, .display-5, .display-6 {
    font-family: var(--font-display);
    color: var(--ink);
    font-weight: 700;
    line-height: 1.16;
    letter-spacing: -.02em;
}

.display-3 { font-size: clamp(2.4rem, 5vw, 3.75rem); font-weight: 800; }
.display-4 { font-size: clamp(2.1rem, 4.2vw, 3.1rem); font-weight: 800; }
.display-5 { font-size: clamp(1.85rem, 3.4vw, 2.6rem); font-weight: 700; }
.display-6 { font-size: clamp(1.5rem, 2.6vw, 2rem); font-weight: 700; }

p { margin-bottom: 1rem; }
a { text-decoration: none; transition: color var(--dur) var(--ease); }
img { max-width: 100%; }

.section { padding-block: var(--section-y); }
.section-tight { padding-block: clamp(48px, 5.5vw, 76px); }
.bg-soft { background: var(--surface-alt); }
.bg-deep { background: var(--navy-900); }

.text-ink { color: var(--ink) !important; }
.text-body-soft { color: var(--body) !important; }
.lead-lg { font-size: 1.075rem; line-height: 1.85; }

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

/* -------------------------------------------------------------------------
   1b. Icons (inline SVG sprite — replaces the Font Awesome webfont)
   ---------------------------------------------------------------------- */

/* The per-page <symbol> sprite is inlined at the top of <body>; it must never
   take up space or be read out. */
.svg-sprite {
    position: absolute;
    width: 0;
    height: 0;
    overflow: hidden;
}

/* Sized in em so an icon always matches the font-size of its context, exactly
   as the icon font used to. currentColor keeps every existing colour rule
   (text-accent, text-white …) working untouched. */
.ic {
    width: 1em;
    height: 1em;
    fill: currentColor;
    display: inline-block;
    vertical-align: -.125em;
    flex-shrink: 0;
}

/* -------------------------------------------------------------------------
   2. Buttons
   ---------------------------------------------------------------------- */
.btn {
    --btn-y: .9rem;
    --btn-x: 1.9rem;
    font-family: var(--font-display);
    font-weight: 600;
    font-size: .95rem;
    letter-spacing: .01em;
    padding: var(--btn-y) var(--btn-x);
    border-radius: var(--r-pill);
    border: 1px solid transparent;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: .6rem;
    transition: transform var(--dur) var(--ease),
                box-shadow var(--dur) var(--ease),
                background-color var(--dur) var(--ease),
                color var(--dur) var(--ease),
                border-color var(--dur) var(--ease);
}

.btn:focus-visible {
    outline: 3px solid rgba(224, 36, 84, .35);
    outline-offset: 2px;
    box-shadow: none;
}

.btn-accent {
    background: var(--accent);
    color: #fff;
    box-shadow: var(--sh-accent);
}
.btn-accent:hover {
    background: var(--accent-600);
    color: #fff;
    transform: translateY(-3px);
    box-shadow: 0 20px 38px rgba(224, 36, 84, .34);
}

.btn-navy {
    background: var(--navy);
    color: #fff;
}
.btn-navy:hover {
    background: var(--navy-800);
    color: #fff;
    transform: translateY(-3px);
    box-shadow: var(--sh-md);
}

.btn-ghost {
    background: transparent;
    color: var(--ink);
    border-color: var(--line);
}
.btn-ghost:hover {
    background: var(--ink);
    border-color: var(--ink);
    color: #fff;
    transform: translateY(-3px);
}

.btn-ghost-light {
    background: rgba(255, 255, 255, .08);
    color: #fff;
    border-color: rgba(255, 255, 255, .32);
    backdrop-filter: blur(6px);
}
.btn-ghost-light:hover {
    background: #fff;
    color: var(--navy);
    border-color: #fff;
    transform: translateY(-3px);
}

.btn-sm { --btn-y: .58rem; --btn-x: 1.25rem; font-size: .86rem; }
.btn-lg { --btn-y: 1.05rem; --btn-x: 2.3rem; font-size: 1rem; }

.btn-icon {
    width: 46px;
    height: 46px;
    padding: 0;
    border-radius: 50%;
}

/* Link with sliding arrow */
.link-arrow {
    font-family: var(--font-display);
    font-weight: 600;
    font-size: .93rem;
    color: var(--accent);
    display: inline-flex;
    align-items: center;
    gap: .5rem;
}
.link-arrow i,
.link-arrow .ic { transition: transform var(--dur) var(--ease); }
.link-arrow:hover { color: var(--navy); }
.link-arrow:hover i,
.link-arrow:hover .ic { transform: translateX(5px); }

/* -------------------------------------------------------------------------
   3. Section headings
   ---------------------------------------------------------------------- */
.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: .55rem;
    font-family: var(--font-display);
    font-size: .78rem;
    font-weight: 700;
    letter-spacing: .16em;
    text-transform: uppercase;
    color: var(--accent);
    background: var(--accent-tint);
    padding: .45rem 1rem;
    border-radius: var(--r-pill);
    margin-bottom: 1.1rem;
}
.eyebrow::before {
    content: "";
    width: 18px;
    height: 2px;
    background: var(--accent);
    border-radius: 2px;
}
.eyebrow-light {
    color: #fff;
    background: rgba(255, 255, 255, .12);
}
.eyebrow-light::before { background: #fff; }

.section-head {
    max-width: 720px;
    margin-inline: auto;
    text-align: center;
    margin-bottom: clamp(40px, 5vw, 64px);
}
.section-head p { margin-bottom: 0; }
.section-head.start { text-align: left; margin-inline: 0; }

/* -------------------------------------------------------------------------
   4. Header / navigation
   ---------------------------------------------------------------------- */
.topbar {
    background: var(--navy-900);
    color: rgba(255, 255, 255, .72);
    font-size: .86rem;
    padding: .6rem 0;
}
.topbar a { color: rgba(255, 255, 255, .78); }
.topbar a:hover { color: #fff; }
.topbar i,
.topbar .ic { color: var(--accent); }
.topbar .divider {
    width: 1px;
    height: 16px;
    background: rgba(255, 255, 255, .16);
}
.topbar .social a {
    width: 30px;
    height: 30px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: rgba(255, 255, 255, .08);
    transition: all var(--dur) var(--ease);
}
.topbar .social a:hover { background: var(--accent); color: #fff; }
.topbar .social a i,
.topbar .social a .ic { color: inherit; }

.site-header {
    position: sticky;
    top: 0;
    z-index: 1030;
    background: #fff;
    border-bottom: 1px solid var(--line-soft);
    transition: box-shadow var(--dur) var(--ease), padding var(--dur) var(--ease);
}
.site-header.is-stuck {
    box-shadow: 0 8px 30px rgba(4, 24, 43, .09);
}

.site-header .navbar { padding-block: .85rem; }
.site-header.is-stuck .navbar { padding-block: .5rem; }

.brand {
    display: flex;
    align-items: center;
    gap: .8rem;
}
.brand img {
    height: 52px;
    width: auto;
    border-radius: 8px;
    transition: height var(--dur) var(--ease);
}
.site-header.is-stuck .brand img { height: 42px; }
.brand-text {
    display: flex;
    flex-direction: column;
    line-height: 1.1;
}
.brand-name {
    font-family: var(--font-display);
    font-size: 1.4rem;
    font-weight: 800;
    color: var(--navy);
    letter-spacing: -.02em;
}
.brand-tag {
    font-size: .68rem;
    letter-spacing: .18em;
    text-transform: uppercase;
    color: var(--muted);
    font-weight: 600;
}

.navbar-nav .nav-link {
    font-family: var(--font-display);
    font-size: .96rem;
    font-weight: 600;
    color: var(--ink);
    padding: .6rem 0;
    margin-inline: 1.05rem;
    position: relative;
}
.navbar-nav .nav-link::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: .15rem;
    width: 100%;
    height: 2px;
    background: var(--accent);
    border-radius: 2px;
    transform: scaleX(0);
    transform-origin: left;
    transition: transform var(--dur) var(--ease);
}
.navbar-nav .nav-link:hover,
.navbar-nav .nav-link.active { color: var(--accent); }
.navbar-nav .nav-link:hover::after,
.navbar-nav .nav-link.active::after { transform: scaleX(1); }

.nav-cta {
    display: flex;
    align-items: center;
    gap: 1.1rem;
}
.nav-phone {
    display: flex;
    align-items: center;
    gap: .7rem;
}
.nav-phone .ico {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: var(--accent-tint);
    color: var(--accent);
    display: grid;
    place-items: center;
    font-size: 1rem;
}
.nav-phone small {
    display: block;
    font-size: .72rem;
    color: var(--muted);
    line-height: 1.2;
}
.nav-phone strong {
    font-family: var(--font-display);
    font-size: .95rem;
    color: var(--ink);
}

.navbar-toggler {
    border: 1px solid var(--line);
    border-radius: var(--r-sm);
    padding: .5rem .7rem;
    color: var(--navy);
}
.navbar-toggler:focus { box-shadow: none; }

@media (max-width: 991.98px) {
    .navbar-collapse {
        margin-top: 1rem;
        padding-top: 1rem;
        border-top: 1px solid var(--line);
    }
    .navbar-nav .nav-link { margin-inline: 0; padding: .65rem 0; }
    .navbar-nav .nav-link::after { display: none; }
    .nav-cta {
        margin-top: 1rem;
        flex-direction: column;
        align-items: stretch;
    }
    .nav-cta .btn { width: 100%; }
    .brand img { height: 42px; }
}

/* -------------------------------------------------------------------------
   5. Hero
   ---------------------------------------------------------------------- */
.hero { position: relative; background: var(--navy-900); }

.hero .carousel-item {
    position: relative;
    height: clamp(560px, 82vh, 780px);
}
.hero .carousel-item > img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transform: scale(1.06);
    transition: transform 7s linear;
}
.hero .carousel-item.active > img { transform: scale(1); }

.hero .overlay {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(100deg, rgba(4, 24, 43, .94) 0%, rgba(4, 24, 43, .8) 42%, rgba(4, 24, 43, .34) 100%);
}
.hero .overlay::after {
    content: "";
    position: absolute;
    inset: 0;
    background: radial-gradient(60% 70% at 88% 20%, rgba(224, 36, 84, .28), transparent 70%);
}

.hero .hero-body {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    text-align: left;
}
.hero .hero-copy { max-width: 760px; }
/* Only slide one carries the page H1; the rest use .hero-title so the document
   keeps a single top-level heading. They must look identical. */
.hero h1,
.hero .hero-title {
    color: #fff;
    font-size: clamp(2.3rem, 5.2vw, 4.05rem);
    font-weight: 800;
    letter-spacing: -.035em;
    margin-bottom: 1.25rem;
}
.hero h1 .accent,
.hero .hero-title .accent { color: #ff5c85; }
.hero p {
    color: rgba(255, 255, 255, .82);
    font-size: clamp(1rem, 1.4vw, 1.15rem);
    max-width: 580px;
    margin-bottom: 2rem;
}

.hero .carousel-indicators {
    margin: 0;
    left: auto;
    right: 4vw;
    bottom: 46%;
    flex-direction: column;
    gap: .8rem;
}
.hero .carousel-indicators [data-bs-target] {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    border: 0;
    margin: 0;
    opacity: 1;
    background: rgba(255, 255, 255, .35);
    transition: all var(--dur) var(--ease);
}
.hero .carousel-indicators .active {
    background: var(--accent);
    box-shadow: 0 0 0 5px rgba(224, 36, 84, .25);
}

/* Keep the arrows clear of the promise card that overlaps the hero. */
.hero .carousel-control-prev,
.hero .carousel-control-next {
    width: auto;
    opacity: 1;
    padding-inline: 1.4rem;
    align-items: flex-end;
    padding-bottom: clamp(110px, 15vh, 165px);
}
.hero .carousel-control-prev-icon,
.hero .carousel-control-next-icon {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, .1);
    border: 1px solid rgba(255, 255, 255, .28);
    background-size: 40%;
    backdrop-filter: blur(6px);
    transition: all var(--dur) var(--ease);
}
.hero .carousel-control-prev:hover .carousel-control-prev-icon,
.hero .carousel-control-next:hover .carousel-control-next-icon {
    background-color: var(--accent);
    border-color: var(--accent);
}

/* On small screens the arrows would sit on top of the CTAs — swipe and the
   indicators cover navigation instead. */
@media (max-width: 991.98px) {
    .hero .carousel-control-prev,
    .hero .carousel-control-next { display: none; }

    .hero .carousel-indicators {
        flex-direction: row;
        left: 0;
        right: 0;
        bottom: 12%;
        justify-content: center;
    }
}

/* Page banner (inner pages) */
.page-banner {
    position: relative;
    background: var(--navy-900);
    padding: clamp(70px, 9vw, 130px) 0 clamp(60px, 7vw, 100px);
    overflow: hidden;
}
.page-banner .bg {
    position: absolute;
    inset: 0;
    object-fit: cover;
    width: 100%;
    height: 100%;
    opacity: .2;
}
.page-banner::after {
    content: "";
    position: absolute;
    inset: 0;
    background: radial-gradient(70% 100% at 20% 0%, rgba(224, 36, 84, .3), transparent 65%);
}
.page-banner .container { position: relative; z-index: 2; }
.page-banner h1 {
    color: #fff;
    font-size: clamp(2.2rem, 4.6vw, 3.4rem);
    font-weight: 800;
    margin-bottom: .9rem;
}
.page-banner .crumb {
    display: flex;
    gap: .6rem;
    align-items: center;
    color: rgba(255, 255, 255, .6);
    font-size: .92rem;
    list-style: none;
    padding: 0;
    margin: 0;
}
.page-banner .crumb a { color: rgba(255, 255, 255, .82); }
.page-banner .crumb a:hover { color: #fff; }
.page-banner .crumb .sep { opacity: .5; }
.page-banner .crumb .current { color: #ff7a9c; font-weight: 600; }

/* -------------------------------------------------------------------------
   6. Quick-quote strip (overlaps hero)
   ---------------------------------------------------------------------- */
.promise-strip {
    position: relative;
    z-index: 5;
    margin-top: -70px;
}
.promise-card {
    background: #fff;
    border-radius: var(--r-lg);
    box-shadow: var(--sh-lg);
    padding: clamp(24px, 3vw, 38px);
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
    gap: clamp(18px, 2.4vw, 34px);
}
.promise-item {
    display: flex;
    gap: 1rem;
    align-items: flex-start;
}
.promise-item + .promise-item { border-left: 1px solid var(--line); padding-left: clamp(18px, 2.4vw, 34px); }
.promise-item .ico {
    flex: 0 0 auto;
    width: 52px;
    height: 52px;
    border-radius: 14px;
    display: grid;
    place-items: center;
    font-size: 1.25rem;
    background: var(--navy);
    color: #fff;
}
.promise-item:nth-child(2) .ico { background: var(--accent); }
.promise-item:nth-child(3) .ico { background: var(--navy-600); }
.promise-item:nth-child(4) .ico { background: var(--accent-700); }
.promise-item h3 {
    font-size: 1.02rem;
    margin-bottom: .2rem;
}
.promise-item p {
    margin: 0;
    font-size: .9rem;
    line-height: 1.6;
}

@media (max-width: 767.98px) {
    .promise-strip { margin-top: -40px; }
    .promise-item + .promise-item { border-left: 0; padding-left: 0; }
}

/* -------------------------------------------------------------------------
   7. Cards — generic
   ---------------------------------------------------------------------- */
.card-lift {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: var(--r-lg);
    height: 100%;
    transition: transform var(--dur) var(--ease),
                box-shadow var(--dur) var(--ease),
                border-color var(--dur) var(--ease);
}
.card-lift:hover {
    transform: translateY(-8px);
    box-shadow: var(--sh-lg);
    border-color: transparent;
}

/* Feature card */
.feature-card {
    padding: clamp(26px, 3vw, 38px);
    position: relative;
    overflow: hidden;
}
.feature-card .ico {
    width: 64px;
    height: 64px;
    border-radius: 18px;
    display: grid;
    place-items: center;
    font-size: 1.55rem;
    background: var(--surface-alt);
    color: var(--navy);
    margin-bottom: 1.4rem;
    transition: all var(--dur) var(--ease);
}
.feature-card:hover .ico {
    background: var(--accent);
    color: #fff;
    transform: rotate(-6deg);
}
.feature-card h3 { font-size: 1.15rem; margin-bottom: .7rem; }
.feature-card p { font-size: .95rem; margin-bottom: 0; }
.feature-card .num {
    position: absolute;
    top: 14px;
    right: 22px;
    font-family: var(--font-display);
    font-size: 3.2rem;
    font-weight: 800;
    color: var(--line-soft);
    line-height: 1;
    pointer-events: none;
}

/* Service card */
.service-card {
    overflow: hidden;
    display: flex;
    flex-direction: column;
}
.service-card .media {
    position: relative;
    aspect-ratio: 16 / 10;
    overflow: hidden;
}
.service-card .media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .7s var(--ease);
}
.service-card:hover .media img { transform: scale(1.08); }
.service-card .media::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(4, 24, 43, .72), transparent 55%);
}
.service-card .tag {
    position: absolute;
    z-index: 2;
    left: 18px;
    top: 18px;
    background: rgba(255, 255, 255, .92);
    color: var(--navy);
    font-family: var(--font-display);
    font-size: .74rem;
    font-weight: 700;
    letter-spacing: .1em;
    text-transform: uppercase;
    padding: .4rem .85rem;
    border-radius: var(--r-pill);
    backdrop-filter: blur(4px);
}
.service-card .ico {
    position: absolute;
    z-index: 2;
    right: 22px;
    bottom: -24px;
    width: 56px;
    height: 56px;
    border-radius: 16px;
    background: var(--accent);
    color: #fff;
    display: grid;
    place-items: center;
    font-size: 1.3rem;
    box-shadow: var(--sh-accent);
    transition: transform var(--dur) var(--ease);
}
.service-card:hover .ico { transform: translateY(-6px) rotate(-8deg); }
.service-card .body {
    padding: 2.1rem 1.7rem 1.7rem;
    display: flex;
    flex-direction: column;
    flex: 1;
}
.service-card h3 { font-size: 1.22rem; margin-bottom: .65rem; }
.service-card p { font-size: .94rem; flex: 1; }

/* Branch card */
.branch-card { overflow: hidden; }
.branch-card .media {
    position: relative;
    aspect-ratio: 4 / 3;
    overflow: hidden;
}
.branch-card .media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .7s var(--ease);
}
.branch-card:hover .media img { transform: scale(1.09); }
.branch-card .media::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(4, 24, 43, .78), rgba(4, 24, 43, .05) 60%);
}
.branch-card .label {
    position: absolute;
    z-index: 2;
    left: 0;
    right: 0;
    bottom: 0;
    padding: 1.1rem 1.2rem;
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: .5rem;
}
.branch-card .label h3 {
    color: #fff;
    font-size: 1.1rem;
    margin: 0;
}
.branch-card .label span {
    font-size: .74rem;
    font-weight: 700;
    letter-spacing: .08em;
    text-transform: uppercase;
    color: #fff;
    background: var(--accent);
    padding: .22rem .6rem;
    border-radius: var(--r-pill);
}
.branch-card .label .state {
    display: block;
    font-size: .8rem;
    color: rgba(255, 255, 255, .68);
    font-weight: 500;
    letter-spacing: 0;
    text-transform: none;
    background: none;
    padding: 0;
}

/* -------------------------------------------------------------------------
   8. Stats
   ---------------------------------------------------------------------- */
.stats-band {
    position: relative;
    background: var(--navy-900);
    overflow: hidden;
}
.stats-band .bg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: .16;
}
.stats-band::after {
    content: "";
    position: absolute;
    inset: 0;
    background: radial-gradient(55% 90% at 85% 15%, rgba(224, 36, 84, .3), transparent 70%);
}
.stats-band .container { position: relative; z-index: 2; }

.stat {
    text-align: center;
    padding: 1.2rem .6rem;
    position: relative;
}
.stat .ico {
    width: 58px;
    height: 58px;
    margin: 0 auto 1rem;
    border-radius: 18px;
    display: grid;
    place-items: center;
    font-size: 1.35rem;
    color: #fff;
    background: rgba(255, 255, 255, .1);
    border: 1px solid rgba(255, 255, 255, .16);
    transition: all var(--dur) var(--ease);
}
.stat:hover .ico { background: var(--accent); border-color: var(--accent); }
.stat .value {
    font-family: var(--font-display);
    font-size: clamp(2.1rem, 3.6vw, 2.9rem);
    font-weight: 800;
    color: #fff;
    line-height: 1;
    letter-spacing: -.03em;
}
.stat .value .suffix { color: var(--accent); }
.stat .label {
    margin: .6rem 0 0;
    font-size: .82rem;
    letter-spacing: .14em;
    text-transform: uppercase;
    font-weight: 600;
    color: rgba(255, 255, 255, .62);
}

/* -------------------------------------------------------------------------
   9. About / media blocks
   ---------------------------------------------------------------------- */
.media-stack { position: relative; }
.media-stack .main {
    border-radius: var(--r-xl);
    overflow: hidden;
    box-shadow: var(--sh-lg);
    aspect-ratio: 4 / 4.4;
}
.media-stack .main img { width: 100%; height: 100%; object-fit: cover; }
.media-stack .inset {
    position: absolute;
    right: -18px;
    bottom: 12%;
    width: 46%;
    border-radius: var(--r-lg);
    overflow: hidden;
    border: 6px solid #fff;
    box-shadow: var(--sh-md);
    aspect-ratio: 4 / 3;
}
.media-stack .inset img { width: 100%; height: 100%; object-fit: cover; }
.media-stack .badge-years {
    position: absolute;
    left: -14px;
    top: 50%;
    transform: translateY(-50%);
    background: var(--accent);
    color: #fff;
    border-radius: var(--r-md);
    padding: 1rem 1.3rem;
    box-shadow: var(--sh-accent);
    text-align: center;
}
.media-stack .badge-years strong {
    display: block;
    font-family: var(--font-display);
    font-size: 2rem;
    font-weight: 800;
    line-height: 1;
}
.media-stack .badge-years span {
    font-size: .74rem;
    letter-spacing: .12em;
    text-transform: uppercase;
    opacity: .9;
}

@media (max-width: 575.98px) {
    .media-stack .inset { display: none; }
    .media-stack .badge-years { left: 10px; }
}

.check-list { list-style: none; padding: 0; margin: 0 0 1.8rem; }
.check-list li {
    display: flex;
    gap: .8rem;
    align-items: flex-start;
    padding: .5rem 0;
    font-weight: 500;
    color: var(--ink);
}
.check-list li i,
.check-list li .ic {
    color: var(--accent);
    margin-top: .3rem;
    font-size: .95rem;
}

.mini-stat {
    display: flex;
    gap: 1rem;
    align-items: center;
    padding: 1.1rem 1.2rem;
    border-radius: var(--r-md);
    background: var(--surface-alt);
    height: 100%;
}
.mini-stat i,
.mini-stat .ic { font-size: 1.6rem; color: var(--accent); }
.mini-stat strong {
    font-family: var(--font-display);
    display: block;
    color: var(--ink);
    font-size: 1.05rem;
}
.mini-stat span { font-size: .86rem; }

/* -------------------------------------------------------------------------
   10. Process timeline
   ---------------------------------------------------------------------- */
.step {
    text-align: center;
    position: relative;
    padding: 0 .5rem;
}
.step .dot {
    width: 78px;
    height: 78px;
    margin: 0 auto 1.4rem;
    border-radius: 50%;
    display: grid;
    place-items: center;
    font-size: 1.6rem;
    background: #fff;
    color: var(--navy);
    border: 1px solid var(--line);
    box-shadow: var(--sh-sm);
    position: relative;
    z-index: 2;
    transition: all var(--dur) var(--ease);
}
.step:hover .dot {
    background: var(--accent);
    border-color: var(--accent);
    color: #fff;
    transform: translateY(-6px);
}
.step .num {
    position: absolute;
    top: -6px;
    right: calc(50% - 52px);
    z-index: 3;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: var(--navy);
    color: #fff;
    font-family: var(--font-display);
    font-size: .82rem;
    font-weight: 700;
    display: grid;
    place-items: center;
}
.step h3 { font-size: 1.08rem; margin-bottom: .5rem; }
.step p { font-size: .92rem; margin-bottom: 0; }

.process-line { position: relative; }
.process-line::before {
    content: "";
    position: absolute;
    top: 39px;
    left: 12%;
    right: 12%;
    height: 2px;
    background: repeating-linear-gradient(to right, var(--line) 0 10px, transparent 10px 20px);
}
@media (max-width: 991.98px) { .process-line::before { display: none; } }

/* -------------------------------------------------------------------------
   10b. Client logos
   ---------------------------------------------------------------------- */
/* Flex rather than grid: with an odd number of logos, a trailing row of 3
   centres itself instead of hanging off to the left. Wider tiles also give the
   very wide logos (Shende is 6:1) more room before max-width caps them. */
.clients-grid {
    --client-gap: clamp(14px, 1.6vw, 22px);
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: var(--client-gap);
}

.client-tile { flex: 0 1 calc(50% - var(--client-gap) / 2); }

@media (min-width: 576px) {
    .client-tile { flex-basis: calc(33.333% - var(--client-gap) * 2 / 3); }
}

@media (min-width: 992px) {
    .client-tile { flex-basis: calc(25% - var(--client-gap) * 3 / 4); }
}

.client-tile {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: var(--r-md);
    min-height: 116px;
    padding: 1.4rem 1.2rem;
    display: grid;
    place-items: center;
    transition: transform var(--dur) var(--ease),
                box-shadow var(--dur) var(--ease),
                border-color var(--dur) var(--ease);
}

.client-tile:hover {
    transform: translateY(-5px);
    box-shadow: var(--sh-md);
    border-color: transparent;
}

/* The logos range from 3.1:1 to 0.9:1, so constrain BOTH axes and leave the
   intrinsic ratio alone — width/height attributes must not win here. */
.client-tile img {
    width: auto;
    height: auto;
    max-width: 100%;
    max-height: 56px;
    object-fit: contain;
}

/* -------------------------------------------------------------------------
   11. CTA band
   ---------------------------------------------------------------------- */
.cta-band {
    position: relative;
    border-radius: var(--r-xl);
    overflow: hidden;
    background: var(--navy);
    padding: clamp(38px, 5vw, 66px);
    color: #fff;
}
.cta-band::after {
    content: "";
    position: absolute;
    inset: 0;
    background: radial-gradient(60% 130% at 92% 20%, rgba(224, 36, 84, .5), transparent 62%);
}
.cta-band > * { position: relative; z-index: 2; }
.cta-band h2 { color: #fff; font-size: clamp(1.7rem, 3vw, 2.4rem); }
.cta-band p { color: rgba(255, 255, 255, .8); margin-bottom: 0; }

/* -------------------------------------------------------------------------
   12. Contact
   ---------------------------------------------------------------------- */
.contact-tile {
    display: flex;
    gap: 1.1rem;
    padding: 1.5rem;
    border-radius: var(--r-md);
    border: 1px solid var(--line);
    background: #fff;
    height: 100%;
    transition: all var(--dur) var(--ease);
}
.contact-tile:hover {
    border-color: transparent;
    box-shadow: var(--sh-md);
    transform: translateY(-4px);
}
.contact-tile .ico {
    flex: 0 0 auto;
    width: 52px;
    height: 52px;
    border-radius: 15px;
    display: grid;
    place-items: center;
    background: var(--navy);
    color: #fff;
    font-size: 1.15rem;
}
/* A flex item defaults to min-width:auto, which refuses to shrink below its
   content — an email address has no break opportunity, so the text spilled out
   of the card. This lets the text column shrink; the wrapping rule below then
   breaks anything that still will not fit. */
.contact-tile > div { min-width: 0; }
.contact-tile:nth-child(even) .ico { background: var(--accent); }
.contact-tile h3 {
    font-size: .78rem;
    letter-spacing: .13em;
    text-transform: uppercase;
    color: var(--muted);
    margin-bottom: .35rem;
}
.contact-tile p, .contact-tile a {
    margin: 0;
    color: var(--ink);
    font-weight: 500;
    font-size: .97rem;
    line-height: 1.6;
    display: block;
    /* break-word, not anywhere: it only splits a word that cannot fit on a
       line by itself (a long email), instead of packing greedily and
       hyphen-lessly chopping ordinary words like "Monday". */
    overflow-wrap: break-word;
}
.contact-tile a:hover { color: var(--accent); }
/* Phone numbers may wrap at their spaces, but never mid-number. */
.contact-tile a[href^="tel:"] { overflow-wrap: normal; word-break: keep-all; }

.form-panel {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: var(--r-xl);
    padding: clamp(26px, 3.4vw, 44px);
    box-shadow: var(--sh-md);
}

.field { margin-bottom: 1.1rem; }
.field label {
    display: block;
    font-family: var(--font-display);
    font-size: .84rem;
    font-weight: 600;
    color: var(--ink);
    margin-bottom: .45rem;
}
.field label .req { color: var(--accent); }
.field .form-control,
.field .form-select {
    width: 100%;
    border: 1px solid var(--line);
    border-radius: var(--r-sm);
    padding: .85rem 1rem;
    font-size: .96rem;
    font-family: var(--font-body);
    color: var(--ink);
    background: var(--surface-alt);
    transition: all var(--dur) var(--ease);
}
.field .form-control::placeholder { color: var(--muted); }
.field .form-control:focus,
.field .form-select:focus {
    outline: none;
    background: #fff;
    border-color: var(--accent);
    box-shadow: 0 0 0 4px var(--accent-tint);
}
.field textarea.form-control { resize: vertical; min-height: 140px; }

.field.has-error .form-control,
.field.has-error .form-select { border-color: #d92b2b; background: #fff6f6; }
.field .error-text {
    display: none;
    margin: .4rem 0 0;
    font-size: .82rem;
    color: #d92b2b;
}
.field.has-error .error-text { display: block; }

/* Honeypot — must stay visually hidden but reachable in the DOM */
.hp-field {
    position: absolute !important;
    left: -9999px;
    opacity: 0;
    height: 0;
    width: 0;
    overflow: hidden;
}

.form-status {
    display: none;
    align-items: flex-start;
    gap: .75rem;
    padding: 1rem 1.15rem;
    border-radius: var(--r-sm);
    font-size: .94rem;
    margin-bottom: 1.2rem;
}
.form-status.is-visible { display: flex; }
.form-status.is-success {
    background: #e9f8ef;
    color: #14663a;
    border: 1px solid #bfe6cf;
}
.form-status.is-error {
    background: #fdeced;
    color: #a11226;
    border: 1px solid #f4c4ca;
}
.form-status i,
.form-status .ic { margin-top: .18rem; }

.btn.is-loading { pointer-events: none; opacity: .75; }
.btn .spinner {
    width: 16px;
    height: 16px;
    border-radius: 50%;
    border: 2px solid rgba(255, 255, 255, .45);
    border-top-color: #fff;
    animation: spin .7s linear infinite;
    display: none;
}
.btn.is-loading .spinner { display: inline-block; }

@keyframes spin { to { transform: rotate(360deg); } }

.map-frame {
    border-radius: var(--r-xl);
    overflow: hidden;
    border: 1px solid var(--line);
    box-shadow: var(--sh-md);
    line-height: 0;
}
.map-frame iframe { width: 100%; height: 440px; border: 0; }

/* FAQ */
.faq-item {
    border: 1px solid var(--line);
    border-radius: var(--r-md);
    background: #fff;
    margin-bottom: .85rem;
    overflow: hidden;
}
.faq-item button {
    width: 100%;
    text-align: left;
    background: none;
    border: 0;
    padding: 1.15rem 1.3rem;
    font-family: var(--font-display);
    font-weight: 600;
    font-size: 1.02rem;
    color: var(--ink);
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    cursor: pointer;
}
.faq-item button i,
.faq-item button .ic { color: var(--accent); transition: transform var(--dur) var(--ease); }
.faq-item.open button i,
.faq-item.open button .ic { transform: rotate(45deg); }
.faq-item .answer {
    display: grid;
    grid-template-rows: 0fr;
    transition: grid-template-rows var(--dur) var(--ease);
}
.faq-item.open .answer { grid-template-rows: 1fr; }
.faq-item .answer > div { overflow: hidden; }
.faq-item .answer p {
    margin: 0;
    padding: 0 1.3rem 1.3rem;
    font-size: .95rem;
}

/* -------------------------------------------------------------------------
   13. Footer
   ---------------------------------------------------------------------- */
.site-footer {
    background: var(--navy-900);
    color: rgba(255, 255, 255, .68);
    padding-top: clamp(56px, 6vw, 84px);
}
.site-footer h3 {
    color: #fff;
    font-size: 1.05rem;
    margin-bottom: 1.4rem;
    position: relative;
    padding-bottom: .7rem;
}
.site-footer h3::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 0;
    width: 34px;
    height: 3px;
    border-radius: 3px;
    background: var(--accent);
}
.site-footer a { color: rgba(255, 255, 255, .68); }
.site-footer a:hover { color: #fff; }
.site-footer p { font-size: .94rem; }

.footer-links { list-style: none; padding: 0; margin: 0; }
.footer-links li { margin-bottom: .6rem; }
.footer-links a {
    display: inline-flex;
    align-items: center;
    gap: .55rem;
    font-size: .94rem;
    transition: transform var(--dur) var(--ease), color var(--dur) var(--ease);
}
.footer-links a i,
.footer-links a .ic { color: var(--accent); font-size: .75rem; }
.footer-links a:hover { transform: translateX(4px); }

.footer-contact { list-style: none; padding: 0; margin: 0; }
.footer-contact li {
    display: flex;
    gap: .8rem;
    margin-bottom: 1rem;
    font-size: .94rem;
    line-height: 1.65;
}
.footer-contact li i,
.footer-contact li .ic {
    color: var(--accent);
    margin-top: .35rem;
    flex: 0 0 16px;
}

.footer-brand img {
    height: 54px;
    /* Must be explicit: the width/height attributes on the tag (set for CLS)
       act as presentational hints and would otherwise stretch the logo. */
    width: auto;
    border-radius: 10px;
    margin-bottom: 1.2rem;
}

.social-row { display: flex; gap: .6rem; margin-top: 1.3rem; }
.social-row a {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    background: rgba(255, 255, 255, .07);
    border: 1px solid rgba(255, 255, 255, .12);
    transition: all var(--dur) var(--ease);
}
.social-row a:hover {
    background: var(--accent);
    border-color: var(--accent);
    color: #fff;
    transform: translateY(-3px);
}

.newsletter-box {
    position: relative;
    margin-top: 1rem;
}
.newsletter-box input {
    width: 100%;
    border: 1px solid rgba(255, 255, 255, .16);
    background: rgba(255, 255, 255, .06);
    border-radius: var(--r-pill);
    padding: .95rem 7.2rem .95rem 1.2rem;
    color: #fff;
    font-size: .93rem;
}
.newsletter-box input::placeholder { color: rgba(255, 255, 255, .45); }
.newsletter-box input:focus {
    outline: none;
    border-color: var(--accent);
    background: rgba(255, 255, 255, .1);
}
.newsletter-box button {
    position: absolute;
    top: 5px;
    right: 5px;
    bottom: 5px;
}

.footer-bottom {
    margin-top: clamp(40px, 5vw, 60px);
    border-top: 1px solid rgba(255, 255, 255, .1);
    padding-block: 1.5rem;
    font-size: .9rem;
}
.footer-bottom a { color: #fff; }

/* Floating actions */
.back-to-top {
    position: fixed;
    right: 22px;
    bottom: 22px;
    z-index: 1040;
    width: 46px;
    height: 46px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    background: var(--navy);
    color: #fff;
    opacity: 0;
    visibility: hidden;
    transform: translateY(12px);
    transition: all var(--dur) var(--ease);
    box-shadow: var(--sh-md);
}
.back-to-top.show { opacity: 1; visibility: visible; transform: none; }
.back-to-top:hover { background: var(--accent); color: #fff; }

.wa-float {
    position: fixed;
    left: 22px;
    bottom: 22px;
    z-index: 1040;
    width: 52px;
    height: 52px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    background: #25d366;
    color: #fff;
    font-size: 1.5rem;
    box-shadow: 0 12px 28px rgba(37, 211, 102, .38);
    transition: transform var(--dur) var(--ease);
}
.wa-float:hover { transform: scale(1.08); color: #fff; }

/* -------------------------------------------------------------------------
   14. Scroll reveal
   ---------------------------------------------------------------------- */
[data-reveal] {
    opacity: 0;
    transform: translateY(26px);
    transition: opacity .7s var(--ease), transform .7s var(--ease);
    transition-delay: var(--reveal-delay, 0s);
}
[data-reveal="left"]  { transform: translateX(-32px); }
[data-reveal="right"] { transform: translateX(32px); }
[data-reveal="zoom"]  { transform: scale(.94); }
[data-reveal].is-in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    [data-reveal] { opacity: 1 !important; transform: none !important; transition: none; }
    * { animation-duration: .001ms !important; transition-duration: .001ms !important; }
}

/* -------------------------------------------------------------------------
   15. Misc utilities
   ---------------------------------------------------------------------- */
.divider-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--accent);
    display: inline-block;
}
.rounded-xl { border-radius: var(--r-xl) !important; }
.shadow-soft { box-shadow: var(--sh-md) !important; }
.text-accent { color: var(--accent) !important; }
.bg-accent { background: var(--accent) !important; }
.bg-navy { background: var(--navy) !important; }
.fw-800 { font-weight: 800 !important; }

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