/**
 * Kol Ha'am crowdfunding microsite styles.
 * Self-hosted OFL faces: Assistant (he/en), Manrope (ru), Noto Sans Ethiopic (am),
 * Gveret Levin + Playpen Sans (handwritten overlays, matching the sketches).
 *
 * @author Shmuel Fortman Hapartzy
 */

@font-face {
  font-family: Assistant;
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("../fonts/assistant-400.woff2") format("woff2");
}

@font-face {
  font-family: Assistant;
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("../fonts/assistant-600.woff2") format("woff2");
}

@font-face {
  font-family: Assistant;
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("../fonts/assistant-700.woff2") format("woff2");
}

@font-face {
  font-family: Assistant;
  font-style: normal;
  font-weight: 800;
  font-display: swap;
  src: url("../fonts/assistant-800.woff2") format("woff2");
}

@font-face {
  font-family: Manrope;
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("../fonts/manrope-400.woff2") format("woff2");
}

@font-face {
  font-family: Manrope;
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("../fonts/manrope-600.woff2") format("woff2");
}

@font-face {
  font-family: Manrope;
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("../fonts/manrope-700.woff2") format("woff2");
}

@font-face {
  font-family: Manrope;
  font-style: normal;
  font-weight: 800;
  font-display: swap;
  src: url("../fonts/manrope-800.woff2") format("woff2");
}

@font-face {
  font-family: "Noto Sans Ethiopic";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("../fonts/noto-ethiopic-400.woff2") format("woff2");
}

@font-face {
  font-family: "Noto Sans Ethiopic";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("../fonts/noto-ethiopic-600.woff2") format("woff2");
}

@font-face {
  font-family: "Noto Sans Ethiopic";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("../fonts/noto-ethiopic-700.woff2") format("woff2");
}

@font-face {
  font-family: "Gveret Levin";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("../fonts/gveret-levin.woff2") format("woff2");
}

@font-face {
  font-family: "Playpen Sans";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("../fonts/playpen-600.woff2") format("woff2");
}

@font-face {
  font-family: "Playpen Sans";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("../fonts/playpen-700.woff2") format("woff2");
}

:root {
  --navy: #002058;
  --navy-deep: #04102a;
  --gold: #b88820;
  --gold-bright: #d4a017;
  --gold-soft: #f3e6c4;
  --ink: #10182c;
  --muted: #5b6478;
  --paper: #f7f4ee;
  --line: #d9e2ef;
  --white: #ffffff;
  --danger: #9b1c1c;
  --ok: #146c43;
  --shadow: 0 14px 40px rgba(0, 32, 88, 0.12);
  --radius: 18px;
  --header-h: 76px;
  --font: Assistant, Manrope, "Noto Sans Ethiopic", system-ui, sans-serif;
  --font-script: "Gveret Levin", "Playpen Sans", Assistant, cursive;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

html,
body {
  margin: 0;
  min-height: 100%;
  background: var(--white);
  color: var(--ink);
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.55;
}

body[data-locale="am"] {
  font-size: 18px;
  font-family: "Noto Sans Ethiopic", Assistant, sans-serif;
}

body[data-locale="ru"] {
  font-family: Manrope, Assistant, sans-serif;
}

html[dir="ltr"] {
  --font-script: "Playpen Sans", "Gveret Levin", Manrope, cursive;
}

img {
  max-width: 100%;
  height: auto;
}

a {
  color: inherit;
}

button,
input,
select {
  font: inherit;
}

.skip-link {
  position: absolute;
  inset-inline-start: 12px;
  top: -40px;
  background: var(--navy);
  color: #fff;
  padding: 8px 12px;
  z-index: 80;
}

.skip-link:focus {
  top: 12px;
}

.wrap {
  width: min(1120px, calc(100% - 32px));
  margin-inline: auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(0, 32, 88, 0.08);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: var(--header-h);
}

.header-tools {
  display: flex;
  align-items: center;
  gap: 10px;
  flex: 0 0 auto;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  min-width: 0;
}

.brand-tag {
  display: none;
}

.brand-word {
  height: 44px;
  width: auto;
  max-width: min(320px, 52vw);
  object-fit: contain;
  object-position: inline-start;
}

.brand-tag {
  display: none;
  margin: 0;
  color: var(--muted);
  font-size: 12px;
  font-weight: 500;
}

.nav-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border: 0;
  background: transparent;
  color: var(--navy);
  cursor: pointer;
}

.nav-toggle span,
.nav-toggle span::before,
.nav-toggle span::after {
  display: block;
  width: 20px;
  height: 2px;
  background: currentColor;
  position: relative;
}

.nav-toggle span::before,
.nav-toggle span::after {
  content: "";
  position: absolute;
  inset-inline-start: 0;
}

.nav-toggle span::before { top: -6px; }
.nav-toggle span::after { top: 6px; }

.lang-switch {
  display: flex;
  gap: 2px;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 3px;
  background: #fff;
}

.lang-switch a {
  text-decoration: none;
  padding: 4px 8px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
  color: var(--navy);
  white-space: nowrap;
}

.lang-switch a.is-active {
  background: var(--navy);
  color: #fff;
}

.primary-nav {
  display: none;
}

.primary-nav a {
  text-decoration: none;
  font-weight: 700;
  color: var(--navy);
  font-size: 15px;
  white-space: nowrap;
}

body.nav-open .primary-nav {
  display: flex;
  flex-direction: column;
  gap: 14px;
  position: absolute;
  inset-inline: 0;
  top: var(--header-h);
  background: #fff;
  padding: 18px 16px 24px;
  border-bottom: 1px solid var(--line);
  box-shadow: var(--shadow);
}

body.nav-open .lang-switch-mobile {
  display: flex;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border-radius: 999px;
  border: 2px solid transparent;
  padding: 12px 20px;
  font-weight: 800;
  text-decoration: none;
  cursor: pointer;
  white-space: nowrap;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn-gold {
  background: var(--gold);
  color: #fff;
  box-shadow: 0 8px 18px rgba(184, 136, 32, 0.28);
}

.btn-navy {
  background: var(--navy);
  color: #fff;
}

.hero .btn-navy {
  border: 2px solid rgba(255, 255, 255, 0.55);
  background: rgba(0, 32, 88, 0.88);
}

.btn-ghost {
  background: #fff;
  color: var(--navy);
  border-color: var(--navy);
}

.btn-wide {
  width: 100%;
}

.icon {
  width: 18px;
  height: 18px;
  flex: 0 0 auto;
}

.flash {
  display: none;
  padding: 12px 16px;
  text-align: center;
  font-weight: 700;
}

.flash.is-on { display: block; }
.flash-ok { background: #e8f8ef; color: var(--ok); }
.flash-bad { background: #fdecec; color: var(--danger); }

.hero {
  position: relative;
  overflow: hidden;
  background: var(--navy-deep);
  color: #fff;
  min-height: 640px;
}

.hero-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  max-width: none;
  object-fit: cover;
  object-position: center 28%;
}

.hero-scrim {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(4, 16, 42, 0.18) 0%, rgba(4, 16, 42, 0.88) 62%);
}

html[dir="rtl"] .hero-scrim {
  background: linear-gradient(270deg, rgba(4, 16, 42, 0.18) 0%, rgba(4, 16, 42, 0.88) 62%);
}

.hero .wrap {
  position: relative;
  z-index: 2;
}

.hero-grid {
  display: grid;
  min-height: 640px;
}

.hero-copy {
  padding: 36px 0 48px;
  position: relative;
  z-index: 2;
}

.hero-copy h1 {
  margin: 0 0 14px;
  font-size: clamp(32px, 6vw, 52px);
  line-height: 1.15;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.hero-copy p {
  margin: 0 0 12px;
  max-width: 36rem;
  color: rgba(255, 255, 255, 0.9);
}

.progress {
  margin: 22px 0 20px;
  max-width: 420px;
}

.progress-meta {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  font-size: 14px;
  font-weight: 700;
}

.progress-track {
  height: 12px;
  margin: 8px 0;
  background: rgba(255, 255, 255, 0.18);
  border-radius: 999px;
  overflow: hidden;
}

.progress-fill {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, var(--gold), var(--gold-bright));
  border-radius: inherit;
  transition: width 0.6s ease;
}

.progress-note {
  margin: 0;
  color: var(--gold-soft);
  font-weight: 700;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 18px;
}

.hero-visual {
  position: relative;
  min-height: 240px;
}

.script-note {
  position: absolute;
  font-family: var(--font-script);
  font-weight: 700;
  color: #fff;
  font-size: clamp(22px, 3vw, 34px);
  transform: rotate(-8deg);
  text-shadow: 0 6px 18px rgba(0, 0, 0, 0.35);
  max-width: 12ch;
  line-height: 1.15;
  pointer-events: none;
}

.hero-visual .script-note {
  inset-inline-start: 6%;
  bottom: 10%;
  max-width: 14ch;
}

.sign-chip {
  position: absolute;
  inset-inline-end: 7%;
  top: 10%;
  background: rgba(255, 255, 255, 0.92);
  color: var(--navy);
  font-weight: 800;
  padding: 10px 14px;
  border-radius: 10px;
  max-width: 18rem;
  box-shadow: var(--shadow);
}

.section {
  padding: 64px 0;
}

.section-kicker,
.section h2 {
  color: var(--navy);
}

.section h2 {
  margin: 0 0 10px;
  font-size: clamp(28px, 4vw, 40px);
  line-height: 1.2;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.lead {
  margin: 0 0 28px;
  color: var(--muted);
  max-width: 46rem;
}

.icon-grid,
.card-grid,
.pillar-grid {
  display: grid;
  gap: 18px;
}

.icon-grid { grid-template-columns: 1fr; }
.card-grid { grid-template-columns: 1fr; }
.pillar-grid { grid-template-columns: 1fr; }

.icon-item,
.card,
.pillar {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px;
}

.icon-item {
  text-align: center;
  box-shadow: none;
  border: 0;
  background: transparent;
  padding: 8px;
}

.icon-bubble {
  width: 72px;
  height: 72px;
  margin: 0 auto 12px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: #eef3fb;
  color: var(--navy);
}

.icon-bubble img {
  width: 40px;
  height: 40px;
  object-fit: contain;
}

.icon-item h3,
.card h3,
.pillar h3 {
  margin: 0 0 8px;
  color: var(--navy);
  font-size: 20px;
}

.icon-item p,
.card p {
  margin: 0;
  color: var(--muted);
}

.card ul,
.pillar ul {
  margin: 10px 0 0;
  padding-inline-start: 18px;
  color: var(--ink);
}

.card .icon-bubble,
.pillar .icon-bubble {
  margin-inline: 0 0;
  margin-bottom: 12px;
}

.section-muted {
  background: var(--paper);
}

.manifesto {
  background: var(--white);
}

.manifesto-grid {
  display: grid;
  gap: 28px;
  align-items: center;
}

.manifesto-kicker {
  margin: 0;
  color: var(--navy);
  font-size: clamp(48px, 8vw, 72px);
  font-weight: 900;
  line-height: 0.95;
}

.manifesto h2 {
  font-size: clamp(32px, 5vw, 48px);
}

.manifesto-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 18px;
}

.split-two {
  display: grid;
  gap: 22px;
}

.photo-frame {
  position: relative;
  overflow: hidden;
}

.photo-frame img {
  width: 100%;
  height: 210px;
  max-width: none;
  object-fit: cover;
  display: block;
}

.manifesto-photo img {
  height: min(460px, 62vw);
  min-height: 280px;
  border-radius: var(--radius);
}

.manifesto-photo .script-note {
  inset-inline-start: 7%;
  bottom: 12%;
  color: #fff;
}

.manifesto-photo .sign-chip {
  inset-inline-end: 6%;
  top: 8%;
}

.why-card,
.reverse-card {
  border-radius: var(--radius);
  padding: 0;
  background: #fff;
  border: 1px solid var(--line);
  overflow: hidden;
}

.why-card .card-body,
.reverse-card .card-body {
  padding: 28px;
}

.reverse-card {
  background: var(--navy);
  color: #fff;
  position: relative;
}

.reverse-card h2,
.reverse-card p {
  color: #fff;
}

.reverse-card .script-note {
  position: static;
  display: block;
  margin-top: 16px;
  color: var(--gold-bright);
  transform: rotate(-3deg);
}

.trade {
  position: relative;
  color: #fff;
  min-height: 340px;
  display: grid;
  align-items: center;
  overflow: hidden;
}

.trade-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.trade::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(4, 16, 42, 0.82), rgba(4, 16, 42, 0.45));
}

.trade .wrap {
  position: relative;
  z-index: 1;
  padding: 64px 0;
}

.trade h2,
.trade p {
  color: #fff;
  max-width: 36rem;
}

.trade .script-note {
  position: static;
  display: block;
  margin-top: 22px;
  color: var(--gold-soft);
  transform: none;
  text-shadow: none;
  max-width: none;
}

.action-section {
  position: relative;
  overflow: hidden;
}

.action-section::before {
  content: "";
  position: absolute;
  inset: 0;
  background: url("../assets/manifesto-rally.jpg") center / cover no-repeat;
  opacity: 0.32;
  pointer-events: none;
}

.action-section .wrap {
  position: relative;
  z-index: 1;
}

.action-grid {
  display: grid;
  gap: 22px;
}

.panel {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 24px;
  padding: 24px;
  box-shadow: var(--shadow);
}

.panel h2 {
  font-size: 26px;
}

.tiers {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin: 16px 0;
}

.tier {
  border: 2px solid var(--line);
  background: #fff;
  border-radius: 14px;
  padding: 12px 10px;
  cursor: pointer;
  color: var(--navy);
}

.tier strong {
  display: block;
  font-size: 20px;
}

.tier span {
  display: block;
  font-size: 12px;
  color: var(--muted);
}

.tier.is-on {
  border-color: var(--gold);
  background: var(--gold-soft);
}

.field {
  margin: 10px 0;
}

.field label {
  display: block;
  font-size: 13px;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 4px;
}

.field input,
.field select {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 12px 14px;
  background: #fff;
}

.pay-methods {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin: 12px 0;
}

.pay-methods button {
  border: 2px solid var(--line);
  background: #fff;
  border-radius: 12px;
  padding: 10px 8px;
  cursor: pointer;
  font-weight: 700;
  color: var(--navy);
}

.pay-methods button.is-on {
  border-color: var(--navy);
  background: #eef3fb;
}

.hint,
.secure {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--muted);
  font-size: 13px;
}

[hidden] {
  display: none !important;
}

.error {
  color: var(--danger);
  font-weight: 700;
  min-height: 1.2em;
  margin: 8px 0;
}

.ok-msg {
  color: var(--ok);
  font-weight: 700;
}

.checkout-frame {
  display: none;
  margin-top: 16px;
  border: 1px solid var(--line);
  border-radius: 16px;
  overflow: hidden;
  background: #fff;
}

.checkout-frame.is-on {
  display: block;
}

.checkout-frame iframe {
  width: 100%;
  min-height: 640px;
  border: 0;
}

.site-footer {
  background: var(--navy-deep);
  color: #fff;
  padding: 48px 0 0;
  position: relative;
}

.footer-grid {
  display: grid;
  gap: 24px;
}

.footer-brand img {
  height: 52px;
  width: auto;
  background: #fff;
  padding: 10px 14px;
  border-radius: 14px;
}

.footer-mottos {
  display: grid;
  gap: 6px;
  color: var(--gold-soft);
  font-weight: 700;
}

.socials {
  display: flex;
  gap: 10px;
}

.socials a {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: #fff;
  text-decoration: none;
}

.socials a img {
  width: 22px;
  height: 22px;
  display: block;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 18px;
}

.footer-links a {
  color: rgba(255, 255, 255, 0.8);
  text-decoration: none;
}

.footer-official {
  margin: 24px 0 0;
  padding: 20px 0 80px;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  color: rgba(255, 255, 255, 0.75);
  font-size: 14px;
  line-height: 1.6;
}

.footer-official p {
  margin: 0 0 10px;
}

.footer-support {
  font-weight: 700;
  color: #fff;
}

.footer-contact-line a {
  color: rgba(255, 255, 255, 0.88);
  text-decoration: none;
}

.footer-contact-line a:hover,
.footer-contact-line a:focus-visible {
  text-decoration: underline;
}

.footer-legal {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.72);
  display: block;
  width: 100%;
}

html[dir="ltr"] .footer-legal {
  text-align: left;
  unicode-bidi: isolate;
}

.footer-copy {
  margin: 8px 0 0;
  padding: 0;
  border: 0;
  color: rgba(255, 255, 255, 0.6);
  font-size: 13px;
}

.skyline {
  display: block;
  width: 100%;
  max-width: none;
  height: 92px;
  margin-top: -1px;
  object-fit: cover;
  object-position: center 72%;
  opacity: 0.88;
}

.lang-switch-mobile {
  display: none;
}

@media (max-width: 839px) {
  .lang-switch-desk {
    display: none;
  }

  .header-tools .btn {
    padding: 8px 12px;
    font-size: 13px;
  }

  .brand-word {
    height: 36px;
    max-width: 42vw;
  }
}

@media (min-width: 840px) {
  .lang-switch-mobile {
    display: none !important;
  }
  .nav-toggle { display: none; }

  .primary-nav,
  body.nav-open .primary-nav {
    display: flex;
    position: static;
    flex-direction: row;
    flex: 1 1 auto;
    justify-content: center;
    gap: 12px;
    padding: 0;
    border: 0;
    box-shadow: none;
    background: transparent;
  }

  .primary-nav a {
    flex: 0 0 auto;
    font-size: 14px;
  }

  .site-header .wrap {
    width: min(1240px, calc(100% - 24px));
  }

  .brand-tag { display: none; }

  .hero-grid {
    grid-template-columns: 1.05fr 0.95fr;
    min-height: 720px;
  }

  .hero-copy { padding: 72px 0; }

  .icon-grid { grid-template-columns: repeat(4, 1fr); }
  .card-grid { grid-template-columns: repeat(4, 1fr); }
  .pillar-grid { grid-template-columns: repeat(3, 1fr); }
  .split-two { grid-template-columns: 1fr 1fr; }
  .action-grid { grid-template-columns: 1.05fr 0.95fr; }
  .footer-grid { grid-template-columns: 1.2fr 1fr 1fr; }
  .manifesto-grid { grid-template-columns: 1.1fr 0.9fr; }
}

@media (min-width: 840px) and (max-width: 1099px) {
  .primary-nav { gap: 8px; }
  .primary-nav a { font-size: 13px; }
  .lang-switch a { padding: 4px 6px; font-size: 11px; }
  .header-tools .btn { padding: 10px 14px; font-size: 14px; }
  .brand-word { height: 38px; }
}
