/* Uplift Live Foundation — shared styles (header, footer, base, components).
   Page-specific styles live in static/css/pages/<page>.css. */

:root {
  --green: #323f2f;
  --green-dark: #263023;
  --gold: #ffd700;
  --white: #fff;
  --ink: #111;
  --grey: #69727d;
  --font-body: 'Manrope', sans-serif;
  --font-ui: 'Roboto', sans-serif;
  --font-slab: 'Roboto Slab', serif;
  --container: 1140px;
  /* Fluid sizes copied from the old theme: full size at 1366px+, about 83% on a phone. */
  --fs-22: clamp(16px, calc(16.78px + .3822vw), 22px);
  --fs-32: clamp(24px, calc(26.78px + .3822vw), 32px);
  --fs-48: clamp(32px, calc(30.27px + 1.298vw), 48px);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--green);
  color: var(--ink);
  font: 300 var(--fs-22)/1.4 var(--font-body);
  letter-spacing: -0.1px;
  overflow-x: hidden;
}
img, svg, video, iframe { max-width: 100%; }
img { height: auto; }
a { color: inherit; }
/* Same base as the old theme: browser-default margins, light headings. */
h1, h2, h3, h4, h5, h6 { font-weight: 400; line-height: 1.125; }
button, input, select, textarea { font: inherit; }

.icon { width: 1em; height: 1em; fill: currentColor; flex: none; }
.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 10px; }

.skip-link { position: absolute; left: -9999px; top: 0; z-index: 1000; background: var(--gold); color: var(--green); padding: 8px 16px; font: 500 16px var(--font-ui); }
.skip-link:focus { left: 8px; top: 8px; }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; }

/* Wave divider (the gold three-layer shape used above the footer and on some pages). */
.wave { line-height: 0; overflow: hidden; }
.wave svg { display: block; width: calc(100% + 1.3px); height: 62px; fill: var(--gold); }
.wave--bottom svg { transform: rotate(180deg); }

/* ---------- header ---------- */

.site-header { background: var(--green); padding: 10px 10px 21px; position: relative; z-index: 50; }
.site-header__brand { display: grid; grid-template-columns: 31% 1fr 21.5%; align-items: start; }
.site-header__logo { grid-column: 1; justify-self: center; display: block; width: 134px; }
.site-header__logo img { display: block; width: 134px; height: 112px; object-fit: contain; }
.site-header__partner { grid-column: 3; justify-self: center; margin-top: 10px; display: block; width: 95px; }
.site-header__partner img { display: block; width: 95px; height: 94px; object-fit: contain; }

.site-nav { margin-top: 11px; padding-left: 210px; }
.site-nav__list { display: flex; flex-wrap: wrap; list-style: none; margin: 0; padding: 0; }
.site-nav__list > .nav-item { margin: 0 10px; position: relative; }
.site-nav__list > .nav-item > .nav-link {
  display: flex; align-items: center; gap: 6px; height: 41px; padding: 0 20px;
  border: 1px solid var(--gold); color: var(--white); text-decoration: none;
  font: 500 16px/1.4 var(--font-ui); white-space: nowrap; transition: color .2s;
}
.nav-caret { display: inline-flex; justify-content: center; width: 18px; font-size: 14px; }
.nav-item:hover > .nav-link, .nav-item:focus-within > .nav-link, .nav-item.is-active > .nav-link, .nav-link[aria-current] { color: var(--gold); }

.nav-sub {
  list-style: none; margin: 0; padding: 0; width: 250px; position: absolute; top: calc(100% - 10px); left: 0;
  background: var(--green); border: 1px solid var(--white); box-shadow: 0 10px 30px rgba(45, 45, 45, .2);
  opacity: 0; visibility: hidden; transform: translateY(10px); transition: opacity .2s, transform .2s, visibility .2s; z-index: 10;
}
.nav-sub .nav-sub { top: -1px; left: 100%; }
.nav-item:hover > .nav-sub, .nav-item:focus-within > .nav-sub { opacity: 1; visibility: visible; transform: none; }
.nav-sub .nav-item { position: relative; }
.nav-sub .nav-link {
  display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 15px;
  border: 1px solid var(--gold); color: var(--white); text-decoration: none; font: 400 14px/1.4 var(--font-ui);
}
.nav-sub .nav-caret { transform: none; }

.site-nav__toggle, .site-nav__panel-head, .site-nav__overlay { display: none; }

@media (max-width: 1199px) {
  .site-header { padding-bottom: 21px; }
  .site-header__brand { grid-template-columns: 1fr auto 1fr; }
  .site-header__logo { grid-column: 2; }
  .site-header__partner { grid-column: 3; justify-self: end; margin-right: 10px; width: 80px; }
  .site-header__partner img { width: 80px; height: 79px; }
  .site-nav { padding: 0; margin-top: 11px; display: flex; justify-content: center; }
  .site-nav__toggle {
    display: flex; flex-direction: column; justify-content: center; gap: 5px; width: 45px; height: 29px; padding: 0 9px;
    background: transparent; border: 1px solid rgba(255, 255, 255, .3); border-radius: 3px; cursor: pointer;
  }
  .site-nav__toggle span { display: block; height: 1px; background: var(--white); }
  .site-nav__panel {
    position: fixed; inset: 0 auto 0 0; width: 350px; max-width: 86vw; overflow-y: auto; background: var(--green);
    transform: translateX(-100%); transition: transform .3s; z-index: 100;
  }
  .site-nav.is-open .site-nav__panel { transform: none; }
  .site-nav__overlay { position: fixed; inset: 0; background: rgba(0, 0, 0, .4); z-index: 99; }
  .site-nav.is-open .site-nav__overlay { display: block; }
  .site-nav__panel-head { display: flex; align-items: center; justify-content: space-between; padding: 10px; }
  .site-nav__panel-head img { display: block; width: 58px; height: 48px; object-fit: contain; }
  .site-nav__close { width: 45px; height: 33px; background: transparent; border: 1px solid rgba(255, 255, 255, .3); border-radius: 3px; color: var(--white); font-size: 22px; line-height: 1; cursor: pointer; }
  .site-nav__list { display: block; }
  .site-nav__list > .nav-item { margin: 0; }
  .site-nav__list .nav-link, .site-nav__list > .nav-item > .nav-link {
    height: auto; min-height: 41px; padding: 8px 15px 8px 8px; justify-content: space-between; white-space: normal;
    font: 500 16px/1.4 var(--font-ui); border: 1px solid var(--gold); border-top-width: 0;
  }
  .site-nav__list > .nav-item:first-child > .nav-link { border-top-width: 1px; }
  .nav-caret { width: 43px; height: 25px; align-items: center; justify-content: center; border: 1px solid var(--white); border-radius: 13px; font-size: 13px; }
  .nav-item.is-open > .nav-link > .nav-caret { border-color: var(--gold); }
  .nav-sub, .nav-sub .nav-sub {
    position: static; width: auto; opacity: 1; visibility: visible; transform: none; box-shadow: none; border: 0; display: none;
  }
  .nav-item.is-open > .nav-sub { display: block; }
  .nav-sub .nav-link { padding-left: 24px; font-size: 14px; }
  .nav-sub .nav-sub .nav-link { padding-left: 40px; }
}
@media (max-width: 600px) {
  .site-header__brand { display: block; text-align: center; }
  .site-header__logo { margin: 0 auto; }
  .site-header__partner { display: none; }
}

/* ---------- footer ---------- */

.site-footer { background: var(--green); padding: 0 25px 29px; color: var(--gold); font-family: var(--font-ui); position: relative; }
.site-footer .wave { margin: 0 -25px; }
.site-footer__cols { display: grid; grid-template-columns: 30.5fr 20.9fr 26.5fr 22.1fr; padding: 13px 0 0 18px; }
.site-footer h2 { font: 600 var(--fs-32)/1 var(--font-ui); letter-spacing: -0.1px; color: var(--gold); margin: 0 0 20px; }
.site-footer__subscribe h2 { margin-top: 22px; }
.site-footer__contact h2 { margin-top: 10px; }
.icon-list { list-style: none; margin: 0; padding: 0; }
.icon-list li { display: flex; align-items: flex-start; gap: 9px; padding-bottom: 9.5px; font: 400 14px/18px var(--font-ui); letter-spacing: .4px; }
.icon-list .icon { width: 16px; height: 16px; margin-top: 1px; }
.icon-list a { text-decoration: none; }
.icon-list a:hover { color: var(--white); }
.site-footer__contact .icon-list li { padding-bottom: 23px; max-width: 335px; }
.site-footer__col:nth-child(2) .icon-list li, .site-footer__col:nth-child(3) .icon-list li { padding-left: 7px; padding-bottom: 19.5px; }

.subscribe-form { display: flex; flex-direction: column; align-items: flex-start; padding-left: 7px; }
.subscribe-form label { font: 300 var(--fs-22)/1.4 var(--font-body); color: var(--gold); margin-bottom: 14px; }
.subscribe-form input { width: 126px; height: 33px; padding: 8px 16px; background: var(--gold); border: 1px solid #666; border-radius: 3px; font: 400 13.33px Arial, sans-serif; color: #000; }
.subscribe-form input::placeholder { color: #555; }
.subscribe-form button { margin-top: 11px; width: 123px; height: 19px; padding: 0; background: var(--gold); color: var(--green); border: 1px solid #000; border-radius: 10px; font: 400 13.33px Arial, sans-serif; cursor: pointer; }
.subscribe-form__msg { margin: 10px 0 0; font-size: 14px; color: var(--gold); }
.subscribe-form__msg[data-ok="false"] { color: #ff8a80; }

.site-footer__bottom { display: grid; grid-template-columns: 1fr 1fr; align-items: center; margin-top: 14px; }
.socials { display: flex; gap: 9px; list-style: none; margin: 0; padding: 0 0 0 132px; }
.socials a { display: flex; align-items: center; justify-content: center; width: 32px; height: 32px; border-radius: 50%; background: var(--gold); border: 3px solid var(--grey); color: #000; }
.socials .icon { width: 16px; height: 16px; }
.site-footer__copy { margin: 0; font: 600 15px/1 var(--font-ui); color: var(--gold); padding-left: 25px; }

@media (max-width: 1023px) {
  .site-footer__cols { grid-template-columns: 1fr 1fr; gap: 10px 20px; padding-left: 18px; }
  .site-footer__subscribe h2, .site-footer__contact h2 { margin-top: 0; }
  .site-footer__bottom { grid-template-columns: 1fr; gap: 16px; }
  .socials { padding: 0; justify-content: center; }
  .site-footer__copy { padding: 0; text-align: center; }
}
@media (max-width: 600px) {
  .site-footer__cols { grid-template-columns: 1fr; padding-left: 18px; }
  .site-footer__col { margin-bottom: 10px; }
}

/* ---------- shared bits used by several pages ---------- */

.reveal { opacity: 0; transform: translateY(30px); transition: opacity .7s ease, transform .7s ease; }
.reveal.visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; transition: none; } }

.page-404 { max-width: 640px; margin: 0 auto; padding: 96px 20px; text-align: center; color: var(--white); font-family: var(--font-ui); }
.page-404 h1 { font-size: 40px; margin-bottom: 16px; color: var(--gold); }
.page-404 a { color: var(--gold); }

/* Page wrappers (match the old builder's container spacing). */
.wrap-pad { padding: 10px; }
.wrap-boxed { max-width: 1160px; margin: 0 auto; padding: 10px; }
.wrap-full { width: 100%; }

/* Photo lightbox (site.js) */
.lightbox { position: fixed; inset: 0; z-index: 200; display: flex; align-items: center; justify-content: center; background: rgba(0, 0, 0, .9); }
.lightbox[hidden] { display: none; }
.lightbox img { max-width: 90vw; max-height: 85vh; }
.lightbox button { position: absolute; background: none; border: 0; color: var(--white); font-size: 44px; line-height: 1; cursor: pointer; padding: 10px 16px; }
.lightbox__close { top: 10px; right: 10px; }
.lightbox__prev { left: 10px; top: 50%; transform: translateY(-50%); }
.lightbox__next { right: 10px; top: 50%; transform: translateY(-50%); }

/* Site-wide body text: justified, but never split a word (no auto-
   hyphenation, no mid-word breaks -- only a single word longer than the
   whole line, e.g. a URL inside a link, may wrap). Phones get left-aligned
   instead: justify on a ~340px column opens big gaps. Element selectors
   only, so any page's own class rule still wins (user 2026-11-02). */
p, li, blockquote, .content, .description {
  text-align: justify; text-justify: inter-word;
  hyphens: none; -webkit-hyphens: none; -ms-hyphens: none;
  word-break: normal; overflow-wrap: normal;
}
p a, li a { overflow-wrap: break-word; }
@media (max-width: 600px) {
  p, li, blockquote, .content, .description { text-align: left; }
}
/* Menus are never justified -- a 2-line dropdown item ("Livelihood
   Enhancement & Entrepreneurship Development") got wide word gaps from
   the li rule above (user CSS 2026-11-02). */
nav li, nav a, .dropdown li, .dropdown a, .dropdown-menu li, .dropdown-menu a,
.menu li, .menu a, header li, header a {
  text-align: left; text-justify: auto; hyphens: none; word-break: normal;
}
/* Intros/taglines that are designed centred keep inheriting it. */
:is(.section-header, .ulf-header, .sahyog-center-head, .unnati-section-title, .unnati-cta-box,
    [class*="hero-content"], .guidelines__contact, .lx-apply__head, .text-center) :is(p, li),
p.du-future-body { text-align: inherit; }
/* 2026-11-09: narrow cards (about 360px or less) are left-aligned -- 3-4 words a line
   justified opened big gaps ("Goal   4:   Quality"). Long paragraphs stay justified. */
:is(.site-footer, .steps__item, .lx-kpi, .phero__chips, .pdoing__steps, .feature-card, .lx-eyebrow,
    .lx-sdg__tile, .home-sdg__goals, .lx-office, .uplift-classic-card, .ulf-app-card,
    .ppart, .pring, .pcov__card, .project-card, .lx-scard, .lx-tile) :is(p, li),
.site-footer li, .steps__item, .lx-sdg__tile, .pdoing__steps li, li.lx-kpi, p.lx-eyebrow { text-align: left; text-justify: auto; }

/* Banners (home slider + programme pages) always show the WHOLE artwork:
   the frame is 5:2 (1920x768), and a banner of any other shape used to be
   cropped by background-size: cover (user 2026-11-02: livelihood banner,
   1920x932, lost its top and bottom). .banner-fit draws the full image with
   contain on the site's dark green, so any leftover side strip is plain
   dark green (user: "blur hata do, side mein dark green"); a 5:2 banner
   fills the frame exactly as before. */
.sec-banner { position: relative; overflow: hidden; }
.banner-fit {
  position: absolute; inset: 0; border-radius: inherit; pointer-events: none;
  background: #323f2f center / contain no-repeat;
}

/* 2026-11-05: subscribe-form honeypot (bots fill it, people never see it) */
.hp-field{position:absolute!important;left:-10000px!important;width:1px;height:1px;overflow:hidden}

/* 2026-11-09: bigger touch areas on phones (were 8-23px tall), no visual change:
   transparent links get padding offset by an equal negative margin; filled buttons
   and dots get an invisible ::after hit area. */
.site-footer .icon-list a, .lx-social__foot a, .lx-hub__yt { padding-block: 7px; margin-block: -7px; }
.ulf-channel-value a { padding-block: 8px; }
.back-more, .carousel__dots button { position: relative; }
.back-more::after { content: ''; position: absolute; inset: -8px -4px; }
.carousel__dots button::after { content: ''; position: absolute; inset: -10px -4px; }

/* "Photo coming soon" tile (2026-11-09) -- used on project cards on every page */
.soon-pic { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; aspect-ratio: 4 / 3; width: 100%;
  border: 1px dashed rgba(255, 215, 0, .6); border-radius: 14px; background: rgba(0, 0, 0, .18); color: #ffd700; text-align: center; padding: 10px; box-sizing: border-box; }
.soon-pic b { font-size: 15px; font-weight: 700; }
.soon-pic__ic { width: 40px; height: 40px; opacity: .85; }
.soon-pic--fill { position: absolute; inset: 0; aspect-ratio: auto; border-radius: 0; border-width: 0; }

/* Photo beside the text on hand-written pages (2026-11-09, partials/page-photo.html).
   Desktop: text left, photo right. Phone: photo above the text. */
.pph { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr); gap: clamp(20px, 3vw, 40px); align-items: center; margin: 0 0 2rem; }
.pph__txt > :last-child { margin-bottom: 0 !important; }
.pph .pph__txt .ulf-header, .pph .pph__txt .ulf-app-header, .pph .pph__txt .uplift-classic-header { margin-bottom: 0; }
figure.pph__pic { margin: 0; border-radius: 16px; overflow: hidden; }
.pph__pic img { display: block; width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
figure.pph__pic.soon-pic { min-height: 220px; }
.pph__pic--below { margin-top: 1.5rem !important; max-width: 520px; }
@media (max-width: 820px) {
  .pph { grid-template-columns: 1fr; }
  .pph > .pph__pic { order: -1; }
}

/* Jump button + numbered steps for Get Involved pages (2026-11-09; partner page has its own copy) */
.pjump { display: inline-flex; align-items: center; gap: 8px; margin-top: 18px; padding: 13px 26px; border-radius: 999px; background: #ffd700; color: #1d2a1b !important;
  font: 800 15px/1 var(--font-ui); text-decoration: none !important; box-shadow: 0 8px 24px rgba(255, 215, 0, .25); transition: transform .2s, box-shadow .2s, background .2s; }
.pjump:hover, .pjump:focus-visible { background: #ffe44d; transform: translateY(-2px); box-shadow: 0 12px 30px rgba(255, 215, 0, .35); }
.pjump span { display: inline-block; animation: pjump-bob 1.6s ease-in-out infinite; }
@keyframes pjump-bob { 50% { transform: translateY(3px); } }
#apply-now { scroll-margin-top: 120px; }
.psteps { position: relative; display: grid; grid-template-columns: repeat(var(--n, 5), minmax(0, 1fr)); gap: 16px; margin: 0 0 2.5rem; padding: 0; list-style: none; }
.psteps::before { content: ''; position: absolute; left: 10%; right: 10%; top: 25px; border-top: 2px dashed rgba(255, 215, 0, .45); }
.psteps__i { position: relative; display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 0 6px 18px; text-align: center; }
.psteps__n { position: relative; display: grid; place-items: center; width: 50px; height: 50px; border-radius: 50%; background: #ffd700; color: #1d2a1b; font: 800 20px/1 var(--font-ui);
  box-shadow: 0 0 0 6px rgba(255, 215, 0, .15); transition: transform .25s, box-shadow .25s; }
.psteps__i:hover .psteps__n { transform: scale(1.08); box-shadow: 0 0 0 9px rgba(255, 215, 0, .2); }
.psteps__i b { margin-top: 6px; color: #fff; font: 700 15.5px/1.35 var(--font-ui); text-align: center !important; }
.psteps__i p { margin: 0; color: rgba(255, 255, 255, .8); font: 400 14px/1.55 var(--font-ui); text-align: center !important; text-align-last: center; }
@media (max-width: 900px) {
  .psteps { grid-template-columns: 1fr; gap: 0; }
  .psteps::before { left: 24px; right: auto; top: 25px; bottom: 30px; border-top: 0; border-left: 2px dashed rgba(255, 215, 0, .45); }
  .psteps__i { display: grid; grid-template-columns: 50px minmax(0, 1fr); column-gap: 16px; align-items: start; text-align: left; padding-bottom: 22px; }
  .psteps__n { grid-row: span 2; }
  .psteps__i b, .psteps__i p { text-align: left !important; text-align-last: auto; }
  .psteps__i b { margin-top: 4px; }
}
@media (prefers-reduced-motion: reduce) { .pjump span { animation: none; } }
/* steps text centred even inside page wrappers that force left text (intern page) */
@media (min-width: 901px) { main ol.psteps .psteps__i p, main ol.psteps .psteps__i b { text-align: center !important; text-align-last: center !important; } }

/* "Read more" cards on sector pages (2026-11-10) */
.relc { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr)); gap: 20px; margin: 0; padding: 0; list-style: none; }
.relc__i a { display: flex; flex-direction: column; height: 100%; border: 1px solid rgba(255, 215, 0, .45); border-radius: 18px; overflow: hidden; background: rgba(0, 0, 0, .2); color: #fff; text-decoration: none; transition: transform .25s, box-shadow .25s, border-color .25s; }
.relc__i a:hover, .relc__i a:focus-visible { transform: translateY(-4px); border-color: #ffd700; box-shadow: 0 16px 36px rgba(0, 0, 0, .35); }
.relc__img { display: block; aspect-ratio: 16 / 9; overflow: hidden; }
.relc__img img { display: block; width: 100%; height: 100%; object-fit: cover; }
.relc__img.soon-pic { display: flex; aspect-ratio: 16 / 9; border: 0; border-radius: 0; }
.relc__body { display: flex; flex-direction: column; gap: 6px; flex: 1; padding: 16px 18px 18px; text-align: left; }
.relc__lbl { align-self: flex-start; padding: 2px 10px; border-radius: 999px; background: #ffd700; color: #1d2a1b; font: 700 12px/1.4 var(--font-ui); }
.relc__t { font: 700 17px/1.35 var(--font-ui); color: #fff; text-align: left !important; }
.relc__x { color: rgba(255, 255, 255, .8); font: 400 14px/1.55 var(--font-ui); text-align: left !important; }
.relc__more { margin-top: auto; padding-top: 6px; color: #ffd700; font: 700 14px/1 var(--font-ui); }
