/* YiYi Sunflower Lending — Approachable Fintech
   ------------------------------------------------
   1. Tokens
   2. Reset & base
   3. Layout helpers
   4. Header / navigation
   5. Buttons & pills
   6. Hero
   7. Cards & grids
   8. Page banner
   9. FAQ accordion
  10. Footer
  11. Responsive
*/

/* 1. Tokens ------------------------------------------------------------- */
:root {
  --color-primary: #F5B700;
  --color-primary-light: #FFD84D;
  --color-primary-soft: #FFE9A8;
  --color-primary-tint: #FFF7DE;
  --color-ink: #1C1C1E;
  --color-body: #55555A;
  --color-muted: #6B6B70;
  --color-surface: #FFFFFF;
  --color-surface-warm: #FFFBEF;
  --color-surface-grey: #FAFAF7;
  --color-border: #F0F0EC;
  --color-footer-bg: #1A1508;
  --color-link: #B98A00;

  --gradient-primary: linear-gradient(135deg, var(--color-primary-light), var(--color-primary));

  --radius-sm: 14px;
  --radius-md: 20px;
  --radius-lg: 24px;
  --radius-xl: 32px;
  --radius-pill: 100px;

  --shadow-xs: 0 4px 14px rgba(28, 28, 30, .06);
  --shadow-sm: 0 6px 20px rgba(28, 28, 30, .06);
  --shadow-md: 0 8px 24px rgba(28, 28, 30, .06);
  --shadow-lg: 0 18px 40px rgba(28, 28, 30, .10);
  --shadow-xl: 0 30px 70px rgba(28, 28, 30, .16);
  --shadow-primary: 0 10px 26px rgba(245, 183, 0, .40);

  --font-sans: 'Poppins', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --text-base: 17px;

  --container: 1240px;
  --gutter: clamp(18px, 5vw, 28px);
  --section-y: clamp(40px, 7vw, 64px);
  --header-h: 72px;
}

/* 2. Reset & base ------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: var(--text-base);
  line-height: 1.65;
  color: var(--color-ink);
  background: var(--color-surface);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

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

a { color: var(--color-ink); text-decoration: none; }
a:hover { color: var(--color-link); }

button { font: inherit; }

h1, h2, h3, h4, p { margin: 0; }

::selection { background: var(--color-primary); color: var(--color-ink); }

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

/* 3. Layout helpers ----------------------------------------------------- */
.page { min-height: 100vh; display: flex; flex-direction: column; }
.page__main { flex: 1; }

.container {
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--gutter);
}
.container--narrow { max-width: 900px; }
.container--mid { max-width: 1000px; }

.section { padding-block: var(--section-y); }
.section--warm { background: var(--color-surface-warm); }
.section--flush-top { padding-top: 20px; }

.section__title {
  font-size: clamp(28px, 5vw, 42px);
  font-weight: 800;
  letter-spacing: -.025em;
  line-height: 1.15;
  text-wrap: balance;
}
.section__subtitle { color: var(--color-muted); margin-top: 10px; }
.section__lead { color: var(--color-body); margin-top: 14px; }

.stack { display: flex; flex-direction: column; }
.stack--sm { gap: 12px; }
.stack--md { gap: 18px; }

.wave { display: block; width: 100%; height: 70px; }
.wave--tall { height: 96px; }

/* 4. Header / navigation ------------------------------------------------ */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, .92);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid #F2F2EF;
}

.site-header__inner {
  max-width: var(--container);
  margin-inline: auto;
  padding: 12px var(--gutter);
  display: flex;
  align-items: center;
  gap: clamp(10px, 2.5vw, 32px);
}

.site-header__logo img { height: 46px; width: auto; }

.nav {
  display: flex;
  align-items: center;
  gap: 2px;
  margin-left: auto;
  flex-wrap: nowrap;
}

.nav__link {
  padding: 9px clamp(9px, 1.2vw, 15px);
  border-radius: var(--radius-sm);
  font-size: 15px;
  font-weight: 500;
  color: #3A3A3E;
  transition: background .18s ease, color .18s ease;
  white-space: nowrap;
}
.nav__link:hover,
.nav__link[aria-current="page"] { background: var(--color-primary-tint); color: var(--color-ink); }

.nav-toggle {
  display: none;
  margin-left: auto;
  width: 48px; height: 48px;
  border: 0;
  border-radius: 16px;
  background: var(--color-primary-tint);
  cursor: pointer;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  flex-shrink: 0;
}
.nav-toggle span {
  display: block;
  width: 20px; height: 2px;
  border-radius: 2px;
  background: var(--color-ink);
}

.nav-drawer {
  display: none;
  border-top: 1px solid #F2F2EF;
  background: var(--color-surface);
  padding: 10px var(--gutter) 18px;
  flex-direction: column;
  gap: 2px;
}
.nav-drawer.is-open { display: flex; }
.nav-drawer .nav__link { padding: 14px 16px; font-size: var(--text-base); }
.nav-drawer .btn { margin-top: 8px; text-align: center; }

/* 5. Buttons & pills ---------------------------------------------------- */
.btn {
  display: inline-block;
  padding: 16px 30px;
  border-radius: 18px;
  font-size: var(--text-base);
  font-weight: 600;
  color: var(--color-ink);
  transition: transform .18s ease, box-shadow .18s ease;
}
.btn:hover { transform: translateY(-3px); color: var(--color-ink); }
.btn--primary { background: var(--gradient-primary); box-shadow: var(--shadow-primary); }
.btn--ghost { background: var(--color-surface); box-shadow: 0 6px 18px rgba(28, 28, 30, .08); }
.btn--dark { background: var(--color-ink); color: var(--color-surface); border: 0; cursor: pointer; }
.btn--dark:hover { color: var(--color-surface); }
.btn--sm {
  padding: 11px 22px;
  border-radius: 16px;
  font-size: 15px;
  background: var(--gradient-primary);
  box-shadow: 0 6px 18px rgba(245, 183, 0, .35);
}
.btn--sm:hover { transform: translateY(-2px); box-shadow: 0 10px 24px rgba(245, 183, 0, .45); }

.btn-row { display: flex; flex-wrap: wrap; gap: 14px; }

.badge {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 8px 16px;
  border-radius: var(--radius-pill);
  background: var(--color-surface);
  box-shadow: var(--shadow-xs);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: .02em;
}
.badge__dot { width: 9px; height: 9px; border-radius: 50%; background: var(--color-primary); }

.pill-row { display: flex; flex-wrap: wrap; gap: 12px; }
.pill {
  padding: 18px 34px;
  border-radius: var(--radius-pill);
  background: var(--gradient-primary);
  font-weight: 700;
  font-size: 18px;
  box-shadow: 0 8px 20px rgba(245, 183, 0, .3);
}

.chip-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 10px;
}
.chip { padding: 16px 22px; border-radius: 16px; background: var(--color-surface-grey); }

/* 6. Hero --------------------------------------------------------------- */
.hero {
  position: relative;
  overflow: hidden;
  background: linear-gradient(160deg, #FFFDF5 0%, #FFF3CE 55%, #FFE9A8 100%);
}
.hero__bg {
  position: absolute;
  inset: 0;
  background: url('../img/hero-bg-4.png') center right / cover no-repeat;
  opacity: .22;
}
.hero__inner {
  position: relative;
  max-width: var(--container);
  margin-inline: auto;
  padding: clamp(56px, 9vw, 96px) var(--gutter) clamp(72px, 12vw, 130px);
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: clamp(32px, 5vw, 56px);
  align-items: center;
}
.hero__title {
  margin-top: 22px;
  font-size: clamp(36px, 7.5vw, 64px);
  line-height: 1.05;
  font-weight: 800;
  letter-spacing: -.03em;
  text-wrap: balance;
}
.hero__text {
  margin-top: 24px;
  font-size: 19px;
  line-height: 1.7;
  color: var(--color-body);
  max-width: 560px;
  text-wrap: pretty;
}
.hero__actions { margin-top: 36px; }
.hero__media {
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow-xl);
  aspect-ratio: 4 / 3.4;
  background: url('../img/about-img.jpg') center / cover no-repeat;
}

.stats { display: flex; flex-wrap: wrap; gap: 40px; margin-top: 48px; }
.stats__value { font-size: clamp(24px, 4.5vw, 32px); font-weight: 800; letter-spacing: -.02em; }
.stats__label { font-size: 15px; color: var(--color-muted); }

/* 7. Cards & grids ------------------------------------------------------ */
.grid { display: grid; gap: 22px; }
.grid--features { grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.grid--steps { grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 20px; }
.grid--criteria { grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 20px; }
.grid--logos { grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 18px; }
.grid--logos-lg { grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 18px; }
.grid--split { grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: clamp(30px, 5vw, 56px); }
.grid--contact { grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 18px; }
.grid--careers { grid-template-columns: repeat(auto-fit, minmax(290px, 1fr)); gap: 24px; }

.card {
  padding: 32px 28px;
  border-radius: var(--radius-lg);
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  box-shadow: 0 6px 22px rgba(28, 28, 30, .05);
  transition: transform .2s ease, box-shadow .2s ease;
}
.card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.card--static:hover { transform: none; box-shadow: 0 6px 22px rgba(28, 28, 30, .05); }
.card--plain {
  padding: 24px 26px;
  border-radius: var(--radius-md);
  border: 0;
  box-shadow: var(--shadow-sm);
}
.card--step {
  padding: 30px 26px;
  border: 0;
  box-shadow: var(--shadow-md);
}
.card--accent {
  background: linear-gradient(150deg, var(--color-primary-light), var(--color-primary));
  border: 0;
  box-shadow: 0 14px 30px rgba(245, 183, 0, .32);
}
.card--soft { background: var(--color-surface-grey); border: 0; box-shadow: none; padding: 38px 34px; border-radius: 26px; }
.card__title { font-size: 21px; font-weight: 700; letter-spacing: -.01em; margin-bottom: 8px; }
.card__title--sm { font-size: 19px; font-weight: 700; margin-bottom: 6px; }
.card__text { color: var(--color-muted); }
.card__text--dark { color: #3A3105; }

.card-number {
  width: 52px; height: 52px;
  border-radius: 18px;
  background: linear-gradient(135deg, var(--color-primary-soft), var(--color-primary));
  display: flex; align-items: center; justify-content: center;
  font-weight: 800; font-size: 19px;
  margin-bottom: 20px;
}
.card-number--dark {
  width: 44px; height: 44px;
  border-radius: 16px;
  background: var(--color-ink);
  color: var(--color-primary);
  margin-bottom: 18px;
}

.prose-card {
  padding: 28px 30px;
  border-radius: 22px;
  background: var(--color-surface-grey);
  line-height: 1.75;
  text-wrap: pretty;
}
.prose-card--warm { background: var(--color-surface-warm); }

.logo-tile {
  aspect-ratio: 1 / 1;
  border-radius: 22px;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  display: flex; align-items: center; justify-content: center;
  padding: 22px;
  transition: transform .2s ease, box-shadow .2s ease;
}
.logo-tile:hover { transform: translateY(-5px); box-shadow: 0 16px 34px rgba(28, 28, 30, .09); }
.logo-tile img { max-width: 100%; max-height: 100%; object-fit: contain; }

.promo-media {
  border-radius: 28px;
  overflow: hidden;
  aspect-ratio: 1 / 1;
  background: url('../img/promo-icon-bg.svg') center / cover no-repeat, var(--gradient-primary);
  box-shadow: 0 24px 56px rgba(245, 183, 0, .28);
}

.step-item {
  display: flex;
  gap: 22px;
  padding: 28px 30px;
  border-radius: var(--radius-lg);
  background: var(--color-surface-grey);
  transition: background .2s ease;
}
.step-item:hover { background: var(--color-primary-tint); }
.step-item__num {
  font-size: 34px; font-weight: 800;
  color: var(--color-primary);
  line-height: 1; flex-shrink: 0; min-width: 34px;
}
.step-item__title { font-size: 20px; font-weight: 700; margin-bottom: 6px; }
.step-item__text { color: var(--color-body); }

.info-card {
  padding: 30px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--color-border);
  box-shadow: var(--shadow-sm);
}
.info-card__label { font-size: 15px; color: var(--color-muted); margin-bottom: 6px; }
.info-card__value { font-size: 22px; font-weight: 700; }
.info-card__value--break { font-size: clamp(15px, 2.4vw, 20px); white-space: nowrap; }

.address-card {
  padding: 34px 30px;
  border-radius: var(--radius-lg);
  background: var(--color-surface-warm);
  grid-column: 1 / -1;
}
.address-card__value { font-size: 22px; font-weight: 600; line-height: 1.5; }

.eyebrow {
  font-size: 15px;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--color-muted);
  margin-bottom: 12px;
}

.join-card {
  padding: 44px 40px;
  border-radius: 26px;
  background: linear-gradient(150deg, var(--color-primary-light), var(--color-primary));
  box-shadow: 0 20px 44px rgba(245, 183, 0, .32);
  display: flex; flex-direction: column; justify-content: center;
  align-items: flex-start;
}
.join-card__title { font-size: clamp(26px, 4vw, 32px); font-weight: 800; letter-spacing: -.02em; margin-bottom: 10px; }
.join-card__text { font-size: 19px; color: #3A3105; max-width: 420px; margin-bottom: 28px; }

/* 8. Page banner -------------------------------------------------------- */
.page-banner {
  position: relative;
  background-size: cover;
  background-position: center;
}
.page-banner__inner {
  max-width: var(--container);
  margin-inline: auto;
  padding: clamp(64px, 11vw, 110px) var(--gutter) clamp(80px, 13vw, 130px);
}
.page-banner__eyebrow {
  font-size: 15px;
  font-weight: 600;
  color: var(--color-primary);
  letter-spacing: .08em;
  text-transform: uppercase;
}
.page-banner__title {
  margin-top: 10px;
  font-size: clamp(34px, 7vw, 60px);
  font-weight: 800;
  color: var(--color-surface);
  letter-spacing: -.03em;
}
.page-banner--about { background-image: linear-gradient(180deg, rgba(28,28,30,.55), rgba(28,28,30,.65)), url('../img/aboutusbanner.jpg'); }
.page-banner--loans { background-image: linear-gradient(180deg, rgba(28,28,30,.55), rgba(28,28,30,.65)), url('../img/allabout.jpg'); }
.page-banner--payment { background-image: linear-gradient(180deg, rgba(28,28,30,.55), rgba(28,28,30,.65)), url('../img/payment.jpg'); }
.page-banner--career { background-image: linear-gradient(180deg, rgba(28,28,30,.55), rgba(28,28,30,.65)), url('../img/career.jpg'); }
.page-banner--partners { background-image: linear-gradient(180deg, rgba(28,28,30,.50), rgba(28,28,30,.62)), url('../img/partner-hero-bg-1.png'); }
.page-banner--contact { background-image: linear-gradient(180deg, rgba(28,28,30,.55), rgba(28,28,30,.65)), url('../img/contactusbanner.jpg'); }

/* 9. FAQ accordion ------------------------------------------------------ */
.faq { border-radius: var(--radius-md); background: var(--color-surface-grey); overflow: hidden; }
.faq__question {
  width: 100%;
  text-align: left;
  border: 0;
  background: transparent;
  font-size: 19px;
  font-weight: 600;
  color: var(--color-ink);
  padding: 24px 26px;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  gap: 18px;
  align-items: center;
}
.faq__question:hover { background: var(--color-primary-tint); }
.faq__icon {
  width: 30px; height: 30px;
  flex-shrink: 0;
  border-radius: 50%;
  background: var(--color-primary);
  display: flex; align-items: center; justify-content: center;
  font-size: 17px;
  transition: transform .2s ease;
}
.faq__question[aria-expanded="true"] .faq__icon { transform: rotate(45deg); }
.faq__answer { padding: 0 26px 24px; color: var(--color-body); }
.faq__answer[hidden] { display: none; }

/* 10. Footer ------------------------------------------------------------ */
.site-footer {
  position: relative;
  background-color: var(--color-footer-bg);
  background-image: linear-gradient(165deg, rgba(38,30,10,.92), rgba(20,16,6,.96)), url('../img/footer-bg.png');
  background-size: cover;
  background-position: center;
  color: var(--color-surface);
}
.site-footer__inner {
  max-width: var(--container);
  margin-inline: auto;
  padding: 30px var(--gutter) 60px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: clamp(26px, 4vw, 36px);
  letter-spacing: .005em;
}
.site-footer__logo { height: 56px; width: auto; margin-bottom: 22px; }
.site-footer__contact { display: flex; flex-direction: column; gap: 10px; color: var(--color-surface); font-weight: 500; }
.site-footer__heading {
  font-size: 14px;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--color-primary-light);
  margin-bottom: 16px;
}
.site-footer__links { display: flex; flex-direction: column; gap: 9px; font-size: 16px; }
.site-footer a { color: var(--color-surface); font-weight: 500; }
.site-footer a:hover { color: var(--color-primary-light); }
.site-footer__accent { color: var(--color-primary-light); font-weight: 600; }

/* 11. Responsive -------------------------------------------------------- */
@media (max-width: 1023px) {
  .nav { display: none; }
  .nav-toggle { display: flex; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; }
}
