/* ==========================================================================
   Website theme — shared by every frontend page
   Design tokens, typography, buttons, section headings and motion helpers.
   Prefix: e2-  (never used by the legacy style.css / custom.css)
   ========================================================================== */

:root {
    /* Brand */
    --site-primary: #135667;
    --site-primary-600: #0e4352;
    --site-primary-400: #1d7a92;
    --site-primary-50: #e8f2f5;
    --site-accent: #2bb3c0;
    --site-dark: #0b2a33;

    /* Neutrals */
    --site-ink: #0f172a;
    --site-text: #334155;
    --site-muted: #64748b;
    --site-line: #e5e9ef;
    --site-soft: #f6f9fb;
    --site-white: #ffffff;

    /* Shape & depth */
    --site-radius: 14px;
    --site-radius-lg: 22px;
    --site-shadow-sm: 0 1px 2px rgba(15, 23, 42, .05), 0 4px 12px -6px rgba(15, 23, 42, .08);
    --site-shadow: 0 1px 2px rgba(15, 23, 42, .04), 0 18px 40px -20px rgba(15, 23, 42, .22);
    --site-ease: cubic-bezier(.2, .8, .2, 1);
}

[hidden] { display: none !important; }

/* Images with a fallback fade in once loaded (layout.js adds .js-img and .is-loaded) */
.js-img img[data-hide-on-error] { opacity: 0; transition: opacity .4s ease; }
.js-img img[data-hide-on-error].is-loaded { opacity: 1; }

/* --------------------------------------------------------------------------
   Sections & headings
   -------------------------------------------------------------------------- */

.e2-section { position: relative; padding: 104px 0; }
.e2-section-soft { background: var(--site-soft); }
.e2-section h1, .e2-section h2, .e2-section h3, .e2-section h4 { font-family: inherit; }

.e2-head { max-width: 680px; margin: 0 auto 56px; text-align: center; }
.e2-head-left { margin-left: 0; text-align: left; }

.e2-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 16px;
    padding: 6px 14px 6px 10px;
    border: 1px solid rgba(19, 86, 103, .14);
    border-radius: 999px;
    font-size: .78rem;
    font-weight: 600;
    letter-spacing: .02em;
    color: var(--site-primary);
    background: rgba(255, 255, 255, .7);
}
.e2-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--site-accent);
    box-shadow: 0 0 0 0 rgba(43, 179, 192, .6);
    animation: e2-pulse 2.2s infinite;
}
@keyframes e2-pulse {
    70% { box-shadow: 0 0 0 8px rgba(43, 179, 192, 0); }
    100% { box-shadow: 0 0 0 0 rgba(43, 179, 192, 0); }
}

.e2-title {
    margin: 0 0 16px;
    font-size: clamp(1.9rem, 3.4vw, 2.75rem);
    font-weight: 800;
    line-height: 1.15;
    letter-spacing: -.03em;
    color: var(--site-ink);
}
.e2-lead { margin: 0; font-size: 1.08rem; line-height: 1.7; color: var(--site-muted); }

.e2-gradient-text {
    background: linear-gradient(100deg, var(--site-primary) 0%, var(--site-accent) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

/* --------------------------------------------------------------------------
   Buttons
   -------------------------------------------------------------------------- */

.e2-btn {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    height: 46px;
    padding: 0 22px;
    border: 1px solid transparent;
    border-radius: 12px;
    font-size: .95rem;
    font-weight: 600;
    white-space: nowrap;
    text-decoration: none;
    cursor: pointer;
    overflow: hidden;
    transition: background .2s, color .2s, border-color .2s, box-shadow .2s, transform .2s;
}
.e2-btn i { font-size: .8rem; transition: transform .2s; }
.e2-btn:hover i.fa-arrow-right { transform: translateX(4px); }
.e2-btn:focus-visible { outline: 3px solid rgba(19, 86, 103, .3); outline-offset: 2px; }
.e2-btn-lg { height: 54px; padding: 0 28px; font-size: 1rem; border-radius: 14px; }

.e2-btn-primary {
    color: #fff;
    background: linear-gradient(135deg, var(--site-primary) 0%, var(--site-primary-400) 100%);
    box-shadow: 0 10px 24px -12px rgba(19, 86, 103, .8);
}
.e2-btn-primary:hover { color: #fff; transform: translateY(-2px); box-shadow: 0 16px 30px -12px rgba(19, 86, 103, .85); }
.e2-btn-primary::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(110deg, transparent 30%, rgba(255, 255, 255, .28) 50%, transparent 70%);
    transform: translateX(-100%);
    transition: transform .7s ease;
}
.e2-btn-primary:hover::after { transform: translateX(100%); }

.e2-btn-light { color: var(--site-ink); background: #fff; border-color: var(--site-line); box-shadow: var(--site-shadow-sm); }
.e2-btn-light:hover { color: var(--site-primary); border-color: rgba(19, 86, 103, .3); transform: translateY(-2px); }

.e2-btn.is-loading { color: transparent; pointer-events: none; }
.e2-btn.is-loading::before {
    content: '';
    position: absolute;
    width: 20px;
    height: 20px;
    border: 2px solid rgba(255, 255, 255, .4);
    border-top-color: #fff;
    border-radius: 50%;
    animation: e2-spin .7s linear infinite;
}
@keyframes e2-spin { to { transform: rotate(360deg); } }

/* --------------------------------------------------------------------------
   Logo marquee (used by any page that lists partner/customer logos)
   -------------------------------------------------------------------------- */

.e2-marquee {
    position: relative;
    overflow: hidden;
    mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
    -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}
.e2-marquee-track {
    display: flex;
    gap: 16px;
    width: max-content;
    animation: e2-marquee 40s linear infinite;
}
.e2-marquee:hover .e2-marquee-track { animation-play-state: paused; }
.e2-marquee-reverse .e2-marquee-track { animation-direction: reverse; }
@keyframes e2-marquee { to { transform: translateX(-50%); } }

/* Too few items to scroll: centre them and drop the duplicates (set by site.js) */
.e2-marquee.is-static { mask-image: none; -webkit-mask-image: none; }
.e2-marquee.is-static .e2-marquee-track { width: auto; justify-content: center; flex-wrap: wrap; animation: none; }
.e2-marquee.is-static [data-clone] { display: none; }

/* --------------------------------------------------------------------------
   Scroll reveal — elements with [data-reveal] fade up when they enter view.
   Only hidden once site.js has added .js-reveal, so content never stays
   invisible without JavaScript.
   -------------------------------------------------------------------------- */

.js-reveal [data-reveal] {
    opacity: 0;
    transform: translateY(22px);
    transition: opacity .7s var(--site-ease), transform .7s var(--site-ease);
}
.js-reveal [data-reveal].is-visible { opacity: 1; transform: none; }
.js-reveal [data-reveal="2"] { transition-delay: .08s; }
.js-reveal [data-reveal="3"] { transition-delay: .16s; }
.js-reveal [data-reveal="4"] { transition-delay: .24s; }

@media (max-width: 767.98px) {
    .e2-section { padding: 72px 0; }
    .e2-head { margin-bottom: 40px; }
}

@media (prefers-reduced-motion: reduce) {
    .js-reveal [data-reveal] { opacity: 1; transform: none; transition: none; }
    .e2-marquee-track, .e2-dot { animation: none; }
}
