@import url("https://fonts.googleapis.com/css2?family=IBM+Plex+Sans+Arabic:wght@400;500;600;700&family=Noto+Sans+Arabic:wght@400;600;700&display=swap");

:root {
  --blue: #1c5b87;
  --blue-dark: #13415f;
  --terracotta: #d98e5a;
  --green: #3f8f6b;
  --sand: #f6f0e6;
  --sand-strong: #eadfcf;
  --ink: #23201c;
  --muted: #6e665d;
  --white: #fffdf8;
  --line: rgba(35, 32, 28, 0.14);
  --shadow: 0 18px 55px rgba(28, 91, 135, 0.14);
  --radius: 8px;
  --font-body: "IBM Plex Sans Arabic", "Noto Sans Arabic", "Cairo", system-ui, sans-serif;
  --font-display: "IBM Plex Sans Arabic", "Noto Sans Arabic", Georgia, serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--sand);
  color: var(--ink);
  font-family: var(--font-body);
  line-height: 1.6;
}

body.no-scroll {
  overflow: hidden;
}

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

a {
  color: inherit;
}

button,
input,
select {
  font: inherit;
}

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

.section {
  padding: 72px 0;
}

.skip-link {
  position: fixed;
  inset-block-start: 12px;
  inset-inline-start: 12px;
  z-index: 100;
  translate: 0 -160%;
  background: var(--ink);
  color: var(--white);
  padding: 10px 14px;
  border-radius: var(--radius);
}

.skip-link:focus {
  translate: 0;
}

.site-header {
  position: sticky;
  inset-block-start: 0;
  z-index: 50;
  background: rgba(246, 240, 230, 0.92);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(14px);
}

.nav {
  min-height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

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

.brand-mark {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--blue);
  color: var(--white);
  font-weight: 700;
  font-size: 1.35rem;
  box-shadow: inset 0 -4px 0 rgba(0, 0, 0, 0.14);
}

.brand strong {
  display: block;
  font-family: var(--font-display);
  font-size: 1.35rem;
  line-height: 1;
}

.brand small {
  display: block;
  color: var(--muted);
  font-size: 0.78rem;
  margin-top: 3px;
}

.nav-links,
.nav-actions {
  display: flex;
  align-items: center;
  gap: 14px;
}

.nav-links a {
  text-decoration: none;
  color: var(--muted);
  font-weight: 600;
  font-size: 0.95rem;
}

.nav-links a:hover,
.nav-links a:focus {
  color: var(--blue);
}

.language-switcher {
  display: flex;
  border: 1px solid var(--line);
  background: var(--white);
  border-radius: 999px;
  padding: 3px;
}

.lang-btn {
  min-width: 42px;
  border: 0;
  background: transparent;
  color: var(--muted);
  border-radius: 999px;
  padding: 7px 9px;
  cursor: pointer;
  font-weight: 700;
}

.lang-btn.active {
  background: var(--blue);
  color: var(--white);
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  border: 0;
  border-radius: var(--radius);
  padding: 12px 18px;
  text-decoration: none;
  font-weight: 800;
  cursor: pointer;
  transition: transform 160ms ease, box-shadow 160ms ease, background 160ms ease;
}

.button:hover,
.button:focus {
  transform: translateY(-1px);
}

.button-primary {
  background: var(--terracotta);
  color: #21160f;
  box-shadow: 0 12px 28px rgba(217, 142, 90, 0.28);
}

.button-secondary {
  background: var(--blue);
  color: var(--white);
  box-shadow: 0 12px 28px rgba(28, 91, 135, 0.22);
}

.menu-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
}

.menu-toggle span {
  display: block;
  width: 20px;
  height: 2px;
  margin: 4px auto;
  background: var(--ink);
}

.hero {
  position: relative;
  min-height: calc(100svh - 72px);
  display: grid;
  align-items: center;
  overflow: hidden;
  padding: 92px 0 84px;
  /* Fallback background in case the <img> doesn't load on some hosts */
  background-image: url("assets/jiwar-neighborhood-hero.jpg");
  background-size: cover;
  background-position: 62% center;
  background-repeat: no-repeat;
}

.hero-media,
.hero-overlay {
  position: absolute;
  inset: 0;
}

.hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 62% center;
}

.hero-overlay {
  /* Slightly reduced opacity so underlying hero image remains visible */
  background:
    linear-gradient(90deg, rgba(246, 240, 230, 0.62) 0%, rgba(246, 240, 230, 0.48) 38%, rgba(246, 240, 230, 0.18) 72%),
    linear-gradient(0deg, rgba(35, 32, 28, 0.12), rgba(35, 32, 28, 0.02));
}

.hero-grid {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 620px) 1fr;
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--blue-dark);
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0;
  font-size: 0.82rem;
}

h1,
h2,
h3 {
  margin: 0;
  font-family: var(--font-display);
  line-height: 1.08;
  letter-spacing: 0;
}

h1 {
  max-width: 11ch;
  font-size: clamp(3rem, 8vw, 6.8rem);
}

h2 {
  font-size: clamp(2rem, 5vw, 4rem);
}

h3 {
  font-size: 1.25rem;
}

p {
  margin: 0;
}

.hero-subtitle {
  max-width: 620px;
  margin-top: 18px;
  font-size: clamp(1.15rem, 2vw, 1.45rem);
  color: #3b352e;
}

.trust-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 24px 0;
}

.trust-strip span {
  background: rgba(255, 253, 248, 0.82);
  border: 1px solid rgba(28, 91, 135, 0.18);
  border-radius: 999px;
  padding: 8px 12px;
  color: var(--blue-dark);
  font-weight: 800;
}

.signup-form {
  display: grid;
  gap: 10px;
}

.compact {
  grid-template-columns: minmax(0, 280px) auto;
  align-items: start;
  max-width: 540px;
}

.partner-form,
.full-form {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px;
  box-shadow: var(--shadow);
}

.signup-form label {
  font-weight: 800;
}

.signup-form input,
.signup-form select {
  width: 100%;
  min-height: 48px;
  border: 1px solid rgba(35, 32, 28, 0.22);
  border-radius: var(--radius);
  background: var(--white);
  color: var(--ink);
  padding: 10px 12px;
}

.signup-form input:focus,
.signup-form select:focus,
.button:focus-visible,
.lang-btn:focus-visible,
.menu-toggle:focus-visible {
  outline: 3px solid rgba(63, 143, 107, 0.38);
  outline-offset: 2px;
}

.form-status {
  grid-column: 1 / -1;
  min-height: 24px;
  color: var(--blue-dark);
  font-weight: 700;
}

.form-status.error {
  color: #9a2e16;
}

.fineprint {
  max-width: 560px;
  margin-top: 10px;
  color: var(--muted);
  font-size: 0.92rem;
}

.intro-band,
.impact-section {
  background: var(--white);
  border-block: 1px solid var(--line);
}

.two-column,
.time-grid,
.trust-layout,
.partner-panel,
.waitlist-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 44px;
  align-items: center;
}

.two-column p,
.time-grid p,
.trust-layout p,
.partner-panel p,
.waitlist-layout p {
  color: var(--muted);
  font-size: 1.08rem;
}

.section-heading {
  max-width: 760px;
  margin-bottom: 28px;
}

.steps-grid,
.service-grid,
.audience-grid,
.trust-grid {
  display: grid;
  gap: 16px;
}

.steps-grid {
  grid-template-columns: repeat(4, 1fr);
}

.service-grid {
  grid-template-columns: repeat(4, 1fr);
}

.audience-grid,
.trust-grid {
  grid-template-columns: repeat(2, 1fr);
}

.step-card,
.service-card,
.audience-card,
.trust-card,
.faq-item {
  border: 1px solid var(--line);
  background: var(--white);
  border-radius: var(--radius);
  padding: 20px;
  box-shadow: 0 10px 30px rgba(35, 32, 28, 0.06);
}

.step-card .icon,
.service-card .icon,
.trust-card .icon {
  display: inline-grid;
  place-items: center;
  width: 48px;
  height: 48px;
  margin-bottom: 16px;
  border-radius: 50%;
  background: var(--sand-strong);
  color: var(--blue-dark);
  font-weight: 900;
}

.service-card .icon,
.trust-card .icon {
  background: rgba(63, 143, 107, 0.14);
  color: var(--green);
  font-size: 1.35rem;
}

.step-card p,
.service-card p,
.audience-card p,
.trust-card p,
.faq-item p {
  color: var(--muted);
  margin-top: 8px;
}

.time-section {
  background: var(--blue);
  color: var(--white);
}

.time-section .eyebrow,
.time-section p,
.time-section .check-list {
  color: rgba(255, 253, 248, 0.88);
}

.check-list {
  margin: 22px 0 0;
  padding: 0;
  list-style: none;
}

.check-list li {
  margin-top: 12px;
  padding-inline-start: 28px;
  position: relative;
}

.check-list li::before {
  content: "";
  position: absolute;
  inset-inline-start: 0;
  inset-block-start: 0.72em;
  width: 13px;
  height: 8px;
  border-inline-start: 3px solid var(--terracotta);
  border-block-end: 3px solid var(--terracotta);
  rotate: -45deg;
}

.time-visual {
  min-height: 360px;
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: var(--radius);
  background:
    radial-gradient(circle at 20% 20%, rgba(217, 142, 90, 0.18), transparent 28%),
    rgba(255, 253, 248, 0.08);
  display: grid;
  place-items: center;
  padding: 24px;
  position: relative;
}

.clock-ring {
  width: 138px;
  aspect-ratio: 1;
  display: grid;
  place-items: center;
  border: 10px solid var(--terracotta);
  border-radius: 50%;
  background: var(--white);
  color: var(--ink);
  font-size: 2.2rem;
  font-weight: 900;
  animation: pulse 3.8s ease-in-out infinite;
}

.clock-ring.received {
  border-color: var(--green);
  animation-delay: 1.2s;
}

.exchange-line {
  width: min(240px, 54vw);
  height: 4px;
  background: linear-gradient(90deg, var(--terracotta), var(--green));
  border-radius: 999px;
}

.time-visual p {
  color: var(--white);
  font-weight: 900;
  text-align: center;
}

@keyframes pulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.04); }
}

.trust-section {
  background: var(--sand-strong);
}

.partner-section {
  background: var(--white);
}

.partner-panel {
  background: var(--sand);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: clamp(22px, 5vw, 46px);
}

.faq-list {
  display: grid;
  gap: 10px;
}

.faq-item summary {
  cursor: pointer;
  font-weight: 900;
  list-style: none;
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item summary::after {
  content: "+";
  float: inline-end;
  color: var(--blue);
}

.faq-item[open] summary::after {
  content: "-";
}

.waitlist-section {
  background:
    linear-gradient(180deg, rgba(28, 91, 135, 0.06), rgba(63, 143, 107, 0.08)),
    var(--sand);
}

.footer {
  background: var(--ink);
  color: var(--white);
  padding: 44px 0;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr 1.2fr;
  gap: 30px;
}

.footer h2 {
  font-family: var(--font-body);
  font-size: 1rem;
  margin-bottom: 8px;
}

.footer p,
.footer a {
  color: rgba(255, 253, 248, 0.76);
}

.socials {
  display: flex;
  gap: 12px;
  margin-top: 10px;
}

.cookie-banner {
  position: fixed;
  inset-inline: 16px;
  inset-block-end: 16px;
  z-index: 80;
  display: none;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  max-width: 880px;
  margin-inline: auto;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
  box-shadow: var(--shadow);
}

.cookie-banner.show {
  display: flex;
}

.cookie-banner p {
  color: var(--muted);
}

.mobile-sticky-cta {
  position: fixed;
  inset-inline: 16px;
  inset-block-end: 14px;
  z-index: 60;
  display: none;
  min-height: 48px;
  place-items: center;
  border-radius: var(--radius);
  background: var(--terracotta);
  color: #21160f;
  text-decoration: none;
  font-weight: 900;
  box-shadow: 0 16px 34px rgba(35, 32, 28, 0.22);
}

.cookie-banner.show + .mobile-sticky-cta {
  display: none;
}

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

[dir="rtl"] .hero-overlay {
  background:
    linear-gradient(270deg, rgba(246, 240, 230, 0.62) 0%, rgba(246, 240, 230, 0.48) 38%, rgba(246, 240, 230, 0.18) 72%),
    linear-gradient(0deg, rgba(35, 32, 28, 0.12), rgba(35, 32, 28, 0.02));
}

[dir="rtl"] .hero-media img {
  object-position: 38% center;
}

[dir="rtl"] .check-list li::before {
  rotate: 45deg;
}

@media (max-width: 940px) {
  .menu-toggle {
    display: block;
  }

  .nav-links {
    position: fixed;
    inset: 72px 0 auto;
    display: none;
    flex-direction: column;
    align-items: stretch;
    padding: 18px;
    background: var(--sand);
    border-bottom: 1px solid var(--line);
  }

  .nav-links.open {
    display: flex;
  }

  .header-cta {
    display: none;
  }

  .hero {
    min-height: auto;
    padding-top: 118px;
  }

  .hero-grid,
  .two-column,
  .time-grid,
  .trust-layout,
  .partner-panel,
  .waitlist-layout,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .steps-grid,
  .service-grid,
  .audience-grid,
  .trust-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 620px) {
  .section {
    padding: 54px 0;
  }

  .shell {
    width: min(100% - 24px, 1120px);
  }

  .nav {
    min-height: 68px;
  }

  .brand small {
    display: none;
  }

  .nav-actions {
    margin-inline-start: auto;
  }

  .language-switcher {
    max-width: 138px;
  }

  .lang-btn {
    min-width: 34px;
    padding-inline: 7px;
    font-size: 0.82rem;
  }

  .hero {
    padding-block: 94px 72px;
  }

  .hero-overlay,
  [dir="rtl"] .hero-overlay {
    background:
      linear-gradient(180deg, rgba(246, 240, 230, 0.7) 0%, rgba(246, 240, 230, 0.64) 50%, rgba(246, 240, 230, 0.5) 100%);
  }

  h1 {
    max-width: 9ch;
  }

  .compact {
    grid-template-columns: 1fr;
  }

  .steps-grid,
  .service-grid,
  .audience-grid,
  .trust-grid {
    grid-template-columns: 1fr;
  }

  .time-visual {
    min-height: 300px;
  }

  .cookie-banner {
    align-items: center;
    inset-block-end: 16px;
    padding: 10px;
    font-size: 0.9rem;
  }

  .cookie-banner .button {
    min-width: 96px;
    padding-inline: 12px;
  }

  .mobile-sticky-cta {
    display: grid;
  }
}

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