@charset "utf-8";
/* CSS Document */
:root {
    --ink: #17202a;
    --muted: #637083;
    --line: #dde5ee;
    --brand: #1457d9;
    --brand-dark: #0b2f73;
    --success: #138a53;
    --shadow: 0 18px 45px rgba(20, 41, 82, .10);
    --radius: 22px;
}

* { box-sizing: border-box; }

body {
    margin: 0;
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    color: var(--ink);
    background: linear-gradient(180deg, #eef5ff 0%, #ffffff 42%, #f7f9fc 100%);
    line-height: 1.55;
}

a { color: inherit; text-decoration: none; }

.site-header {
    padding: 22px clamp(18px, 4vw, 54px);
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.site-header {
    padding: 16px clamp(18px, 4vw, 54px);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    background: rgba(255,255,255,.92);
    border-bottom: 1px solid rgba(221,229,238,.95);
    box-shadow: 0 6px 18px rgba(20, 41, 82, .05);
    position: sticky;
    top: 0;
    z-index: 20;
    backdrop-filter: blur(10px);
}
.brand {
    display: flex;
    align-items: center;
    gap: 12px;
    font-weight: 800;
    letter-spacing: -.03em;
    font-size: 1.15rem;
    color: var(--brand-dark);
}

.brand-mark {
    width: 42px;
    height: 42px;
    border-radius: 14px;
    display: grid;
    place-items: center;
    color: #fff;
    background: radial-gradient(circle at 30% 20%, #5fa8ff 0, #1457d9 45%, #08265c 100%);
    box-shadow: 0 10px 24px rgba(20, 87, 217, .25);
    font-weight: 900;
}

.quiz-wrap {
    max-width: 980px;
    margin: 28px auto;
    padding: 0 clamp(18px, 4vw, 36px);
}

.quiz-card {
    background: rgba(255,255,255,.94);
    border: 1px solid rgba(221,229,238,.95);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    padding: clamp(28px, 5vw, 54px);
}

.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 18px;
    padding: 7px 12px;
    border: 1px solid #d8e5ff;
    background: #edf5ff;
    border-radius: 999px;
    color: var(--brand-dark);
    font-weight: 800;
    font-size: .82rem;
}

h1 {
    margin: 0 0 12px;
    font-size: clamp(2.2rem, 6vw, 4.9rem);
    line-height: .95;
    letter-spacing: -.075em;
}

.lead {
    max-width: 760px;
    color: #344054;
    font-size: clamp(1.04rem, 1.5vw, 1.22rem);
    margin: 0 0 28px;
}

.progress {
    height: 10px;
    background: #e8edf4;
    border-radius: 999px;
    overflow: hidden;
    margin: 24px 0 30px;
}

.progress-fill {
    height: 100%;
    width: 0;
    background: linear-gradient(90deg, var(--brand), var(--success));
    border-radius: inherit;
    transition: width .25s ease;
}

.question-title {
    margin: 0 0 18px;
    font-size: clamp(1.45rem, 3vw, 2rem);
    letter-spacing: -.04em;
}

.answer-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
}

.answer-btn {
    text-align: left;
    border: 1px solid var(--line);
    background: #f8fbff;
    border-radius: 18px;
    padding: 18px;
    cursor: pointer;
    font: inherit;
    color: var(--ink);
    transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease, background .18s ease;
	min-height: 125px;
}

.answer-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 16px 35px rgba(20, 41, 82, .10);
    border-color: #bfd2ee;
    background: #ffffff;
}

.answer-btn strong {
    display: block;
    font-size: 1.03rem;
    margin-bottom: 4px;
}

.answer-btn span {
    color: var(--muted);
    font-size: .92rem;
}

.result-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
    margin-top: 22px;
}

.result-card {
    background: white;
    border: 1px solid var(--line);
    border-radius: 20px;
    box-shadow: var(--shadow);
    overflow: hidden;
    transition: transform .18s ease, box-shadow .18s ease;
}

.result-card:hover {
    transform: translateY(-5px) rotate(-.2deg);
    box-shadow: 0 26px 60px rgba(20, 41, 82, .16);
}

.result-image {
    min-height: 125px;
    background-size: 150%;
    background-position: center;
    transition: background-size .35s ease;
}

.result-card:hover .result-image {
    background-size: 100%;
}

.result-inner {
    padding: 18px;
}

.result-inner h3 {
    margin: 0 0 8px;
    font-size: 1.2rem;
    letter-spacing: -.04em;
}

.result-inner p {
    color: var(--muted);
    margin: 0;
    font-size: .92rem;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 14px;
}

.ari-badge,
.match-badge {
    display: inline-flex;
    align-items: center;
    padding: 7px 11px;
    border-radius: 999px;
    font-weight: 900;
    font-size: .84rem;
}

.ari-badge {
    background: #ecfdf3;
    border: 1px solid #bbf7d0;
    color: var(--success);
}

.match-badge {
    background: #edf5ff;
    border: 1px solid #cfe0ff;
    color: var(--brand-dark);
}

.actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 24px;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    padding: 12px 18px;
    font-weight: 900;
    border: 1px solid transparent;
    cursor: pointer;
}

.btn-primary { background: var(--brand); color: white; }
.btn-secondary { background: white; color: var(--brand-dark); border-color: var(--line); }

.footer {	text-align: center;
            max-width: 1180px;
            margin: 30px auto 0;
            padding: 32px clamp(18px, 4vw, 36px) 44px;
            color: var(--muted);
            font-size: .9rem;
        }
        .footer a{
            color: var(--muted);
            font-size: .9rem;
        }        
		.footer a:visited{
            color: var(--muted);
            font-size: .9rem;
        }
	.match-reason {
    margin-top: 20px;
    font-size: .65rem;
    font-weight: 300;
    color: var(--brand-dark);
    background: #f4f8ff;
    border: 1px solid #dce8ff;
    padding: 8px 10px;
    border-radius: 12px;
	height: 100px;
}
	.quiz-nav {
    display: flex;
    gap: 12px;
    margin-top: 22px;
}

.quiz-nav .btn {
    padding: 11px 16px;
}
.quiz-nav .btn-secondary {
    background: #f4f8ff;
    border-color: #cfe0ff;
    color: var(--brand-dark);
    font-weight: 800;
}

.quiz-nav .btn-secondary:hover {
    background: #edf5ff;
    transform: translateY(-1px);
}
	.menu-toggle {
    display: none;
    border: 1px solid var(--line);
    background: white;
    color: var(--brand-dark);
    border-radius: 999px;
    padding: 8px 12px;
    font-weight: 900;
    cursor: pointer;
}

@media (max-width: 900px) {
    .site-header {
        position: sticky;
        top: 0;
        z-index: 50;
        flex-wrap: wrap;
    }

    .menu-toggle {
        display: inline-flex;
        align-items: center;
        justify-content: center;
    }

    
}
@media (max-width: 800px) {
    .answer-grid,
    .result-grid {
        grid-template-columns: 1fr;
    }
}
	

.menu-toggle {
    display: none;
    border: 1px solid var(--line);
    background: white;
    color: var(--brand-dark);
    border-radius: 999px;
    padding: 8px 12px;
    font-weight: 900;
    cursor: pointer;
}

@media (max-width: 900px) {
    .site-header {
        position: sticky;
        top: 0;
        z-index: 50;
        flex-wrap: wrap;
    }

    .menu-toggle {
        display: inline-flex;
        align-items: center;
        justify-content: center;
    }

    .top-nav {
        display: none;
        width: 100%;
        padding-top: 12px;
        border-top: 1px solid var(--line);
        margin-top: 10px;
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }

    .top-nav.open {
        display: flex;
    }

    .top-nav a {
        padding: 8px 0;
        width: 100%;
    }
}
.quiz-card {
    background:
        linear-gradient(
            to bottom,
            rgba(255,255,255,0.30) 0%,
            rgba(255,255,255,0.45) 25%,
            rgba(255,255,255,0.90) 50%,
            #ffffff 0%
        ),
        url('/images/quizBG.webp');

    background-size: 100% auto;
    background-position: top center;
    background-repeat: no-repeat;
	background-position: center -70px;
}
.quiz-card {
    animation: heroFade .6s ease;
}

@keyframes heroFade {
    from {
        opacity: 0;
        transform: translateY(6px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}
.quiz-card {
    box-shadow: 0 18px 45px rgba(20,41,82,.10);
}
.result-note {
    margin-top: 6px;
    font-size: .85rem;
    color: var(--muted);
}

.share-card {
    margin: 26px auto 0;
    padding: 26px 28px;
    border-radius: 22px;
    background: linear-gradient(135deg, rgba(255,255,255,.96), rgba(240,246,255,.92));
    border: 1px solid #dce8ff;
    box-shadow: var(--shadow);
    text-align: center;
    max-width: 420px; /* controls width */
    width: 100%;
}
.share-card-label {
    font-weight: 900;
    color: #000;
    margin-bottom: 12px;
    font-size: 1.1rem;
    letter-spacing: .2px;
}

.share-card ol {
    list-style: none;
    padding: 0;
    margin: 12px 0 0;
    font-weight: 900;
    font-size: 1.15rem;
}

.share-card p {
    margin: 14px 0 0;
    color: var(--muted);
    font-size: .92rem;
}
.share-card ol li {
    margin-bottom: 4px;
	  white-space: nowrap;
	    margin: 8px 0;
    font-size: 1.2rem;
}
.share-card p {
    margin-top: 14px;
    font-size: .85rem;
    color: var(--muted);
    font-weight: 600;
}
.share-card ol li {
    margin: 6px 0;
}
.share-actions {
    margin-top: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    flex-wrap: wrap;
}

.share-btn {
    border: 0;
    background: transparent;
    color: var(--brand-dark);
    font-weight: 900;
    font-size: .9rem;
    cursor: pointer;
    padding: 6px 4px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: color .2s ease, transform .2s ease;
}

.share-btn:hover {
    color: var(--brand);
    transform: translateY(-5px);
}

.share-divider {
    color: #c4ceda;
    font-weight: 700;
}
.share-icon{
	max-width: 50px;
}.quiz-card {
    min-height: 520px; /* adjust slightly after testing */
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
}
#quiz {
    min-height: 360px; /* this is the key stabilizer */
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
}
#quiz {
    transition: opacity 0.2s ease, transform 0.2s ease;
}#quiz.quiz-complete {
    min-height: 0;
}
.question-meta {
    display: inline-block;
    background: rgba(0,0,0,0.05);
    padding: 4px 10px;
    border-radius: 999px;
}
#questionNumber {
    display: inline-block;
}

#questionNumber.number-pop {
    animation: numberPop .28s ease;
}

@keyframes numberPop {
    0% {
        transform: translateY(4px) scale(.92);
        opacity: .4;
    }
    100% {
        transform: translateY(0) scale(1);
        opacity: 1;
    }
}/* Shared header/nav consistency */

.logo {
    height: 46px;
    width: auto;
    display: block;
}



/* Final shared header override */
.site-header .logo {
    height: 56px !important;
    width: auto !important;
    max-height: none !important;
    display: block;
}

.top-nav a {
    color: #637083 !important;
    font-weight: 500 !important;
    text-decoration: none !important;
}

.top-nav a.active {
    color: #f56700 !important;
    font-weight: 800 !important;
}

.top-nav a:hover {
    color: #f56700 !important;
    text-decoration: none !important;
}
.top-nav {
    display: flex;
    align-items: center;
    gap: 6px;
}

.top-nav a {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    min-width: 76px;
    text-align: center;
}
.top-nav a[href="/"] {
    min-width: 64px;
}

.top-nav a[href="/quiz.php"] {
    min-width: 64px;
}

.top-nav a[href="/#trades"] {
    min-width: 74px;
}

.top-nav a[href="/ari.php"] {
    min-width: 68px;
}

.top-nav a[href="/contact.php"] {
    min-width: 82px;
}

@media (max-width: 760px) {

    /* NAV CONTAINER */
    .top-nav {
        display: flex;                  /* always flex (important for animation) */
        flex-direction: column;
        align-items: flex-start;
        width: 100%;

        margin-top: 16px;
        padding-top: 0;
        border-top: none;

        /* animation setup */
        max-height: 0;
        opacity: 0;
        overflow: hidden;

        transform: translateY(-8px);
        transition:
            max-height 0.35s ease,
            opacity 0.25s ease,
            transform 0.25s ease,
            padding-top 0.25s ease,
            border-top 0.25s ease;
    }

    /* OPEN STATE */
    .top-nav.open {
        max-height: 400px;              /* large enough for all links */
        opacity: 1;
        transform: translateY(0);

        padding-top: 16px;
        border-top: 1px solid var(--line);
    }

    /* LINKS */
    .top-nav a {
        display: block;
        width: 100%;
        text-align: left;
        padding: 12px 0;
        font-size: 1.1rem;
        justify-content: flex-start;

        border-bottom: 1px solid rgba(0,0,0,0.06);
    }

    .top-nav a:last-child {
        border-bottom: none;
    }

    /* MENU BUTTON */
    .menu-toggle {
        display: inline-flex;
        align-items: center;
    }
}
.share-copy-row {
    margin-top: 14px;
    margin-bottom: 14px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}

.share-quiz-link {
    font-weight: 600;
}

.copy-results-inline {
    border: 1px solid rgba(0,0,0,.08);
    background: rgba(255,255,255,.75);
    color: #1d3557;
    border-radius: 999px;
    padding: 8px 14px;
    font-size: .9rem;
    font-weight: 600;
    cursor: pointer;
    transition: all .2s ease;
}

.copy-results-inline:hover {
    background: #ffffff;
    transform: translateY(-1px);
    box-shadow: 0 4px 10px rgba(0,0,0,.08);
}
.answer-btn {
    position: relative;
    overflow: hidden;
}

.answer-btn:active {
    transform: scale(0.98);
    border-color: var(--brand);
    background: #eef5ff;
}

.answer-btn::after {
    content: "";
    position: absolute;
    inset: 0;
    background: radial-gradient(circle, rgba(20,87,217,.18) 0%, transparent 55%);
    transform: scale(0);
    opacity: 0;
    transition: transform .28s ease, opacity .28s ease;
    pointer-events: none;
}

.answer-btn:active::after {
    transform: scale(2.2);
    opacity: 1;
}
.quiz-share-strip {
    max-width: 920px;
    margin: -12px auto 34px;
    padding: 12px 16px;
    border: 1px solid rgba(221,229,238,.95);
    border-radius: 999px;
    background: rgba(255,255,255,.88);
    box-shadow: 0 10px 24px rgba(20,41,82,.08);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    flex-wrap: wrap;
}

.share-strip-label {
    font-size: .78rem;
    font-weight: 900;
    letter-spacing: .04em;
    text-transform: uppercase;
    color: var(--muted);
}

.quiz-share-strip a,
.quiz-share-strip button {
    border: 0;
    background: transparent;
    color: var(--brand-dark);
    font-weight: 900;
    font-size: .9rem;
    cursor: pointer;
    padding: 0;
    font-family: inherit;
}

.quiz-share-strip a:hover,
.quiz-share-strip button:hover {
    color: var(--brand);
}

.share-divider {
    width: 1px;
    height: 16px;
    background: var(--line);
}

.copy-notice {
    position: fixed;
    left: 50%;
    bottom: 24px;
    transform: translateX(-50%) translateY(12px);
    background: var(--brand-dark);
    color: #fff;
    padding: 10px 16px;
    border-radius: 999px;
    font-weight: 900;
    font-size: .9rem;
    box-shadow: 0 12px 30px rgba(20,41,82,.22);
    opacity: 0;
    pointer-events: none;
    transition: opacity .22s ease, transform .22s ease;
    z-index: 9999;
}

.copy-notice.show {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}

@media (max-width: 640px) {
    .quiz-share-strip {
        border-radius: 18px;
        margin: -8px 18px 30px;
    }

    .share-strip-label {
        width: 100%;
        text-align: center;
    }
}
/* Mobile header height cleanup */
@media (max-width: 760px) {
    .site-header {
        padding: 8px 18px !important;
        gap: 8px;
        align-items: center;
    }

    .site-header .logo {
        height: 46px !important;
        width: auto !important;
    }

    .menu-toggle {
        padding: 8px 14px;
        line-height: 1;
    }

    .top-nav {
        margin-top: 0 !important;
        padding-top: 0 !important;
        border-top: 0 !important;
        max-height: 0;
    }

    .top-nav.open {
        margin-top: 10px !important;
        padding-top: 10px !important;
        border-top: 1px solid var(--line) !important;
        max-height: 400px;
    }
}