/* Public homepage (layouts/site). Brand tokens match coming-soon.css. */
:root {
    --brand: #138249;
    --brand-hover: #0e6639;
    --brand-light: #ecfdf5;
    --brand-border: #a7f3d0;
    --brand-text: #065f46;
    --ink: #0f172a;
    --slate: #475569;
    --line: #e2e8f0;
    --surface: #f8fafc;
}

html { scroll-behavior: smooth; }
section[id] { scroll-margin-top: 90px; }

/* Footer sticks to the bottom on short pages */
.site-body {
    display: flex; flex-direction: column; min-height: 100vh;
    font-family: 'Cairo', system-ui, sans-serif;
    color: var(--ink);
    background: #fff;
}

/* Buttons */
.btn-site, .btn-site-soft, .btn-site-light {
    display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
    padding: .8rem 1.6rem; border-radius: .9rem; font-weight: 700; border: 0;
    transition: background .2s, box-shadow .2s, transform .2s;
}
.btn-site { background: var(--brand); color: #fff; box-shadow: 0 8px 18px rgba(19, 130, 73, .22); }
.btn-site:hover { background: var(--brand-hover); color: #fff; transform: translateY(-1px); }
.btn-site-sm { padding: .55rem 1.2rem; font-size: .9rem; }
.btn-site-soft { background: #f1f5f9; color: #334155; }
.btn-site-soft:hover { background: #e2e8f0; color: #0f172a; }
.btn-site-light { background: #fff; color: var(--brand-text); }
.btn-site-light:hover { background: var(--brand-light); color: var(--brand-text); }

/* WhatsApp pill in the header (same look as the coming-soon page) */
.btn-whatsapp-header {
    display: inline-flex; align-items: center; gap: .5rem; padding: .45rem 1rem;
    background: #fff; border: 1px solid var(--line); border-radius: 50rem;
    color: var(--ink); font-weight: 600; font-size: .9rem; text-decoration: none;
    box-shadow: 0 2px 6px rgba(15, 23, 42, .04); transition: all .2s ease;
}
.btn-whatsapp-header i { color: var(--brand); font-size: 1.25rem; }
.btn-whatsapp-header:hover { border-color: var(--brand-border); background: var(--brand-light); color: var(--brand-text); }
.text-brand { color: var(--brand); }

/* Header */
.site-nav {
    position: sticky; top: 0; z-index: 1030;
    background: rgba(255, 255, 255, .95); backdrop-filter: blur(10px);
    border-bottom: 1px solid #f1f5f9;
}
.site-nav .navbar { min-height: 104px; padding-block: .35rem; }
.site-logo { height: 92px; width: auto; }
@media (max-width: 991.98px) { .site-nav .navbar { min-height: 92px; } .site-logo { height: 80px; } }
@media (max-width: 575.98px) { .site-nav .navbar { min-height: 80px; } .site-logo { height: 68px; } }
.site-nav-links .nav-link { font-weight: 600; font-size: .95rem; color: var(--slate); white-space: nowrap; }
.site-nav-links .nav-link:hover { color: var(--brand); }

/* Hero */
.site-hero { padding: 4.5rem 0 5rem; background: radial-gradient(circle at 85% 0%, var(--brand-light), transparent 55%); }
.site-pill {
    display: inline-flex; align-items: center; gap: .5rem; padding: .45rem 1rem; margin-bottom: 1.5rem;
    background: var(--brand-light); color: var(--brand-text); border: 1px solid var(--brand-border);
    border-radius: 999px; font-size: .85rem; font-weight: 700;
}
.site-hero-title { font-size: clamp(1.8rem, 3.6vw, 2.75rem); font-weight: 800; line-height: 1.45; margin-bottom: 1.25rem; }
.site-hero-title span { color: var(--brand); }
.site-lead { font-size: 1.15rem; color: var(--slate); line-height: 1.9; margin-bottom: 2rem; max-width: 34rem; }

/* Hero report card */
.site-report-card {
    background: #fff; border: 6px solid var(--brand); border-radius: 2rem; padding: 1.75rem;
    box-shadow: 0 24px 48px rgba(15, 23, 42, .1); max-width: 30rem; margin-inline: auto;
}
.site-metric { background: var(--surface); border: 1px solid var(--line); border-radius: 1rem; padding: .9rem 1rem; margin-bottom: .75rem; font-size: .9rem; }
.site-bar { height: 8px; margin-top: .6rem; background: #e2e8f0; border-radius: 99px; overflow: hidden; }
.site-bar i { display: block; height: 100%; background: var(--brand); border-radius: 99px; }
.site-card-foot { margin-top: 1rem; padding: .8rem 1rem; background: var(--brand-light); color: var(--brand-text); border-radius: .9rem; font-size: .85rem; text-align: center; font-weight: 600; }
.site-tag { padding: .3rem .9rem; background: var(--brand-light); color: var(--brand-text); border-radius: 99px; font-size: .8rem; font-weight: 700; }

/* Shared bits */
.site-icon {
    display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0;
    width: 3rem; height: 3rem; border-radius: .9rem; background: var(--brand-light); color: var(--brand); font-size: 1.15rem;
}
.site-section { padding: 5rem 0; }
.site-section-alt { background: var(--surface); }
.site-eyebrow { display: inline-block; margin-bottom: .6rem; color: var(--brand); font-size: .85rem; font-weight: 700; }
.site-title { font-size: clamp(1.6rem, 3.2vw, 2.4rem); font-weight: 800; line-height: 1.5; margin-bottom: 1rem; }

/* About boxes */
.site-box { height: 100%; padding: 1.5rem; background: #fff; border: 1px solid var(--line); border-radius: 1.25rem; transition: box-shadow .2s, transform .2s; }
.site-box:hover { box-shadow: 0 12px 28px rgba(15, 23, 42, .08); transform: translateY(-2px); }
.site-box h3 { font-size: 1.05rem; font-weight: 700; margin: 1rem 0 .4rem; }
.site-box p { margin: 0; font-size: .9rem; color: #64748b; }
.site-box.is-featured { background: var(--brand); border-color: var(--brand); color: #fff; }
.site-box.is-featured p { color: rgba(255, 255, 255, .85); }
.site-box.is-featured .site-icon { background: rgba(255, 255, 255, .18); color: #fff; }

/* Services */
.site-service { height: 100%; display: flex; flex-direction: column; padding: 2rem; background: #fff; border: 1px solid var(--line); border-radius: 1.5rem; transition: box-shadow .2s, transform .2s, border-color .2s; }
.site-service:hover { box-shadow: 0 16px 32px rgba(15, 23, 42, .08); transform: translateY(-3px); border-color: var(--brand-border); }
.site-service h3 { font-size: 1.2rem; font-weight: 700; margin: 1.25rem 0 .6rem; }
.site-service p { color: #64748b; line-height: 1.8; flex-grow: 1; }
.site-service a { color: var(--brand); font-weight: 700; text-decoration: none; }
.site-service a:hover { color: var(--brand-hover); }

/* Verification band */
.site-verify {
    display: flex; flex-direction: column; gap: 1.5rem; align-items: flex-start; justify-content: space-between;
    padding: 2.5rem; border-radius: 2rem; color: #fff;
    background: linear-gradient(135deg, var(--brand) 0%, #064e3b 100%);
}
@media (min-width: 768px) { .site-verify { flex-direction: row; align-items: center; padding: 3rem; } }

/* Contact */
.site-contact { padding: 2.5rem; background: var(--surface); border-radius: 2rem; }
@media (min-width: 992px) { .site-contact { padding: 3.5rem; } }
.site-contact-item { display: flex; align-items: center; gap: 1rem; }
.site-contact-item small { display: block; color: #64748b; }
.site-contact-item a, .site-contact-item span:not(.site-icon) { color: var(--ink); font-weight: 600; text-decoration: none; }
.site-form { padding: 1.75rem; background: #fff; border: 1px solid var(--line); border-radius: 1.5rem; }
.site-form .form-label { font-weight: 600; font-size: .9rem; }
.site-form .form-control, .site-form .form-select { padding: .7rem 1rem; border-radius: .8rem; background: var(--surface); }
.site-form .form-control:focus, .site-form .form-select:focus { border-color: var(--brand); box-shadow: 0 0 0 .2rem rgba(19, 130, 73, .15); background: #fff; }

/* Footer: full-width band */
.site-body > .site-footer { margin-top: auto; }

.site-footer { width: 100%; margin-top: 2rem; padding: 3.5rem 0 1.5rem; background: var(--ink); color: #fff; }
.site-footer-logo { height: 110px; width: auto; }
.site-footer a { color: rgba(255, 255, 255, .7); text-decoration: none; }
.site-footer a:hover { color: #fff; }
.site-footer-bottom { display: flex; flex-wrap: wrap; gap: .5rem 1rem; justify-content: space-between; margin-top: 2.5rem; padding-top: 1.25rem; border-top: 1px solid rgba(255, 255, 255, .12); font-size: .85rem; }

/* ---------- Creative additions ---------- */

/* Scroll reveal (only when JS is on, so the page never ends up hidden) */
.js .reveal { opacity: 0; transform: translateY(24px); transition: opacity .6s ease, transform .6s ease; transition-delay: var(--delay, 0ms); }
.js .reveal.is-visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
    .js .reveal { opacity: 1; transform: none; transition: none; }
    .site-blob, .site-float { animation: none !important; }
    html { scroll-behavior: auto; }
}

.site-nav.is-scrolled { box-shadow: 0 6px 24px rgba(15, 23, 42, .08); }
.site-link { color: var(--brand); font-weight: 700; text-decoration: none; }
.site-link:hover { color: var(--brand-hover); }

/* Hero decoration */
.site-hero { position: relative; overflow: hidden; }
.site-blob { position: absolute; border-radius: 50%; filter: blur(60px); opacity: .55; pointer-events: none; animation: site-drift 14s ease-in-out infinite alternate; }
.site-blob-1 { width: 340px; height: 340px; background: var(--brand-border); top: -90px; inset-inline-end: -60px; }
.site-blob-2 { width: 260px; height: 260px; background: #d9f99d; bottom: -80px; inset-inline-start: 5%; animation-delay: -6s; }
@keyframes site-drift { to { transform: translate(24px, 30px) scale(1.08); } }

.site-hero-visual { position: relative; padding: 0 0 3.5rem; max-width: 34rem; margin-inline: auto; }
.site-hero-img { width: 100%; height: 26rem; object-fit: cover; border-radius: 2rem 2rem 2rem 7rem; box-shadow: 0 28px 56px rgba(15, 23, 42, .18); }
.site-hero-visual::before { content: ""; position: absolute; inset: 1.5rem auto auto -1.25rem; width: 70%; height: 80%; border: 3px solid var(--brand-border); border-radius: 2rem; z-index: -1; }
.site-float { position: absolute; background: #fff; border-radius: 1.25rem; box-shadow: 0 18px 40px rgba(15, 23, 42, .16); animation: site-bob 6s ease-in-out infinite; }
.site-float-report { inset-inline-start: -1rem; bottom: 0; width: 17rem; padding: 1rem; border: 3px solid var(--brand); }
.site-float-chip { inset-inline-end: -.5rem; top: 1.5rem; padding: .6rem 1rem; font-size: .85rem; font-weight: 700; color: var(--brand-text); animation-delay: -3s; }
.site-float-chip i { color: var(--brand); margin-inline-end: .25rem; }
@keyframes site-bob { 50% { transform: translateY(-10px); } }
.site-icon-sm { width: 2.25rem; height: 2.25rem; border-radius: .7rem; font-size: .9rem; }
@media (max-width: 575.98px) {
    .site-hero-img { height: 18rem; border-radius: 1.5rem 1.5rem 1.5rem 4rem; }
    /* Phones: the report card sits under the photo (overlapping its edge) instead of covering it */
    .site-hero-visual { padding-bottom: 0; }
    .site-hero-visual::before { display: none; }
    .site-float-report { position: relative; inset: auto; width: auto; margin: -3.25rem .75rem 0; animation: none; }
    .site-float-report .small { font-size: .85rem; }
    .site-float-chip { inset-inline-end: .5rem; top: .75rem; }
}

/* Quick verify */
.site-quick-verify { padding: 1rem 1.1rem; background: #fff; border: 1px solid var(--line); border-radius: 1.1rem; box-shadow: 0 10px 24px rgba(15, 23, 42, .06); max-width: 34rem; }
.site-quick-title { display: block; margin-bottom: .6rem; font-weight: 700; font-size: .9rem; color: var(--brand-text); }
.site-quick-fields { display: flex; flex-wrap: wrap; gap: .5rem; }
.site-quick-fields .form-control { flex: 1 1 8rem; min-width: 0; padding: .6rem .9rem; border-radius: .8rem; background: var(--surface); }
.site-quick-fields .form-control:focus { border-color: var(--brand); box-shadow: 0 0 0 .2rem rgba(19, 130, 73, .15); background: #fff; }
.site-quick-fields .btn-site { padding: .6rem 1.4rem; }

/* Audience strip */
.site-audience { padding: 2.5rem 0; border-block: 1px solid var(--line); background: #fff; }
.site-audience-item { display: flex; flex-direction: column; align-items: center; gap: .6rem; font-weight: 700; color: var(--slate); }
.site-audience-item i { display: grid; place-items: center; width: 3.2rem; height: 3.2rem; border-radius: 50%; background: var(--brand-light); color: var(--brand); font-size: 1.2rem; transition: background .2s, color .2s, transform .2s; }
.site-audience-item:hover i { background: var(--brand); color: #fff; transform: translateY(-3px); }

/* Process timeline */
.site-steps { display: grid; gap: 2rem; grid-template-columns: 1fr; counter-reset: none; padding: 0; margin: 0; }
@media (min-width: 768px) { .site-steps { grid-template-columns: repeat(5, 1fr); gap: 1rem; position: relative; } .site-steps::before { content: ""; position: absolute; top: 2.75rem; inset-inline: 10%; border-top: 2px dashed var(--brand-border); } }
.site-steps li { position: relative; text-align: center; padding-inline: .5rem; }
.site-step-num { position: relative; display: inline-grid; place-items: center; width: 5.5rem; height: 5.5rem; margin-bottom: 1rem; border-radius: 50%; background: #fff; border: 2px solid var(--brand); color: var(--brand); font-size: 1.6rem; box-shadow: 0 0 0 .5rem #fff; transition: background .2s, color .2s; }
.site-steps li:hover .site-step-num { background: var(--brand); color: #fff; }
.site-step-num b { position: absolute; top: -.2rem; inset-inline-end: -.2rem; display: grid; place-items: center; width: 1.7rem; height: 1.7rem; border-radius: 50%; background: var(--ink); color: #fff; font-size: .8rem; }
.site-steps h3 { font-size: 1.05rem; font-weight: 700; margin-bottom: .35rem; }
.site-steps p { margin: 0; font-size: .88rem; color: #64748b; line-height: 1.7; }

/* Tests catalogue */
.site-test { display: flex; align-items: center; gap: .9rem; height: 100%; padding: 1rem 1.1rem; background: #fff; border: 1px solid var(--line); border-radius: 1rem; transition: border-color .2s, box-shadow .2s, transform .2s; }
.site-test:hover { border-color: var(--brand-border); box-shadow: 0 10px 24px rgba(15, 23, 42, .07); transform: translateY(-2px); }
.site-test strong { font-size: .95rem; line-height: 1.5; }
.site-code { flex-shrink: 0; padding: .25rem .6rem; background: var(--brand-light); color: var(--brand-text); border-radius: .5rem; font-size: .75rem; font-weight: 700; }

/* Verify band pattern */
.site-verify { position: relative; overflow: hidden; }
.site-verify-pattern { position: absolute; inset: 0; opacity: .12; background-image: radial-gradient(circle at 1px 1px, #fff 1.5px, transparent 0); background-size: 22px 22px; }

/* FAQ */
.site-faq .accordion-item { border: 1px solid var(--line); border-radius: 1rem !important; overflow: hidden; margin-bottom: .75rem; }
.site-faq .accordion-button { font-weight: 700; padding: 1.1rem 1.25rem; background: #fff; box-shadow: none; }
.site-faq .accordion-button:not(.collapsed) { color: var(--brand-text); background: var(--brand-light); }
.site-faq .accordion-button:focus { box-shadow: 0 0 0 .2rem rgba(19, 130, 73, .15); }
.site-faq .accordion-body { line-height: 1.9; }

/* Floating action buttons: one column, WhatsApp above back-to-top, 10px apart */
.site-fabs { position: fixed; bottom: 1.25rem; inset-inline-end: 1.25rem; z-index: 1040; display: flex; flex-direction: column; align-items: center; gap: 10px; }
.site-fab { text-decoration: none; display: grid; place-items: center; flex-shrink: 0; width: 3.2rem; height: 3.2rem; border: 0; border-radius: 50%; color: #fff; font-size: 1.35rem; box-shadow: 0 10px 24px rgba(15, 23, 42, .25); transition: transform .2s, opacity .25s, background .2s, height .25s, margin .25s; }
.site-fab:hover { transform: translateY(-3px); color: #fff; }
.site-fab-whatsapp { background: #25d366; }
/* Hidden state takes no space (negative margin cancels the gap), so WhatsApp sits at the bottom until the arrow appears */
.site-fab-top { background: var(--brand); font-size: 1.1rem; height: 0; margin-top: -10px; overflow: hidden; border: 0; opacity: 0; visibility: hidden; box-shadow: none; }
.site-fab-top.is-shown { height: 3.2rem; margin-top: 0; opacity: 1; visibility: visible; border: 3px solid #fff; box-shadow: 0 10px 24px rgba(15, 23, 42, .25); }
.site-fab-top:hover { background: var(--brand-hover); }

/* ---------- Public verification pages ---------- */
.vf-page { position: relative; overflow: hidden; flex: 1 0 auto; padding: 3.5rem 0 4.5rem; background: radial-gradient(circle at 85% 0%, var(--brand-light), transparent 55%); text-align: start; }
.vf-language-switch { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: .5rem; margin-bottom: 1.5rem; }
.vf-language-switch .btn { min-width: 5.5rem; min-height: 44px; }
.vf-language-switch [aria-pressed="true"] { background: var(--brand); color: #fff; }
.vf-language-switch .btn:focus-visible { outline: 3px solid var(--brand); outline-offset: 3px; }
.vf-page [data-vf-value-lang][hidden] { display: none !important; }
.vf-page [data-vf-value-lang] { unicode-bidi: isolate; }
.vf-title { font-size: clamp(1.8rem, 4vw, 2.6rem); font-weight: 800; margin-bottom: 1rem; }
.vf-card, .vf-side { height: 100%; padding: 2rem; background: #fff; border: 1px solid var(--line); border-radius: 1.5rem; box-shadow: 0 18px 40px rgba(15, 23, 42, .07); }
.vf-side { background: var(--surface); box-shadow: none; }
.vf-card .form-label { font-weight: 700; font-size: .9rem; }
.vf-input { position: relative; }
.vf-input > i { position: absolute; top: 50%; inset-inline-start: 1rem; transform: translateY(-50%); color: #94a3b8; pointer-events: none; }
.vf-input .form-control { padding: .85rem 1rem; padding-inline-start: 2.75rem; border-radius: .9rem; background: var(--surface); text-align: left; font-weight: 600; letter-spacing: .04em; }
.vf-input .form-control::placeholder { font-weight: 400; letter-spacing: 0; }
.vf-input .form-control:focus { border-color: var(--brand); box-shadow: 0 0 0 .2rem rgba(19, 130, 73, .15); background: #fff; }
.vf-card .btn-site[disabled] { opacity: .75; pointer-events: none; }
@media (max-width: 575.98px) { .vf-card, .vf-side { padding: 1.4rem; } }

/* Result */
.vf-result { width: 100%; background: #fff; border: 1px solid var(--line); border-radius: 1.75rem; overflow: hidden; box-shadow: 0 24px 56px rgba(15, 23, 42, .1); }
.vf-result-head { padding: 2.5rem 1.5rem 2rem; text-align: center; }
@media (max-width: 575.98px) { .vf-details { grid-template-columns: 1fr; padding-inline: 1.25rem; } }
.vf-result-head h1 { font-size: clamp(1.5rem, 3.5vw, 2rem); font-weight: 800; margin: 1rem 0 .5rem; }
.vf-result-head p { margin: 0 auto; max-width: 28rem; line-height: 1.8; }
.vf-result-icon { display: inline-grid; place-items: center; width: 5rem; height: 5rem; border-radius: 50%; font-size: 2.4rem; animation: vf-pop .5s cubic-bezier(.2, 1.4, .4, 1) both; }
@keyframes vf-pop { from { transform: scale(.4); opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .vf-result-icon { animation: none; } }
.vf-valid .vf-result-head { background: var(--brand-light); }
.vf-valid .vf-result-icon { background: var(--brand); color: #fff; box-shadow: 0 0 0 .6rem rgba(19, 130, 73, .15); }
.vf-valid h1 { color: var(--brand-text); }
.vf-missing .vf-result-head { background: #fef2f2; }
.vf-missing .vf-result-icon { background: #dc2626; color: #fff; box-shadow: 0 0 0 .6rem rgba(220, 38, 38, .12); }
.vf-missing h1 { color: #991b1b; }
.vf-missing .vf-result-head p { color: #7f1d1d; }

.vf-details { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); column-gap: 2.5rem; margin: 0; padding: .5rem 2rem; }
@media (max-width: 991.98px) { .vf-details { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.vf-details > div { padding: 1rem 0; border-bottom: 1px solid #f1f5f9; }
.vf-details dt { font-size: .8rem; font-weight: 600; color: #64748b; margin-bottom: .2rem; }
.vf-details dt i { width: 1.1rem; color: var(--brand); }
.vf-details dd { margin: 0; font-weight: 700; word-break: break-word; }
.vf-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: .75rem; padding: 1.75rem 1.5rem 1rem; }
.vf-stamp { margin: 0; padding: 0 1.5rem 1.5rem; text-align: center; font-size: .8rem; color: #94a3b8; }

.site-nav-links .nav-link.active { color: var(--brand); font-weight: 700; }

/* PDF preview */
.vf-preview { margin: 1rem 2rem 0; border: 1px solid var(--line); border-radius: 1.25rem; overflow: hidden; background: var(--surface); }
.vf-preview-head { display: flex; flex-wrap: wrap; gap: .75rem; align-items: center; justify-content: space-between; padding: 1rem 1.25rem; background: #fff; border-bottom: 1px solid var(--line); }
.vf-preview-head h2 { margin: 0; font-size: 1.05rem; font-weight: 700; }
.vf-preview-head h2 i { color: #dc2626; margin-inline-end: .35rem; }
.vf-pdf { display: block; width: 100%; height: min(78vh, 920px); min-height: 480px; border: 0; background: #e2e8f0; }
.vf-pdf-fallback { display: grid; place-items: center; gap: .5rem; padding: 3rem 1rem; text-align: center; color: #64748b; }
.vf-pdf-fallback i { font-size: 3rem; color: #dc2626; }
@media (max-width: 575.98px) { .vf-preview { margin-inline: 1rem; } .vf-pdf { min-height: 420px; } }

/* ---------- Verify page: creative layer ---------- */
.vf-page .text-brand { color: var(--brand); }
.vf-title { font-size: clamp(1.9rem, 4.2vw, 3rem); font-weight: 800; line-height: 1.4; margin-bottom: 1rem; }

/* Card header */
.vf-card-head { display: flex; align-items: center; gap: .9rem; margin-bottom: 1.4rem; padding-bottom: 1.1rem; border-bottom: 1px dashed var(--line); }
.vf-card-head strong { font-size: 1.05rem; }

/* Animated scanner illustration */
.vf-visual { position: relative; max-width: 25rem; margin-inline: auto; padding: 2rem 0; }
.vf-qr { position: relative; padding: 1.75rem; background: #fff; border-radius: 2rem; box-shadow: 0 30px 60px rgba(15, 23, 42, .16); border: 1px solid var(--line); }
.vf-qr svg { display: block; width: 100%; height: auto; }
.vf-laser { position: absolute; inset-inline: 1.1rem; top: 1.5rem; height: 3px; border-radius: 3px; background: linear-gradient(90deg, transparent, var(--brand), transparent); box-shadow: 0 0 18px 4px rgba(19, 130, 73, .55); animation: vf-scan 3.2s ease-in-out infinite; }
@keyframes vf-scan { 0%, 100% { top: 1.5rem; } 50% { top: calc(100% - 1.6rem); } }
.vf-corner { position: absolute; width: 2.4rem; height: 2.4rem; border: 5px solid var(--brand); }
.vf-c1 { top: -.5rem; inset-inline-start: -.5rem; border-inline-end: 0; border-bottom: 0; border-top-left-radius: 1.2rem; }
.vf-c2 { top: -.5rem; inset-inline-end: -.5rem; border-inline-start: 0; border-bottom: 0; border-top-right-radius: 1.2rem; }
.vf-c3 { bottom: -.5rem; inset-inline-start: -.5rem; border-inline-end: 0; border-top: 0; border-bottom-left-radius: 1.2rem; }
.vf-c4 { bottom: -.5rem; inset-inline-end: -.5rem; border-inline-start: 0; border-top: 0; border-bottom-right-radius: 1.2rem; }
.vf-chip { padding: .6rem 1rem; font-size: .85rem; font-weight: 700; white-space: nowrap; }
.vf-chip i { margin-inline-end: .3rem; }
.vf-chip-ok { top: 1rem; inset-inline-end: -1.2rem; color: var(--brand-text); }
.vf-chip-ok i { color: var(--brand); }
.vf-chip-doc { bottom: 1rem; inset-inline-start: -1.2rem; color: #991b1b; animation-delay: -3s; }
.vf-chip-doc i { color: #dc2626; }
@media (max-width: 575.98px) { .vf-visual { max-width: 17rem; } .vf-chip-ok { inset-inline-end: -.4rem; } .vf-chip-doc { inset-inline-start: -.4rem; } }
@media (prefers-reduced-motion: reduce) { .vf-laser { animation: none; top: 50%; } }

/* Steps + sample outcomes */
.vf-step { position: relative; display: flex; gap: .9rem; align-items: flex-start; height: 100%; padding: 1.2rem; background: #fff; border: 1px solid var(--line); border-radius: 1.2rem; }
.vf-step > b { position: absolute; top: -.7rem; inset-inline-end: 1rem; display: grid; place-items: center; width: 1.6rem; height: 1.6rem; border-radius: 50%; background: var(--ink); color: #fff; font-size: .8rem; }
.vf-sample { height: 100%; padding: 1.5rem; border-radius: 1.2rem; border: 1px solid; text-align: center; transition: transform .2s, box-shadow .2s; }
.vf-sample:hover { transform: translateY(-3px); box-shadow: 0 14px 30px rgba(15, 23, 42, .08); }
.vf-sample strong { display: block; margin: .6rem 0 .3rem; }
.vf-sample p { margin: 0; font-size: .88rem; color: #64748b; line-height: 1.7; }
.vf-sample-icon { display: inline-grid; place-items: center; width: 3.2rem; height: 3.2rem; border-radius: 50%; font-size: 1.5rem; color: #fff; }
.vf-sample.vf-valid { background: var(--brand-light); border-color: var(--brand-border); }
.vf-sample.vf-valid .vf-sample-icon { background: var(--brand); }
.vf-sample.vf-valid strong { color: var(--brand-text); }
.vf-sample.vf-missing { background: #fef2f2; border-color: #fecaca; }
.vf-sample.vf-missing .vf-sample-icon { background: #dc2626; }
.vf-sample.vf-missing strong { color: #991b1b; }

/* Result: approved seal */
.vf-result-head { position: relative; }
.vf-seal { position: absolute; top: 1.4rem; inset-inline-start: 1.6rem; display: grid; place-items: center; width: 6.2rem; height: 6.2rem; border: 3px double var(--brand); border-radius: 50%; color: var(--brand); transform: rotate(-14deg); opacity: .9; animation: vf-stamp .6s .5s cubic-bezier(.2, 1.6, .4, 1) both; }
.vf-seal i { font-size: 1.7rem; margin-top: .5rem; }
.vf-seal b { font-size: .95rem; letter-spacing: .05em; margin-top: -.9rem; }
@keyframes vf-stamp { from { transform: rotate(-14deg) scale(2.2); opacity: 0; } }
@media (max-width: 767.98px) { .vf-seal { display: none; } }
@media (prefers-reduced-motion: reduce) { .vf-seal { animation: none; opacity: 1; transform: rotate(-14deg); } }

@media print {
    .site-nav, .site-footer, .site-fabs, .vf-actions, .vf-preview-head .btn, .vf-pdf, .vf-seal { display: none !important; }
    .vf-page { padding: 0; background: #fff; }
    .vf-result { box-shadow: none; border: 1px solid #999; }
}

/* Latin/numeric values (report numbers, dates, phones) keep their left-to-right order
   but align to the start of the line like the Arabic text around them. */
.vf-ltr { direction: ltr; unicode-bidi: isolate; text-align: right; }
.vf-input .form-control { text-align: right; padding-left: 1rem; padding-right: 2.75rem; } /* physical sides: the inputs are dir=ltr but the icon sits on the right */
.vf-input .form-control::placeholder { text-align: right; }
.vf-page[dir="ltr"] .vf-input .form-control { text-align: left; padding-left: 2.75rem; padding-right: 1rem; }
.vf-page[dir="ltr"] .vf-input .form-control::placeholder { text-align: left; }
.vf-page[dir="ltr"] .vf-input .form-control.is-invalid { background-position: right .75rem center; padding-right: 2.75rem; }
.vf-page[dir="ltr"] .vf-ltr { text-align: left; }
@media print { .vf-language-switch { display: none !important; } }

.vf-number { display: inline-flex; align-items: center; gap: .45rem; margin-top: 1.1rem; padding: .5rem 1.1rem; background: #fff; border-radius: 99px; font-size: .95rem; font-weight: 600; box-shadow: 0 4px 14px rgba(15, 23, 42, .06); }
.vf-number b { font-weight: 800; letter-spacing: .02em; }
.vf-number i { color: var(--brand); }

/* ---------- Error pages ---------- */
.err-page { --a: var(--brand); --a-soft: var(--brand-light); --a-dark: var(--brand-text); position: relative; overflow: hidden; flex: 1 0 auto; display: grid; place-items: center; padding: 3rem 1rem; background: radial-gradient(circle at 85% 0%, var(--a-soft), transparent 55%); }
.err-red { --a: #dc2626; --a-soft: #fef2f2; --a-dark: #991b1b; }
.err-amber { --a: #d97706; --a-soft: #fffbeb; --a-dark: #92400e; }
.err-blue { --a: #2f55d4; --a-soft: #eef2ff; --a-dark: #1e3a8a; }
.err-page .site-blob-1, .err-page .site-blob-2 { background: var(--a-soft); }

.err-wrap { position: relative; width: 100%; max-width: 62rem; display: grid; grid-template-columns: 1fr; align-items: center; gap: 2rem; padding: 2.5rem 2rem; background: #fff; border: 1px solid var(--line); border-radius: 2rem; box-shadow: 0 28px 64px rgba(15, 23, 42, .1); }
@media (min-width: 900px) { .err-wrap { grid-template-columns: 1fr 1.25fr; padding: 3rem; gap: 3rem; } }

/* Visual */
.err-visual { position: relative; display: grid; place-items: center; min-height: 16rem; }
.err-code-bg { position: absolute; inset: 0; display: grid; place-items: center; font-size: clamp(8rem, 20vw, 12rem); font-weight: 900; line-height: 1; letter-spacing: .02em; color: var(--a-soft); direction: ltr; user-select: none; }
.err-orb { position: relative; display: grid; place-items: center; width: 9.5rem; height: 9.5rem; border-radius: 50%; background: linear-gradient(145deg, var(--a), color-mix(in srgb, var(--a) 70%, #000)); color: #fff; font-size: 3.4rem; box-shadow: 0 20px 40px color-mix(in srgb, var(--a) 40%, transparent), inset 0 -8px 16px rgba(0, 0, 0, .15); animation: err-float 5s ease-in-out infinite; }
.err-ring { position: absolute; border-radius: 50%; border: 2px dashed color-mix(in srgb, var(--a) 45%, transparent); }
.err-ring-1 { inset: -1.1rem; animation: err-spin 18s linear infinite; }
.err-ring-2 { inset: -2.4rem; border-style: solid; border-color: color-mix(in srgb, var(--a) 18%, transparent); animation: err-spin 26s linear infinite reverse; }
.err-dot { position: absolute; width: .9rem; height: .9rem; border-radius: 50%; background: var(--a); box-shadow: 0 0 0 4px #fff, 0 6px 12px color-mix(in srgb, var(--a) 40%, transparent); }
.err-dot-1 { top: -2rem; inset-inline-end: 1rem; animation: err-bob 3.4s ease-in-out infinite; }
.err-dot-2 { bottom: -1.6rem; inset-inline-start: 0; width: .65rem; height: .65rem; animation: err-bob 4.2s ease-in-out infinite -1s; }
.err-dot-3 { top: 2.2rem; inset-inline-start: -2.8rem; width: .5rem; height: .5rem; animation: err-bob 3s ease-in-out infinite -2s; }
@keyframes err-float { 50% { transform: translateY(-12px); } }
@keyframes err-spin { to { transform: rotate(360deg); } }
@keyframes err-bob { 50% { transform: translateY(-9px); } }

/* Content */
.err-body { text-align: center; }
@media (min-width: 900px) { .err-body { text-align: start; } }
.err-logo-link { display: inline-block; margin-bottom: 1.1rem; }
.err-logo { height: 110px; width: auto; max-width: 100%; }
@media (max-width: 575.98px) { .err-logo { height: 92px; } }
.err-badge { display: inline-flex; align-items: center; gap: .45rem; padding: .35rem .95rem; border-radius: 99px; background: var(--a-soft); color: var(--a-dark); font-weight: 800; font-size: .85rem; }
.err-body h1 { margin: .9rem 0 .5rem; font-size: clamp(1.7rem, 3.4vw, 2.4rem); font-weight: 900; color: var(--ink); }
.err-message { margin: 0 0 1.25rem; color: var(--slate); line-height: 1.9; font-size: 1.05rem; }
.err-countdown { display: inline-flex; align-items: center; gap: .5rem; margin-bottom: 1.25rem; padding: .6rem 1.1rem; border-radius: .9rem; background: var(--a-soft); color: var(--a-dark); font-weight: 700; }
.err-countdown b { display: inline-block; min-width: 2ch; text-align: center; font-size: 1.15rem; }
.err-actions { display: flex; flex-wrap: wrap; gap: .6rem; justify-content: center; }
@media (min-width: 900px) { .err-actions { justify-content: flex-start; } }
.err-body .btn-site { background: var(--a); box-shadow: 0 8px 18px color-mix(in srgb, var(--a) 28%, transparent); }
.err-body .btn-site:hover { background: color-mix(in srgb, var(--a) 85%, #000); }

@media (prefers-reduced-motion: reduce) { .err-orb, .err-ring, .err-dot { animation: none !important; } }
.err-actions .btn { padding: .65rem 1.05rem; font-size: .92rem; }

/* Contact section illustration (transparent PNG: no box, soft glow behind it) */
.site-contact-art { position: relative; display: grid; justify-items: center; margin: 1.75rem 0 0; }
.site-contact-art img { position: relative; display: block; width: 100%; max-width: 24rem; height: auto; mix-blend-mode: multiply; /* the PNG's white backdrop melts into the section colour */ animation: site-art-bob 6s ease-in-out infinite; }
.site-contact-art figcaption { position: relative; margin-top: -.5rem; display: inline-flex; align-items: center; gap: .5rem; padding: .5rem 1.1rem; border-radius: 99px; background: #fff; border: 1px solid var(--line); color: var(--brand-text); font-size: .88rem; font-weight: 700; box-shadow: 0 8px 20px rgba(15, 23, 42, .1); }
.site-contact-art figcaption i { color: var(--brand); }
@keyframes site-art-bob { 50% { transform: translateY(-8px); } }
@media (prefers-reduced-motion: reduce) { .site-contact-art img { animation: none; } }

/* ---------- Social icons + address ---------- */
.site-social { display: flex; flex-wrap: wrap; gap: .6rem; margin: 0; padding: 0; list-style: none; }
.site-social a { display: grid; place-items: center; width: 2.7rem; height: 2.7rem; border-radius: 50%; font-size: 1.05rem; text-decoration: none; transition: background .2s, color .2s, transform .2s, box-shadow .2s; }
.site-social a:hover { transform: translateY(-3px); background: var(--c); color: #fff; box-shadow: 0 10px 20px color-mix(in srgb, var(--c) 40%, transparent); }
.site-social-footer a { width: 3rem; height: 3rem; font-size: 1.2rem; background: color-mix(in srgb, var(--c) 28%, rgba(255, 255, 255, .08)); border: 1px solid color-mix(in srgb, var(--c) 55%, rgba(255, 255, 255, .2)); color: #fff; }
.site-social-footer a:hover { border-color: #fff; }
.site-social-footer a[aria-label^="إكس"] { --c: #4b5563; } /* pure black disappears on the dark footer */
.site-social-contact { margin-top: 1.5rem; }
.site-social-contact a { background: #fff; border: 1px solid var(--line); color: var(--c); }
.site-social-contact a:hover { border-color: var(--c); }
.site-social a:focus-visible { outline: 3px solid var(--brand-border); outline-offset: 2px; }

.site-footer-line { display: flex; align-items: flex-start; gap: .65rem; }
.site-footer-line > i { margin-top: .3rem; width: 1rem; color: #4ade80; text-align: center; }
.site-footer-line a { color: rgba(255, 255, 255, .7); text-decoration: none; }
.site-footer-line a:hover { color: #fff; }
.site-map-link { display: inline-block; margin-top: .15rem; font-size: .82rem; font-weight: 700; color: var(--brand) !important; text-decoration: none; }
.site-footer .site-map-link { color: #4ade80 !important; }
.site-map-link:hover { text-decoration: underline; }
.site-map-link::before { content: "\f3c5"; font-family: "Font Awesome 6 Free"; font-weight: 900; margin-inline-end: .3rem; font-size: .75rem; }

/* =====================================================================
   Responsive audit fixes
   ===================================================================== */
/* Menu button and text links are comfortable to tap */
/* Only below lg: this rule would otherwise beat Bootstrap's .navbar-expand-lg .navbar-toggler { display: none } on desktop */
@media (max-width: 991.98px) { .site-nav .navbar-toggler { display: inline-grid; } }
.site-nav .navbar-toggler { place-items: center; min-width: 2.75rem; min-height: 2.75rem; padding: 0; border-radius: .8rem; }
.site-nav .navbar-toggler:focus { box-shadow: 0 0 0 .2rem rgba(19, 130, 73, .2); }
.site-service a { display: inline-flex; align-items: center; min-height: 2.75rem; }
.site-link { display: inline-flex; align-items: center; min-height: 2.5rem; }
.site-footer a { display: inline-flex; align-items: center; min-height: 2.25rem; }
.site-footer .site-social a { display: grid; min-height: 0; }
.site-footer-bottom a { min-height: 0; }

/* Phones: verify result details in one column (must come after the grid rules above), shorter PDF area */
@media (max-width: 575.98px) {
    .vf-details { grid-template-columns: 1fr; }
    .vf-pdf { height: 55vh; min-height: 280px; }
    .vf-pdf-fallback { padding: 1.75rem 1rem; }
}
