/* ==========================================================================
   e-Visa Albania — public landing page
   Black masthead, photographic hero, red three-step band, benefits, footer.
   Palette: #080002 (primary) · #ee0000 (secondary) · white
   ========================================================================== */

:root {
    --primary: #080002;
    --primary-soft: #16110f;
    --red: #ee0000;
    --red-deep: #c70000;
    --paper: #ffffff;
    --mist: #edf2f7;
    --line: #cbd5e1;
    --slate: #4a5568;
    --quiet: #9aa3b2;
    --shell: 1280px;
    --gutter: 16px;
    font-family: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
    margin: 0;
    background: var(--paper);
    color: var(--primary);
    font-size: 16px;
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
}

img { max-width: 100%; border: 0; }
h1, h2, h3 { font-weight: 700; line-height: 1.25; margin: 0; }
a { color: inherit; }
button { font: inherit; }

:focus-visible { outline: 3px solid #ff9b9b; outline-offset: 3px; border-radius: 4px; }

.ev-shell { max-width: var(--shell); margin-inline: auto; padding-inline: var(--gutter); }
@media (min-width: 640px) { :root { --gutter: 24px; } }
@media (min-width: 1024px) { :root { --gutter: 32px; } }

.ev-skip {
    position: absolute;
    left: -9999px;
    top: 0;
    z-index: 60;
    background: var(--red);
    color: #fff;
    font-weight: 700;
    padding: 12px 18px;
    border-radius: 0 0 8px 0;
    text-decoration: none;
}
.ev-skip:focus { left: 0; }

.ev-sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
    border: 0;
}

/* --------------------------------------------------------------- masthead */

.ev-nav {
    position: sticky;
    top: 0;
    z-index: 30;
    background: var(--primary);
    box-shadow: 0 1px 0 rgba(255, 255, 255, .07);
}

.ev-nav-inner {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px;
    min-height: 56px;
    padding-block: 7px;
}

.ev-brand {
    display: flex;
    align-items: center;
    /* Grow rather than shrink: flex-wrap lays items out before shrinking, so
       a zero basis keeps the burger on the same row even at 320px. */
    flex: 1 1 0;
    min-width: 0;
    text-decoration: none;
    line-height: 0;
}
.ev-brand img { height: 30px; width: auto; max-width: 100%; display: block; }
@media (min-width: 768px) { .ev-brand img { height: 32px; } }

.ev-burger {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    padding: 0;
    border: 0;
    border-radius: 9px;
    background: transparent;
    color: var(--line);
    cursor: pointer;
    transition: background .16s ease, color .16s ease;
}
.ev-burger:hover { background: rgba(255, 255, 255, .09); color: #fff; }
.ev-burger svg { width: 24px; height: 24px; }
.ev-burger .ev-cross { display: none; }
.ev-burger[aria-expanded="true"] .ev-bars { display: none; }
.ev-burger[aria-expanded="true"] .ev-cross { display: block; }

.ev-menu {
    width: 100%;
    display: none;
    border-top: 1px solid rgba(255, 255, 255, .09);
    padding-top: 6px;
    padding-bottom: 10px;
}
.ev-menu.is-open { display: block; }

.ev-auth { display: flex; flex-direction: column; gap: 2px; }

.ev-menu-link {
    display: block;
    padding: 11px 12px;
    border-radius: 6px;
    color: #e2e8f0;
    font-size: 15px;
    font-weight: 500;
    text-decoration: none;
    transition: background .15s ease, color .15s ease;
}
.ev-menu-link:hover { background: rgba(255, 255, 255, .08); color: #fff; }

.ev-btn {
    display: inline-block;
    padding: 9px 14px;
    border: 1px solid transparent;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 700;
    line-height: 1.2;
    text-decoration: none;
    white-space: nowrap;
    transition: background-color .16s ease, border-color .16s ease, color .16s ease, transform .16s ease;
}
.ev-btn:active { transform: translateY(1px); }

/* Declared after .ev-btn so the single-class rule below is not overridden
   by .ev-btn's own display — the desktop pair stays out of the mobile menu. */
.ev-hide-mobile { display: none; }
.ev-btn-solid { background: var(--red); border-color: var(--red); color: #fff; }
.ev-btn-solid:hover { background: var(--red-deep); border-color: var(--red-deep); }
.ev-btn-outline { background: transparent; border-color: var(--red); color: var(--red); }
.ev-btn-outline:hover { background: rgba(238, 0, 0, .16); color: #ff5252; }

.ev-lang {
    display: flex;
    align-self: flex-start;
    margin-top: 12px;
    border: 1px solid var(--red);
    border-radius: 7px;
    overflow: hidden;
}
.ev-lang button {
    flex: 1;
    padding: 8px 16px;
    border: 0;
    background: transparent;
    color: var(--red);
    font-size: 13px;
    font-weight: 600;
    letter-spacing: .04em;
    cursor: pointer;
    transition: background-color .15s ease, color .15s ease;
}
.ev-lang button:last-child { border-left: 1px solid var(--red); }
.ev-lang button:hover:not(.is-on) { background: rgba(238, 0, 0, .16); color: #ff6b6b; }
.ev-lang button.is-on { background: var(--red); color: #fff; }

@media (min-width: 768px) {
    .ev-burger { display: none; }
    .ev-menu {
        display: flex;
        width: auto;
        align-items: center;
        gap: 4px;
        border-top: 0;
        padding: 0;
    }
    .ev-auth { flex-direction: row; align-items: center; gap: 8px; }
    .ev-menu-link { display: none; }
    .ev-hide-mobile { display: inline-block; }
    .ev-lang { margin-top: 0; margin-left: 14px; align-self: center; }
    .ev-lang button { padding: 7px 13px; }
}

/* ------------------------------------------------------------------- hero */

.ev-hero {
    position: relative;
    overflow: hidden;
    background: var(--primary);
    height: clamp(340px, 66.667vh, 620px);
}
@media (min-width: 768px) {
    .ev-hero { height: clamp(480px, 66.667vh, 720px); }
}

.ev-hero::after {
    content: "";
    position: absolute;
    inset: 0 0 auto 0;
    height: 42%;
    background: linear-gradient(180deg, rgba(4, 0, 1, .46), rgba(4, 0, 1, 0));
    pointer-events: none;
    z-index: 1;
}

.ev-track {
    display: flex;
    height: 100%;
    transform: translate3d(0, 0, 0);
    transition: transform .85s cubic-bezier(.65, .02, .28, 1);
    will-change: transform;
}

.ev-slide { flex: 0 0 100%; margin: 0; height: 100%; }
.ev-slide img { width: 100%; height: 100%; object-fit: cover; display: block; }

.ev-actions {
    position: absolute;
    top: 16px;
    left: 0;
    right: 0;
    z-index: 2;
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    align-items: flex-start;
}

.ev-cta {
    margin: 5px;
    padding: 13px 18px;
    border-radius: 6px;
    background: var(--red);
    color: #fff;
    font-size: 14px;
    font-weight: 700;
    line-height: 1.2;
    text-decoration: none;
    white-space: nowrap;
    box-shadow: 0 8px 22px rgba(0, 0, 0, .3);
    transition: background-color .18s ease, transform .18s ease, box-shadow .18s ease;
}
.ev-cta:hover { background: var(--red-deep); transform: translateY(-2px); box-shadow: 0 14px 30px rgba(0, 0, 0, .38); }
.ev-cta:active { transform: translateY(0); }

@media (min-width: 640px) {
    .ev-cta { margin: 4px 6px; padding: 15px 26px; font-size: 15px; }
}

.ev-dots {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 22px;
    z-index: 2;
    display: flex;
    justify-content: center;
    gap: 9px;
}
.ev-dots button {
    width: 10px;
    height: 10px;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: #fff;
    opacity: .4;
    cursor: pointer;
    transition: opacity .2s ease, transform .2s ease;
}
.ev-dots button:hover { opacity: .75; }
.ev-dots button.is-on { opacity: 1; transform: scale(1.2); }

/* ------------------------------------------------------------ three steps */

.ev-steps {
    background: var(--red);
    color: #fff;
    padding-block: 26px 40px;
}

.ev-steps-head { text-align: center; margin: 14px 0 26px; }
.ev-steps-head h2 {
    font-size: clamp(26px, 4.4vw, 34px);
    letter-spacing: -.015em;
    line-height: 1.22;
}
.ev-steps-head h2 span { display: block; }

/* A grid rather than flex-wrap: the three columns divide the row exactly, so
   the cards can never end up two-plus-one when a classic scrollbar eats the
   last few pixels of a 768px window. */
.ev-cards {
    display: grid;
    grid-template-columns: 1fr;
    justify-items: center;
    gap: 20px;
}
@media (min-width: 768px) {
    .ev-cards { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

/* The <a> is the grid item, so it carries the width contract. Without a
   pinned width its max-content is driven by the caption underneath, which
   grows each item past its column. */
.ev-card-link {
    text-decoration: none;
    color: inherit;
    width: min(256px, 100%);
}

.ev-card {
    display: flex;
    flex-direction: column;
    width: 100%;
    min-height: 320px;
    border-radius: 10px;
    overflow: hidden;
    background: var(--primary);
    transition: transform .22s ease, box-shadow .22s ease;
}
.ev-card-link:hover .ev-card,
.ev-card-link:focus-visible .ev-card {
    transform: translateY(-6px);
    box-shadow: 0 22px 42px rgba(80, 0, 0, .34);
}

.ev-card header {
    background: var(--primary);
    padding: 9px 16px;
    text-align: center;
}
.ev-card header h3 { color: #fff; font-size: 16px; letter-spacing: .01em; }

.ev-card-body {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 4px;
    padding: 22px 18px;
    background: var(--paper);
    text-align: center;
}
.ev-card-body img {
    display: block;
    max-height: 138px;
    width: auto;
    margin-inline: auto;
}
.ev-card-body p {
    margin: 22px 0 0;
    font-size: 18px;
    font-weight: 700;
    line-height: 1.35;
    color: var(--primary);
}

/* ------------------------------------------------------------ why e-visa */

.ev-why { background: var(--paper); color: var(--primary); padding-block: 4px 10px; }

.ev-why-head { padding: 26px 0 18px; text-align: center; }
.ev-why-head h2 {
    display: inline-block;
    color: var(--red);
    font-size: clamp(26px, 4.2vw, 32px);
    text-decoration: underline;
    text-decoration-thickness: 3px;
    text-underline-offset: 7px;
}

.ev-why-cols { display: flex; flex-direction: column; gap: 4px; }
@media (min-width: 1024px) {
    .ev-why-cols { flex-direction: row; gap: 0; }
    .ev-why-cols > * { width: 50%; }
}

.ev-tri {
    list-style: none;
    margin: 0;
    padding: 0;
    text-align: center;
}
.ev-tri li {
    position: relative;
    margin: .55rem 0;
    padding-inline: 32px;
    font-size: 20px;
    font-weight: 700;
    line-height: 1.45;
    letter-spacing: -.01em;
}
@media (min-width: 640px) { .ev-tri li { padding-inline: 0; } }

@media (min-width: 1024px) {
    .ev-tri { text-align: left; }
    .ev-tri li { margin: 0; padding-left: 0; }
    .ev-tri li::before {
        content: "";
        position: absolute;
        left: -1em;
        top: .78em;
        width: 0;
        height: 0;
        border-style: solid;
        border-width: .35em 0 .35em .45em;
        border-color: transparent transparent transparent var(--red);
    }
}

.ev-why-foot {
    margin-top: 14px;
    padding: 30px 8px 34px;
    font-size: clamp(17px, 2.2vw, 20px);
    line-height: 1.6;
    text-align: center;
    color: var(--slate);
}
.ev-why-foot span { display: block; }

/* ---------------------------------------------------------------- footer */

.ev-footer {
    background: var(--primary);
    color: #fff;
    padding: 46px 0 30px;
    text-align: center;
}
@media (min-width: 768px) { .ev-footer { text-align: left; } }

.ev-footer-grid { display: flex; flex-wrap: wrap; }

.ev-fcol { width: 100%; padding: 16px var(--gutter) 24px; }
@media (min-width: 768px) { .ev-fcol { width: 50%; padding: 8px 24px 28px; } }
@media (min-width: 1024px) { .ev-fcol { width: 25%; padding: 8px 26px 28px; } }

.ev-fcol header { padding: 14px 0 6px; }
.ev-fcol h3 { font-size: 16px; letter-spacing: .01em; }
.ev-fcol ul { list-style: none; margin: 0; padding: 0; }
.ev-fcol li { margin: 9px 0; }
.ev-fcol a {
    color: #fff;
    font-size: 15px;
    text-decoration: none;
    transition: color .15s ease;
}
.ev-fcol a:hover { color: #ff8080; text-decoration: underline; text-underline-offset: 3px; }

.ev-fcol-brand img { height: 30px; width: auto; display: inline-block; }
.ev-fcol-brand p {
    margin: 14px 0 0;
    color: var(--quiet);
    font-size: 13.5px;
    line-height: 1.65;
}
.ev-fcol-brand p span { display: block; }

.ev-legal {
    margin-top: 18px;
    padding-top: 4px;
    color: var(--quiet);
}
.ev-legal p {
    margin: 0;
    padding-left: 24px;
    font-size: 13.5px;
}

/* ------------------------------------------------------- reduced motion */

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    .ev-track { transition: none; }
    .ev-card, .ev-cta, .ev-btn, .ev-dots button { transition: none; }
    .ev-card-link:hover .ev-card, .ev-cta:hover { transform: none; }
}

/* ======================================================= verification page
   Red title band over the pale working area, with a single white panel
   holding either the lookup form or the result for one document.
   ========================================================================= */

.ev-banner {
    background: var(--red);
    color: #fff;
    box-shadow: 0 12px 28px rgba(8, 0, 2, .22);
    position: relative;
    z-index: 2;
}
.ev-banner .ev-shell { padding-block: 16px; }
.ev-banner h1 {
    margin: 0;
    font-size: clamp(22px, 3.4vw, 28px);
    letter-spacing: -.01em;
}

.ev-verify {
    background: var(--mist);
    padding-block: clamp(26px, 5vw, 52px);
    min-height: 46vh;
}

.ev-panel {
    background: var(--paper);
    border: 1px solid var(--line);
    border-radius: 8px;
    padding: clamp(22px, 4vw, 34px);
    box-shadow: 0 18px 44px rgba(8, 0, 2, .09);
}

.ev-form {
    width: min(440px, 100%);
    margin-inline: auto;
}

.ev-field { display: block; margin-bottom: 18px; }
.ev-field > span {
    display: block;
    margin-bottom: 7px;
    font-size: 14px;
    font-weight: 600;
    color: var(--slate);
}
.ev-field input {
    width: 100%;
    padding: 12px 14px;
    border: 1px solid var(--line);
    border-radius: 7px;
    background: #fff;
    color: var(--primary);
    font: inherit;
    font-size: 15px;
    letter-spacing: .02em;
    transition: border-color .15s ease, box-shadow .15s ease;
}
.ev-field input::placeholder { color: #a0aec0; }
.ev-field input:focus {
    outline: none;
    border-color: var(--red);
    box-shadow: 0 0 0 4px rgba(238, 0, 0, .15);
}
.ev-field input[aria-invalid="true"] {
    border-color: var(--red);
    background: #fff7f7;
}
.ev-field-error {
    display: block;
    margin-top: 7px;
    font-size: 13px;
    font-weight: 600;
    color: var(--red-deep);
    line-height: 1.45;
}

.ev-submit {
    display: block;
    width: 100%;
    margin-top: 4px;
    padding: 15px 20px;
    border: 0;
    border-radius: 7px;
    background: var(--red);
    color: #fff;
    font-size: 16px;
    font-weight: 700;
    letter-spacing: .01em;
    cursor: pointer;
    transition: background-color .16s ease, transform .16s ease, box-shadow .16s ease;
    box-shadow: 0 12px 26px rgba(238, 0, 0, .26);
}
.ev-submit:hover { background: var(--red-deep); box-shadow: 0 16px 32px rgba(199, 0, 0, .3); }
.ev-submit:active { transform: translateY(1px); }

.ev-note {
    margin: 0 0 20px;
    padding: 14px 16px;
    border-radius: 8px;
    font-size: 14.5px;
    line-height: 1.55;
}
.ev-note-error {
    background: #fff1f1;
    border: 1px solid #f6b9b9;
    color: #9b1c1c;
}
.ev-note-ok {
    background: #e9f9f1;
    border: 1px solid #a8e6c8;
    color: #106b46;
}

.ev-result-head {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 14px;
    padding-bottom: 20px;
    margin-bottom: 22px;
    border-bottom: 1px solid var(--line);
}
.ev-result-head .ev-ref {
    font-family: ui-monospace, "SFMono-Regular", Consolas, "Liberation Mono", monospace;
    font-size: clamp(17px, 2.6vw, 21px);
    font-weight: 700;
    letter-spacing: .04em;
}

.ev-pill {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 6px 13px;
    border-radius: 999px;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: .02em;
}
.ev-pill i { width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.ev-pill.is-valid { background: #e6f8ef; color: #0f7a4d; }
.ev-pill.is-expiring { background: #fff5e2; color: #9a6100; }
.ev-pill.is-expired { background: #fdecec; color: #b42318; }
.ev-pill.is-unknown { background: #eef1f5; color: #5a6675; }

.ev-result-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2px 24px;
    margin: 0;
}
@media (min-width: 700px) { .ev-result-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

.ev-result-grid > div {
    padding: 13px 0;
    border-bottom: 1px dashed #e2e8f0;
}
.ev-result-grid dt {
    font-size: 12px;
    font-weight: 700;
    letter-spacing: .09em;
    text-transform: uppercase;
    color: #8892a4;
    margin-bottom: 4px;
}
.ev-result-grid dd {
    margin: 0;
    font-size: 16px;
    font-weight: 600;
    color: var(--primary);
    word-break: break-word;
}

.ev-result-foot {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    justify-content: space-between;
    align-items: center;
    margin-top: 26px;
    padding-top: 20px;
    border-top: 1px solid var(--line);
}
.ev-result-foot p {
    margin: 0;
    font-size: 13px;
    color: #7c8698;
    max-width: 52ch;
    line-height: 1.55;
}
.ev-back {
    display: inline-block;
    padding: 11px 20px;
    border: 1px solid var(--red);
    border-radius: 7px;
    color: var(--red);
    font-size: 14px;
    font-weight: 700;
    text-decoration: none;
    white-space: nowrap;
    transition: background-color .16s ease, color .16s ease;
}
.ev-back:hover { background: var(--red); color: #fff; }

.ev-panel-title {
    margin: 0 0 4px;
    font-size: clamp(19px, 2.6vw, 22px);
}
.ev-panel-sub {
    margin: 0 0 24px;
    font-size: 14.5px;
    color: #6b7688;
    line-height: 1.6;
}
