*,
*::before,
*::after {
box-sizing: border-box;
margin: 0;
padding: 0
}

html {
font-size: 16px;
scroll-behavior: smooth;
-webkit-text-size-adjust: 100%
}

body {
font-family: 'Outfit', sans-serif;
background: #091A0F;
color: #FDFAF4;
line-height: 1.7;
overflow-x: hidden;
min-height: 100vh;
display: flex;
flex-direction: column
}

a {
color: inherit;
text-decoration: none
}

img {
max-width: 100%;
height: auto;
display: block
}

a:focus,
button:focus {
outline: 3px solid #3AB870;
outline-offset: 3px
}

:root {
--vol-dk: #091A0F;
--vol-md: #0F3020;
--vol: #1A6040;
--vol-lt: #2A9060;
--vol-bright: #3AB870;
--chalk: #FDFAF4;
--obsidian: #1A1410;
--ash: #6A5E52;
--rhino: #8B6A3A;
--night: #0A1510;
--fd: 'Playfair Display', Georgia, serif;
--fb: 'Outfit', sans-serif;
--rpill: 100px;
--rmd: 12px;
--t: .22s cubic-bezier(.4, 0, .2, 1);
}

/* ── HEADER ── */
.site-header {
position: sticky;
top: 0;
z-index: 300;
background: rgba(9, 26, 15, .97);
backdrop-filter: blur(16px);
border-bottom: 1px solid rgba(26, 96, 64, .3)
}

.nav-wrap {
max-width: 1280px;
margin: 0 auto;
padding: 0 1.25rem
}

.nav-topbar {
display: flex;
align-items: center;
justify-content: space-between;
height: 64px;
gap: 1rem
}

.logo-link {
display: flex;
align-items: center;
gap: .75rem;
flex-shrink: 0
}

.logo-link img {
height: 42px;
width: 42px;
object-fit: contain;
border-radius: 6px
}

.logo-words {
display: flex;
flex-direction: column;
line-height: 1.15
}

.logo-name {
font-family: var(--fd);
font-size: clamp(.82rem, 2.5vw, 1.05rem);
font-weight: 700;
color: var(--chalk)
}

.logo-sub {
font-size: 9.5px;
font-weight: 500;
color: rgba(255, 255, 255, .38);
letter-spacing: .12em;
text-transform: uppercase
}

.nav-home-link {
display: inline-flex;
align-items: center;
gap: .5rem;
padding: .5rem 1.25rem;
border: 1px solid rgba(58, 184, 112, .35);
color: var(--vol-bright);
border-radius: var(--rpill);
font-size: 13.5px;
font-weight: 600;
transition: background var(--t), color var(--t);
white-space: nowrap;
flex-shrink: 0
}

.nav-home-link:hover {
background: rgba(58, 184, 112, .12);
color: var(--chalk)
}

.nav-home-link svg {
width: 14px;
height: 14px;
flex-shrink: 0
}

/* ── HERO ── */
.scene {
flex: 1;
display: flex;
align-items: center;
justify-content: center;
position: relative;
overflow: hidden;
padding: 3rem 1.5rem
}

.scene-bg {
position: absolute;
inset: 0;
z-index: 0;
background-image: url('https://www.resilienceexpedition.com/images/8-day-lemosho-route.jpg');
background-size: cover;
background-position: center 40%;
filter: saturate(1.1) brightness(.22)
}

.scene-ov {
position: absolute;
inset: 0;
z-index: 1;
background: linear-gradient(170deg, rgba(9, 26, 15, .55) 0%, rgba(9, 26, 15, .75) 50%, rgba(9, 26, 15, .98) 100%)
}

.scene-glow {
position: absolute;
top: 50%;
left: 50%;
transform: translate(-50%, -60%);
width: min(640px, 130vw);
height: min(640px, 130vw);
border-radius: 50%;
background: radial-gradient(circle, rgba(42, 144, 96, .15) 0%, transparent 68%);
z-index: 2;
pointer-events: none
}

.content {
position: relative;
z-index: 3;
text-align: center;
max-width: 700px;
display: flex;
flex-direction: column;
align-items: center;
gap: 1.75rem
}

/* ── 404 Number ── */
.error-num {
font-family: var(--fd);
font-size: clamp(7rem, 22vw, 14rem);
font-weight: 700;
line-height: .88;
letter-spacing: -.05em;
background: linear-gradient(135deg, #2A9060 0%, #3AB870 38%, #B89A5A 68%, #8B6A3A 100%);
-webkit-background-clip: text;
-webkit-text-fill-color: transparent;
background-clip: text;
filter: drop-shadow(0 0 48px rgba(58, 184, 112, .22));
animation: numFloat 7s ease-in-out infinite
}

@keyframes numFloat {

0%,
100% {
transform: translateY(0)
}

50% {
transform: translateY(-10px)
}
}

.error-eyebrow {
display: inline-flex;
align-items: center;
gap: .5rem;
background: rgba(58, 184, 112, .12);
border: 1px solid rgba(58, 184, 112, .3);
color: var(--vol-bright);
font-size: 10.5px;
font-weight: 700;
letter-spacing: .18em;
text-transform: uppercase;
padding: .35rem 1.25rem;
border-radius: var(--rpill);
margin-top: -.75rem
}

.error-title {
font-family: var(--fd);
font-size: clamp(1.5rem, 4.5vw, 2.5rem);
font-weight: 700;
color: var(--chalk);
line-height: 1.18;
letter-spacing: -.02em
}

.error-title em {
font-style: italic;
color: var(--vol-bright)
}

.error-desc {
font-size: clamp(14px, 2.2vw, 16px);
color: rgba(255, 255, 255, .55);
line-height: 1.78;
max-width: 520px
}

/* ── CTA ── */
.cta-row {
display: flex;
flex-direction: column;
gap: .75rem;
align-items: center;
width: 100%
}

@media(min-width:440px) {
.cta-row {
flex-direction: row;
justify-content: center
}
}

.btn-primary {
display: inline-flex;
align-items: center;
gap: .5rem;
background: var(--vol);
color: var(--chalk);
padding: .9rem 2rem;
border-radius: var(--rpill);
font-size: 15px;
font-weight: 700;
border: none;
cursor: pointer;
white-space: nowrap;
box-shadow: 0 4px 28px rgba(26, 96, 64, .45);
transition: background var(--t), transform var(--t), box-shadow var(--t)
}

.btn-primary:hover {
background: var(--vol-lt);
transform: translateY(-2px);
box-shadow: 0 8px 36px rgba(26, 96, 64, .55)
}

.btn-primary svg {
width: 15px;
height: 15px
}

.btn-ghost {
display: inline-flex;
align-items: center;
gap: .5rem;
background: rgba(255, 255, 255, .07);
border: 1px solid rgba(255, 255, 255, .2);
color: rgba(255, 255, 255, .8);
padding: .9rem 1.75rem;
border-radius: var(--rpill);
font-size: 14px;
font-weight: 600;
white-space: nowrap;
transition: background var(--t)
}

.btn-ghost:hover {
background: rgba(255, 255, 255, .14)
}

.btn-ghost svg {
width: 14px;
height: 14px
}

/* ── Quick-link image cards ── */
.ql-label-txt {
font-size: 11.5px;
font-weight: 600;
color: rgba(255, 255, 255, .35);
text-transform: uppercase;
letter-spacing: .1em
}

.quick-links {
display: grid;
grid-template-columns: repeat(4, 1fr);
gap: .75rem;
width: 100%;
max-width: 500px
}

@media(max-width:440px) {
.quick-links {
grid-template-columns: repeat(2, 1fr)
}
}

.ql-item {
position: relative;
border-radius: var(--rmd);
overflow: hidden;
border: 1px solid rgba(255, 255, 255, .1);
aspect-ratio: 1/1;
transition: transform var(--t), border-color var(--t), box-shadow var(--t)
}

.ql-item:hover {
transform: translateY(-3px);
border-color: rgba(58, 184, 112, .45);
box-shadow: 0 8px 24px rgba(0, 0, 0, .4)
}

.ql-item img {
width: 100%;
height: 100%;
object-fit: cover;
filter: brightness(.55) saturate(1.1);
transition: filter var(--t)
}

.ql-item:hover img {
filter: brightness(.7) saturate(1.2)
}

.ql-overlay {
position: absolute;
inset: 0;
background: linear-gradient(to top, rgba(9, 26, 15, .85) 0%, rgba(9, 26, 15, .2) 60%, transparent 100%);
display: flex;
align-items: flex-end;
justify-content: center;
padding: .4rem .3rem .55rem
}

.ql-name {
font-size: 10.5px;
font-weight: 700;
color: #fff;
text-align: center;
line-height: 1.2;
letter-spacing: .02em
}

/* ── SEARCH ── */
.search-section {
width: 100%;
max-width: 480px;
display: flex;
flex-direction: column;
gap: .6rem
}

.search-label-txt {
font-size: 11.5px;
font-weight: 600;
color: rgba(255, 255, 255, .4);
text-transform: uppercase;
letter-spacing: .1em;
text-align: left
}

.search-wrap {
display: flex;
align-items: center;
background: rgba(255, 255, 255, .07);
border: 1px solid rgba(255, 255, 255, .18);
border-radius: var(--rpill);
overflow: hidden;
transition: border-color var(--t), box-shadow var(--t)
}

.search-wrap:focus-within {
border-color: rgba(58, 184, 112, .55);
box-shadow: 0 0 0 3px rgba(58, 184, 112, .14)
}

.search-wrap input {
flex: 1;
background: none;
border: none;
outline: none;
padding: .75rem 1.25rem;
font-family: var(--fb);
font-size: 14px;
color: var(--chalk)
}

.search-wrap input::placeholder {
color: rgba(255, 255, 255, .28)
}

.search-btn {
padding: .75rem 1.1rem;
background: var(--vol);
border: none;
cursor: pointer;
color: var(--chalk);
display: flex;
align-items: center;
justify-content: center;
transition: background var(--t);
flex-shrink: 0
}

.search-btn:hover {
background: var(--vol-lt)
}

.search-btn svg {
width: 16px;
height: 16px
}

/* ── Results dropdown ── */
.search-results {
background: rgba(8, 18, 12, .98);
border: 1px solid rgba(26, 96, 64, .32);
border-radius: var(--rmd);
overflow: hidden;
max-height: 300px;
overflow-y: auto;
display: none;
text-align: left;
box-shadow: 0 20px 56px rgba(0, 0, 0, .7);
margin-top: 2px;
scrollbar-width: thin;
scrollbar-color: rgba(26, 96, 64, .4) transparent
}

.search-results.show {
display: block
}

.sr-item {
display: flex;
align-items: center;
gap: .75rem;
padding: .65rem 1rem;
border-bottom: 1px solid rgba(255, 255, 255, .055);
color: rgba(255, 255, 255, .78);
font-size: 13.5px;
transition: background var(--t), color var(--t);
cursor: pointer
}

.sr-item:last-of-type {
border-bottom: none
}

.sr-item:hover,
.sr-item:focus {
background: rgba(26, 96, 64, .22);
color: var(--chalk);
outline: none
}

.sr-thumb {
width: 34px;
height: 34px;
border-radius: 6px;
overflow: hidden;
flex-shrink: 0;
background: rgba(26, 96, 64, .2)
}

.sr-thumb img {
width: 100%;
height: 100%;
object-fit: cover
}

.sr-info {
display: flex;
flex-direction: column;
gap: 1px;
min-width: 0
}

.sr-name {
font-weight: 600;
font-size: 13.5px;
white-space: nowrap;
overflow: hidden;
text-overflow: ellipsis
}

.sr-cat {
font-size: 10.5px;
color: rgba(255, 255, 255, .36);
font-weight: 500
}

.sr-url {
font-size: 10px;
color: var(--vol-bright);
opacity: .65;
white-space: nowrap;
overflow: hidden;
text-overflow: ellipsis
}

.sr-none {
padding: 1rem 1.25rem;
font-size: 13.5px;
color: rgba(255, 255, 255, .38);
text-align: center
}

.sr-footer {
padding: .45rem 1rem;
font-size: 10px;
color: rgba(255, 255, 255, .22);
border-top: 1px solid rgba(255, 255, 255, .055);
text-align: center
}

/* ── Entrance animations ── */
.content>* {
animation: riseIn .65s ease both
}

.content>*:nth-child(1) {
animation-delay: .04s
}

.content>*:nth-child(2) {
animation-delay: .10s
}

.content>*:nth-child(3) {
animation-delay: .17s
}

.content>*:nth-child(4) {
animation-delay: .24s
}

.content>*:nth-child(5) {
animation-delay: .30s
}

.content>*:nth-child(6) {
animation-delay: .36s
}

.content>*:nth-child(7) {
animation-delay: .42s
}

@keyframes riseIn {
from {
opacity: 0;
transform: translateY(20px)
}

to {
opacity: 1;
transform: translateY(0)
}
}

/* ── FOOTER ── */
.site-footer {
background: var(--night);
color: rgba(255, 255, 255, .42);
padding: 1.25rem 1.25rem;
border-top: 1px solid rgba(26, 96, 64, .18);
font-size: 12px
}

.f-inner {
max-width: 1280px;
margin: 0 auto;
display: flex;
flex-direction: column;
gap: .6rem;
align-items: center
}

@media(min-width:520px) {
.f-inner {
flex-direction: row;
justify-content: space-between
}
}

.f-links {
display: flex;
gap: 1rem;
flex-wrap: wrap;
justify-content: center
}

.f-links a {
color: rgba(255, 255, 255, .4);
transition: color var(--t)
}

.f-links a:hover {
color: var(--vol-bright)
}
