/* ==========================================================
   UKWUANI SITE SYSTEM — base + shell + shared components
   Load order: 2nd (after tokens.css)
   ========================================================== */

/* ---------- base ---------- */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html { scroll-behavior: smooth; }
html, body { width: 100%; max-width: 100vw; overflow-x: hidden; }
body {
  font-family: var(--font-body);
  background: var(--ink);
  color: var(--text-main);
  line-height: 1.65;
}

/* ambient river-glow */
body::before {
  content: ""; position: fixed; inset: 0; z-index: var(--z-bg); pointer-events: none;
  background:
    radial-gradient(60vw 60vw at 12% -10%, rgba(14, 90, 50, .32), transparent 60%),
    radial-gradient(55vw 55vw at 95% 15%, rgba(15, 94, 99, .26), transparent 60%),
    radial-gradient(50vw 50vw at 50% 110%, rgba(197, 155, 39, .12), transparent 60%);
}
/* leopard-spot texture */
body::after {
  content: ""; position: fixed; inset: 0; z-index: var(--z-bg); pointer-events: none; opacity: .045;
  background-image: radial-gradient(rgba(241, 213, 126, .9) 1px, transparent 1.4px);
  background-size: 26px 26px;
}

h1, h2, h3, h4 { font-family: var(--font-display); font-weight: 600; line-height: 1.12; }
img { display: block; width: 100%; height: auto; max-width: 100%; }
a { color: inherit; text-decoration: none; transition: color var(--t-fast); }
button { font-family: inherit; cursor: pointer; border: none; background: none; color: inherit; }
ul { list-style: none; }
::selection { background: var(--brass); color: var(--ink); }
:focus-visible { outline: 2px solid var(--brass-soft); outline-offset: 3px; }

/* ---------- layout & type utilities ---------- */
.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: var(--gutter); }
section { padding: var(--space-section) 0; position: relative; }

.voice { font-family: var(--font-display); font-style: italic; color: var(--brass-soft); }  /* language layer */

.kicker {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: var(--fs-small); font-weight: 700; letter-spacing: 2.5px; text-transform: uppercase;
  color: var(--brass-soft);
}
.kicker::before { content: ""; width: 26px; height: 2px; background: var(--brass); }

.section-head { max-width: 820px; margin: 0 auto clamp(34px, 5vw, 58px); text-align: center; }
.section-head .kicker { justify-content: center; }
.section-head h2 { font-size: var(--fs-h2); margin: 10px 0 12px; }
.section-head .lead { color: var(--text-sub); font-size: var(--fs-lead); }

/* river-wave divider */
.wave {
  height: 14px; border: 0; opacity: .6;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 120 14'%3E%3Cpath d='M0 7c10-5 20-5 30 0s20 5 30 0 20-5 30 0 20 5 30 0' fill='none' stroke='%23c59b27' stroke-opacity='.55' stroke-width='1.4'/%3E%3C/svg%3E") repeat-x center / 120px 14px;
}

/* grain overlay for bands */
.noise::after {
  content: ""; position: absolute; inset: 0; opacity: .06; pointer-events: none;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2'/%3E%3C/filter%3E%3Crect width='120' height='120' filter='url(%23n)' opacity='.55'/%3E%3C/svg%3E");
}

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  padding: 13px 28px; border-radius: var(--r-full);
  font-weight: 700; font-size: .92rem;
  transition: transform var(--t-fast), box-shadow var(--t-fast), background var(--t-fast);
}
.btn:hover { transform: translateY(-3px); }
.btn-brass { background: linear-gradient(135deg, var(--brass), #8a6813); color: #1a1405; box-shadow: 0 6px 18px var(--brass-glow); }
.btn-laterite { background: var(--laterite); color: #fff; box-shadow: 0 6px 20px rgba(180, 67, 46, .45); }
.btn-laterite:hover { background: var(--laterite-bright); }
.btn-ghost { background: rgba(255, 255, 255, .1); border: 1.5px solid rgba(255, 255, 255, .65); color: #fff; backdrop-filter: blur(8px); }
.btn-ghost:hover { background: #fff; color: var(--palm-deep); border-color: #fff; }

/* ---------- cards & pills ---------- */
.card { background: var(--glass); border: 1px solid var(--line); border-radius: var(--r-md); backdrop-filter: blur(14px); }
.card-hover { transition: transform var(--t-med), border-color var(--t-med), box-shadow var(--t-med), background var(--t-med); }
.card-hover:hover { transform: translateY(-8px); border-color: var(--line-strong); background: var(--glass-hover); box-shadow: var(--shadow-2); }
.card-signature { animation: breathe 6s infinite ease-in-out, sheen 7s infinite ease-in-out; }
@keyframes breathe { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-4px); } }
@keyframes sheen { 0%, 100% { border-color: var(--line); } 50% { border-color: var(--line-strong); box-shadow: 0 6px 22px var(--brass-glow); } }

.tag-pill {
  display: inline-flex; align-items: center; gap: 6px;
  background: var(--brass); color: #1a1405; border-radius: var(--r-full);
  padding: 4px 12px; font-size: .68rem; font-weight: 800; letter-spacing: 1px; text-transform: uppercase;
}
.pill {
  display: inline-flex; align-items: center; gap: 7px;
  border: 1px solid var(--line); border-radius: var(--r-full);
  padding: 6px 14px; font-size: .78rem; font-weight: 600;
  color: var(--brass-soft); background: rgba(197, 155, 39, .12);
}

/* ---------- stat strip ---------- */
.stat-strip {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px;
  background: var(--line); border: 1px solid var(--line); border-radius: var(--r-md); overflow: hidden;
}
.stat { background: rgba(7, 19, 12, .78); backdrop-filter: blur(10px); padding: 16px 8px; text-align: center; }
.stat b { display: block; font-family: var(--font-display); font-weight: 600; font-size: clamp(1.3rem, 3vw, 2.1rem); color: var(--brass-soft); }
.stat span { font-size: .66rem; letter-spacing: 1.4px; text-transform: uppercase; color: var(--text-sub); }
@media (min-width: 760px) { .stat-strip { grid-template-columns: repeat(6, 1fr); } }

/* ---------- line-mask title reveal ---------- */
.mask-line { display: block; overflow: hidden; }
.mask-line > span { display: block; transform: translateY(112%); transition: transform 1s var(--ease); }
body.loaded .mask-line > span { transform: none; }

/* ---------- marquee ---------- */
.marquee { overflow: hidden; border-block: 1px solid var(--line); background: rgba(7, 19, 12, .6); backdrop-filter: blur(8px); }
.marquee-track { display: flex; gap: 3rem; width: max-content; padding: 15px 0; animation: mar 30s linear infinite; will-change: transform; }
.marquee:hover .marquee-track { animation-play-state: paused; }
.marquee-track span {
  display: inline-flex; align-items: center; gap: 3rem; white-space: nowrap;
  font-family: var(--font-display); font-style: italic; font-size: 1.05rem; color: var(--brass-soft);
}
.marquee-track span::after { content: "✦"; color: var(--brass); font-style: normal; }
@keyframes mar { to { transform: translateX(-50%); } }

/* ---------- carousel shell ---------- */
.viewport { overflow: hidden; width: 100%; position: relative; z-index: 1; padding: 10px 0; }
.track { display: flex; gap: 20px; transition: transform .45s var(--ease); }
.pagination { display: flex; justify-content: center; align-items: center; gap: 12px; margin-top: 30px; }
.pg-btn {
  width: 40px; height: 40px; border-radius: 50%;
  background: var(--glass); border: 1px solid var(--line); color: var(--brass-soft);
  display: flex; align-items: center; justify-content: center; transition: all var(--t-fast);
}
.pg-btn:hover:not(:disabled) { background: var(--palm); color: #fff; border-color: var(--brass); transform: translateY(-2px); }
.pg-btn:disabled { opacity: .35; cursor: not-allowed; }
.dots { display: flex; gap: 8px; }
.dot { width: 9px; height: 9px; border-radius: var(--r-full); background: rgba(255, 255, 255, .25); border: 1px solid var(--line); cursor: pointer; transition: all var(--t-fast); }
.dot.active { width: 24px; border-radius: 10px; background: var(--brass); box-shadow: 0 0 10px var(--brass-glow); }

/* ---------- filter bar ---------- */
.filter-bar { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; margin: 0 auto clamp(26px, 4vw, 40px); }
.f-btn {
  background: var(--glass); border: 1px solid var(--line); color: var(--text-sub);
  border-radius: var(--r-full); padding: 9px 18px; font-size: .82rem; font-weight: 700;
  display: inline-flex; align-items: center; gap: 8px; transition: all var(--t-fast);
}
.f-btn i { color: var(--brass-soft); }
.f-btn:hover { border-color: var(--brass); color: #fff; transform: translateY(-2px); }
.f-btn.active { background: linear-gradient(135deg, var(--palm), var(--palm-deep)); color: #fff; border-color: var(--brass); box-shadow: 0 4px 16px var(--brass-glow); }

/* ---------- lightbox ---------- */
.lightbox {
  position: fixed; inset: 0; z-index: var(--z-modal);
  background: rgba(3, 20, 10, .92); backdrop-filter: blur(12px);
  display: none; align-items: center; justify-content: center; padding: clamp(14px, 4vw, 30px);
}
.lightbox.open { display: flex; }
.lightbox-card {
  max-width: 900px; width: 100%; max-height: 86vh; overflow-y: auto;
  background: rgba(7, 59, 32, .96); border: 1.5px solid var(--brass); border-radius: var(--r-lg);
  box-shadow: var(--shadow-3); animation: pop .35s var(--ease);
}
@keyframes pop { from { transform: scale(.92); opacity: 0; } to { transform: scale(1); opacity: 1; } }
.lightbox-card img { width: 100%; max-height: 55vh; object-fit: cover; background: var(--ink); }
.lightbox-body { padding: clamp(18px, 3.5vw, 28px); }
.lightbox-body h3 { font-size: var(--fs-h3); margin-bottom: 6px; }
.lightbox-body p { font-size: .9rem; color: var(--text-sub); }
.lb-close {
  position: absolute; top: 14px; right: 14px; width: 42px; height: 42px; border-radius: 50%;
  background: var(--laterite); color: #fff; display: flex; align-items: center; justify-content: center;
  z-index: 10; transition: all var(--t-fast);
}
.lb-close:hover { background: var(--laterite-bright); transform: scale(1.1); }

/* ---------- shell: topbar ---------- */
.topbar {
  background: rgba(7, 19, 12, .96); border-bottom: 2px solid var(--brass);
  padding: 6px 0; font-size: .75rem; position: relative; z-index: calc(var(--z-shell) + 10);
  backdrop-filter: blur(8px);
}
.topbar .inner { display: flex; flex-direction: column; align-items: center; gap: 4px; text-align: center; }
.motto-pill { display: inline-flex; align-items: center; gap: 7px; color: var(--brass-soft); font-weight: 600; letter-spacing: .8px; text-transform: uppercase; }
.pulse-dot { width: 7px; height: 7px; border-radius: 50%; background: #2ed573; box-shadow: 0 0 8px #2ed573; animation: pulse 2s infinite; }
@keyframes pulse { 0%, 100% { transform: scale(1); opacity: 1; } 50% { transform: scale(1.35); opacity: .6; } }
.social-strip { display: none; gap: 14px; }
.social-strip a { color: var(--text-sub); }
.social-strip a:hover { color: var(--brass-soft); }
@media (min-width: 768px) {
  .topbar .inner { flex-direction: row; justify-content: space-between; }
  .social-strip { display: flex; }
}

/* ---------- shell: header ---------- */
.site-header {
  position: sticky; top: 0; z-index: var(--z-shell);
  background: rgba(7, 19, 12, .9); backdrop-filter: blur(18px);
  border-bottom: 1px solid var(--line); padding: 8px 0;
  transition: padding .3s, background .3s;
}
.site-header.scrolled { padding: 5px 0; background: rgba(7, 19, 12, .98); border-bottom: 2px solid var(--brass); }
.nav-wrap { display: flex; align-items: center; justify-content: space-between; gap: 10px; }

.brand-link { display: flex; align-items: center; gap: 10px; min-width: 0; }
.brand-frame {
  width: clamp(38px, 9vw, 46px); aspect-ratio: 1; flex-shrink: 0;
  background: #fff; border: 1.5px solid var(--brass); border-radius: var(--r-sm); padding: 2px;
  display: flex; align-items: center; justify-content: center;
}
.brand-frame img { width: 100%; height: 100%; object-fit: contain; }
.brand-title { display: block; font-family: var(--font-display); font-weight: 700; font-size: clamp(.9rem, 3.8vw, 1.15rem); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.brand-sub { display: block; font-size: .62rem; font-weight: 700; letter-spacing: 1.2px; text-transform: uppercase; color: var(--brass-soft); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
@media (min-width: 1180px) { .brand-title, .brand-sub { overflow: visible; text-overflow: clip; } }

.desktop-nav { display: none; }
@media (min-width: 1180px) {
  .desktop-nav { display: block; }
  .desktop-nav > ul { display: flex; align-items: center; gap: clamp(6px, .8vw, 16px); }
  .desktop-nav li { position: relative; }
  .desktop-nav a { font-size: .82rem; font-weight: 600; color: var(--text-sub); padding: 7px 4px; position: relative; white-space: nowrap; }
  .desktop-nav a::after { content: ""; position: absolute; left: 50%; bottom: 0; width: 0; height: 2px; background: var(--brass); transition: all .3s var(--ease); }
  .desktop-nav a:hover, .desktop-nav a.active { color: var(--brass-soft); }
  .desktop-nav a:hover::after, .desktop-nav a.active::after { width: 100%; left: 0; }
  .drop {
    position: absolute; top: 100%; left: 0; min-width: 230px;
    background: rgba(7, 19, 12, .97); border: 1px solid var(--line); border-radius: var(--r-md); padding: 10px;
    opacity: 0; pointer-events: none; transform: translateY(10px); transition: all .3s var(--ease);
    backdrop-filter: blur(16px);
  }
  .desktop-nav li:hover .drop, .desktop-nav li:focus-within .drop { opacity: 1; pointer-events: auto; transform: none; }
  .drop a { display: block; padding: 9px 12px; border-radius: var(--r-sm); font-size: .8rem; }
  .drop a::after { display: none; }
  .drop a:hover { background: rgba(197, 155, 39, .14); color: var(--brass-soft); }
  .nav-badge {
    background: linear-gradient(135deg, var(--palm), var(--palm-deep)); border: 1px solid var(--brass);
    color: #fff !important; padding: 6px 13px; border-radius: var(--r-full);
    font-size: .76rem; font-weight: 700; display: inline-flex; align-items: center; gap: 6px;
  }
  .nav-badge::after { display: none; }
}

.burger {
  display: flex; flex-direction: column; justify-content: center; gap: 5px;
  width: 40px; height: 40px; padding: 8px; border-radius: var(--r-sm);
  background: rgba(255, 255, 255, .08); border: 1px solid var(--line);
  z-index: calc(var(--z-drawer) + 10); flex-shrink: 0;
}
.burger span { display: block; width: 100%; height: 2.5px; background: var(--brass-soft); border-radius: 2px; transition: transform .35s, opacity .25s; }
.burger.open span:nth-child(1) { transform: translateY(7.5px) rotate(45deg); }
.burger.open span:nth-child(2) { opacity: 0; }
.burger.open span:nth-child(3) { transform: translateY(-7.5px) rotate(-45deg); }
@media (min-width: 1180px) { .burger { display: none; } }

.drawer-overlay { position: fixed; inset: 0; background: rgba(7, 19, 12, .75); backdrop-filter: blur(6px); z-index: var(--z-drawer); opacity: 0; pointer-events: none; transition: opacity .35s; }
.drawer-overlay.active { opacity: 1; pointer-events: auto; }
.drawer {
  position: fixed; top: 0; right: 0; width: min(330px, 86vw); height: 100%;
  z-index: calc(var(--z-drawer) + 5);
  background: linear-gradient(175deg, var(--palm-deep), var(--ink));
  padding: 88px 20px 30px; overflow-y: auto;
  transform: translateX(100%); transition: transform .4s var(--ease);
  box-shadow: -10px 0 35px rgba(0, 0, 0, .6);
}
.drawer.open { transform: none; }
.drawer-group { border-bottom: 1px solid rgba(255, 255, 255, .07); }
.drawer-group > a, .drawer-group > button { width: 100%; display: flex; align-items: center; justify-content: space-between; padding: 13px 12px; font-size: .95rem; font-weight: 600; color: var(--text-main); }
.drawer-group .sub { display: none; padding: 2px 0 10px; }
.drawer-group.open .sub { display: block; }
.drawer-group .sub a { display: block; padding: 9px 12px 9px 22px; font-size: .86rem; color: var(--text-sub); border-left: 2px solid var(--line); }
.drawer-group .sub a:hover { color: var(--brass-soft); border-color: var(--brass); }

/* ---------- shell: footer ---------- */
.site-footer {
  background: var(--ink) !important; position: relative; z-index: 20;
  border-top: 1px solid rgba(255, 255, 255, .1); padding: clamp(55px, 7vw, 85px) 0 0;
  color: #a9c2ae; box-shadow: 0 -15px 50px rgba(0, 0, 0, .7);
}
.footer-grid { display: grid; grid-template-columns: 1fr; gap: 32px; padding-bottom: 44px; }
@media (min-width: 600px) { .footer-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 992px) { .footer-grid { grid-template-columns: 1.4fr 1fr 1fr 1fr; } }
.footer-col h4 { font-size: .9rem; color: #fff; letter-spacing: 1.2px; text-transform: uppercase; margin-bottom: 16px; padding-bottom: 8px; position: relative; }
.footer-col h4::after { content: ""; position: absolute; bottom: 0; left: 0; width: 32px; height: 2px; background: var(--brass); }
.footer-links { display: flex; flex-direction: column; gap: 10px; }
.footer-links a { font-size: .84rem; display: inline-flex; align-items: center; gap: 7px; }
.footer-links a:hover { color: var(--brass-soft); transform: translateX(4px); }
.footer-bottom { border-top: 1px solid rgba(255, 255, 255, .08); padding: 18px 0; font-size: .76rem; color: #87a58f; }
.footer-bottom .inner { display: flex; flex-direction: column; gap: 8px; align-items: center; text-align: center; }
@media (min-width: 680px) { .footer-bottom .inner { flex-direction: row; justify-content: space-between; } }

/* ---------- reveals (drum stagger) ---------- */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.reveal.active { opacity: 1; transform: none; }
.d1 { transition-delay: .08s; }
.d2 { transition-delay: .16s; }
.d3 { transition-delay: .24s; }
.d4 { transition-delay: .32s; }

/* ---------- reduced-motion safety ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; }
  .mask-line > span { transform: none; }
  .marquee-track { animation: none; flex-wrap: wrap; width: auto; }
}