/* ===== Ngash — Royal Navy & Red ===== */
:root {
  --navy: #0a1f5c;
  --navy-900: #06133b;
  --navy-700: #13307f;
  --navy-100: #e8edf9;
  --red: #d0102b;
  --red-700: #a50c22;
  --red-100: #fde8eb;
  --ink: #0f172a;
  --muted: #5b6478;
  --line: #dfe4ee;
  --bg: #f6f8fc;
  --white: #fff;
  --green: #0f8a4b;
  --amber: #b26b00;
  --radius: 14px;
  --shadow: 0 10px 30px rgba(6, 19, 59, .08);
  --font-head: 'Archivo', system-ui, sans-serif;
  --font-body: 'Source Sans 3', system-ui, -apple-system, 'Segoe UI', sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: var(--font-body); font-size: 17px; line-height: 1.6; color: var(--ink); background: var(--white); }
img, video { max-width: 100%; height: auto; display: block; }
svg { width: 1.15em; height: 1.15em; vertical-align: -.18em; flex: none; }
a { color: var(--navy-700); }
h1, h2, h3, h4 { font-family: var(--font-head); line-height: 1.15; margin: 0 0 .5em; color: var(--navy-900); letter-spacing: -.01em; }
h1 { font-size: clamp(2rem, 5.5vw, 3.6rem); font-weight: 900; }
h2 { font-size: clamp(1.6rem, 3.6vw, 2.4rem); font-weight: 800; }
h3 { font-size: 1.2rem; font-weight: 700; }
p { margin: 0 0 1em; }
.container { width: min(1160px, 100% - 32px); margin-inline: auto; }
.narrow { width: min(760px, 100% - 32px); margin-inline: auto; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--red); color: #fff; padding: 8px 14px; z-index: 100; border-radius: 8px; }
.skip:focus { left: 8px; }
:focus-visible { outline: 3px solid var(--red); outline-offset: 2px; }
.muted { color: var(--muted); }
.small { font-size: .9rem; }
.center { text-align: center; }
.eyebrow { display: inline-block; font-family: var(--font-head); font-weight: 800; font-size: .8rem; letter-spacing: .14em; text-transform: uppercase; color: var(--red); margin-bottom: .6rem; }

/* ----- Top flag stripe + header ----- */
.flagbar { height: 6px; background: linear-gradient(90deg, var(--navy) 0 50%, var(--red) 50% 100%); }
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(255,255,255,.96); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); }
.nav { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 68px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.brand img { width: 40px; height: 40px; }
.brand span { font-family: var(--font-head); font-weight: 900; font-size: 1.55rem; letter-spacing: .04em; color: var(--navy); }
.brand span b { color: var(--red); }
.nav-links { display: flex; align-items: center; gap: 4px; list-style: none; margin: 0; padding: 0; }
.nav-links a { display: block; padding: 10px 12px; border-radius: 10px; text-decoration: none; color: var(--navy-900); font-weight: 600; font-size: .98rem; }
.nav-links a:hover, .nav-links a[aria-current="page"] { background: var(--navy-100); color: var(--navy); }
.nav-cta { display: flex; gap: 8px; align-items: center; }
.menu-btn { display: none; background: none; border: 2px solid var(--line); border-radius: 10px; width: 44px; height: 44px; cursor: pointer; color: var(--navy); }
.menu-btn svg { width: 22px; height: 22px; }

@media (max-width: 960px) {
  .menu-btn { display: inline-grid; place-items: center; }
  .nav-menu { display: none; position: absolute; left: 0; right: 0; top: 100%; background: #fff; border-bottom: 1px solid var(--line); box-shadow: var(--shadow); padding: 12px 16px 20px; }
  .nav-menu.open { display: block; }
  .nav-links { flex-direction: column; align-items: stretch; }
  .nav-links a { padding: 12px; font-size: 1.05rem; }
  .nav-cta { margin-top: 10px; flex-direction: column; align-items: stretch; }
  .nav-cta .btn { width: 100%; }
}
@media (min-width: 961px) { .nav-menu { display: flex; align-items: center; gap: 16px; } }

/* ----- Buttons ----- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 12px 22px; border-radius: 999px; border: 2px solid transparent;
  font-family: var(--font-head); font-weight: 800; font-size: .98rem; text-decoration: none; cursor: pointer; transition: transform .12s, background .15s, box-shadow .15s; line-height: 1.2; }
.btn:active { transform: translateY(1px); }
.btn-red { background: var(--red); color: #fff; box-shadow: 0 6px 18px rgba(208,16,43,.3); }
.btn-red:hover { background: var(--red-700); }
.btn-navy { background: var(--navy); color: #fff; }
.btn-navy:hover { background: var(--navy-900); }
.btn-ghost { background: transparent; color: var(--navy); border-color: var(--navy); }
.btn-ghost:hover { background: var(--navy-100); }
.btn-white { background: #fff; color: var(--navy); }
.btn-outline-white { border-color: rgba(255,255,255,.7); color: #fff; background: transparent; }
.btn-outline-white:hover { background: rgba(255,255,255,.12); }
.btn-sm { padding: 8px 14px; font-size: .88rem; }
.btn-lg { padding: 16px 28px; font-size: 1.08rem; }
.btn-block { width: 100%; }
.btn-whatsapp { background: #25d366; color: #063; }

/* ----- Hero ----- */
.hero { position: relative; overflow: hidden; color: #fff; background: radial-gradient(1200px 500px at 85% -10%, #2348b5 0, transparent 60%), linear-gradient(160deg, var(--navy) 0%, var(--navy-900) 100%); }
.hero::after { content: ""; position: absolute; right: -120px; bottom: -160px; width: 520px; height: 520px; border-radius: 50%; border: 70px solid rgba(208,16,43,.85); opacity: .9; }
.hero-grid { position: relative; z-index: 1; display: grid; grid-template-columns: 1.15fr .85fr; gap: 48px; align-items: center; padding: 72px 0 88px; }
.hero h1 { color: #fff; }
.hero h1 em { font-style: normal; color: #ff4d63; }
.hero .lead { font-size: 1.2rem; color: #d7def3; max-width: 36ch; }
.hero .eyebrow { color: #ff8796; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin: 26px 0 30px; }
.hero-stats { display: flex; gap: 28px; flex-wrap: wrap; }
.hero-stats div { border-left: 3px solid var(--red); padding-left: 12px; }
.hero-stats strong { display: block; font-family: var(--font-head); font-size: 1.8rem; font-weight: 900; }
.hero-stats span { font-size: .9rem; color: #c3cbe6; }
.hero-card { background: #fff; color: var(--ink); border-radius: 20px; padding: 26px; box-shadow: 0 30px 60px rgba(0,0,0,.35); position: relative; }
.hero-card::before { content: ""; position: absolute; inset: 0 0 auto 0; height: 8px; border-radius: 20px 20px 0 0; background: linear-gradient(90deg, var(--navy) 0 50%, var(--red) 50%); }
.hero-card h2 { font-size: 1.35rem; margin-top: 6px; }
.steps-mini { list-style: none; padding: 0; margin: 0 0 18px; counter-reset: s; }
.steps-mini li { counter-increment: s; display: flex; gap: 12px; padding: 9px 0; border-bottom: 1px dashed var(--line); font-weight: 600; }
.steps-mini li::before { content: counter(s); flex: 0 0 28px; height: 28px; display: grid; place-items: center; border-radius: 50%; background: var(--red-100); color: var(--red); font-family: var(--font-head); font-weight: 900; }
.payday { display: flex; align-items: center; gap: 12px; background: var(--navy-100); border-radius: 12px; padding: 12px 14px; margin-bottom: 16px; font-weight: 700; color: var(--navy); }
.payday svg { flex: none; width: 28px; height: 28px; color: var(--red); }
@media (max-width: 860px) {
  .hero-grid { grid-template-columns: 1fr; padding: 48px 0 64px; gap: 32px; }
  .hero::after { width: 320px; height: 320px; border-width: 44px; right: -140px; bottom: -120px; }
}

/* ----- Sections ----- */
.section { padding: 80px 0; }
.section-alt { background: var(--bg); }
.section-navy { background: var(--navy); color: #e6ebf8; }
.section-navy h2, .section-navy h3 { color: #fff; }
.section-head { max-width: 680px; margin-bottom: 40px; }
.section-head.center { margin-inline: auto; }
@media (max-width: 640px) { .section { padding: 56px 0; } }

.grid { display: grid; gap: 22px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 960px) { .grid-4 { grid-template-columns: repeat(2, 1fr); } .grid-3 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; } }

.card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; box-shadow: var(--shadow); }
.card h3 { margin-bottom: .35em; }
.card-link { text-decoration: none; color: inherit; display: block; transition: transform .15s, box-shadow .15s; }
.card-link:hover { transform: translateY(-3px); box-shadow: 0 16px 36px rgba(6,19,59,.14); }
.icon-badge { width: 52px; height: 52px; border-radius: 14px; display: grid; place-items: center; background: var(--navy); color: #fff; margin-bottom: 16px; }
.icon-badge.red { background: var(--red); }
.icon-badge svg { width: 26px; height: 26px; }
.more { font-weight: 800; color: var(--red); font-family: var(--font-head); font-size: .95rem; }

.pillars .card { border-top: 5px solid var(--navy); }
.pillars .card:nth-child(even) { border-top-color: var(--red); }

.steps { counter-reset: step; }
.step { position: relative; padding-left: 64px; }
.step::before { counter-increment: step; content: counter(step); position: absolute; left: 0; top: 0; width: 46px; height: 46px; border-radius: 50%; background: var(--red); color: #fff;
  display: grid; place-items: center; font-family: var(--font-head); font-weight: 900; font-size: 1.2rem; }
.section-navy .step p { color: #c6cfe9; }

.platforms { display: flex; flex-wrap: wrap; gap: 10px; margin: 18px 0 0; padding: 0; list-style: none; }
.platforms li { background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.2); padding: 8px 14px; border-radius: 999px; font-weight: 700; font-size: .92rem; }

.cta-band { background: linear-gradient(120deg, var(--red) 0%, var(--red-700) 100%); color: #fff; border-radius: 22px; padding: 44px; display: flex; gap: 24px; align-items: center; justify-content: space-between; flex-wrap: wrap; }
.cta-band h2 { color: #fff; margin: 0 0 .25em; }
.cta-band p { margin: 0; color: #ffe3e7; }

.quote { font-family: var(--font-head); font-size: clamp(1.3rem, 3vw, 1.9rem); font-weight: 800; color: var(--navy); border-left: 6px solid var(--red); padding-left: 22px; margin: 0; }

.faq details { border: 1px solid var(--line); border-radius: 12px; padding: 0 18px; margin-bottom: 10px; background: #fff; }
.faq summary { cursor: pointer; padding: 16px 0; font-weight: 700; color: var(--navy-900); list-style: none; display: flex; justify-content: space-between; gap: 12px; }
.faq summary::after { content: "+"; font-weight: 900; color: var(--red); font-size: 1.3rem; line-height: 1; }
.faq details[open] summary::after { content: "–"; }
.faq details p { padding-bottom: 14px; margin: 0; color: var(--muted); }

/* ----- Page header ----- */
.page-head { background: linear-gradient(160deg, var(--navy) 0%, var(--navy-900) 100%); color: #fff; padding: 56px 0 48px; position: relative; overflow: hidden; }
.page-head::after { content: ""; position: absolute; right: -60px; top: -60px; width: 240px; height: 240px; border-radius: 50%; border: 36px solid var(--red); opacity: .85; }
.page-head h1 { color: #fff; font-size: clamp(1.8rem, 4.5vw, 2.8rem); position: relative; z-index: 1; }
.page-head p { color: #cdd5ee; max-width: 60ch; margin: 0; position: relative; z-index: 1; }
.page-head .eyebrow { color: #ff8796; position: relative; z-index: 1; }
.crumbs { font-size: .9rem; margin-bottom: 10px; position: relative; z-index: 1; }
.crumbs a { color: #aebbe3; }

/* ----- Forms ----- */
.form-card { background: #fff; border: 1px solid var(--line); border-radius: 18px; padding: 32px; box-shadow: var(--shadow); margin-top: -32px; position: relative; z-index: 2; }
@media (max-width: 640px) { .form-card { padding: 22px 18px; border-radius: 14px; } }
fieldset { border: 0; padding: 0; margin: 0 0 26px; }
legend { font-family: var(--font-head); font-weight: 800; font-size: 1.1rem; color: var(--navy); margin-bottom: 14px; display: flex; align-items: center; gap: 10px; width: 100%; }
legend::before { content: ""; width: 6px; height: 22px; background: var(--red); border-radius: 3px; }
.fields { display: grid; grid-template-columns: 1fr 1fr; gap: 16px 18px; }
.fields .full { grid-column: 1 / -1; }
@media (max-width: 640px) { .fields { grid-template-columns: 1fr; } }
.field label { display: block; font-weight: 700; font-size: .95rem; margin-bottom: 6px; color: var(--navy-900); }
.field .req { color: var(--red); }
.field .hint { font-size: .85rem; color: var(--muted); margin-top: 4px; }
/* Every text-like field (including inputs with no type attribute) */
:where(input:not([type=checkbox]):not([type=radio]):not([type=file]):not([type=hidden]):not([type=submit]):not([type=button]):not([type=range]):not([type=color]), select, textarea) {
  width: 100%; min-height: 50px; font: inherit; font-size: 16px; padding: 12px 16px; border: 1.5px solid #d3dae8; border-radius: 12px;
  background-color: #f7f9fd; color: var(--ink); box-shadow: inset 0 1px 2px rgba(6,19,59,.04);
  transition: border-color .15s, box-shadow .15s, background-color .15s; -webkit-appearance: none; appearance: none; }
input::placeholder, textarea::placeholder { color: #98a2b8; }
:where(input:not([type=checkbox]):not([type=radio]):not([type=file]), select, textarea):hover { border-color: #b4c0d8; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--navy-700); background-color: #fff; box-shadow: 0 0 0 4px rgba(19,48,127,.14); }
input[readonly] { background-color: var(--navy-100); }
fieldset:disabled input, fieldset:disabled select, fieldset:disabled textarea { opacity: .6; cursor: not-allowed; }
textarea { min-height: 120px; resize: vertical; }
select { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%230a1f5c' stroke-width='2' fill='none'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 14px center; padding-right: 38px; }
.file-drop { display: block; border: 2px dashed #b9c3da; border-radius: 12px; padding: 20px; text-align: center; background: var(--bg); cursor: pointer; transition: border-color .15s, background .15s; }
.file-drop:hover { border-color: var(--navy-700); background: var(--navy-100); }
.file-drop input { display: block; margin: 10px auto 0; max-width: 100%; font-size: .9rem; }
.file-drop strong { color: var(--navy); }
.check { display: flex; gap: 10px; align-items: flex-start; font-size: .95rem; }
.check input { width: 20px; height: 20px; margin-top: 3px; accent-color: var(--red); flex: none; }
.form-actions { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; }

/* ----- Alerts ----- */
.alert { border-radius: 12px; padding: 14px 16px; margin-bottom: 18px; border: 1px solid; font-weight: 600; }
.alert ul { margin: 6px 0 0; padding-left: 20px; font-weight: 500; }
.alert-error { background: var(--red-100); border-color: #f5b8c1; color: #8a0a1c; }
.alert-success { background: #e7f7ee; border-color: #a7dfbf; color: #0b6537; }
.alert-warning { background: #fff6e5; border-color: #f4d39a; color: #7a4a00; }
.alert-info { background: var(--navy-100); border-color: #c5d0ee; color: var(--navy); }
.notice-thika { display: none; }
.notice-thika.show { display: block; }

.recruiter-banner { display: flex; gap: 12px; align-items: center; background: var(--navy-100); border: 1px solid #c5d0ee; padding: 14px 16px; border-radius: 12px; margin-bottom: 20px; }
.recruiter-banner svg { width: 26px; height: 26px; color: var(--red); flex: none; }

/* ----- Status pills ----- */
.pill { display: inline-block; padding: 4px 10px; border-radius: 999px; font-size: .8rem; font-weight: 800; white-space: nowrap; }
.pill-verified, .pill-approved, .pill-sent, .pill-served, .pill-resolved { background: #e3f6ec; color: var(--green); }
.pill-pending_verification, .pill-pending, .pill-received, .pill-queued, .pill-in_progress { background: #fff3dc; color: var(--amber); }
.pill-transfer_required, .pill-rejected, .pill-declined, .pill-failed { background: var(--red-100); color: var(--red-700); }
.pill-open { background: var(--navy-100); color: var(--navy); }
.pill-paid { background: var(--navy); color: #fff; }

/* ----- Footer ----- */
.site-footer { background: var(--navy-900); color: #b7c1df; padding: 56px 0 24px; margin-top: 0; }
.site-footer h3 { color: #fff; font-size: 1rem; text-transform: uppercase; letter-spacing: .1em; }
.site-footer a { color: #dbe2f5; text-decoration: none; }
.site-footer a:hover { color: #fff; text-decoration: underline; }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin-bottom: 8px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 32px; }
@media (max-width: 860px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .footer-grid { grid-template-columns: 1fr; } }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.12); margin-top: 36px; padding-top: 18px; display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; font-size: .88rem; }
.socials { display: flex; gap: 10px; margin-top: 14px; }
.socials a { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; background: rgba(255,255,255,.08); }
.socials a:hover { background: var(--red); }
.socials svg { width: 18px; height: 18px; fill: #fff; }

.wa-float { position: fixed; right: 18px; bottom: 18px; z-index: 40; width: 56px; height: 56px; border-radius: 50%; background: #25d366; display: grid; place-items: center; box-shadow: 0 10px 24px rgba(0,0,0,.25); }
.wa-float svg { width: 30px; height: 30px; fill: #fff; }

/* ----- Portal ----- */
.portal-nav { background: #fff; border-bottom: 1px solid var(--line); position: sticky; top: 68px; z-index: 30; }
.portal-nav ul { display: flex; gap: 4px; list-style: none; margin: 0; padding: 8px 0; overflow-x: auto; scrollbar-width: none; }
.portal-nav ul::-webkit-scrollbar { display: none; }
.portal-nav a { display: flex; align-items: center; gap: 6px; white-space: nowrap; padding: 9px 14px; border-radius: 10px; text-decoration: none; font-weight: 700; color: var(--muted); font-size: .95rem; }
.portal-nav a[aria-current="page"] { background: var(--navy); color: #fff; }
.portal-nav .dot { background: var(--red); color: #fff; border-radius: 999px; font-size: .72rem; padding: 1px 7px; }
.portal-main { background: var(--bg); padding: 32px 0 64px; min-height: 60vh; }
.welcome { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; align-items: center; margin-bottom: 22px; }
.welcome h1 { font-size: clamp(1.5rem, 4vw, 2.1rem); margin: 0; }
.stat { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; }
.stat span { display: block; color: var(--muted); font-size: .88rem; font-weight: 600; }
.stat strong { font-family: var(--font-head); font-size: 1.7rem; color: var(--navy); }
.stat.red strong { color: var(--red); }
.status-card { border-left: 6px solid var(--amber); }
.status-card.ok { border-left-color: var(--green); }
.status-card.bad { border-left-color: var(--red); }
.copy-row { display: flex; gap: 8px; flex-wrap: wrap; }
.copy-row input { flex: 1 1 220px; font-family: ui-monospace, monospace; font-size: .92rem; }
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: 12px; background: #fff; }
table { width: 100%; border-collapse: collapse; font-size: .94rem; }
th, td { text-align: left; padding: 11px 14px; border-bottom: 1px solid var(--line); vertical-align: top; }
th { background: var(--bg); font-weight: 800; color: var(--navy-900); font-size: .82rem; text-transform: uppercase; letter-spacing: .04em; white-space: nowrap; }
tr:last-child td { border-bottom: 0; }

.media-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 18px; }
.media-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; display: flex; flex-direction: column; }
.media-card .thumb { aspect-ratio: 1 / 1; background: var(--navy-100); display: grid; place-items: center; overflow: hidden; }
.media-card .thumb img, .media-card .thumb video { width: 100%; height: 100%; object-fit: cover; }
.media-card .body { padding: 14px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.media-card h3 { font-size: 1rem; margin: 0; }
.media-card .actions { display: flex; gap: 8px; flex-wrap: wrap; margin-top: auto; }
.empty { text-align: center; padding: 40px 20px; color: var(--muted); background: #fff; border: 1px dashed var(--line); border-radius: var(--radius); }

/* ----- Chat ----- */
.chat-list a { display: flex; justify-content: space-between; gap: 12px; padding: 14px 16px; border-bottom: 1px solid var(--line); text-decoration: none; color: inherit; background: #fff; }
.chat-list a:hover { background: var(--bg); }
.chat-list a.unread { border-left: 4px solid var(--red); }
.chat-list .meta { font-size: .82rem; color: var(--muted); }
.chat-box { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); display: flex; flex-direction: column; height: min(70vh, 640px); }
.chat-head { padding: 14px 18px; border-bottom: 1px solid var(--line); display: flex; justify-content: space-between; gap: 10px; flex-wrap: wrap; align-items: center; }
.chat-head h1, .chat-head h2 { font-size: 1.15rem; margin: 0; }
.chat-thread { flex: 1; overflow-y: auto; padding: 18px; display: flex; flex-direction: column; gap: 10px; background: #f3f5fa; }
.msg { max-width: 78%; padding: 10px 14px; border-radius: 16px; background: #fff; border: 1px solid var(--line); align-self: flex-start; white-space: pre-wrap; word-wrap: break-word; }
.msg.me { align-self: flex-end; background: var(--navy); color: #fff; border-color: var(--navy); }
.msg .who { display: block; font-size: .75rem; font-weight: 700; opacity: .75; margin-bottom: 2px; }
.msg img { margin-top: 8px; border-radius: 10px; max-height: 260px; }
.chat-form { display: flex; gap: 8px; padding: 12px; border-top: 1px solid var(--line); align-items: flex-end; }
.chat-form textarea { min-height: 46px; height: 46px; flex: 1; }
.chat-form .attach { display: grid; place-items: center; width: 46px; height: 46px; border-radius: 10px; border: 1.5px solid #cfd6e4; cursor: pointer; flex: none; color: var(--navy); }
.chat-form .attach input { display: none; }
@media (max-width: 640px) { .msg { max-width: 90%; } }

.hide { display: none !important; }

/* ===== Photography (Pexels) blended with the navy/red theme ===== */
/* Hero: farmer photo under a navy wash, fading to solid navy behind the text */
.hero.photo {
  background:
    linear-gradient(100deg, rgba(6,19,59,.97) 0%, rgba(10,31,92,.9) 42%, rgba(10,31,92,.55) 75%, rgba(208,16,43,.35) 100%),
    var(--img) center 35% / cover no-repeat, var(--navy-900);
}
/* Page banners: photo tinted navy so white text always reads */
.page-head.photo {
  background:
    linear-gradient(90deg, rgba(6,19,59,.96) 0%, rgba(10,31,92,.86) 55%, rgba(10,31,92,.6) 100%),
    var(--img) center / cover no-repeat, var(--navy-900);
  padding: 72px 0 64px;
}
/* Framed photo: rounded, with an offset red block behind it */
.photo-frame { position: relative; margin: 0; }
.photo-frame::before { content: ""; position: absolute; inset: 18px -14px -14px 18px; background: var(--red); border-radius: 20px; z-index: 0; }
.photo-frame.navy::before { background: var(--navy); }
.photo-frame img { position: relative; z-index: 1; width: 100%; height: 100%; object-fit: cover; border-radius: 20px; box-shadow: var(--shadow); }
.photo-frame figcaption { position: absolute; z-index: 2; left: 16px; bottom: 16px; background: rgba(6,19,59,.88); color: #fff; padding: 8px 14px; border-radius: 999px; font-weight: 700; font-size: .88rem; }
/* Mosaic of farmers & traders */
.mosaic { display: grid; grid-template-columns: 1.2fr 1fr 1fr; grid-template-rows: 230px 230px; gap: 14px; }
.mosaic figure { margin: 0; position: relative; overflow: hidden; border-radius: 18px; }
.mosaic figure:first-child { grid-row: span 2; }
.mosaic img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.mosaic figure:hover img { transform: scale(1.05); }
.mosaic figure::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 45%, rgba(6,19,59,.85) 100%); }
.mosaic figure:nth-child(even)::after { background: linear-gradient(180deg, transparent 45%, rgba(165,12,34,.85) 100%); }
.mosaic figcaption { position: absolute; left: 16px; right: 16px; bottom: 14px; z-index: 1; color: #fff; font-family: var(--font-head); font-weight: 800; line-height: 1.2; }
.mosaic figcaption span { display: block; font-family: var(--font-body); font-weight: 500; font-size: .85rem; color: #dbe2f5; }
@media (max-width: 860px) {
  .mosaic { grid-template-columns: 1fr 1fr; grid-template-rows: 260px 180px 180px; }
  .mosaic figure:first-child { grid-column: span 2; grid-row: auto; }
}
@media (max-width: 480px) { .mosaic { grid-template-rows: 220px 150px 150px; gap: 10px; } }
/* Card with a photo on top */
.card.has-photo { padding: 0; overflow: hidden; display: flex; flex-direction: column; }
.card.has-photo .card-img { aspect-ratio: 16 / 10; overflow: hidden; position: relative; }
.card.has-photo .card-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.card.has-photo:hover .card-img img { transform: scale(1.05); }
.card.has-photo .card-img::after { content: ""; position: absolute; inset: auto 0 0 0; height: 6px; background: linear-gradient(90deg, var(--navy) 0 50%, var(--red) 50%); }
.card.has-photo .card-body { padding: 22px 24px 24px; display: flex; flex-direction: column; flex: 1; }
.card.has-photo .icon-badge { margin-top: -50px; position: relative; z-index: 1; border: 4px solid #fff; }
/* CTA band over a market photo */
.cta-band.photo {
  background: linear-gradient(110deg, rgba(208,16,43,.97) 0%, rgba(165,12,34,.92) 50%, rgba(10,31,92,.75) 100%), var(--img) center / cover no-repeat, var(--red);
}
/* Navy section with a faint photo */
.section-navy.photo { background: linear-gradient(rgba(10,31,92,.94), rgba(6,19,59,.96)), var(--img) center / cover no-repeat, var(--navy); }
.photo-credit { font-size: .75rem; color: var(--muted); margin-top: 10px; }
.photo-credit a { color: inherit; }
.photo-frame picture, .mosaic picture, .card-img picture { display: block; width: 100%; height: 100%; }

/* ===== Ngash logo ===== */
.brand picture, .brand img { width: 66px; height: 66px; flex: none; }
.brand img { object-fit: contain; filter: drop-shadow(0 2px 4px rgba(6,19,59,.18)); }
.brand-text { display: flex; flex-direction: column; line-height: 1; }
.brand .brand-text small { font-family: var(--font-body); font-size: .68rem; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; color: var(--red); margin-top: 4px; }
.nav { min-height: 80px; }
.portal-nav { top: 80px; }
.footer-logo { display: inline-block; }
.footer-logo img { width: 150px; height: auto; filter: drop-shadow(0 8px 18px rgba(0,0,0,.35)); }
.sidebar .brand { justify-content: center; }
.sidebar .brand picture, .sidebar .brand img { width: 96px; height: 96px; }

/* ===== Candidate hero ===== */
.hero.hero-candidate { overflow: hidden; }
.hero.hero-candidate::after { display: none; }
/* a soft 'stage floor' along the bottom of the hero so the candidate stands on something */
.hero.hero-candidate::before { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 120px; z-index: 0;
  background: linear-gradient(180deg, rgba(6,19,59,0) 0%, rgba(6,19,59,.85) 100%); pointer-events: none; }
.hero-candidate .hero-grid { grid-template-columns: 1.1fr .9fr; padding: 36px 0 0; align-items: end; gap: 24px; position: relative; z-index: 1; }
.hero-copy { padding: 10px 0 60px; align-self: center; }
.hero-logo { display: block; width: 150px; margin: 0 0 12px -6px; }
.hero-logo img { width: 100%; height: auto; filter: drop-shadow(0 12px 22px rgba(0,0,0,.45)); animation: rise .7s ease-out both; }

/* Full-length candidate standing on the bottom edge of the hero */
.candidate { position: relative; margin: 0; align-self: end; display: flex; justify-content: center; align-items: flex-end; height: 540px; }
.candidate::before { content: ""; position: absolute; width: 330px; aspect-ratio: 1; top: 18px; left: 50%; transform: translateX(-50%);
  border-radius: 50%; border: 34px solid var(--red); box-shadow: 0 0 0 12px rgba(255,255,255,.06); }
.candidate::after { content: ""; position: absolute; width: 300px; aspect-ratio: 1; top: 34px; left: 50%; transform: translateX(-50%); border-radius: 50%;
  background: radial-gradient(circle, rgba(90,130,240,.55) 0%, rgba(10,31,92,0) 68%); }
.candidate picture { position: relative; z-index: 2; height: 100%; display: block; }
.candidate img { height: 100%; width: auto; display: block; animation: rise .8s .1s ease-out both; filter: drop-shadow(0 18px 30px rgba(0,0,0,.35)); }
/* contact shadow under the shoes */
.candidate .floor { position: absolute; z-index: 1; bottom: -6px; left: 50%; transform: translateX(-50%); width: 190px; height: 34px; border-radius: 50%;
  background: radial-gradient(ellipse at center, rgba(0,0,0,.6) 0%, rgba(0,0,0,.25) 45%, rgba(0,0,0,0) 72%); }
@keyframes rise { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .hero-logo img, .candidate img { animation: none; } }

/* Earn with Ngash card, just below the hero */
.earn-strip { position: relative; z-index: 3; padding-top: 36px; }
.earn-card { background: #fff; border: 1px solid var(--line); border-radius: 20px; box-shadow: 0 18px 48px rgba(6,19,59,.12); padding: 26px 28px; display: grid;
  grid-template-columns: 1fr 1.8fr .9fr; gap: 26px; align-items: center; position: relative; overflow: hidden; }
.earn-card::before { content: ""; position: absolute; inset: 0 0 auto 0; height: 7px; background: linear-gradient(90deg, var(--navy) 0 50%, var(--red) 50%); }
.earn-intro h2 { font-size: 1.6rem; margin: 0 0 12px; }
.earn-intro .eyebrow { margin-bottom: .3rem; }
.earn-intro .payday { margin: 0; }
.earn-steps { display: grid; grid-template-columns: 1fr 1fr; gap: 4px 22px; margin: 0; }
.earn-steps li { border-bottom: 1px dashed var(--line); }

@media (max-width: 960px) {
  .earn-card { grid-template-columns: 1fr 1fr; }
  .earn-cta { grid-column: 1 / -1; }
  .earn-steps { grid-template-columns: 1fr; }
  .candidate { height: 500px; }
  .candidate::before { width: 300px; border-width: 30px; }
}
@media (max-width: 860px) {
  .hero-candidate .hero-grid { grid-template-columns: 1fr; padding-top: 28px; gap: 8px; }
  .hero-copy { padding-bottom: 0; text-align: center; }
  .hero-logo { width: 130px; margin: 0 auto 10px; }
  .hero-copy .lead { margin-inline: auto; }
  .hero-copy .hero-actions, .hero-copy .hero-stats { justify-content: center; }
  .candidate { height: 420px; }
  .candidate::before { width: 250px; border-width: 26px; top: 14px; }
  .candidate::after { width: 220px; top: 28px; }
  .candidate .floor { width: 150px; }
  .earn-card { grid-template-columns: 1fr; padding: 24px 20px; gap: 16px; }
}

/* About page: full-length portrait standing on the panel floor */
.candidate-panel { position: relative; margin: 0 0 40px; border-radius: 22px; overflow: hidden; height: 560px; display: flex; align-items: flex-end; justify-content: center;
  background: radial-gradient(circle at 50% 30%, #2a52c4 0%, var(--navy) 55%, var(--navy-900) 100%); box-shadow: var(--shadow); }
.candidate-panel::before { content: ""; position: absolute; width: 300px; aspect-ratio: 1; top: 34px; left: 50%; transform: translateX(-50%); border-radius: 50%; border: 30px solid var(--red); }
.candidate-panel::after { content: ""; position: absolute; left: 0; right: 0; bottom: 64px; height: 80px; background: linear-gradient(180deg, rgba(6,19,59,0), rgba(6,19,59,.7)); }
.candidate-panel picture { position: relative; z-index: 2; height: calc(100% - 100px); display: block; margin-bottom: 72px; }
.candidate-panel img { height: 100%; width: auto; display: block; filter: drop-shadow(0 14px 26px rgba(0,0,0,.4)); }
.candidate-panel .floor { position: absolute; z-index: 1; bottom: 64px; left: 50%; transform: translateX(-50%); width: 190px; height: 30px; border-radius: 50%;
  background: radial-gradient(ellipse at center, rgba(0,0,0,.6) 0%, rgba(0,0,0,.2) 50%, rgba(0,0,0,0) 72%); }
.candidate-panel figcaption { position: absolute; z-index: 3; left: 0; right: 0; bottom: 0; height: 64px; background: #fff; border-top: 5px solid var(--red); padding: 9px 18px; display: flex; flex-direction: column; justify-content: center; }
.candidate-panel figcaption strong { display: block; font-family: var(--font-head); color: var(--navy-900); font-size: 1.1rem; }
.candidate-panel figcaption span { font-size: .85rem; color: var(--muted); }
@media (max-width: 640px) { .candidate-panel { height: 480px; } }

/* ===== Chat Na Mhesh widget ===== */
.mhesh { position: fixed; right: 18px; bottom: 18px; z-index: 60; }
.mhesh-toggle { display: inline-flex; align-items: center; gap: 10px; border: 0; cursor: pointer; position: relative;
  background: linear-gradient(135deg, var(--red) 0%, var(--red-700) 100%); color: #fff; padding: 14px 22px 14px 18px; border-radius: 999px;
  font-family: var(--font-head); font-weight: 800; font-size: 1rem; box-shadow: 0 12px 28px rgba(208,16,43,.4), 0 0 0 4px rgba(255,255,255,.9); }
.mhesh-toggle svg { width: 24px; height: 24px; }
.mhesh-toggle:hover { transform: translateY(-1px); }
.mhesh.open .mhesh-toggle { background: var(--navy); box-shadow: 0 12px 28px rgba(6,19,59,.4), 0 0 0 4px rgba(255,255,255,.9); }
.mhesh-dot { position: absolute; top: 4px; right: 6px; width: 14px; height: 14px; border-radius: 50%; background: #25d366; border: 3px solid #fff; }
.mhesh-panel { position: absolute; right: 0; bottom: 70px; width: min(390px, calc(100vw - 32px)); max-height: min(640px, calc(100vh - 110px));
  background: #fff; border-radius: 20px; box-shadow: 0 30px 70px rgba(6,19,59,.35); display: flex; flex-direction: column; overflow: hidden; }
.mhesh-panel[hidden] { display: none; }
.mhesh-head { display: flex; align-items: center; gap: 12px; padding: 14px 16px; color: #fff; position: relative;
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-900) 100%); }
.mhesh-head::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 4px; background: linear-gradient(90deg, var(--navy) 0 50%, var(--red) 50%); }
.mhesh-head picture, .mhesh-head img { width: 40px; height: 40px; flex: none; }
.mhesh-head strong { display: block; font-family: var(--font-head); font-size: 1.1rem; }
.mhesh-head span { font-size: .82rem; color: #c3cbe6; }
.mhesh-close { margin-left: auto; background: rgba(255,255,255,.12); border: 0; color: #fff; width: 34px; height: 34px; border-radius: 50%; font-size: 1.4rem; cursor: pointer; line-height: 1; }
.mhesh-body { overflow-y: auto; flex: 1; display: flex; flex-direction: column; min-height: 0; }
.mhesh-start { padding: 16px; }
.mhesh-start .fields { grid-template-columns: 1fr; gap: 12px; margin-bottom: 14px; }
.mhesh-start .field label { font-size: .88rem; }
.mhesh-start input:not([type=checkbox]), .mhesh-start select, .mhesh-start textarea { min-height: 44px; padding: 10px 12px; font-size: 16px; }
.mhesh-start textarea { min-height: 90px; }
.mhesh-start .hint { display: none; }
.mhesh-intro { font-size: .92rem; color: var(--muted); margin: 0 0 12px; }
.mhesh-errors ul { margin: 4px 0 0; }
.mhesh-thread { display: flex; flex-direction: column; flex: 1; min-height: 360px; }
.mhesh-msgs { flex: 1; overflow-y: auto; padding: 14px; display: flex; flex-direction: column; gap: 8px; background: #f3f5fa; min-height: 260px; }
.mhesh-msgs .msg { max-width: 85%; font-size: .95rem; }
.mhesh-send { display: flex; gap: 8px; padding: 10px; border-top: 1px solid var(--line); background: #fff; }
.mhesh-send textarea { min-height: 44px; height: 44px; flex: 1; resize: none; }
.mhesh-new { border: 0; background: none; color: var(--muted); font-size: .8rem; padding: 6px 0 10px; cursor: pointer; text-decoration: underline; }
@media (max-width: 520px) {
  .mhesh { right: 12px; bottom: 12px; }
  .mhesh-toggle { padding: 12px 18px 12px 14px; font-size: .95rem; }
  .mhesh.open { inset: 0; right: 0; bottom: 0; }
  .mhesh.open .mhesh-toggle { display: none; }
  .mhesh-panel { position: fixed; inset: 0; width: 100%; max-height: none; border-radius: 0; bottom: 0; }
}
