:root {
  --white: #ffffff;
  --teal: #49bbbd;
  --navy: #1f3d64;
  --ink: #1a202c;
  --rose: #c37f80;
  --pink: #edbad9;
  --pink-soft: #ebc0db;
  --pink-wash: #fef2f6;
  --green: #a9d48f;
  --sky: #b9e4ed;
  --nav-rule: #e3cbcb;
  --footer-rule: #feece9;
  --muted: #5b5b5b;
  --radius-lg: 16px;
  --radius-md: 11px;
  --shadow: 0 4px 4px rgba(0, 0, 0, 0.25);
  --font: "Rubik", "Heebo", "Assistant", sans-serif;
  --font-email: "Plus Jakarta Sans", "Rubik", sans-serif;
  --content: 75rem;
  --text-h1: clamp(2rem, 1.15rem + 2.6vw, 2.625rem);
  --text-h2: clamp(1.5rem, 1.05rem + 1.6vw, 1.875rem);
  --text-h3: clamp(1.25rem, 1.05rem + 0.55vw, 1.3125rem);
  --text-h4: clamp(1.0625rem, 0.98rem + 0.35vw, 1.25rem);
  --text-lead: 1rem;
  --text-body: 1rem;
  --lh-heading: 1.2;
  --lh-body: 1.7;
  --prose-measure: 47em;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  font-size: 100%;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font);
  font-size: var(--text-body);
  line-height: var(--lh-body);
  color: var(--navy);
  background: var(--white);
  position: relative;
  overflow-x: hidden;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

a,
button,
.nav-toggle-btn,
.btn-primary,
.btn-learn {
  cursor: pointer;
  transition: all 0.3s ease;
}

button {
  font-family: inherit;
  background: none;
  border: 0;
  padding: 0;
}

h1,
h2,
h3,
p {
  margin: 0;
}

h1,
h2,
h3 {
  line-height: var(--lh-heading);
}

h1 {
  font-size: var(--text-h1);
  font-weight: 700;
}

h2 {
  font-size: var(--text-h2);
  font-weight: 700;
}

h3 {
  font-size: var(--text-h3);
  font-weight: 600;
}

.lead {
  font-size: var(--text-lead);
  font-weight: 400;
  line-height: var(--lh-body);
}

/* Decorative background — not content layout */
.page-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
  background-image: url("assets/home/homeBG.png");
  background-repeat: no-repeat;
  background-position: top center;
  background-size: cover;
  background-attachment: scroll;
}

.site-header,
main,
.site-footer {
  position: relative;
  z-index: 1;
}

/* Layout: header */
.site-header {
  background: var(--white);
  border-bottom: 0.625rem solid var(--nav-rule);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 2.5rem;
  max-width: var(--content);
  margin: 0 auto;
  padding: 1.5rem 1.5rem;
}

.logo {
  flex-shrink: 0;
}

.logo img {
  width: 10.25rem;
  object-fit: contain;
}

.main-nav {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 2.5rem;
}

.main-nav a {
  width: fit-content;
  max-width: 100%;
  font-weight: 700;
  font-size: var(--text-body);
  padding: 0.75rem 0;
  white-space: nowrap;
  color: var(--teal);
  letter-spacing: -0.01em;
}

.main-nav a:hover {
  text-decoration: underline;
  text-underline-offset: 0.4rem;
}

/* Active page indicator — used in both the header and footer nav */
.active-nav-link {
  position: relative;
  color: #c37f80 !important;
  font-weight: 800;
}

.main-nav a.active-nav-link:hover,
.main-nav a.active-nav-link:focus-visible,
.footer-nav a.active-nav-link:hover,
.footer-nav a.active-nav-link:focus-visible {
  text-decoration: none;
}

.main-nav .active-nav-link::after,
.footer-nav .active-nav-link::after {
  content: "";
  position: absolute;
  right: 0;
  left: 0;
  bottom: 0.4rem;
  height: 0.125rem;
  background: #c37f80;
  border-radius: 999px;
}

.footer-nav .active-nav-link::after {
  bottom: -0.2rem;
}

.nav-toggle,
.nav-toggle-btn {
  display: none;
}

/* Layout: hero */
.hero {
  max-width: var(--content);
  margin: 0 auto;
  padding: 3.5rem 1.5rem 2.75rem;
}

.hero-copy {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 1rem;
  max-width: 45rem;
}

.hero h1 {
  letter-spacing: -0.02em;
  color: var(--rose);
}

.hero-logo {
  width: min(30rem, 100%);
  object-fit: contain;
}

.hero .lead {
  max-width: var(--prose-measure);
  text-wrap: pretty;
  letter-spacing: -0.02em;
}

.lead strong {
  font-weight: 700;
  display: block;
  margin-top: 0.4em;
}

/* Components: buttons */
.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 1rem 1.5rem;
  margin-top: 1.5rem;
  background: var(--rose);
  border: 1px solid var(--rose);
  box-shadow: var(--shadow);
  border-radius: var(--radius-lg);
  color: var(--white);
  font-weight: 700;
  font-size: var(--text-body);
  line-height: var(--lh-heading);
  letter-spacing: 0.5px;
}

.btn-primary:hover,
.btn-primary:focus-visible {
  filter: brightness(0.95);
}

.btn-learn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: fit-content;
  max-width: 100%;
  gap: 0.75rem;
  padding: 0.25rem 0.75rem 0.25rem 0.25rem;
  background: var(--pink-wash);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  font-weight: 700;
  font-size: var(--text-body);
  line-height: var(--lh-heading);
  letter-spacing: -0.15px;
  color: var(--navy);
}

.btn-learn-arrow {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.75rem;
  background: var(--pink-soft);
  border-radius: var(--radius-lg);
  flex-shrink: 0;
}

.btn-learn-arrow img {
  width: 1.75rem;
  height: auto;
  flex-shrink: 0;
  object-fit: contain;
  background: transparent;
}

.btn-learn:hover,
.btn-learn:focus-visible {
  filter: brightness(0.98);
}

/* Layout: features */
.features {
  max-width: var(--content);
  margin: 0 auto;
  padding: 2rem 1.5rem 3.25rem;
}

.features-head {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.75rem;
  margin-bottom: 2.25rem;
}

.features-head h2,
.know h2 {
  letter-spacing: -0.02em;
  color: var(--teal);
}

.features-head .lead {
  color: var(--ink);
}

.features-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr) auto minmax(0, 1fr);
  gap: 3rem 1.25rem;
  align-items: start;
}

.feature {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 1rem;
}

.feature-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 8.5rem;
  height: 8.5rem;
  flex-shrink: 0;
}

.feature-icon img {
  width: auto;
  height: auto;
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  background: transparent;
}

.feature-arrow {
  display: flex;
  align-items: center;
  justify-content: center;
  justify-self: center;
  width: 2.75rem;
  margin-top: 3rem;
  flex-shrink: 0;
  pointer-events: none;
}

.feature-arrow img {
  display: block;
  width: 2.5rem;
  height: auto;
  max-width: 100%;
  object-fit: contain;
  flex-shrink: 0;
  background: transparent;
}

.feature:nth-of-type(1) .feature-icon img {
  max-width: 88%;
  max-height: 88%;
}

.feature:nth-of-type(2) .feature-icon img {
  max-width: 100%;
  max-height: 100%;
}

.feature:nth-of-type(3) .feature-icon img {
  max-width: 92%;
  max-height: 92%;
}

.pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 8.5rem;
  padding: 0.5rem 1.5rem;
  border-radius: var(--radius-md);
  letter-spacing: -0.02em;
  color: var(--navy);
}

.pill-green {
  background: var(--green);
}

.pill-blue {
  background: var(--sky);
}

.pill-pink {
  background: var(--pink);
}

.pill-rose {
  background: var(--pink-soft);
}

.feature .lead {
  max-width: 18rem;
  letter-spacing: -0.02em;
}

/* Layout: learning card */
.know {
  max-width: var(--content);
  margin: 0 auto;
  padding: 1rem 1.5rem 3.75rem;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 1.15rem;
}

.learn-cards {
  display: flex;
  flex-wrap: wrap;
  align-items: stretch;
  gap: 1.5rem;
  width: 100%;
}

.learn-card {
  max-width: 23.5rem;
  width: 100%;
  background: var(--white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 2rem 1.25rem 1.5rem;
  gap: 1rem;
  text-align: center;
  transition: all 0.3s ease;
}

.learn-card .btn-learn {
  width: fit-content;
  max-width: 100%;
  margin-top: auto;
  justify-content: center;
  gap: 0.65rem;
  padding: 0.2rem 0.85rem 0.2rem 0.2rem;
  transition: all 0.2s ease;
}

.learn-card .btn-learn:hover {
  box-shadow: 0 8px 16px rgba(31, 61, 100, 0.16);
  transform: translateY(-2px);
  filter: none;
}

.learn-card .btn-learn:focus-visible {
  filter: none;
  outline: 2px solid #49bbbd;
  outline-offset: 2px;
}

.pill-coral {
  background: #f59a97;
  color: var(--navy);
}

.card--coral .btn-learn {
  background: #feece9;
  color: var(--navy);
}

.card--coral .btn-learn-arrow {
  background: #f59a97;
}

.learn-card-icon {
  width: auto;
  max-width: 70%;
  height: 8.75rem;
  margin: 0;
  flex-shrink: 0;
  object-fit: contain;
  background: transparent;
}

.card--coral .learn-card-icon {
  height: 10.5rem;
  max-width: none;
  margin-top: -1rem;
  margin-bottom: -0.75rem;
}

.learn-card-text {
  width: 100%;
  min-height: 4.5rem;
  margin: 0;
  letter-spacing: -0.02em;
}

/* Layout: footer */
.site-footer {
  background: var(--white);
  border-top: 0.625rem solid var(--footer-rule);
  padding: 3rem 3rem 1.25rem;
}

.footer-grid {
  max-width: var(--content);
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(16rem, 1.2fr) auto minmax(14rem, 1fr);
  gap: 2.5rem 3rem;
  align-items: start;
}

.footer-brand {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.75rem;
}

.footer-brand img {
  width: 12.5rem;
  object-fit: contain;
}

.footer-tagline {
  font-weight: 700;
  font-size: var(--text-body);
  letter-spacing: -0.02em;
  color: var(--teal);
}

.footer-support {
  font-weight: 700;
  font-size: var(--text-body);
  letter-spacing: -0.02em;
  max-width: 25rem;
}

.footer-email {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-email);
  font-weight: 700;
  font-size: var(--text-body);
  letter-spacing: -0.02em;
  direction: ltr;
  color: var(--navy);
  cursor: pointer;
}

.footer-email svg,
.footer-email img,
.footer-email-icon {
  width: 1.25rem;
  height: auto;
  flex-shrink: 0;
}

.footer-email:hover,
.footer-email:focus-visible {
  color: var(--teal);
}

.footer-nav {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 1.6rem;
  padding-top: 0.5rem;
}

.footer-nav a {
  width: fit-content;
  max-width: 100%;
  font-weight: 700;
  font-size: var(--text-body);
  letter-spacing: -0.02em;
  color: var(--teal);
}

.footer-nav a:hover,
.footer-nav a:focus-visible {
  color: var(--teal);
  text-decoration: underline;
  text-underline-offset: 0.4rem;
}

.footer-partners {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  flex-wrap: wrap;
  gap: 2rem;
}

.footer-partners img {
  width: auto;
  height: 4.75rem;
  max-width: 100%;
  object-fit: contain;
  flex-shrink: 0;
  background: transparent;
}

.footer-partners img.logo-mofet {
  height: 5rem;
}

.footer-partners img.logo-hinuch {
  height: 6rem;
}

.footer-partners img.logo-leon {
  height: 6.5rem;
}


@media (max-width: 64rem) {
  .features-grid {
    gap: 2.5rem 1.25rem;
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }

  .footer-partners {
    grid-column: 1 / -1;
    justify-content: flex-start;
  }
}

@media (max-width: 51.25rem) {
  .header-inner {
    flex-wrap: wrap;
  }

  .nav-toggle-btn {
    display: inline-flex;
    flex-direction: column;
    justify-content: center;
    gap: 0.3rem;
    min-width: 2.75rem;
    min-height: 2.75rem;
    padding: 0.75rem;
    margin-inline-start: auto;
  }

  .nav-toggle-btn span {
    display: block;
    width: 1.375rem;
    height: 0.2rem;
    background: var(--teal);
    border-radius: 2px;
  }

  .main-nav {
    display: none;
    width: 100%;
    max-height: calc(100dvh - 5.5rem);
    overflow-y: auto;
  }

  .nav-toggle:checked ~ .main-nav {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.5rem;
  }
}

@media (max-width: 47.9375rem) {
  :root {
    --text-h1: 2rem;
    --text-h2: 1.5rem;
    --text-h3: 1.25rem;
    --text-lead: 1rem;
  }

  .header-inner {
    flex-wrap: wrap;
    padding: 1rem;
    gap: 0.75rem;
  }

  .logo img {
    width: 8.25rem;
  }

  .nav-toggle-btn {
    display: inline-flex;
    flex-direction: column;
    justify-content: center;
    gap: 0.3rem;
    padding: 0.75rem;
    margin-inline-start: auto;
  }

  .nav-toggle-btn span {
    display: block;
    width: 1.375rem;
    height: 0.2rem;
    background: var(--teal);
    border-radius: 2px;
  }

  .main-nav {
    display: none;
    width: 100%;
  }

  .nav-toggle:checked ~ .main-nav {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.5rem;
    order: 4;
  }

  .hero {
    padding: 2rem 1.25rem 1.65rem;
  }

  .hero-copy {
    max-width: none;
  }

  .btn-primary {
    align-self: stretch;
  }

  .features-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .feature-arrow {
    margin-top: 0;
    transform: rotate(-90deg);
  }

  .know {
    padding: 0.75rem 1.25rem 3rem;
  }

  .learn-cards {
    flex-direction: column;
    align-items: flex-start;
  }

  .learn-card {
    max-width: 23.5rem;
  }

  .learn-card-icon {
    max-width: 70%;
    height: 8.75rem;
  }

  .card--coral .learn-card-icon {
    height: 10.5rem;
    max-width: none;
  }

  .site-footer {
    padding: 2rem 1.25rem 1.25rem;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .footer-nav {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    align-items: center;
    gap: 0.75rem 1rem;
    width: 100%;
    padding-top: 0;
    text-align: right;
  }

  .footer-nav a,
  .footer-nav .about-nav-trigger {
    display: inline-flex;
    align-items: center;
    justify-content: flex-start;
    justify-self: start;
    width: fit-content;
    max-width: 100%;
    min-height: 2.75rem;
    margin: 0;
    padding: 0.35rem 0;
    line-height: 1.45;
    box-sizing: border-box;
  }

  .footer-brand img {
    width: 10.25rem;
  }

  .footer-partners {
    justify-content: flex-start;
    gap: 1.5rem;
  }

  .footer-partners img {
    height: 3.5rem;
  }

  .footer-partners img.logo-mofet {
    height: 3.75rem;
  }

  .footer-partners img.logo-hinuch {
    height: 4.5rem;
  }

  .footer-partners img.logo-leon {
    height: 5rem;
  }
}

/* Keyboard focus: one turquoise ring on every interactive control. */
:focus:not(:focus-visible) {
  outline: none;
}

:focus-visible {
  outline: 2px solid #49BBBD;
  outline-offset: 2px;
}
