:root {
  --navy: #0b95b5;
  --green: #16935f;
  --green-dark: #11784d;
  --text: #16384b;
  --muted: #627a88;
  --line: #d4e8ea;
  --bg: #f3fbfb;
  --white: #ffffff;
  --shadow: 0 18px 45px rgba(11, 90, 109, 0.10);
  --radius: 18px;
  --container: 1180px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: Inter, Arial, Helvetica, sans-serif;
  color: var(--text);
  background: var(--white);
  line-height: 1.65;
}

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

a {
  color: inherit;
  text-decoration: none;
}

p {
  margin: 0 0 1rem;
}

ul {
  margin: 0;
  padding-left: 1.2rem;
}

.container {
  width: min(var(--container), calc(100% - 2rem));
  margin: 0 auto;
}

.section {
  padding: 5.5rem 0;
}

.section-alt {
  background: var(--bg);
}

.section-title {
  margin: 0 0 1rem;
  text-align: center;
  font-size: clamp(2rem, 4vw, 3rem);
  line-height: 1.15;
  color: var(--navy);
}

.section-title.left {
  text-align: left;
}

.section-intro {
  max-width: 760px;
  margin: 0 auto 2.5rem;
  text-align: center;
  color: var(--muted);
  font-size: 1.05rem;
}

.section-content.narrow {
  max-width: 800px;
  margin: 0 auto;
  font-size: 1.05rem;
}

.emphasis {
  font-weight: 700;
  color: var(--navy);
}

.nav {
  position: sticky;
  top: 0;
  z-index: 30;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(212, 232, 234, 0.9);
}

.nav-container {
  width: min(var(--container), calc(100% - 2rem));
  margin: 0 auto;
  min-height: 108px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.nav-brand,
.footer-brand {
  display: flex;
  align-items: center;
}

.nav-brand {
  flex: 0 0 auto;
  margin-right: clamp(1.25rem, 3vw, 3.2rem);
}

.nav-logo {
  width: min(280px, 42vw);
  height: auto;
  object-fit: contain;
}

.footer-logo {
  width: min(220px, 48vw);
  height: auto;
  object-fit: contain;
}

.nav-menu {
  display: flex;
  flex: 1 1 auto;
  align-items: center;
  justify-content: flex-end;
  gap: 1.4rem;
  list-style: none;
  padding: 0;
  margin: 0;
}

.nav-menu a {
  color: var(--text);
  font-weight: 600;
}

.nav-cta {
  padding: 0.8rem 1rem;
  border-radius: 999px;
  background: var(--navy);
  color: #fff !important;
}

.nav-toggle {
  display: none;
  background: transparent;
  border: 0;
  padding: 0;
  cursor: pointer;
}

.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  margin: 5px 0;
  border-radius: 999px;
  background: var(--navy);
  transition: 0.25s ease;
}

.hero {
  position: relative;
  overflow: hidden;
  padding: 6.4rem 0 5.1rem;
  min-height: 72vh;
  background: url("assets/hero-bess.png") center center / cover no-repeat;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(255, 255, 255, 0.42) 0%, rgba(255, 255, 255, 0.22) 34%, rgba(255, 255, 255, 0.12) 60%, rgba(255, 255, 255, 0.08) 100%);
  pointer-events: none;
}

.hero-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  align-items: center;
}

.hero-content {
  max-width: 860px;
  padding: 1.5rem 1.6rem 1.35rem;
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.56);
  -webkit-backdrop-filter: blur(14px) saturate(125%);
  backdrop-filter: blur(14px) saturate(125%);
  border: 1px solid rgba(255, 255, 255, 0.48);
  box-shadow: 0 18px 42px rgba(11, 90, 109, 0.16);
}

.hero-headline {
  margin: 0 0 1rem;
  font-size: clamp(2.75rem, 6vw, 4.9rem);
  line-height: 0.96;
  letter-spacing: -0.03em;
  color: #0b1f2b;
  text-shadow: 0 1px 12px rgba(255, 255, 255, 0.72);
}

.hero-subheadline {
  font-size: 1.36rem;
  color: #133949;
  max-width: 780px;
  font-weight: 700;
  text-shadow: 0 1px 10px rgba(255, 255, 255, 0.7);
}

.hero-supporting {
  color: #1f4759;
  max-width: 760px;
  font-size: 1.08rem;
  font-weight: 600;
  text-shadow: 0 1px 10px rgba(255, 255, 255, 0.66);
}

.hero-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem;
  margin-top: 1.6rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 50px;
  padding: 0.85rem 1.2rem;
  border-radius: 999px;
  border: 1px solid transparent;
  font-weight: 700;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 12px 24px rgba(11, 90, 109, 0.16);
}

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

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

.btn-outline {
  border-color: rgba(11, 149, 181, 0.22);
  background: rgba(255, 255, 255, 0.9);
  color: var(--navy);
}

.btn-full {
  width: 100%;
}

.hero-panel-card,
.insight-card,
.contact-info,
.profile-card,
.vision-card,
.memorial-header-card,
.memorial-panel {
  background: #fff;
  border: 1px solid rgba(212, 232, 234, 0.92);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.hero-panel-card {
  padding: 2rem;
}

.hero-panel-card h2 {
  margin-top: 0;
  margin-bottom: 1rem;
  color: var(--navy);
  font-size: 1.35rem;
}

.panel-list {
  padding-left: 1.1rem;
  color: var(--muted);
}

.two-column {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 2rem;
  align-items: start;
}

.insight-card {
  padding: 2rem;
}

.insight-card h3 {
  margin-top: 0;
  color: var(--navy);
}

.value-list li + li {
  margin-top: 0.6rem;
}

.vision-content > p:last-child {
  margin-bottom: 0;
}

.vision-card {
  margin: 1.5rem 0;
  padding: 1.5rem 1.6rem;
}

.vision-highlight {
  margin-top: 1.7rem;
  margin-bottom: 0;
  padding: 1.2rem 1.3rem;
  border-left: 5px solid var(--green);
  border-radius: 16px;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.98), rgba(227, 246, 240, 0.92));
  box-shadow: 0 14px 32px rgba(11, 90, 109, 0.12);
  font-weight: 800;
  color: #0e3142;
}

html[dir="rtl"] .vision-highlight {
  border-left: 0;
  border-right: 5px solid var(--green);
}

.vision-lead {
  margin-bottom: 0.75rem;
  font-weight: 700;
  color: var(--navy);
}

.team-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.2rem;
  margin-top: 2rem;
  max-width: 980px;
  margin-left: auto;
  margin-right: auto;
}

.advisory-grid {
  margin-top: 0;
}

.profile-card {
  overflow: hidden;
}

.profile-card-horizontal {
  display: flex;
  flex-direction: row-reverse;
  align-items: stretch;
  min-height: 0;
}

.profile-photo {
  width: 220px;
  min-width: 220px;
  height: 220px;
  object-fit: cover;
  object-position: center;
  border-left: 1px solid rgba(212, 232, 234, 0.92);
  display: block;
}

.profile-photo-naftali {
  object-position: center 20%;
}


.profile-card-horizontal .profile-photo {
  min-height: 220px;
  height: auto;
  align-self: stretch;
}

.profile-body {
  flex: 1;
  padding: 1.35rem 1.55rem 1.35rem;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: flex-start;
  text-align: left;
}

.profile-kicker {
  margin-bottom: 0.3rem;
  color: var(--green-dark);
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.76rem;
}

.profile-body h3 {
  margin: 0 0 0.25rem;
  color: var(--navy);
  font-size: 1.35rem;
}

.role {
  margin-bottom: 0.8rem;
  color: var(--muted);
  font-weight: 700;
}

.advisory-block {
  margin-top: 2.5rem;
}

.advisory-header {
  max-width: 760px;
  margin-bottom: 1.5rem;
}

.advisory-header h3 {
  margin-bottom: 0.5rem;
  font-size: 1.5rem;
  color: var(--navy);
}

.memorial-container {
  max-width: 980px;
}

.memorial-header-card {
  display: flex;
  align-items: center;
  gap: 1.2rem;
  padding: 1.25rem 1.4rem;
  margin: 0 auto 1.5rem;
}

.memorial-photo {
  width: 108px;
  height: 108px;
  border-radius: 50%;
  object-fit: cover;
  object-position: center;
  flex: 0 0 108px;
}

.memorial-header-copy {
  min-width: 0;
}

.memorial-dates {
  margin-bottom: 0.4rem;
  font-weight: 800;
  color: var(--navy);
}

.memorial-summary {
  margin-bottom: 0;
  color: var(--muted);
}

.memorial-tabs {
  display: flex;
  justify-content: center;
  gap: 0.75rem;
  margin-bottom: 1rem;
}

.memorial-tab {
  appearance: none;
  border: 1px solid rgba(11, 149, 181, 0.18);
  background: #fff;
  color: var(--navy);
  border-radius: 999px;
  padding: 0.65rem 1rem;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.memorial-tab:hover {
  transform: translateY(-1px);
  box-shadow: 0 10px 20px rgba(11, 90, 109, 0.10);
}

.memorial-tab.is-active {
  background: var(--navy);
  color: #fff;
}

.memorial-panel {
  padding: 1.6rem 1.7rem;
  max-width: 980px;
  margin: 0 auto;
}

.memorial-panel h3 {
  margin-top: 0;
  margin-bottom: 1rem;
  color: var(--navy);
  font-size: 1.55rem;
}

.memorial-panel p:last-child {
  margin-bottom: 0;
}

.memorial-panel-he {
  text-align: right;
}

.memorial-dates-he {
  font-weight: 700;
}

.memorial-closing {
  margin-top: 1.25rem;
  font-weight: 700;
  color: var(--navy);
}

.contact-wrapper {
  display: grid;
  grid-template-columns: 0.72fr 1.28fr;
  gap: 1.5rem;
  align-items: start;
}

.contact-info,
.contact-form {
  padding: 1.5rem;
}

.contact-info {
  height: fit-content;
  align-self: start;
}

.contact-info h3 {
  margin-top: 0;
  color: var(--navy);
}

.contact-email {
  margin-bottom: 0;
}

.contact-email a {
  font-size: 1.25rem;
  color: var(--navy);
  font-weight: 800;
}

.contact-form {
  background: #fff;
  border: 1px solid rgba(212, 232, 234, 0.92);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.form-group + .form-group {
  margin-top: 1rem;
}

label {
  display: block;
  margin-bottom: 0.45rem;
  font-weight: 700;
  color: var(--text);
}

input,
select,
textarea {
  width: 100%;
  padding: 0.95rem 1rem;
  border: 1px solid #cfdbe6;
  border-radius: 14px;
  font: inherit;
  color: var(--text);
  background: #fff;
}

input:focus,
select:focus,
textarea:focus {
  outline: none;
  border-color: rgba(11, 149, 181, 0.45);
  box-shadow: 0 0 0 4px rgba(11, 149, 181, 0.10);
}

textarea {
  resize: vertical;
  min-height: 140px;
}


input[type="email"],
input[type="tel"] {
  direction: ltr;
  text-align: left;
}

.footer {
  padding: 2.4rem 0 1.2rem;
  border-top: 1px solid rgba(212, 232, 234, 0.92);
  background: #fff;
}

.footer-content,
.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.footer-contact a {
  color: var(--navy);
  font-weight: 700;
}


.footer-social-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 999px;
  color: var(--navy);
  text-decoration: none;
  border: 1px solid rgba(212, 232, 234, 0.95);
  background: rgba(245, 251, 252, 0.9);
}

.footer-social-link svg {
  width: 1.15rem;
  height: 1.15rem;
  fill: currentColor;
  flex: 0 0 auto;
}

.footer-social-link:hover {
  color: var(--teal);
  border-color: rgba(0, 162, 208, 0.28);
}

.footer-bottom {
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid rgba(212, 232, 234, 0.92);
  color: var(--muted);
  font-size: 0.95rem;
}

.lifecycle-section {
  background: #f8f8f8;
}

.lifecycle-figure {
  margin: 0 auto;
}


.lifecycle-figure img {
  width: 100%;
  height: auto;
}


.profile-photo-eliyahu {
  object-position: center 16%;
}


.profile-card-eliyahu .profile-body {
  padding-top: 1.15rem;
  padding-bottom: 1.1rem;
}

.profile-card-eliyahu .profile-kicker {
  margin-bottom: 0.2rem;
}

.profile-card-eliyahu .profile-body h3 {
  margin-bottom: 0.2rem;
  line-height: 1.15;
}

.profile-card-eliyahu .role {
  margin-bottom: 0.55rem;
  font-size: 0.98rem;
  line-height: 1.35;
}

.profile-card-eliyahu .profile-body p:last-child {
  font-size: 0.93rem;
  line-height: 1.45;
}

.founders-grid .profile-body p:last-child,
.advisory-grid .profile-body p:last-child {
  margin-bottom: 0;
}

.advisory-header {
  max-width: 980px;
  margin: 0 auto 1.5rem;
}

.advisory-header p {
  margin-bottom: 0;
}

.contact-info {
  max-width: 340px;
}

.hero-panel {
  display: none;
}

.section-content.narrow p + p {
  margin-top: 1rem;
}


.founders-grid .profile-card,
.advisory-grid .profile-card {
  min-height: 220px;
}

.founders-grid .profile-body,
.advisory-grid .profile-body {
  padding-right: 1.55rem;
}

.founders-grid .profile-kicker,
.advisory-grid .profile-kicker,
.founders-grid .profile-body h3,
.advisory-grid .profile-body h3,
.founders-grid .role,
.advisory-grid .role,
.founders-grid .profile-body p,
.advisory-grid .profile-body p {
  text-align: left;
}


@media (min-width: 701px) {
  .profile-card-eliyahu {
    height: 220px;
    min-height: 220px;
  }
}

@media (max-width: 1040px) {
  .hero-grid,
  .two-column,
  .contact-wrapper {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: 0;
  }
}

@media (max-width: 860px) {
  .nav-toggle {
    display: inline-block;
  }

  .nav-logo {
    width: min(240px, 58vw);
  }

  .nav-menu {
    position: absolute;
    right: 1rem;
    top: calc(100% + 0.5rem);
    width: min(320px, calc(100vw - 2rem));
    padding: 1rem;
    background: #fff;
    border: 1px solid rgba(212, 232, 234, 0.95);
    border-radius: 18px;
    box-shadow: var(--shadow);
    display: none;
    flex-direction: column;
    align-items: stretch;
  }

  .nav-menu.active {
    display: flex;
  }

  .hero-content {
    padding: 1.15rem 1.2rem 1.05rem;
  }

  .profile-photo {
    width: 180px;
    min-width: 180px;
    height: 180px;
  }
}

@media (max-width: 700px) {
  .profile-card-horizontal {
    flex-direction: column;
  }

  .profile-photo {
    width: 100%;
    min-width: 100%;
    height: 260px;
    border-left: 0;
    border-bottom: 1px solid rgba(212, 232, 234, 0.92);
  }
}

@media (max-width: 640px) {
  .section {
    padding: 4.25rem 0;
  }

  .hero {
    padding: 6rem 0 4rem;
  }

  .nav-container {
    min-height: 88px;
  }

  .nav-logo {
    width: min(210px, 60vw);
  }

  .footer-logo {
    width: min(180px, 58vw);
  }

  .footer-content,
  .footer-bottom {
    flex-direction: column;
    align-items: flex-start;
  }

  .memorial-header-card {
    flex-direction: column;
    text-align: center;
  }

  .memorial-panel {
    padding: 1.35rem 1.1rem;
  }
}


.nav-right {
  display: flex;
  flex: 0 0 auto;
  align-items: center;
  gap: 0.9rem;
  margin-left: 1rem;
}

.lang-switcher {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.28rem;
  border: 1px solid rgba(212, 232, 234, 0.95);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 8px 18px rgba(11, 90, 109, 0.08);
  direction: ltr;
}

.lang-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 44px;
  min-height: 36px;
  padding: 0.45rem 0.7rem;
  border-radius: 999px;
  font-size: 0.84rem;
  font-weight: 800;
  color: var(--navy);
  transition: background 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

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

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

html[dir="rtl"] body {
  text-align: right;
}

html[dir="rtl"] .section-title.left,
html[dir="rtl"] .advisory-header,
html[dir="rtl"] .contact-info,
html[dir="rtl"] .profile-body,
html[dir="rtl"] .founders-grid .profile-kicker,
html[dir="rtl"] .advisory-grid .profile-kicker,
html[dir="rtl"] .founders-grid .profile-body h3,
html[dir="rtl"] .advisory-grid .profile-body h3,
html[dir="rtl"] .founders-grid .role,
html[dir="rtl"] .advisory-grid .role,
html[dir="rtl"] .founders-grid .profile-body p,
html[dir="rtl"] .advisory-grid .profile-body p,
html[dir="rtl"] .memorial-panel,
html[dir="rtl"] .vision-content,
html[dir="rtl"] .section-content.narrow,
html[dir="rtl"] label,
html[dir="rtl"] .footer-content,
html[dir="rtl"] .footer-bottom {
  text-align: right;
}

html[dir="rtl"] .profile-body {
  align-items: flex-start;
}

html[dir="rtl"] ul {
  padding-right: 1.2rem;
  padding-left: 0;
}

html[dir="rtl"] .memorial-header-card {
  flex-direction: row-reverse;
}

html[dir="rtl"] .footer-content,
html[dir="rtl"] .footer-bottom {
  direction: rtl;
}

html[dir="rtl"] input,
html[dir="rtl"] textarea {
  direction: rtl;
  text-align: right;
}

@media (max-width: 860px) {
  .nav-container {
    gap: 0.75rem;
  }

  .nav-brand {
    margin-right: 0;
  }

  html[dir="rtl"] .nav-brand {
    margin-left: 0;
  }

  .nav-right {
    gap: 0.6rem;
    margin-left: 0.5rem;
  }

  .lang-switcher {
    padding: 0.22rem;
  }

  .lang-link {
    min-width: 40px;
    min-height: 34px;
    padding: 0.38rem 0.55rem;
    font-size: 0.78rem;
  }
}

@media (max-width: 640px) {
  .nav-container {
    align-items: center;
  }

  .nav-right {
    gap: 0.45rem;
  }

  .lang-link {
    min-width: 36px;
    min-height: 32px;
    padding: 0.32rem 0.45rem;
  }
}


html[lang="he"] body {
  font-family: Arial, "Noto Sans Hebrew", "Segoe UI", sans-serif;
}

html[lang="ar"] body {
  font-family: Tahoma, Arial, "Noto Sans Arabic", "Segoe UI", sans-serif;
  line-height: 1.72;
}

html[dir="rtl"] .nav-menu {
  direction: rtl;
}


html[dir="rtl"] .nav-brand {
  margin-right: 0;
  margin-left: clamp(1rem, 2.8vw, 2.4rem);
}

html[dir="rtl"] .nav-menu {
  justify-content: flex-end;
  gap: 1.15rem;
}

html[dir="rtl"] .nav-right {
  margin-left: 0.75rem;
}

html[dir="rtl"] .hero-content,
html[dir="rtl"] .two-column > div:first-child,
html[dir="rtl"] .insight-card,
html[dir="rtl"] .contact-wrapper,
html[dir="rtl"] .memorial-header-copy {
  text-align: right;
}

html[dir="rtl"] .nav-menu a {
  text-align: right;
}

html[dir="rtl"] .founders-grid .profile-body,
html[dir="rtl"] .advisory-grid .profile-body {
  padding-left: 1.55rem;
  padding-right: 1.35rem;
}

html[dir="rtl"] .profile-card-horizontal .profile-photo {
  border-left: 0;
  border-right: 1px solid rgba(212, 232, 234, 0.92);
}

html[dir="rtl"] .contact-email,
html[dir="rtl"] .footer-contact {
  text-align: right;
}

html[dir="rtl"] .value-list li + li {
  margin-top: 0.2rem;
}

html[dir="rtl"] .lifecycle-figure img {
  border-radius: 14px;
}

html[lang="ar"] .hero-headline {
  line-height: 1.05;
}

html[lang="ar"] .profile-body p,
html[lang="he"] .profile-body p,
html[lang="ar"] .vision-content p,
html[lang="he"] .vision-content p {
  line-height: 1.68;
}

@media (max-width: 700px) {
  html[dir="rtl"] .profile-card-horizontal .profile-photo {
    border-right: 0;
    border-bottom: 1px solid rgba(212, 232, 234, 0.92);
  }

  html[dir="rtl"] .memorial-header-card {
    flex-direction: column;
  }
}


.lifecycle-figure-translated {
  max-width: 1120px;
  margin: 0 auto;
}

.lifecycle-icons-strip {
  width: 100%;
  height: auto;
  border-radius: 18px 18px 0 0;
}

.lifecycle-caption-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 1rem;
  background: #f8f8f8;
  border-radius: 0 0 18px 18px;
  padding: 1.5rem 1rem 1.7rem;
}

html[dir="rtl"] .lifecycle-figure-translated,
html[dir="rtl"] .lifecycle-caption-grid {
  direction: rtl;
}

html[dir="rtl"] .lifecycle-icons-strip {
  transform: scaleX(-1);
  transform-origin: center;
}

html[dir="rtl"] .lifecycle-step {
  direction: rtl;
  text-align: right;
  align-items: flex-start;
}

.lifecycle-step {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.65rem;
}

.lifecycle-step-number {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #d2dfea;
  color: #1a3754;
  font-weight: 800;
  font-size: 1.35rem;
}

.lifecycle-step h3 {
  margin: 0;
  color: var(--navy);
  font-size: 1.28rem;
  line-height: 1.25;
}

.lifecycle-step p {
  margin: 0;
  color: var(--text);
  font-size: 1rem;
  line-height: 1.55;
}

html[lang="ar"] .lifecycle-step h3,
html[lang="he"] .lifecycle-step h3 {
  text-wrap: balance;
}

@media (max-width: 980px) {
  .lifecycle-caption-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 560px) {
  .lifecycle-caption-grid {
    grid-template-columns: 1fr;
  }
}


html[dir="rtl"] .lifecycle-step {
  text-align: right;
  align-items: flex-start;
}

html[dir="rtl"] .lifecycle-step-number {
  align-self: flex-start;
}


/* Responsive navigation and mobile lifecycle improvements */
body {
  overflow-x: hidden;
}

body.menu-open {
  overflow: hidden;
}

.nav {
  overflow: visible;
}

.nav-brand {
  min-width: 0;
}

.nav-logo {
  max-width: 100%;
}

.nav-menu {
  z-index: 50;
}

.lifecycle-mobile-steps {
  display: none;
}

.lifecycle-mobile-card {
  overflow: hidden;
  background: #fff;
  border: 1px solid rgba(212, 232, 234, 0.92);
  border-radius: 18px;
  box-shadow: var(--shadow);
}

.lifecycle-mobile-visual {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 230px;
  padding: 1rem 1.15rem 0.35rem;
  background: #fff;
}

.lifecycle-mobile-image {
  width: min(100%, 260px);
  height: auto;
  margin: 0 auto;
}

.lifecycle-mobile-body {
  padding: 1rem 1.2rem 1.2rem;
  text-align: left;
}

.lifecycle-mobile-title {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  margin-bottom: 0.5rem;
}

.lifecycle-mobile-title h3 {
  margin: 0;
  color: var(--navy);
  font-size: 1.15rem;
  line-height: 1.3;
}

.lifecycle-mobile-body p {
  margin-bottom: 0;
  color: var(--text);
}

html[dir="rtl"] .lifecycle-mobile-body {
  text-align: right;
}

html[dir="rtl"] .lifecycle-mobile-title {
  flex-direction: row-reverse;
}

@media (max-width: 860px) {
  .nav-container {
    min-height: 82px;
    gap: 0.5rem;
  }

  .nav-brand {
    flex: 1 1 auto;
    min-width: 0;
  }

  .nav-logo {
    width: clamp(140px, 34vw, 180px);
  }

  .nav-menu {
    left: 1rem;
    right: 1rem;
    width: auto;
    max-height: calc(100vh - 110px);
    overflow-y: auto;
  }

  html[dir="rtl"] .nav-menu {
    left: 1rem;
    right: 1rem;
  }
}

@media (max-width: 700px) {
  .container {
    width: calc(100% - 3rem);
  }

  .lifecycle-figure {
    display: none;
  }

  .lifecycle-mobile-steps {
    display: grid;
    gap: 1rem;
  }

  .profile-body,
  .memorial-panel,
  .contact-info,
  .contact-form,
  .hero-content,
  .vision-card,
  .insight-card,
  .memorial-header-card {
    padding-left: 1.4rem;
    padding-right: 1.4rem;
  }
}

@media (max-width: 480px) {
  .nav-container {
    width: calc(100% - 1.5rem);
    min-height: 74px;
    gap: 0.4rem;
  }

  .nav-logo {
    width: clamp(112px, 31vw, 142px);
  }

  .nav-right {
    gap: 0.75rem;
    margin-left: 0;
  }

  html[dir="rtl"] .nav-right {
    margin-left: 0;
  }

  .lang-switcher {
    padding: 0.18rem;
    gap: 0.2rem;
    margin-right: 0.1rem;
  }

  html[dir="rtl"] .lang-switcher {
    margin-right: 0;
    margin-left: 0.1rem;
  }

  .lang-link {
    min-width: 28px;
    min-height: 28px;
    padding: 0.2rem 0.32rem;
    font-size: 0.68rem;
  }

  .nav-toggle span {
    width: 20px;
    margin: 4px 0;
  }

  .nav-menu {
    top: calc(100% + 0.35rem);
    left: 0.75rem;
    right: 0.75rem;
    padding: 0.9rem;
    border-radius: 16px;
  }

  html[dir="rtl"] .nav-menu {
    left: 0.75rem;
    right: 0.75rem;
  }
}


.skip-link {
  position: absolute;
  top: -48px;
  left: 1rem;
  z-index: 100;
  padding: 0.75rem 1rem;
  border-radius: 12px;
  background: #0b1f2b;
  color: #fff;
  font-weight: 700;
}

.skip-link:focus {
  top: 1rem;
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible {
  outline: 3px solid rgba(11, 149, 181, 0.45);
  outline-offset: 3px;
}

.form-legal-box {
  margin-top: 1rem;
  padding: 1rem 1.1rem;
  border: 1px solid rgba(207, 219, 230, 0.95);
  border-radius: 16px;
  background: rgba(248, 251, 252, 0.9);
}

.form-consent {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  margin-top: 1rem;
}

.form-consent input[type="checkbox"] {
  width: 1.1rem;
  height: 1.1rem;
  margin-top: 0.2rem;
  flex: 0 0 auto;
}

.form-consent label {
  margin-bottom: 0;
  font-weight: 600;
}

.form-note {
  margin-top: 0;
  margin-bottom: 0;
  font-size: 0.95rem;
  color: var(--muted);
}

.form-note a {
  color: var(--navy);
  font-weight: 700;
  text-decoration: underline;
}

.honeypot {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  margin: -1px !important;
  padding: 0 !important;
  border: 0 !important;
  overflow: hidden !important;
  clip: rect(0 0 0 0) !important;
  clip-path: inset(50%) !important;
  white-space: nowrap !important;
}

.footer-legal {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem 1rem;
  margin-top: 0.75rem;
}

.footer-legal a {
  color: var(--muted);
  font-weight: 600;
}

.footer-legal a:hover,
.footer-legal a:focus-visible {
  color: var(--navy);
}

.page-header {
  padding: 8rem 0 2.25rem;
  background: linear-gradient(180deg, rgba(243, 251, 251, 1) 0%, rgba(255, 255, 255, 1) 100%);
}

.page-kicker {
  margin: 0 0 0.5rem;
  color: var(--green);
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.page-title {
  margin: 0;
  color: var(--navy);
  font-size: clamp(2rem, 4vw, 3.3rem);
  line-height: 1.1;
}

.page-subtitle {
  margin-top: 1rem;
  max-width: 900px;
  color: var(--muted);
  font-size: 1.05rem;
}

.legal-section {
  padding: 1.5rem 0 4.5rem;
}

.legal-card {
  background: #fff;
  border: 1px solid rgba(212, 232, 234, 0.92);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 1.6rem;
}

.legal-card + .legal-card {
  margin-top: 1rem;
}

.legal-card h2,
.legal-card h3 {
  margin-top: 0;
  color: var(--navy);
}

.legal-card ul {
  margin-top: 0.6rem;
}

.legal-card li + li {
  margin-top: 0.45rem;
}

.legal-meta {
  color: var(--muted);
  font-size: 0.95rem;
}

.notice-box {
  padding: 1rem 1.1rem;
  border-radius: 14px;
  background: rgba(22, 147, 95, 0.08);
  border: 1px solid rgba(22, 147, 95, 0.18);
}

.notice-box p:last-child {
  margin-bottom: 0;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *, *::before, *::after {
    animation: none !important;
    transition: none !important;
  }
}

@media (max-width: 640px) {
  .page-header {
    padding-top: 6.5rem;
  }

  .legal-card {
    padding: 1.25rem;
  }

  .footer-legal {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.5rem;
  }
}

html[dir="rtl"] .form-consent {
  text-align: right;
}


/* Mobile RTL stability fixes */
.nav-toggle,
.lang-switcher,
.nav-right {
  flex-shrink: 0;
}

.nav-brand {
  min-width: 0;
}

.hero-headline,
.hero-subheadline,
.hero-supporting,
.section-title,
.section-content p,
.profile-body p,
.memorial-panel p,
.memorial-dates,
.value-list li,
.contact-email a,
.footer-contact a,
.form-note,
.form-consent label {
  overflow-wrap: anywhere;
  word-break: normal;
}

@media (max-width: 860px) {
  .nav-container {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
  }

  .nav-brand {
    min-width: 0;
    margin: 0;
  }

  .nav-right {
    margin: 0;
    justify-self: end;
  }

  html[dir="rtl"] .nav-container {
    direction: rtl;
  }

  html[dir="rtl"] .nav-brand,
  html[dir="rtl"] .nav-right {
    margin: 0;
  }

  .hero-content {
    width: 100%;
    max-width: none;
  }

  .nav-menu,
  html[dir="rtl"] .nav-menu {
    direction: rtl;
    text-align: right;
  }

  .nav-menu a,
  html[dir="rtl"] .nav-menu a {
    white-space: normal;
    line-height: 1.4;
  }
}

@media (max-width: 700px) {
  .hero {
    padding: 5.4rem 0 3.5rem;
  }

  .hero-headline {
    font-size: clamp(2rem, 9vw, 2.9rem);
    line-height: 1.02;
  }

  .hero-subheadline {
    font-size: 1.02rem;
    line-height: 1.6;
  }

  .hero-supporting {
    font-size: 0.97rem;
    line-height: 1.6;
  }

  .section-title {
    font-size: clamp(1.75rem, 8vw, 2.4rem);
    line-height: 1.15;
  }

  .contact-email a,
  .footer-contact a {
    display: inline-block;
    max-width: 100%;
  }

  .contact-info,
  .contact-form,
  .hero-content,
  .profile-body,
  .vision-card,
  .insight-card,
  .memorial-panel,
  .memorial-header-card {
    overflow: hidden;
  }
}

@media (max-width: 480px) {
  .nav-container {
    grid-template-columns: minmax(0, 1fr) auto;
  }

  .nav-right {
    gap: 0.45rem;
  }

  .lang-switcher {
    max-width: 100%;
  }

  .lang-link {
    min-width: 26px;
    min-height: 28px;
    padding: 0.18rem 0.28rem;
    font-size: 0.66rem;
  }

  .hero-content {
    padding: 1rem;
  }

  html[dir="rtl"] .hero-content,
  html[dir="rtl"] .section-content.narrow,
  html[dir="rtl"] .vision-content,
  html[dir="rtl"] .contact-info,
  html[dir="rtl"] .contact-form,
  html[dir="rtl"] .memorial-panel,
  html[dir="rtl"] .profile-body {
    text-align: right;
  }
}
