/*
 * Developer: MexTech Limited
 * Licenced: Naijasearch is officially licenced and authorized to be used from MexTech Limited
 * Copyright: (c) 2026 All Rights Reserved, MexTech Limited (https://mextechltd.name.ng).
 */

@font-face {
    font-family: "Manrope";
    src: url("../fonts/manrope.woff2") format("woff2");
    font-weight: 200 800;
    font-style: normal;
    font-display: swap;
    unicode-range: U+0000-00FF, U+0100-024F, U+0259, U+0300-036F, U+1E00-1EFF, U+2000-206F, U+20A0-20A5, U+20A7-20CF, U+2122, U+2190-2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
    font-family: "Naija Naira";
    src: url("../fonts/naira.woff2") format("woff2");
    font-weight: 100 900;
    font-style: normal;
    font-display: block;
    unicode-range: U+20A6;
}

:root {
    color-scheme: light;

    --brand: #4b5320;
    --brand-strong: #3a3f17;
    --brand-deep: #262a0f;
    --brand-soft: #eff1e4;
    --brand-soft-2: #f7f8f2;
    --brand-night: #1f220c;
    --brand-fill-end: #262a0f;
    --band-1: #262a0f;
    --band-2: #3a3f17;
    --band-3: #4b5320;
    --brand-rgb: 75, 83, 32;
    --shade-rgb: 31, 34, 12;
    --surface-rgb: 255, 255, 255;
    --on-brand: #ffffff;
    --on-brand-soft: rgba(255, 255, 255, 0.72);
    --on-brand-wash: rgba(255, 255, 255, 0.22);
    --on-ink: #ffffff;

    --ink: #0d1a13;
    --ink-2: #33443b;
    --ink-3: #566a60;
    --muted: #6d7f75;
    --faint: #93a39a;

    --surface: #ffffff;
    --surface-2: #f7f9f8;
    --canvas: #f1f4f2;
    --line: #e2e9e5;
    --line-strong: #ccd8d1;
    --hero-top: #fbfdfc;
    --hero-accent: #8a6510;
    --overlay-rgb: 9, 18, 13;
    --ink-hover: #1c2c23;
    --wash: rgba(13, 26, 19, 0.06);
    --wash-2: rgba(13, 26, 19, 0.07);
    --mark: #fff0c2;
    --brand-line: #e0e3cf;
    --danger-hover: #fbdcd9;
    --danger-line: #f6d3cf;
    --danger-ink: #7d1a15;
    --amber-line: #f2e2c4;
    --amber-ink: #7a4a00;
    --info-ink: #1f4f74;

    --price: #0d1a13;
    --amber: #a86400;
    --amber-soft: #fdf3e2;
    --danger: #b3261e;
    --danger-soft: #fdeceb;
    --info: #15559a;
    --info-soft: #e9f1fb;

    --r-xs: 6px;
    --r-sm: 8px;
    --r-md: 12px;
    --r-lg: 16px;
    --r-xl: 22px;
    --r-pill: 999px;

    --sh-1: 0 1px 2px rgba(13, 26, 19, 0.06);
    --sh-2: 0 2px 6px rgba(13, 26, 19, 0.07), 0 1px 2px rgba(13, 26, 19, 0.04);
    --sh-3: 0 8px 24px rgba(13, 26, 19, 0.10), 0 2px 6px rgba(13, 26, 19, 0.05);
    --sh-4: 0 18px 44px rgba(13, 26, 19, 0.14);

    --wrap: 1280px;
    --wrap-narrow: 880px;
    --header-h: 64px;

    --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
    --fast: 140ms var(--ease);
    --normal: 220ms var(--ease);
}

html[data-theme="dark"] {
    color-scheme: dark;

    --brand: #bdc973;
    --brand-strong: #d2db94;
    --brand-deep: #e3e9b9;
    --brand-soft: #2f321b;
    --brand-soft-2: #222414;
    --brand-night: #0b0c07;
    --brand-fill-end: #9aa845;
    --band-1: #14160a;
    --band-2: #1d210e;
    --band-3: #2a2f13;
    --brand-rgb: 189, 201, 115;
    --shade-rgb: 0, 0, 0;
    --surface-rgb: 23, 26, 18;
    --on-brand: #151a08;
    --on-brand-soft: rgba(21, 26, 8, 0.72);
    --on-brand-wash: rgba(21, 26, 8, 0.16);
    --on-ink: #0f110b;

    --ink: #ffffff;
    --ink-2: #d2d7c4;
    --ink-3: #aeb59d;
    --muted: #8e9680;
    --faint: #6b7260;

    --surface: #171a12;
    --surface-2: #1d2116;
    --canvas: #0f110b;
    --line: #2b3022;
    --line-strong: #3b4230;
    --hero-top: #1a1d14;
    --hero-accent: #e6bd6a;
    --overlay-rgb: 0, 0, 0;
    --ink-hover: #d2d7c4;
    --wash: rgba(236, 238, 226, 0.08);
    --wash-2: rgba(236, 238, 226, 0.1);
    --mark: #5c4a14;
    --brand-line: #474b30;
    --danger-hover: #4a2022;
    --danger-line: #5a2a2c;
    --danger-ink: #f6b3ad;
    --amber-line: #53411a;
    --amber-ink: #f0cf8f;
    --info-ink: #9cc7f3;

    --price: #ffffff;
    --amber: #e3a843;
    --amber-soft: #2f2610;
    --danger: #f28b82;
    --danger-soft: #35191a;
    --info: #7fb4ee;
    --info-soft: #14253a;

    --sh-1: 0 1px 2px rgba(0, 0, 0, 0.5);
    --sh-2: 0 2px 6px rgba(0, 0, 0, 0.45), 0 1px 2px rgba(0, 0, 0, 0.35);
    --sh-3: 0 8px 24px rgba(0, 0, 0, 0.5), 0 2px 6px rgba(0, 0, 0, 0.35);
    --sh-4: 0 18px 44px rgba(0, 0, 0, 0.6);
}

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

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

body {
    margin: 0;
    background: var(--canvas);
    color: var(--ink);
    font-family: "Manrope", "Naija Naira", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
    font-size: 15px;
    line-height: 1.6;
    font-weight: 400;
    letter-spacing: -0.006em;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
}

img,
svg,
video {
    max-width: 100%;
    display: block;
}

a > svg,
button > svg,
summary > svg {
    display: inline-block;
    vertical-align: -0.125em;
}

img {
    height: auto;
}

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

p {
    margin: 0 0 0.85em;
}

p:last-child {
    margin-bottom: 0;
}

h1,
h2,
h3,
h4,
h5 {
    margin: 0 0 0.5em;
    font-weight: 700;
    letter-spacing: -0.025em;
    line-height: 1.2;
    color: var(--ink);
}

h1 {
    font-size: clamp(1.55rem, 1.2rem + 1.6vw, 2.1rem);
}

h2 {
    font-size: clamp(1.25rem, 1.05rem + 0.8vw, 1.55rem);
}

h3 {
    font-size: 1.06rem;
    letter-spacing: -0.015em;
}

h4 {
    font-size: 0.95rem;
    letter-spacing: -0.01em;
}

ul,
ol {
    margin: 0;
    padding: 0;
    list-style: none;
}

button,
input,
select,
textarea {
    font: inherit;
    color: inherit;
}

button {
    cursor: pointer;
}

table {
    border-collapse: collapse;
    width: 100%;
}

hr {
    border: 0;
    border-top: 1px solid var(--line);
    margin: 1.5rem 0;
}

:focus-visible {
    outline: 2px solid var(--brand);
    outline-offset: 2px;
    border-radius: 4px;
}

::selection {
    background: var(--brand);
    color: var(--on-brand);
}

.wrap {
    width: 100%;
    max-width: var(--wrap);
    margin-inline: auto;
    padding-inline: 20px;
}

main#main > .crumbs {
    width: 100%;
    max-width: var(--wrap);
    margin-inline: auto;
    padding-inline: 20px;
}

.stack {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.row {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    flex-wrap: wrap;
}

.row--between {
    justify-content: space-between;
}

.muted {
    color: var(--muted);
}

.small {
    font-size: 0.82rem;
}

.micro {
    font-size: 0.72rem;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    font-weight: 700;
    color: var(--muted);
}

.strong {
    font-weight: 700;
}

.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;
}

.skip-link {
    position: absolute;
    left: 12px;
    top: -60px;
    z-index: 200;
    background: var(--brand);
    color: var(--on-brand);
    padding: 10px 18px;
    border-radius: var(--r-sm);
    transition: top var(--fast);
}

.skip-link:focus {
    top: 12px;
}

.theme-toggle__sun,
.theme-toggle__label--light {
    display: none;
}

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

html[data-theme="dark"] .theme-toggle__moon,
html[data-theme="dark"] .theme-toggle__label--dark {
    display: none;
}

html[data-theme="dark"] .theme-toggle__sun {
    display: inline-block;
}

html[data-theme="dark"] .theme-toggle__label--light {
    display: inline;
}

html:not([data-theme]) .theme-toggle {
    display: none;
}

.section {
    padding: 34px 0;
}

.section--tight {
    padding: 22px 0;
}

.section__head {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 16px;
}

.section__head > * {
    min-width: 0;
}

.section__head .section__link,
.section__head > a {
    flex: 0 0 auto;
}

.section__head h2 {
    margin: 0;
}

.section__head p {
    margin: 4px 0 0;
    color: var(--muted);
    font-size: 0.88rem;
}

.section__link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: var(--brand);
    font-weight: 700;
    font-size: 0.85rem;
    white-space: nowrap;
    transition: gap var(--fast);
}

.section__link:hover {
    gap: 10px;
}

@media (max-width: 640px) {
    body {
        font-size: 14.5px;
    }

    .wrap {
        padding-inline: 14px;
    }

    .section {
        padding: 24px 0;
    }

    .section__head {
        margin-bottom: 12px;
    }
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}

.ns-progress {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    z-index: 2147483000;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.18s linear;
}

.ns-progress.is-on {
    opacity: 1;
}

.ns-progress__bar {
    height: 100%;
    width: 100%;
    transform: scaleX(0);
    transform-origin: 0 50%;
    background: linear-gradient(90deg, var(--brand) 0%, var(--brand-strong) 55%, var(--brand-deep) 100%);
    box-shadow: 0 0 10px rgba(var(--brand-rgb), 0.5);
    transition: transform 0.2s ease-out;
    will-change: transform;
}

main#main {
    transition: opacity 0.16s linear;
}

main#main.is-loading {
    opacity: 0.4;
}

main#main:focus {
    outline: none;
}

@media (max-width: 720px) {
    .ns-progress {
        height: 3px;
    }
}

.ns-dialog {
    position: fixed;
    inset: 0;
    z-index: 200;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 18px;
    opacity: 0;
    pointer-events: none;
    transition: opacity 180ms var(--ease);
}

.ns-dialog[hidden] {
    display: none;
}

.ns-dialog.is-open {
    opacity: 1;
    pointer-events: auto;
}

.ns-dialog__scrim {
    position: absolute;
    inset: 0;
    background: rgba(var(--overlay-rgb), 0.58);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
}

.ns-dialog__panel {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 14px;
    width: min(430px, 100%);
    padding: 22px;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--r-lg);
    box-shadow: var(--sh-4);
    opacity: 0;
    transform: translateY(10px) scale(0.985);
    transition: transform 220ms var(--ease), opacity 220ms var(--ease);
}

.ns-dialog.is-open .ns-dialog__panel {
    opacity: 1;
    transform: none;
}

.ns-dialog__head {
    display: flex;
    align-items: flex-start;
    gap: 12px;
}

.ns-dialog__glyph {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    flex: none;
    border-radius: var(--r-md);
    background: var(--brand-soft);
    color: var(--brand);
}

.ns-dialog--danger .ns-dialog__glyph {
    background: var(--danger-soft);
    color: var(--danger);
}

.ns-dialog__copy {
    min-width: 0;
}

.ns-dialog__title {
    margin: 0;
    color: var(--ink);
    font-size: 1.02rem;
    font-weight: 800;
    letter-spacing: -0.02em;
    line-height: 1.3;
}

.ns-dialog__text {
    margin: 6px 0 0;
    color: var(--ink-3);
    font-size: 0.88rem;
    line-height: 1.6;
}

.ns-dialog__actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 8px;
}

.ns-dialog__btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 96px;
    height: 40px;
    padding: 0 16px;
    border: 1px solid var(--line-strong);
    border-radius: var(--r-sm);
    background: var(--surface-2);
    color: var(--ink-2);
    font-family: inherit;
    font-size: 0.86rem;
    font-weight: 700;
    cursor: pointer;
    transition: background-color 140ms var(--ease), border-color 140ms var(--ease), color 140ms var(--ease);
}

.ns-dialog__btn:hover {
    border-color: var(--ink-3);
    color: var(--ink);
}

.ns-dialog__btn[hidden] {
    display: none;
}

.ns-dialog__btn--primary {
    border-color: var(--brand);
    background: var(--brand);
    color: var(--on-brand);
}

.ns-dialog__btn--primary:hover {
    border-color: var(--brand-strong);
    background: var(--brand-strong);
    color: var(--on-brand);
}

.ns-dialog--danger .ns-dialog__btn--primary {
    border-color: var(--danger);
    background: var(--danger);
    color: #ffffff;
}

.ns-dialog--danger .ns-dialog__btn--primary:hover {
    border-color: var(--danger);
    background: var(--danger);
    color: #ffffff;
    filter: brightness(0.92);
}

html[data-theme="dark"] .ns-dialog--danger .ns-dialog__btn--primary,
html[data-theme="dark"] .ns-dialog--danger .ns-dialog__btn--primary:hover {
    color: #2b0b0a;
}

.ns-dialog__btn:focus-visible {
    outline: none;
    box-shadow: 0 0 0 3px rgba(var(--brand-rgb), 0.28);
}

html.ns-dialog-open,
html.ns-dialog-open body {
    overflow: hidden;
}

@media (max-width: 560px) {
    .ns-dialog {
        align-items: flex-end;
        padding: 0;
    }

    .ns-dialog__panel {
        width: 100%;
        padding: 20px 18px calc(18px + env(safe-area-inset-bottom));
        border-radius: var(--r-lg) var(--r-lg) 0 0;
        transform: translateY(24px);
    }

    .ns-dialog__actions {
        flex-direction: column-reverse;
    }

    .ns-dialog__btn {
        width: 100%;
    }
}

@media (min-width: 1440px) {
    :root {
        --wrap: 1400px;
    }
}

@media (min-width: 1680px) {
    :root {
        --wrap: 1560px;
    }
}

@media (min-width: 1920px) {
    :root {
        --wrap: 1700px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .ns-dialog,
    .ns-dialog__panel {
        transition-duration: 1ms;
    }
}
