/* ───────── Header search window (Startup Movers) ─────────
   Markup: resources/views/client/layouts/partials/site-search.blade.php · script: public/client/js/site-search.js */
.sms-lock { overflow: hidden !important; }

.sms {
    --sms-blue: #0048fc;
    --sms-coral: #f1665b;
    --sms-ink: #101828;
    --sms-mid: #475467;
    --sms-soft: #98a2b3;
    --sms-line: #eaecf0;
    --sms-hover: #f4f6fb;
    position: fixed;
    inset: 0;
    z-index: 100000;
    display: flex;
    justify-content: center;
    align-items: flex-start;
    padding: 12vh 16px 16px;
    background: rgba(16, 24, 40, .45);
    font-family: inherit;
    color: var(--sms-ink);
}
.sms[hidden] { display: none; }
.sms.is-in .sms-box { animation: smsIn .16s ease-out; }
@keyframes smsIn { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: none; } }

.sms-box {
    display: flex;
    flex-direction: column;
    width: min(700px, 100%);
    max-height: min(600px, 78vh);
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 24px 60px -16px rgba(16, 24, 40, .35);
    overflow: hidden;
}

/* search row: one clean line */
.sms-head { position: relative; display: flex; align-items: center; gap: 10px; padding: 0 12px 0 18px; border-bottom: 1px solid var(--sms-line); }
.sms-head-ic { flex: none; color: var(--sms-soft); }
.sms-input { flex: 1; min-width: 0; height: 60px; border: 0; outline: 0; background: none; padding: 0; font: inherit; font-size: 17px; color: var(--sms-ink); }
.sms-input::placeholder { color: var(--sms-soft); }
.sms-input::-webkit-search-cancel-button { display: none; }
.sms-clear { flex: none; border: 0; background: none; padding: 6px 8px; font-size: 13px; font-weight: 600; color: var(--sms-mid); cursor: pointer; border-radius: 6px; }
.sms-clear:hover { color: var(--sms-ink); background: var(--sms-hover); }
.sms-close { flex: none; width: 36px; height: 36px; display: grid; place-items: center; border: 0; border-radius: 8px; background: none; color: var(--sms-soft); cursor: pointer; }
.sms-close:hover { color: var(--sms-ink); background: var(--sms-hover); }
.sms-bar { position: absolute; left: 0; right: 0; bottom: -1px; height: 2px; overflow: hidden; opacity: 0; transition: opacity .15s; }
.sms-bar::before { content: ""; position: absolute; top: 0; bottom: 0; width: 30%; background: var(--sms-blue); animation: smsBar .9s ease-in-out infinite; }
.sms.is-loading .sms-bar { opacity: 1; }
@keyframes smsBar { from { left: -30%; } to { left: 100%; } }

/* body */
.sms-body { flex: 1; overflow-y: auto; overscroll-behavior: contain; padding: 4px 10px 12px; }
.sms-sec { padding-top: 12px; }
.sms-sec + .sms-sec { border-top: 1px solid var(--sms-line); margin-top: 8px; }
.sms-h { display: flex; align-items: center; justify-content: space-between; padding: 0 8px; margin-bottom: 4px; font-size: 12.5px; font-weight: 600; color: var(--sms-soft); }
.sms-link { border: 0; background: none; padding: 0; font: inherit; font-weight: 600; color: var(--sms-blue); cursor: pointer; }

/* rows: recently opened / popular right now (icon chosen in the admin) */
.sms-rows { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 2px; }
.sms-row { display: flex; align-items: center; gap: 10px; padding: 9px 8px; border-radius: 8px; color: var(--sms-ink); font-size: 14.5px; text-decoration: none; min-width: 0; }
.sms-row:hover, .sms-row.is-on { background: var(--sms-hover); color: var(--sms-ink); text-decoration: none; }
.sms-row-ic { flex: none; width: 28px; height: 28px; display: grid; place-items: center; border-radius: 7px; background: #fff3f2; color: var(--sms-coral); }
.sms-row-ic svg { width: 15px; height: 15px; }
.sms-row.recent .sms-row-ic { background: var(--sms-hover); color: var(--sms-soft); }
.sms-row-t { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* browse services: sections one below the other (managed in Admin › Search Tracker) */
.sms-bsec { padding: 6px 0 4px; }
.sms-bsec + .sms-bsec { margin-top: 6px; }
.sms-bsec-h { display: flex; align-items: center; gap: 10px; padding: 0 8px; margin-bottom: 2px; }
.sms-badge { display: inline-flex; align-items: center; gap: 6px; padding: 4px 11px 4px 8px; border-radius: 999px; font-size: 11.5px; letter-spacing: .07em; text-transform: uppercase; font-family: degular_displaysemibold, degular_displaymedium, sans-serif; white-space: nowrap; }
.sms-badge-ic { display: inline-flex; }
.sms-badge-ic svg { width: 13px; height: 13px; }
.sms-bsec-line { flex: 1; height: 1px; background: var(--sms-line); }
.sms-bgrid { display: grid; gap: 0 14px; }
.sms-bgrid.c1 { grid-template-columns: 1fr; }
.sms-bgrid.c2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.sms-bgrid.c3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.sms-bit { display: flex; align-items: center; gap: 8px; padding: 9px 8px; border-radius: 9px; color: inherit; text-decoration: none; min-width: 0; }
.sms-bit:hover, .sms-bit.is-on { background: var(--sms-hover); color: inherit; text-decoration: none; }
.sms-bit-txt { flex: 1; min-width: 0; }
.sms-bit-t { display: block; font-size: 15px; line-height: 1.3; color: var(--sms-ink); }   /* long names wrap instead of being cut */
.sms-bgrid.c3 .sms-bit-t { font-size: 14px; }
.sms-bgrid.c3 .sms-bit-d { font-size: 12.5px; }
.sms-bit-d { display: block; margin-top: 1px; font-size: 13px; color: var(--sms-soft); font-family: degular_displayregular, degular_displaymedium, sans-serif; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sms-bit-go { flex: none; color: #c4cad6; transition: color .15s, transform .15s; }
.sms-bit:hover .sms-bit-go, .sms-bit.is-on .sms-bit-go { color: var(--sms-blue); transform: translateX(2px); }

/* results */
.sms-results { padding-top: 8px; }
.sms-res { display: flex; align-items: center; gap: 12px; padding: 10px 10px; border-radius: 10px; color: inherit; text-decoration: none; }
.sms-res:hover { text-decoration: none; color: inherit; }
.sms-res.is-on { background: var(--sms-hover); }
.sms-res-txt { flex: 1; min-width: 0; }
.sms-res-t { display: block; font-size: 15px; font-weight: 600; color: var(--sms-ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sms-res-t mark { background: none; color: var(--sms-blue); padding: 0; }
.sms-res-d { display: block; margin-top: 2px; font-size: 13px; color: var(--sms-mid); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sms-res-g { flex: none; max-width: 34%; font-size: 12.5px; color: var(--sms-soft); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sms-res-go { flex: none; color: transparent; }
.sms-res.is-on .sms-res-go { color: var(--sms-blue); }

/* loading */
.sms-skel { display: grid; gap: 7px; padding: 12px 10px; }
.sms-skel i { display: block; height: 11px; border-radius: 6px; background: linear-gradient(90deg, #f0f2f6 25%, #f8f9fb 50%, #f0f2f6 75%); background-size: 200% 100%; animation: smsShine 1.1s linear infinite; }
.sms-skel i:first-child { height: 14px; }
@keyframes smsShine { from { background-position: 200% 0; } to { background-position: -200% 0; } }

/* nothing found */
.sms-none { padding: 22px 10px 10px; text-align: center; }
.sms-none b { display: block; font-size: 15.5px; font-weight: 700; color: var(--sms-ink); }
.sms-none p { margin: 6px 0 14px; font-size: 13.5px; color: var(--sms-mid); }
.sms-btns { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; }
.sms-btn { display: inline-block; padding: 9px 14px; border: 1px solid var(--sms-line); border-radius: 8px; font-size: 13.5px; font-weight: 600; color: var(--sms-ink); text-decoration: none; }
.sms-btn.pri { background: var(--sms-blue); border-color: var(--sms-blue); color: #fff; }
.sms-btn:hover { text-decoration: none; filter: brightness(.96); color: inherit; }
.sms-btn.pri:hover { color: #fff; }

/* header buttons that open it */
/* search tab fixed to the left edge of every page below 1024 px (opens the palette) */
.sms-side {
    position: fixed;
    left: 0;
    top: 50%;
    z-index: 9990;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    padding: 14px 10px 16px 9px;
    border: 0;
    border-radius: 0 14px 14px 0;
    background: #0048fc;
    color: #fff;
    box-shadow: 4px 8px 22px -8px rgba(0, 72, 252, .6);
    cursor: pointer;
    transform: translateY(-50%);
    transition: padding .18s ease, background .18s ease;
}
.sms-side::before { content: ""; position: absolute; left: 0; top: 12px; bottom: 12px; width: 3px; border-radius: 0 3px 3px 0; background: #f1665b; }
.sms-side:hover, .sms-side:focus-visible { padding-left: 14px; background: #003bd1; outline: 0; }
.sms-side:focus-visible { box-shadow: 0 0 0 3px rgba(0, 72, 252, .3); }
.sms-side svg { flex: none; }
.sms-side-t {
    writing-mode: vertical-rl;
    transform: rotate(180deg);
    font-family: degular_displaysemibold, degular_displaymedium, sans-serif;
    font-size: 15px;
    line-height: 1;
    letter-spacing: .09em;
}
body.sms-lock .sms-side { visibility: hidden; }
@media (max-width: 767px) {
    .sms-side { gap: 8px; padding: 11px 7px 12px 6px; border-radius: 0 11px 11px 0; }
    .sms-side:hover, .sms-side:focus-visible { padding-left: 6px; }
    .sms-side svg { width: 16px; height: 16px; }
    .sms-side-t { font-size: 12.5px; }
}
/* Which search button shows where:
   - below 1024 px: the left tab (.sms-side)
   - 1024–1199 px: the site still uses the hamburger menu there, so a round button sits next to it (.sms-open-m)
   - 1200 px and up: the round button in the desktop navbar (#navSearch) */
@media (min-width: 1024px) { .sms-side { display: none; } }
@media (max-width: 1199px) { #navSearch { display: none; } }
.sms-open-m { display: none; }
@media (min-width: 1024px) and (max-width: 1199px) {
    .sms-open-m {
        position: absolute;
        right: calc(3% + 40px);
        top: 9px;
        z-index: 999999;
        display: grid;
        place-items: center;
        width: 36px;
        height: 36px;
        padding: 0;
        border: 1px solid #d0d5dd;
        border-radius: 50%;
        background: #fff;
        color: #101828;
        cursor: pointer;
    }
    .sms-open-m:hover, .sms-open-m:focus-visible { border-color: #0048fc; color: #0048fc; outline: 0; }
}
@media print { .sms-side { display: none; } }

/* tablets: 3 columns get too narrow, use 2 */
@media (max-width: 900px) {
    .sms-bgrid.c3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* phones: full screen, one column */
@media (max-width: 640px) {
    .sms { padding: 0; background: #fff; }
    .sms-box { width: 100%; height: 100%; max-height: none; border-radius: 0; box-shadow: none; }
    .sms-head { padding: 0 6px 0 14px; }
    .sms-input { height: 56px; font-size: 16px; }
    .sms-rows, .sms-bgrid.c2, .sms-bgrid.c3 { grid-template-columns: 1fr; }
    .sms-res-g { display: none; }
}
@media (prefers-reduced-motion: reduce) {
    .sms.is-in .sms-box, .sms-bar::before, .sms-skel i { animation: none; }
}

/* Fonts: the site font (Degular Display) is narrow – give it a little air, and use its real semibold face
   instead of a browser-made bold (which squeezes the letters together). */
.sms { letter-spacing: .025em; }
.sms button, .sms input { letter-spacing: inherit; }
.sms-input { letter-spacing: .02em; }
.sms-h { letter-spacing: .04em; font-weight: 400; font-family: degular_displaymedium, sans-serif; }
.sms-res-t, .sms-res-t mark, .sms-none b, .sms-btn, .sms-link, .sms-clear {
    font-family: degular_displaysemibold, degular_displaymedium, sans-serif;
    font-weight: 400;
}
.sms-row { font-family: degular_displayregular, degular_displaymedium, sans-serif; }
.sms-row { font-size: 15.5px; }
.sms-res-t { font-size: 16px; }
.sms-res-d { font-family: degular_displayregular, degular_displaymedium, sans-serif; font-size: 13.5px; }
