/*
 * iSender360 site header (marketing + developer pages).
 * Own class names (ish-*) so the legacy template rules (.header-section, .navbar, Bootstrap
 * utilities, style.css element rules like `a, span, button { font-size: 16px }`) never apply.
 * Layout: logo | links centred | actions. Full menu from 1280px; below that, a menu button.
 */

.ish-header {
    position: sticky;
    top: 0;
    z-index: 1030;
    background: rgba(255, 255, 255, .94);
    -webkit-backdrop-filter: saturate(1.4) blur(12px);
    backdrop-filter: saturate(1.4) blur(12px);
    border-bottom: 1px solid #e6eeeb;
    transition: box-shadow .2s ease;
}
.ish-header.is-scrolled { box-shadow: 0 8px 24px rgba(16, 24, 40, .07); }

.ish-header-bar {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    column-gap: 24px;
    height: 72px;
}

/* Text inside the header inherits the sizes set below, not the template's 16px element rule. */
.ish-header :is(a, button, span, li) { font-family: inherit; line-height: inherit; }
.ish-header ul { margin: 0; padding: 0; list-style: none; }

/* Logo */
.ish-brand { justify-self: start; display: inline-flex; align-items: center; min-width: max-content; text-decoration: none; }
.ish-brand img { display: block; width: auto; max-width: none; flex: none; }
.ish-brand-full { height: 28px; }
.ish-brand-mark { height: 26px; display: none !important; }

/* Links */
.ish-nav { justify-self: center; }
.ish-nav-list { display: flex; align-items: center; gap: 2px; }
.ish-link {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    height: 38px;
    padding: 0 12px;
    border: 0;
    border-radius: 10px;
    background: transparent;
    color: #2b363d;
    font-size: 15px;
    font-weight: 600;
    line-height: 1;
    white-space: nowrap;
    text-decoration: none;
    cursor: pointer;
    transition: color .15s ease, background-color .15s ease;
}
.ish-link:hover, .ish-link:focus-visible { color: #128C7E; background: #f1f8f5; }
.ish-link.is-active { color: #128C7E; background: #e5f5ed; }
.ish-link svg { width: 14px; height: 14px; flex: none; transition: transform .2s ease; }
.ish-more { position: relative; }
.ish-more[data-open="true"] > .ish-link svg { transform: rotate(180deg); }

/* "More" menu */
.ish-menu {
    position: absolute;
    top: calc(100% + 10px);
    left: 50%;
    transform: translateX(-50%);
    min-width: 210px;
    padding: 6px;
    background: #fff;
    border: 1px solid #e6eeeb;
    border-radius: 14px;
    box-shadow: 0 16px 40px rgba(16, 24, 40, .12);
}
.ish-menu a {
    display: block;
    padding: 10px 12px;
    border-radius: 9px;
    color: #2b363d;
    font-size: 14.5px;
    font-weight: 500;
    line-height: 1.3;
    white-space: nowrap;
    text-decoration: none;
}
.ish-menu a:hover, .ish-menu a:focus-visible { background: #f1f8f5; color: #128C7E; }
.ish-menu a.is-active { color: #128C7E; font-weight: 700; }

/* Actions */
.ish-actions { justify-self: end; display: flex; align-items: center; gap: 6px; }
.ish-lang, .ish-signin {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    height: 38px;
    padding: 0 10px;
    border-radius: 10px;
    color: #41505a;
    font-size: 14.5px;
    font-weight: 600;
    line-height: 1;
    white-space: nowrap;
    text-decoration: none;
    transition: color .15s ease, background-color .15s ease;
}
.ish-lang:hover, .ish-signin:hover, .ish-lang:focus-visible, .ish-signin:focus-visible { color: #128C7E; background: #f1f8f5; }
.ish-lang svg, .ish-signin svg { width: 18px; height: 18px; flex: none; }
.ish-lang span, .ish-signin span { font-size: inherit; font-weight: inherit; color: inherit; }
.ish-signin svg { display: none; }

.ish-cta {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 42px;
    padding: 0 20px;
    border-radius: 999px;
    background: linear-gradient(135deg, #25D366 0%, #128C7E 100%);
    color: #fff;
    font-size: 15px;
    font-weight: 700;
    line-height: 1;
    white-space: nowrap;
    text-decoration: none;
    box-shadow: 0 6px 16px rgba(18, 140, 126, .24);
    transition: transform .15s ease, box-shadow .15s ease;
}
.ish-cta:hover, .ish-cta:focus-visible { color: #fff; transform: translateY(-1px); box-shadow: 0 10px 22px rgba(18, 140, 126, .3); }

/* Menu button (below 1280px) */
.ish-burger {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 42px;
    height: 42px;
    padding: 0 10px;
    border: 1px solid #e6eeeb;
    border-radius: 12px;
    background: #fff;
    cursor: pointer;
}
.ish-burger span { display: block; height: 2px; border-radius: 2px; background: #2b363d; transition: transform .2s ease, opacity .2s ease; }
.ish-burger.is-open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.ish-burger.is-open span:nth-child(2) { opacity: 0; }
.ish-burger.is-open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Mobile / tablet menu */
.ish-mobile {
    border-top: 1px solid #e6eeeb;
    background: #fff;
    box-shadow: 0 18px 30px rgba(16, 24, 40, .08);
    max-height: calc(100vh - 64px);
    overflow-y: auto;
}
.ish-mobile .container { padding-top: 10px; padding-bottom: 16px; }
.ish-mobile-list a {
    display: flex;
    align-items: center;
    min-height: 46px;
    padding: 0 12px;
    border-radius: 10px;
    color: #2b363d;
    font-size: 16px;
    font-weight: 600;
    line-height: 1.3;
    text-decoration: none;
}
.ish-mobile-list a:hover, .ish-mobile-list a.is-active { background: #e5f5ed; color: #128C7E; }
.ish-mobile-more { margin-top: 6px !important; padding-top: 6px !important; border-top: 1px solid #eef2f1; }
.ish-mobile-more a { min-height: 42px; font-size: 15px; font-weight: 500; color: #41505a; }
.ish-mobile-actions { display: flex; gap: 10px; margin-top: 14px; }
.ish-mobile-actions > a { flex: 1; height: 46px; }
.ish-mobile-signin {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid #cfe3dc;
    border-radius: 999px;
    color: #128C7E;
    font-size: 15px;
    font-weight: 700;
    line-height: 1;
    text-decoration: none;
}

/* Wide desktop: a little more room between links */
@media (min-width: 1400px) {
    .ish-link { padding: 0 14px; }
}

/* 1280–1399px: sign-in shows as an icon so the links stay on one line and centred */
@media (min-width: 1280px) and (max-width: 1399.98px) {
    .ish-signin { padding: 0; width: 38px; justify-content: center; }
    .ish-signin svg { display: block; }
    .ish-signin span { display: none; }
}

/* Below 1280px: links move into the menu */
@media (max-width: 1279.98px) {
    .ish-header-bar { grid-template-columns: 1fr auto; height: 68px; }
    .ish-nav, .ish-signin { display: none; }
    .ish-burger { display: inline-flex; }
}

@media (max-width: 575.98px) {
    .ish-header-bar { height: 64px; column-gap: 12px; }
    .ish-brand-full { display: none !important; }
    .ish-brand-mark { display: block !important; }
    .ish-actions { gap: 4px; }
    .ish-cta { height: 40px; padding: 0 16px; font-size: 14px; }
    .ish-lang { padding: 0 8px; }
}

@media (max-width: 359.98px) {
    .ish-actions > .ish-cta { display: none; }
}

@media (prefers-reduced-motion: reduce) {
    .ish-header, .ish-link, .ish-link svg, .ish-cta, .ish-burger span { transition: none; }
}
