:root {
    /* UTECH brand palette — Corporate Identity Standards 2024 */
    --utech-logo-blue: #1175BC;   /* logotype color */
    --utech-blue: #0C599B;         /* primary blue */
    --utech-blue-2: #2E7CBC;       /* secondary blue */
    --utech-blue-3: #71B5D6;       /* secondary light blue */
    --utech-blue-deep: #0a3f70;    /* deep blue for footer */
    --utech-navy: #0b1b34;         /* search field / header search */
    --utech-green: #88CDBA;        /* primary green */
    --utech-green-2: #A4D8C5;
    --utech-green-3: #CBE8DC;      /* lightest green tint */
    --utech-red: #D4202B;          /* primary red */
    --utech-red-2: #E54256;
    --utech-ink: #1f2d3d;
    --utech-muted: #5d7281;
    --utech-line: rgba(255, 255, 255, 0.20);
    --utech-page: #f4f6f8;
}

* { box-sizing: border-box; }

body {
    margin: 0;
    font-family: "Mulish", "Segoe UI", system-ui, -apple-system, Arial, sans-serif;
    color: var(--utech-ink);
    background: var(--utech-page);
    -webkit-font-smoothing: antialiased;
}

a { text-decoration: none; }
img { max-width: 100%; display: block; }

.container {
    max-width: 1180px;
    margin: 0 auto;
    padding: 0 clamp(18px, 4vw, 40px);
}

/* ============ HEADER ============ */
.utech-topbar-accent { height: 4px; background: var(--utech-blue); }

.utech-utility {
    background: #ffffff;
    border-bottom: 1px solid #eef1f4;
    font-size: 0.85rem;
}
.utech-utility .container {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 26px;
    height: 42px;
}
.utech-utility a, .utech-utility span {
    color: var(--utech-muted);
    display: inline-flex;
    align-items: center;
    gap: 7px;
}
.utech-utility a:hover { color: var(--utech-blue); }
.utech-utility .util-icon { width: 14px; height: 14px; fill: var(--utech-logo-blue); }
.utech-utility .util-login { color: var(--utech-ink); font-weight: 700; }

.utech-header {
    background: #ffffff;
    border-bottom: 1px solid #e7ebef;
}
.utech-header .container {
    display: flex;
    align-items: center;
    gap: clamp(16px, 4vw, 48px);
    min-height: 84px;
    padding-top: 14px;
    padding-bottom: 14px;
}
.utech-logo img { height: 34px; width: auto; }

.utech-search {
    flex: 1;
    display: flex;
    max-width: 560px;
}
.utech-search input {
    flex: 1;
    border: 0;
    background: var(--utech-navy);
    color: #fff;
    padding: 0 18px;
    height: 44px;
    border-radius: 8px 0 0 8px;
    font-size: 0.95rem;
    outline: none;
}
.utech-search input::placeholder { color: rgba(255,255,255,0.55); }
.utech-search button {
    border: 0;
    background: var(--utech-logo-blue);
    color: #fff;
    width: 52px;
    border-radius: 0 8px 8px 0;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}
.utech-search button:hover { background: var(--utech-blue); }
.utech-search .ico { width: 18px; height: 18px; fill: #fff; }

.utech-header-actions {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-left: auto;
}
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    font-weight: 700;
    font-size: 0.92rem;
    padding: 10px 20px;
    cursor: pointer;
    transition: background .15s ease, color .15s ease, border-color .15s ease;
    white-space: nowrap;
}
.btn-outline {
    border: 1.5px solid var(--utech-logo-blue);
    color: var(--utech-logo-blue);
    background: #fff;
}
.btn-outline:hover { background: var(--utech-logo-blue); color: #fff; }
.btn-primary {
    border: 1.5px solid var(--utech-logo-blue);
    background: var(--utech-logo-blue);
    color: #fff;
}
.btn-primary:hover { background: var(--utech-blue); border-color: var(--utech-blue); }

/* ============ HERO / WELCOME ============ */
/* Shared light surface used by hero + modules so the banner reads as a card on it */
.utech-surface {
    background:
        radial-gradient(circle at 12% 0%, rgba(136,205,186,0.18), transparent 40%),
        radial-gradient(circle at 92% 100%, rgba(113,181,214,0.16), transparent 42%),
        var(--utech-page);
}
/* Flat grey that matches the banner image's baked-in margin (#f5f5f5)
   so the image's edge is invisible — no second "pill" behind the banner. */
.utech-hero { padding: 26px 0; background: #f5f5f5; }
.utech-hero-banner {
    position: relative;
    border-radius: 22px;
}
.utech-hero-bg {
    display: block;
    width: 100%;
    height: auto;
    border-radius: 22px;
}
.utech-hero-text {
    position: absolute;
    top: 50%;
    left: 6%;
    transform: translateY(-50%);
    width: 58%;
    max-width: 600px;
    color: #fff;
    z-index: 2;
}
.utech-hero h1 {
    font-size: clamp(1.4rem, 3.4vw, 2.9rem);
    line-height: 1.06;
    font-weight: 800;
    margin: 0 0 clamp(8px, 1.4vw, 18px);
    white-space: nowrap;
}
.utech-hero p {
    font-size: clamp(0.78rem, 1.55vw, 1.06rem);
    line-height: 1.5;
    margin: 0 0 clamp(12px, 1.8vw, 26px);
    color: rgba(255,255,255,0.92);
}
.utech-hero .btn { padding: clamp(7px, 1vw, 10px) clamp(14px, 1.6vw, 20px); font-size: clamp(0.8rem, 1.1vw, 0.92rem); }
.utech-hero .btn-primary {
    background: #fff;
    color: var(--utech-blue);
    border-color: #fff;
}
.utech-hero .btn-primary:hover { background: var(--utech-blue-deep); border-color: var(--utech-blue-deep); color: #fff; }

/* ============ MODULES ============ */
.utech-modules {
    background: linear-gradient(180deg, #1175BC 0%, #0C599B 100%);
    padding: 40px 0 64px;
}
.utech-modules-head { text-align: center; margin-bottom: 40px; }
.utech-modules-head h2 {
    font-size: clamp(1.6rem, 3vw, 2.1rem);
    font-weight: 800;
    color: #ffffff;
    margin: 0 0 10px;
}
.utech-modules-head .accent {
    width: 64px; height: 4px;
    background: var(--utech-green);
    border-radius: 4px;
    margin: 0 auto 14px;
}
.utech-modules-head p { color: rgba(255,255,255,0.82); margin: 0; font-size: 1rem; }

.utech-modules-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}
.utech-card {
    background: #fff;
    border: 1px solid #e7ebef;
    border-radius: 14px;
    padding: 32px 26px 26px;
    text-align: center;
    transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
}
.utech-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 16px 34px rgba(12,89,155,0.16);
    border-color: transparent;
}
.utech-card-icon {
    width: 76px; height: 76px;
    border-radius: 50%;
    background: linear-gradient(140deg, var(--utech-blue-2), var(--utech-blue));
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
    box-shadow: 0 8px 18px rgba(12,89,155,0.28);
}
.utech-card-icon svg { width: 36px; height: 36px; fill: #fff; }
.utech-card h3 {
    font-size: 1.22rem;
    font-weight: 700;
    color: var(--utech-ink);
    margin: 0 0 8px;
}
.utech-card p {
    font-size: 0.92rem;
    color: var(--utech-muted);
    line-height: 1.5;
    margin: 0 0 18px;
    flex: 1;
}
.utech-card-link {
    font-weight: 700;
    font-size: 0.92rem;
    color: var(--utech-logo-blue);
}
.utech-card:hover .utech-card-link { color: var(--utech-blue); }

/* ============ FOOTER ============ */
.utech-footer {
    background: var(--utech-blue-deep);
    color: rgba(255,255,255,0.84);
}
.utech-footer-main { padding: 54px 0 36px; }
.utech-footer-top {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 28px;
    padding-bottom: 30px;
    margin-bottom: 34px;
    border-bottom: 1px solid var(--utech-line);
}
.utech-footer h4 {
    color: #fff;
    font-size: 1.02rem;
    font-weight: 700;
    margin: 0 0 18px;
}
.utech-footer-about img { height: 30px; margin-bottom: 16px; filter: brightness(0) invert(1); }
.utech-footer-about p { font-size: 0.92rem; line-height: 1.6; color: rgba(255,255,255,0.78); margin: 0 0 14px; max-width: 360px; }
.utech-footer-about a { color: #fff; font-weight: 600; }
.utech-footer ul { list-style: none; margin: 0; padding: 0; }
.utech-footer li { margin-bottom: 9px; }
.utech-footer a, .utech-footer li { color: rgba(255,255,255,0.82); font-size: 0.92rem; line-height: 1.5; }
.utech-footer a:hover { color: #fff; text-decoration: underline; }

.utech-locations-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 22px 40px;
}
.utech-loc-label {
    font-size: 0.7rem;
    letter-spacing: 0.09em;
    text-transform: uppercase;
    font-weight: 700;
    color: var(--utech-green-2);
    margin: 0 0 4px;
}
.utech-loc-name { color: #fff; font-weight: 700; font-size: 0.94rem; margin: 0 0 4px; }
.utech-loc address {
    font-style: normal;
    color: rgba(255,255,255,0.76);
    font-size: 0.86rem;
    line-height: 1.5;
}
.utech-loc address a { color: rgba(255,255,255,0.76); }

.utech-copyright {
    background: rgba(0,0,0,0.22);
    font-size: 0.84rem;
    color: rgba(255,255,255,0.7);
}
.utech-copyright .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 10px;
    padding-top: 16px;
    padding-bottom: 16px;
}

/* ============ RESPONSIVE ============ */
@media (max-width: 980px) {
    .utech-modules-grid { grid-template-columns: repeat(2, 1fr); }
    .utech-locations-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 760px) {
    .utech-utility .container { justify-content: center; gap: 16px; flex-wrap: wrap; }
    .utech-header .container { flex-wrap: wrap; min-height: 0; }
    .utech-search { order: 3; flex-basis: 100%; max-width: none; }
    .utech-header-actions { margin-left: 0; }
    /* Banner is too short to hold text on phones — show a solid blue block instead */
    .utech-hero-bg { display: none; }
    .utech-hero-banner { background: var(--utech-logo-blue); padding: 34px 26px; }
    .utech-hero-text {
        position: static;
        transform: none;
        width: auto;
        left: auto;
    }
    .utech-hero h1 { font-size: 1.9rem; white-space: normal; }
    .utech-hero p { font-size: 1rem; }
    .utech-hero .btn { font-size: 0.9rem; padding: 10px 20px; }
}
@media (max-width: 520px) {
    .utech-modules-grid { grid-template-columns: 1fr; }
    .utech-locations-grid { grid-template-columns: 1fr; }
    .utech-utility .util-hide { display: none; }
}

/* ============ LIVE SEARCH DROPDOWN ============ */
.utech-search { position: relative; }

.utech-search-dd {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: #fff;
    border: 1px solid #dce3ea;
    border-top: 0;
    border-radius: 0 0 12px 12px;
    box-shadow: 0 14px 32px rgba(12,89,155,0.13);
    z-index: 1000;
    max-height: 420px;
    overflow-y: auto;
}
.utech-search-dd.is-open { display: block; }

.utech-sd-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 11px 16px;
    border-bottom: 1px solid #f0f3f6;
    text-decoration: none;
    color: var(--utech-ink);
    transition: background .12s ease;
    outline: none;
}
.utech-sd-item:last-child { border-bottom: 0; }
.utech-sd-item:hover,
.utech-sd-item:focus { background: #f0f7ff; }

/* colored badge abbreviation */
.utech-sd-badge {
    flex-shrink: 0;
    width: 40px;
    height: 40px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.68rem;
    font-weight: 800;
    color: #fff;
    letter-spacing: 0.04em;
}
.utech-badge-sale     { background: var(--utech-blue); }
.utech-badge-crm      { background: #2e9e7a; }
.utech-badge-purchase { background: #c07520; }
.utech-badge-ticket   { background: var(--utech-red); }
.utech-badge-invoice  { background: #6b46c1; }
.utech-badge-other    { background: var(--utech-muted); }

/* text body */
.utech-sd-body {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 2px;
}
.utech-sd-name {
    font-weight: 700;
    font-size: 0.9rem;
    color: var(--utech-ink);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.utech-sd-sub {
    font-size: 0.79rem;
    color: var(--utech-muted);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* right-side type pill */
.utech-sd-pill {
    flex-shrink: 0;
    font-size: 0.72rem;
    color: var(--utech-muted);
    background: #f0f3f6;
    border-radius: 4px;
    padding: 3px 8px;
    white-space: nowrap;
}

/* states */
.utech-sd-empty,
.utech-sd-loading {
    padding: 18px 20px;
    font-size: 0.88rem;
    color: var(--utech-muted);
    text-align: center;
}
