/* ==========================================================================
   Fintelligo additions on top of the Hopewell template.
   Everything structural comes from hopewell.css + Bootstrap 5; this file only
   adds the components the charity template has no equivalent for.
   ========================================================================== */

@font-face {
  font-family: "Poppins";
  src: url("/assets/fonts/poppins-500.woff2") format("woff2");
  font-weight: 500;
  font-display: swap;
}

@font-face {
  font-family: "Poppins";
  src: url("/assets/fonts/poppins-600.woff2") format("woff2");
  font-weight: 600;
  font-display: swap;
}

@font-face {
  font-family: "Poppins";
  src: url("/assets/fonts/poppins-700.woff2") format("woff2");
  font-weight: 700;
  font-display: swap;
}

@font-face {
  font-family: "Poppins";
  src: url("/assets/fonts/poppins-800.woff2") format("woff2");
  font-weight: 800;
  font-display: swap;
}

@font-face {
  font-family: "Nunito Sans";
  src: url("/assets/fonts/nunito-sans-var.woff2") format("woff2");
  font-weight: 200 1000;
  font-display: swap;
}

/* ------------------------------------------------------------ top strip */

.stat-item {
  padding: 2.4rem 1.1rem;
}

.stat-icon {
  display: grid;
  place-items: center;
  width: 2.75rem;
  height: 2.75rem;
  margin: 0 auto 0.7rem;
  border-radius: 1rem;
  background: rgba(255, 255, 255, 0.16);
  font-size: 1.15rem;
}

.stat-note {
  margin: 0.45rem auto 0;
  max-width: 23ch;
  font-size: 0.78rem;
  line-height: 1.45;
  opacity: 0.72;
}

/* The template's navbar is fixed and floats over the hero. Our status strip
   sits above it, so the navbar becomes sticky and takes its place in flow. */
.navbar-hw {
  position: sticky;
  top: 0;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: saturate(160%) blur(14px);
  border-bottom: 1px solid var(--clr-border);
  box-shadow: 0 4px 24px -14px rgba(15, 23, 42, 0.18);
}

.navbar-hw.scrolled {
  background: rgba(255, 255, 255, 0.95);
}

.hero {
  padding-top: clamp(3.5rem, 7vw, 5.5rem);
}

.hw-logo-name {
  white-space: nowrap;
}

.skip {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 2000;
}

.skip:focus {
  position: fixed;
  left: 1rem;
  top: 1rem;
  padding: 0.7rem 1.1rem;
  border-radius: 999px;
  background: var(--clr-primary-dark);
  color: #fff;
  font-weight: 700;
  text-decoration: none;
}

.statusbar {
  background: var(--clr-secondary-light);
  color: #92400e;
  border-bottom: 1px solid #fde68a;
  font-size: 0.8125rem;
}

.statusbar p {
  display: flex;
  align-items: baseline;
  gap: 0.55rem;
  padding: 0.55rem 0;
  margin: 0;
  line-height: 1.45;
}

.statusbar__dot {
  flex: 0 0 auto;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--clr-secondary);
  transform: translateY(-2px);
}

/* ------------------------------------------------------------ navbar bits */

.nav-end {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.lang-switch {
  display: inline-flex;
  align-items: center;
  gap: 0.15rem;
  padding: 0.22rem 0.3rem 0.22rem 0.62rem;
  border: 1px solid var(--clr-border);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.88);
  box-shadow: 0 3px 12px -8px rgba(15, 23, 42, 0.35);
  white-space: nowrap;
}

.lang-switch__globe {
  font-size: 0.85rem;
  color: var(--clr-primary-dark);
  margin-right: 0.3rem;
}

.lang-switch__current,
.lang-switch__other {
  padding: 0.34rem 0.62rem;
  border-radius: 999px;
  font-family: var(--font-display);
  font-size: 0.75rem;
  font-weight: 600;
  line-height: 1;
  transition:
    background-color 0.2s var(--ease),
    color 0.2s var(--ease);
}

.lang-switch__current {
  color: #fff;
  background: linear-gradient(135deg, var(--clr-primary), var(--clr-primary-dark));
  box-shadow: 0 4px 10px -6px rgba(15, 122, 55, 0.8);
}

.lang-switch__other {
  color: var(--clr-text-muted);
  text-decoration: none;
}

.lang-switch__other:hover {
  color: var(--clr-primary-dark);
  background: var(--clr-primary-light);
}

@media (max-width: 991px) {
  .nav-end {
    padding-top: 1rem;
    flex-wrap: wrap;
    justify-content: space-between;
  }
}

/* ------------------------------------------------------------ hero extras */

.hero-facts {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem 1.35rem;
  margin: 0;
  padding: 0;
  list-style: none;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--clr-text-muted);
}

.hero-facts i {
  color: var(--clr-primary);
  margin-right: 0.35rem;
}

.hero-langnote {
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--clr-text-muted);
  max-width: 46ch;
}

.hero .accent-underline {
  color: var(--clr-primary-dark);
}

/* --------------------------------------------------------- record card */

.hero-media {
  position: relative;
}

/* The template floats these over a photo; over a taller record card they need
   to hug the corners instead of landing on top of a row. */
.hero-media .float-card-1 {
  top: -1rem;
  left: -1.25rem;
}

.hero-media .float-card-2 {
  bottom: -1.25rem;
  right: -1rem;
}

@media (prefers-reduced-motion: reduce) {
  .float-card {
    animation: none;
  }
}

.record-card {
  padding: clamp(1.5rem, 3vw, 2rem);
  background: #fff;
  border: 1px solid var(--clr-border);
  border-radius: 24px;
  box-shadow: 0 30px 60px -30px rgba(15, 23, 42, 0.35);
}

/* Leaves room for the top-left floating chip so it never covers the label. */
.hero-media--badges .record-card {
  padding-top: 3.9rem;
}

.record-label {
  font-family: var(--font-display);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--clr-primary-dark);
  margin-bottom: 0.5rem;
}

.record-list > div {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1.25rem;
  padding: 0.8rem 0;
  border-bottom: 1px dashed var(--clr-border);
}

.record-list > div:last-child {
  border-bottom: 0;
}

.record-list dt {
  flex: 0 0 auto;
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--clr-text-muted);
}

.record-list dd {
  margin: 0;
  text-align: right;
  font-size: 0.9rem;
  font-weight: 700;
  line-height: 1.45;
}

.record-foot {
  margin-top: 0.5rem;
  padding-top: 0.8rem;
  border-top: 1px solid var(--clr-border);
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--clr-text-muted);
}

/* ------------------------------------------------------------- notice */

.notice-card {
  max-width: 820px;
  margin-inline: auto;
  padding: clamp(1.25rem, 2.5vw, 1.75rem);
  background: #fff;
  border: 1px solid var(--clr-secondary-light);
  border-left: 5px solid var(--clr-secondary);
  border-radius: 14px;
  box-shadow: var(--shadow-soft);
}

.section-pad--tight {
  padding-block: clamp(2.5rem, 4vw, 3.5rem);
}

.notice-card--warn {
  border-color: #fecaca;
  border-left-color: #ef4444;
}

.notice-card__label {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-family: var(--font-display);
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #b45309;
  margin-bottom: 0.35rem;
}

.notice-card--warn .notice-card__label {
  color: #b91c1c;
}

.notice-card__title {
  font-family: var(--font-display);
  font-size: clamp(1.0625rem, 1rem + 0.35vw, 1.2rem);
  font-weight: 700;
}

.notice-card__body {
  margin: 0;
  font-size: 0.9375rem;
  color: var(--clr-text-muted);
}

/* ----------------------------------------------------------- products */

.product-visual {
  display: grid;
  place-items: center;
  position: relative;
  /* .cause-img uses aspect-ratio; a fixed height would otherwise derive a
     half-width block. Pin the width so the panel spans the card. */
  width: 100%;
  height: 190px;
}

.product-visual--suki-cash {
  background: linear-gradient(135deg, #dcfce7, #bbf7d0);
}

.product-visual--handy-pera {
  background: linear-gradient(135deg, #fef3c7, #fde68a);
}

.product-monogram {
  font-family: var(--font-display);
  font-size: 4.25rem;
  font-weight: 800;
  letter-spacing: -0.04em;
  color: rgba(15, 23, 42, 0.14);
}

.product-points {
  display: grid;
  gap: 0.4rem;
  margin: 0.75rem 0 1rem;
  padding: 0;
  list-style: none;
}

.product-points li {
  font-size: 0.875rem;
  color: var(--clr-text-muted);
}

.product-points i {
  color: var(--clr-primary);
  margin-right: 0.45rem;
}

.product-points + .cause-donate {
  margin-top: 0;
}

/* -------------------------------------------------------------- quotes */

.quote-mark {
  font-family: var(--font-display);
  font-size: 2.5rem;
  font-weight: 800;
  line-height: 0.75;
  color: var(--clr-secondary);
}

.quote-source {
  margin-top: 0.75rem;
  font-family: var(--font-display);
  font-size: 0.625rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.62);
}

.testi-section .testi-card {
  height: 100%;
}

/* ---------------------------------------------------------- list cards */

.list-card {
  display: flex;
  align-items: flex-start;
  gap: 0.7rem;
  padding: 0.95rem 1.1rem;
  background: #fff;
  border: 1px solid var(--clr-border);
  border-radius: 14px;
  font-size: 0.9375rem;
  font-weight: 600;
  box-shadow: 0 4px 14px -10px rgba(15, 23, 42, 0.2);
}

.list-card i {
  color: var(--clr-primary);
  margin-top: 0.18rem;
}

/* ------------------------------------------------------- table / facts */

.table-card {
  background: #fff;
  border: 1px solid var(--clr-border);
  border-radius: 16px;
  overflow: hidden;
}

.table-card .table thead th {
  background: var(--clr-primary-light);
  color: var(--clr-text-muted);
  font-family: var(--font-display);
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  border: 0;
  padding: 0.9rem 1.1rem;
}

.table-card .table tbody th,
.table-card .table tbody td {
  padding: 0.9rem 1.1rem;
  border-color: var(--clr-border);
  vertical-align: top;
}

.table-card .table tbody th {
  font-weight: 700;
  white-space: nowrap;
}

.table-card .table tbody td {
  color: var(--clr-text-muted);
}

.table-note {
  margin-top: 0.9rem;
  font-size: 0.875rem;
  color: var(--clr-text-muted);
  max-width: 72ch;
}

.fact-card {
  background: #fff;
  border: 1px solid var(--clr-border);
  border-radius: 16px;
  overflow: hidden;
}

.fact-row {
  display: grid;
  grid-template-columns: minmax(9rem, 15rem) minmax(0, 1fr);
  gap: 0.35rem 1.5rem;
  padding: 0.9rem 1.2rem;
  border-bottom: 1px solid var(--clr-border);
}

.fact-row:last-child {
  border-bottom: 0;
}

.fact-row dt {
  font-family: var(--font-display);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--clr-text-muted);
  padding-top: 0.2rem;
}

.fact-row dd {
  margin: 0;
  font-size: 0.9375rem;
  font-weight: 600;
}

@media (max-width: 620px) {
  .fact-row {
    grid-template-columns: minmax(0, 1fr);
  }
}

/* --------------------------------------------------------------- prose */

.prose-card {
  max-width: 78ch;
  padding: clamp(1.35rem, 2.6vw, 1.9rem);
  background: #fff;
  border: 1px solid var(--clr-border);
  border-radius: 18px;
  box-shadow: 0 4px 16px -12px rgba(15, 23, 42, 0.2);
}

.prose-card p {
  color: var(--clr-text-muted);
}

.prose-card p:last-child {
  margin-bottom: 0;
}

.prose-card strong {
  color: var(--clr-text);
}

.prose-card a {
  color: var(--clr-primary-dark);
  font-weight: 700;
}

/* Numbered legal sections, following the template's policy layout. */
.page-legal {
  counter-reset: legal;
}

.page-legal .sec--prose {
  counter-increment: legal;
}

.page-legal .sec--prose .section-title::before {
  content: counter(legal, decimal-leading-zero);
  display: inline-grid;
  place-items: center;
  width: 2rem;
  height: 2rem;
  margin-right: 0.6rem;
  border-radius: 50%;
  background: var(--clr-primary-light);
  color: var(--clr-primary-dark);
  font-size: 0.72rem;
  font-weight: 700;
  vertical-align: 0.18em;
}

/* --------------------------------------------------------------- forms */

.form-pending {
  font-size: 0.8125rem;
  font-weight: 600;
  color: #92400e;
  background: var(--clr-secondary-light);
  border: 1px dashed #fcd34d;
  border-radius: 10px;
  padding: 0.7rem 0.85rem;
}

.form-pending.is-flagged {
  background: #fde68a;
  border-style: solid;
}

.field-error {
  display: none;
  margin: 0.3rem 0 0;
  font-size: 0.8125rem;
  font-weight: 700;
  color: #b91c1c;
}

.field-error.is-shown {
  display: block;
}

.form-control-hw.is-invalid {
  border-color: #fca5a5;
  background: #fef2f2;
}

.form-status {
  margin: 0 0 0.6rem;
  font-size: 0.875rem;
  font-weight: 700;
  color: #b91c1c;
}

.form-status:empty {
  display: none;
}

.form-success {
  margin: 0;
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--clr-primary-dark);
  background: var(--clr-primary-light);
  border-radius: 10px;
  padding: 0.8rem 0.9rem;
}

.form-check-input:checked {
  background-color: var(--clr-primary);
  border-color: var(--clr-primary);
}

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

.footer-address {
  margin-top: 1rem;
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.72);
}

.footer-address a {
  color: rgba(255, 255, 255, 0.9);
}

.footer-address i {
  margin-right: 0.4rem;
}

.footer-note {
  font-style: italic;
}

.footer-bottom {
  margin-top: 2.5rem;
  padding-top: 1.25rem;
  border-top: 1px solid rgba(255, 255, 255, 0.14);
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.55);
}

/* ------------------------------------------------------------- CTA */

.cta-banner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1.75rem;
  text-align: left;
  padding: clamp(2rem, 4vw, 3.25rem);
}

.cta-banner__copy {
  max-width: 46ch;
}

.cta-banner__copy h2 {
  font-family: var(--font-display);
  font-weight: 800;
  letter-spacing: -0.02em;
}

.cta-banner__copy p {
  margin: 0.6rem 0 0;
  opacity: 0.92;
}

.cta-banner__action {
  flex: 0 0 auto;
}

/* --------------------------------------------------------------- 404 */

.nf {
  text-align: center;
  padding-block: 2rem;
}

.nf .hero-title {
  max-width: 22ch;
  margin-inline: auto;
}
