.es-public-header { position: sticky; top: 0; z-index: 2000; background: rgba(255,255,255,.98); border-bottom: 1px solid var(--es-border); }
.es-public-header__inner { min-height: 72px; display: flex; align-items: center; gap: 28px; }
.es-brand { display: inline-flex; align-items: center; gap: 11px; flex: 0 0 auto; color: var(--es-neutral-950); text-decoration: none; }
.es-brand:hover { color: var(--es-neutral-950); }
.es-brand__mark { width: 38px; height: 38px; display: grid; place-items: center; color: #fff; background: var(--es-orange-700); border-radius: 7px; font-size: 15px; font-weight: 700; letter-spacing: -.04em; }
.es-brand__name { display: block; font-size: 16px; font-weight: 700; line-height: 1.1; }
.es-brand__descriptor { display: block; margin-top: 3px; color: var(--es-text-muted); font-size: 10px; font-weight: 500; line-height: 1.2; }
.es-primary-nav { display: flex; align-items: center; gap: 2px; margin-left: auto; }
.es-nav-item { position: relative; }
.es-nav-link, .es-nav-trigger {
    min-height: 42px; display: inline-flex; align-items: center; gap: 6px; padding: 0 10px; color: var(--es-neutral-800);
    background: transparent; border: 0; border-radius: var(--es-radius-control); font-size: 13px; font-weight: 600; text-decoration: none;
}
.es-nav-link:hover, .es-nav-trigger:hover, .es-nav-link:focus, .es-nav-trigger:focus { color: var(--es-neutral-950); background: var(--es-neutral-50); }
.es-nav-link[aria-current="page"] { color: var(--es-orange-800); }
.es-nav-trigger .fa-chevron-down { font-size: 9px; transition: transform var(--es-duration-normal) var(--es-ease); }
.es-nav-item.is-open .es-nav-trigger .fa-chevron-down { transform: rotate(180deg); }
.es-nav-dropdown {
    position: absolute; top: calc(100% + 8px); left: 0; width: 278px; display: none; padding: 8px; background: #fff; border: 1px solid var(--es-border);
    border-radius: var(--es-radius-surface); box-shadow: 0 8px 24px rgba(23,23,23,.10);
}
.es-nav-item.is-open .es-nav-dropdown { display: block; }
.es-nav-dropdown a { display: grid; gap: 2px; padding: 10px 11px; color: var(--es-neutral-800); border-radius: 5px; text-decoration: none; }
.es-nav-dropdown a:hover, .es-nav-dropdown a:focus { color: var(--es-neutral-950); background: var(--es-neutral-50); }
.es-nav-dropdown strong { font-size: 13px; font-weight: 650; }
.es-nav-dropdown small { color: var(--es-text-muted); font-size: 11px; line-height: 1.4; }
.es-header-actions { display: flex; align-items: center; gap: 8px; margin-left: 6px; }
.es-account-link { min-height: 42px; display: inline-flex; align-items: center; padding: 0 8px; color: var(--es-neutral-800); font-size: 13px; font-weight: 600; background: transparent; border: 0; text-decoration: none; }
.es-account-link:hover, .es-account-link:focus { color: var(--es-orange-800); }
.es-menu-button { width: 44px; height: 44px; display: none; place-items: center; margin-left: auto; color: var(--es-neutral-950); background: #fff; border: 1px solid var(--es-border-strong); border-radius: var(--es-radius-control); }
.es-mobile-drawer { position: fixed; inset: 0; z-index: 2500; display: none; }
.es-mobile-drawer.is-open { display: block; }
.es-mobile-drawer__backdrop { position: absolute; inset: 0; background: rgba(23,23,23,.45); }
.es-mobile-drawer__panel { position: absolute; top: 0; right: 0; width: min(400px, 92vw); height: 100%; overflow-y: auto; background: #fff; border-left: 1px solid var(--es-border); }
.es-mobile-drawer__head { min-height: 68px; display: flex; align-items: center; justify-content: space-between; padding: 12px 20px; border-bottom: 1px solid var(--es-border); }
.es-mobile-drawer__close { width: 42px; height: 42px; display: grid; place-items: center; background: transparent; border: 0; border-radius: var(--es-radius-control); }
.es-mobile-nav { padding: 14px 20px 28px; }
.es-mobile-nav__link, .es-mobile-nav__trigger { width: 100%; min-height: 48px; display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 10px 4px; color: var(--es-neutral-900); background: transparent; border: 0; border-bottom: 1px solid var(--es-border); font-size: 15px; font-weight: 600; text-align: left; text-decoration: none; }
.es-mobile-subnav { display: none; padding: 6px 0 10px 14px; border-bottom: 1px solid var(--es-border); }
.es-mobile-nav__group.is-open .es-mobile-subnav { display: grid; }
.es-mobile-subnav a { padding: 10px 0; color: var(--es-text-secondary); font-size: 14px; text-decoration: none; }
.es-mobile-nav__actions { display: grid; gap: 10px; padding-top: 24px; }
.es-public-footer { padding: 56px 0 26px; color: var(--es-text-secondary); background: #fff; border-top: 1px solid var(--es-border); }
.es-footer-grid { display: grid; grid-template-columns: minmax(280px, 1.35fr) repeat(3, minmax(130px, .65fr)); gap: 44px; }
.es-footer-brand p { max-width: 420px; margin: 18px 0 0; color: var(--es-text-secondary); font-size: 13px; line-height: 1.65; }
.es-footer-column h3 { margin-bottom: 14px; color: var(--es-neutral-900); font-size: 13px; letter-spacing: 0; }
.es-footer-column a { display: block; padding: 5px 0; color: var(--es-text-secondary); font-size: 13px; text-decoration: none; }
.es-footer-column a:hover { color: var(--es-orange-800); }
.es-footer-contact { display: grid; gap: 6px; margin-top: 18px; }
.es-footer-contact a { color: var(--es-neutral-700); font-size: 13px; text-decoration: none; }
.es-footer-bottom { display: flex; justify-content: space-between; gap: 24px; margin-top: 42px; padding-top: 20px; border-top: 1px solid var(--es-border); color: var(--es-text-muted); font-size: 12px; }
@media (max-width: 1100px) {
    .es-primary-nav, .es-header-actions { display: none; }
    .es-menu-button { display: grid; }
}
@media (max-width: 767px) {
    .es-public-header__inner { min-height: 64px; }
    .es-brand__descriptor { display: none; }
    .es-footer-grid { grid-template-columns: 1fr 1fr; gap: 32px 24px; }
    .es-footer-brand { grid-column: 1 / -1; }
    .es-footer-bottom { flex-direction: column; }
}
@media (max-width: 520px) {
    .es-footer-grid { grid-template-columns: 1fr; }
    .es-footer-brand { grid-column: auto; }
}
@media (max-width: 900px) {
    .es-footer-grid { grid-template-columns: 1fr 1fr; gap: 32px 24px; }
    .es-footer-brand { grid-column: 1 / -1; }
}

/* Premium shell consolidation V5 */
/* ---------- Public shell ---------- */
.es-public-header {
    background: rgba(250,249,247,.88);
    border-bottom-color: rgba(203,199,193,.62);
    box-shadow: 0 1px 0 rgba(255,255,255,.72);
    backdrop-filter: saturate(135%) blur(16px);
    -webkit-backdrop-filter: saturate(135%) blur(16px);
}
.es-public-header__inner { min-height: 76px; }
.es-nav-link, .es-nav-trigger {
    position: relative;
    border-radius: 7px;
    font-weight: 600;
    transition: color var(--es-duration-fast) var(--es-ease-premium), background var(--es-duration-fast) var(--es-ease-premium);
}
.es-nav-link::after,
.es-nav-trigger::after {
    content: '';
    position: absolute;
    left: 11px;
    right: 11px;
    bottom: 5px;
    height: 1px;
    background: var(--es-orange-700);
    transform: scaleX(0);
    transform-origin: center;
    transition: transform var(--es-duration-normal) var(--es-ease-premium);
}
.es-nav-link:hover::after,
.es-nav-trigger:hover::after,
.es-nav-link[aria-current="page"]::after { transform: scaleX(1); }
.es-nav-link:hover, .es-nav-trigger:hover, .es-nav-link:focus, .es-nav-trigger:focus { background: transparent; }
.es-nav-dropdown {
    display: block;
    visibility: hidden;
    opacity: 0;
    pointer-events: none;
    transform: translateY(8px) scale(.985);
    transform-origin: top left;
    width: 298px;
    padding: 9px;
    background: rgba(255,255,255,.98);
    border-color: #e1ddd6;
    border-radius: 12px;
    box-shadow: var(--es-shadow-md);
    transition: opacity var(--es-duration-normal) var(--es-ease-premium), transform var(--es-duration-normal) var(--es-ease-premium), visibility var(--es-duration-normal);
}
.es-nav-item.is-open .es-nav-dropdown { visibility: visible; opacity: 1; pointer-events: auto; transform: translateY(0) scale(1); }
.es-nav-dropdown a { border-radius: 8px; padding: 11px 12px; }
.es-nav-dropdown a:hover, .es-nav-dropdown a:focus { background: #f7f5f1; }
.es-header-actions .es-button--primary { min-height: 42px; }

.es-mobile-drawer { display: block; visibility: hidden; pointer-events: none; }
.es-mobile-drawer.is-open { visibility: visible; pointer-events: auto; }
.es-mobile-drawer__backdrop { opacity: 0; transition: opacity var(--es-motion-panel) var(--es-ease-premium); backdrop-filter: blur(2px); }
.es-mobile-drawer.is-open .es-mobile-drawer__backdrop { opacity: 1; }
.es-mobile-drawer__panel {
    transform: translateX(102%);
    transition: transform 320ms var(--es-ease-premium);
    box-shadow: -18px 0 50px rgba(23,23,21,.13);
}
.es-mobile-drawer.is-open .es-mobile-drawer__panel { transform: translateX(0); }

/* ---------- Footer ---------- */
.es-public-footer {
    position: relative;
    overflow: hidden;
    padding-top: 64px;
    color: rgba(255,255,255,.63);
    background: linear-gradient(145deg, #1c1c19 0%, #111110 100%);
    border-top: 0;
}
.es-public-footer::before { content: ''; position: absolute; width: 360px; height: 360px; left: -180px; top: -220px; border-radius: 50%; background: rgba(242,106,33,.07); filter: blur(2px); }
.es-public-footer .es-brand__mark::after { border-color: #181816; }
.es-public-footer .es-brand__name { color: #fff; }
.es-footer-brand p,
.es-footer-column a,
.es-footer-contact a { color: rgba(255,255,255,.58); }
.es-footer-column h3 { color: rgba(255,255,255,.9); }
.es-footer-column a:hover, .es-footer-contact a:hover { color: #ff9a65; }
.es-footer-bottom { border-top-color: rgba(255,255,255,.10); color: rgba(255,255,255,.38); }

@media (max-width: 767px) {
    .es-public-header__inner { min-height: 66px; }
    .es-public-footer { padding-top: 48px; }
}
@media (prefers-reduced-motion: reduce) {
    .es-mobile-drawer__panel,
    .es-mobile-drawer__backdrop,
    .es-nav-dropdown { transition: none !important; }
}

/* Brand ownership: public shell keeps the premium mark after its legacy baseline rules. */
.es-public-page .es-brand__mark,
.es-public-legacy .es-brand__mark {
    width: 40px;
    height: 40px;
    background: linear-gradient(145deg, #24231f, #0f0f0e);
    border: 1px solid rgba(255,255,255,.09);
    border-radius: 10px;
    box-shadow: 0 7px 18px rgba(23,23,21,.14), inset 0 1px rgba(255,255,255,.08);
}


/* ============================================================
   ESMART CLIENT BRAND LOGO 2026
   ============================================================ */

.es-brand--client-logo {
    gap: 0;
}

.es-brand__logo-image {
    display: block;
    width: 116px;
    max-width: 100%;
    height: auto;
    object-fit: contain;
}

.es-mobile-drawer__head .es-brand__logo-image {
    width: 106px;
}

.es-public-footer .es-brand--footer-logo {
    display: inline-flex;
    padding: 5px 7px;
    background: #fff;
    border-radius: 8px;
}

.es-public-footer .es-brand--footer-logo .es-brand__logo-image {
    width: 124px;
}

@media (max-width: 767px) {
    .es-brand__logo-image {
        width: 103px;
    }
}

@media (max-width: 420px) {
    .es-brand__logo-image {
        width: 94px;
    }

    .es-mobile-drawer__head .es-brand__logo-image {
        width: 100px;
    }
}



/* ============================================================
   ESMART TRANSPARENT LOGO FINAL FIX 2026
   ============================================================ */

.es-brand--client-logo {
    display: inline-flex;
    align-items: center;
    padding: 0;
    background: transparent;
    border: 0;
    border-radius: 0;
}

.es-brand__logo-image {
    display: block;
    width: 126px;
    height: auto;
    max-width: none;
    object-fit: contain;
}

/*
 * Footer must NOT show a white rectangular image background.
 */
.es-public-footer .es-brand--footer-logo {
    display: inline-flex;
    align-items: center;
    padding: 0 !important;
    background: transparent !important;
    border: 0 !important;
    border-radius: 0 !important;
    box-shadow: none !important;
}

.es-public-footer .es-brand--footer-logo .es-brand__logo-image {
    width: 154px;
    height: auto;
}

/*
 * Mobile navigation logo.
 */
.es-mobile-drawer__head .es-brand__logo-image {
    width: 116px;
    height: auto;
}

@media (max-width: 767px) {

    .es-public-header .es-brand__logo-image {
        width: 112px;
    }

    .es-public-footer .es-brand--footer-logo .es-brand__logo-image {
        width: 142px;
    }
}

@media (max-width: 420px) {

    .es-public-header .es-brand__logo-image {
        width: 104px;
    }

    .es-mobile-drawer__head .es-brand__logo-image {
        width: 108px;
    }
}



/* ============================================================
   ESMART REAL WEB LOGO LOCKUP 2026
   Clean emblem + real text. No cropped wordmark image.
   ============================================================ */

.es-brand--client-logo {
    display: inline-flex;
    align-items: center;
    padding: 0;
    background: transparent;
    border: 0;
    text-decoration: none;
    overflow: visible;
}

.es-logo-lockup {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    min-width: 0;
    line-height: 1;
}

.es-logo-lockup__mark {
    display: block;
    flex: 0 0 auto;

    width: 54px;
    height: 54px;

    object-fit: contain;
    object-position: center;

    overflow: visible;
}

.es-logo-lockup__copy {
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-width: 0;
}

.es-logo-lockup__word {
    display: flex;
    align-items: baseline;

    margin: 0;

    font-family:
        "Plus Jakarta Sans",
        sans-serif;

    font-size: 25px;
    font-weight: 800;
    letter-spacing: -1.4px;
    line-height: .9;

    white-space: nowrap;
}

.es-logo-lockup__e {
    color: #ef6500;
}

.es-logo-lockup__smart {
    color: #191817;
}

.es-logo-lockup__tagline {
    display: block;

    margin-top: 6px;

    color: #5e5953;

    font-size: 6.5px;
    font-weight: 800;
    letter-spacing: .14em;
    line-height: 1;

    text-transform: uppercase;
    white-space: nowrap;
}

.es-logo-lockup__tagline span {
    color: #ef6500;
}


/*
Public navigation sizing.
*/
.es-public-header .es-logo-lockup {
    min-width: 154px;
}

.es-public-header .es-logo-lockup__mark {
    width: 58px;
    height: 58px;
}

.es-public-header .es-logo-lockup__word {
    font-size: 26px;
}


/*
Mobile drawer.
*/
.es-mobile-drawer__head .es-logo-lockup__mark {
    width: 48px;
    height: 48px;
}

.es-mobile-drawer__head .es-logo-lockup__word {
    font-size: 22px;
}


/*
Footer — no white rectangle.
*/
.es-public-footer .es-brand--footer-logo {
    display: inline-flex;

    padding: 0 !important;

    background: transparent !important;
    border: 0 !important;
    border-radius: 0 !important;
    box-shadow: none !important;
}

.es-public-footer .es-logo-lockup__mark {
    width: 66px;
    height: 66px;
}

.es-public-footer .es-logo-lockup__word {
    font-size: 28px;
}

.es-public-footer .es-logo-lockup__smart {
    color: #f3f1ed;
}

.es-public-footer .es-logo-lockup__tagline {
    color: #aaa49d;
}


/* ============================================================
   TABLET
   ============================================================ */

@media (max-width: 900px) {

    .es-public-header .es-logo-lockup__mark {
        width: 52px;
        height: 52px;
    }

    .es-public-header .es-logo-lockup__word {
        font-size: 23px;
    }

    .es-public-header .es-logo-lockup__tagline {
        font-size: 6px;
    }
}


/* ============================================================
   MOBILE
   ============================================================ */

@media (max-width: 767px) {

    .es-public-header .es-logo-lockup {
        min-width: 0;
        gap: 5px;
    }

    .es-public-header .es-logo-lockup__mark {
        width: 45px;
        height: 45px;
    }

    .es-public-header .es-logo-lockup__word {
        font-size: 21px;
        letter-spacing: -1px;
    }

    .es-public-header .es-logo-lockup__tagline {
        display: none;
    }

    .es-public-footer .es-logo-lockup__mark {
        width: 58px;
        height: 58px;
    }

    .es-public-footer .es-logo-lockup__word {
        font-size: 25px;
    }
}


/* ============================================================
   VERY SMALL PHONE
   ============================================================ */

@media (max-width: 380px) {

    .es-public-header .es-logo-lockup__mark {
        width: 40px;
        height: 40px;
    }

    .es-public-header .es-logo-lockup__word {
        font-size: 19px;
    }
}

