/* Professional palette: navy trust, warm gold accent, soft neutrals */
:root {
  --color-navy: #0f2744;
  --color-navy-deep: #081a2e;
  --color-slate: #3d4f66;
  --color-muted: #5c6b7f;
  --color-border: #e4e9f0;
  --color-surface: #f4f6f9;
  --color-page: #fafbfc;
  --color-white: #ffffff;
  --color-gold: #c9a227;
  --color-gold-hover: #b8921f;
  --color-gold-soft: rgba(201, 162, 39, 0.12);
  --color-cta: #ff6b00;
  --color-cta-hover: #e85d00;
  --color-cta-soft: rgba(255, 107, 0, 0.2);
  --font-sans: "DM Sans", system-ui, sans-serif;
  --font-serif: "Instrument Serif", Georgia, serif;
  --shadow-sm: 0 1px 2px rgba(15, 39, 68, 0.05);
  --shadow-card:
    0 1px 2px rgba(15, 39, 68, 0.04),
    0 8px 24px rgba(15, 39, 68, 0.07),
    0 2px 6px rgba(15, 39, 68, 0.04);
  --shadow-card-hover:
    0 4px 8px rgba(15, 39, 68, 0.06),
    0 20px 40px rgba(15, 39, 68, 0.1),
    0 2px 4px rgba(15, 39, 68, 0.04);
  --shadow-md: 0 16px 48px rgba(15, 39, 68, 0.1);
  --radius: 16px;
  --radius-lg: 24px;
  --max-width: 1120px;
  --section-space-y: clamp(4.5rem, 8vw, 7rem);
  --section-gap: clamp(2rem, 4vw, 3.5rem);
  --space-block: clamp(1.5rem, 3vw, 2.5rem);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 1.0625rem;
  line-height: 1.75;
  font-weight: 400;
  letter-spacing: 0.01em;
  color: var(--color-slate);
  background-color: var(--color-page);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

html[dir="rtl"] body {
  font-family: "Heebo", var(--font-sans);
  font-size: 1.0625rem;
  line-height: 1.8;
  letter-spacing: 0;
}

html[dir="rtl"] .hero h1,
html[dir="rtl"] .section-header h2,
html[dir="rtl"] .contact-copy h2 {
  font-family: "Heebo", var(--font-sans);
  font-weight: 500;
  letter-spacing: -0.01em;
}

main {
  display: flex;
  flex-direction: column;
  gap: var(--space-block);
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: var(--color-navy);
  text-decoration: none;
}

a:hover {
  color: var(--color-gold);
}

.container {
  width: min(100% - clamp(1.5rem, 5vw, 3rem), var(--max-width));
  margin-inline: auto;
  padding-inline: 0.25rem;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(250, 251, 252, 0.94);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--color-border);
  margin-bottom: 0;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.25rem;
  padding: 1.25rem 0;
}

.header-end {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.lang-switcher {
  display: flex;
  align-items: center;
  gap: 0.375rem;
  padding: 0.25rem;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: 999px;
}

.lang-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.25rem;
  height: 2.25rem;
  padding: 0;
  border: 2px solid transparent;
  border-radius: 50%;
  background: transparent;
  cursor: pointer;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.15s ease;
}

.lang-btn:hover {
  border-color: var(--color-border);
}

.lang-btn.is-active {
  border-color: var(--color-navy);
  box-shadow: var(--shadow-sm);
}

.lang-btn:active {
  transform: scale(0.96);
}

.lang-flag {
  display: block;
  width: 1.35rem;
  height: 0.9rem;
  border-radius: 2px;
  overflow: hidden;
  box-shadow: 0 0 0 1px rgba(15, 39, 68, 0.12);
}

.lang-flag-il {
  background: linear-gradient(
    to bottom,
    #0038b8 0%,
    #0038b8 33.33%,
    #ffffff 33.33%,
    #ffffff 66.66%,
    #0038b8 66.66%,
    #0038b8 100%
  );
}

.lang-flag-us {
  background:
    repeating-linear-gradient(
      to bottom,
      #b22234 0,
      #b22234 7.69%,
      #fff 7.69%,
      #fff 15.38%
    );
  position: relative;
}

.lang-flag-us::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 55%;
  height: 53%;
  background: #3c3b6e;
}

.logo {
  font-weight: 700;
  font-size: 1.125rem;
  letter-spacing: -0.02em;
  color: var(--color-navy);
}

.logo span {
  font-weight: 500;
  color: var(--color-muted);
}

.nav {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.nav a {
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--color-slate);
}

.nav a:hover {
  color: var(--color-navy);
}

.nav-cta {
  padding: 0.5rem 1rem;
  background: var(--color-navy);
  color: var(--color-white) !important;
  border-radius: 999px;
  transition: background 0.2s ease, transform 0.15s ease;
}

.nav-cta:hover {
  background: var(--color-navy-deep);
  color: var(--color-white) !important;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 1rem 1.75rem;
  font-family: inherit;
  font-size: 1rem;
  font-weight: 600;
  border-radius: 999px;
  border: 2px solid transparent;
  cursor: pointer;
  transition: background 0.25s ease, color 0.25s ease, border-color 0.25s ease, transform 0.15s ease, box-shadow 0.25s ease;
}

.btn:active {
  transform: scale(0.98);
}

.btn-primary {
  background: var(--color-cta);
  color: var(--color-white);
  border-color: var(--color-cta);
  box-shadow:
    0 2px 4px rgba(255, 107, 0, 0.2),
    0 8px 20px rgba(255, 107, 0, 0.28);
}

.btn-primary:hover {
  background: var(--color-cta-hover);
  border-color: var(--color-cta-hover);
  color: var(--color-white);
  box-shadow:
    0 4px 8px rgba(255, 107, 0, 0.22),
    0 12px 28px rgba(255, 107, 0, 0.32);
}

.btn-secondary {
  background: transparent;
  color: var(--color-white);
  border-color: rgba(255, 255, 255, 0.35);
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.55);
  color: var(--color-white);
}

.btn-full {
  width: 100%;
}

/* Hero */
.hero {
  position: relative;
  margin: var(--space-block) 0 0;
  padding: clamp(5rem, 10vw, 7.5rem) 0 clamp(5.5rem, 11vw, 8rem);
  color: var(--color-white);
  overflow: hidden;
  border-radius: 0 0 var(--radius-lg) var(--radius-lg);
}

.hero-bg {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(145deg, var(--color-navy-deep) 0%, var(--color-navy) 48%, #163352 100%);
}

.hero-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 70% 55% at 90% 10%, rgba(201, 162, 39, 0.12), transparent 55%),
    radial-gradient(ellipse 45% 35% at 5% 95%, rgba(255, 255, 255, 0.05), transparent 50%);
  pointer-events: none;
}

.hero-inner {
  position: relative;
  max-width: 52rem;
  text-align: start;
  padding-block: 0.5rem;
}

html[dir="rtl"] .hero-eyebrow {
  letter-spacing: 0.04em;
  text-transform: none;
}

.hero-eyebrow {
  margin: 0 0 1.25rem;
  font-size: 0.875rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-gold);
}

.hero h1 {
  margin: 0 0 1.5rem;
  font-family: var(--font-serif);
  font-size: clamp(2.25rem, 5vw, 3.35rem);
  font-weight: 400;
  line-height: 1.2;
  letter-spacing: -0.015em;
  color: var(--color-white);
}

.hero-lead {
  margin: 0 0 2.25rem;
  font-size: 1.1875rem;
  line-height: 1.75;
  color: rgba(255, 255, 255, 0.88);
  max-width: 38rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 3rem;
  justify-content: flex-start;
}

.hero-trust {
  display: flex;
  flex-wrap: wrap;
  gap: 1.25rem 2rem;
  margin: 0;
  padding: 1.25rem 0 0;
  list-style: none;
  font-size: 0.9375rem;
  color: rgba(255, 255, 255, 0.72);
  border-top: 1px solid rgba(255, 255, 255, 0.12);
}

.hero-trust li {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.hero-trust li::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--color-gold);
}

/* Section shared */
.section-header {
  max-width: 40rem;
  margin-bottom: var(--section-gap);
  padding-bottom: 0.5rem;
}

.section-header h2 {
  margin: 0 0 1rem;
  font-family: var(--font-serif);
  font-size: clamp(1.875rem, 3.5vw, 2.5rem);
  font-weight: 400;
  color: var(--color-navy);
  letter-spacing: -0.02em;
  line-height: 1.25;
}

.section-intro {
  margin: 0;
  font-size: 1.125rem;
  color: var(--color-muted);
  line-height: 1.75;
}

/* Benefits */
.benefits {
  margin: var(--space-block) 0;
  padding: var(--section-space-y) 0;
  background: var(--color-surface);
  border-radius: var(--radius-lg);
}

.benefits .container {
  padding-block: 0.5rem;
}

.benefits-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: clamp(1.5rem, 3vw, 2rem);
  margin-top: 0.5rem;
}

.benefit-card {
  padding: clamp(1.75rem, 3vw, 2.25rem);
  background: var(--color-white);
  border: 1px solid rgba(228, 233, 240, 0.9);
  border-radius: var(--radius);
  box-shadow: var(--shadow-card);
  transition:
    box-shadow 0.35s ease,
    border-color 0.35s ease,
    transform 0.35s ease;
}

.benefit-card:hover {
  box-shadow: var(--shadow-card-hover);
  border-color: rgba(201, 162, 39, 0.22);
  transform: translateY(-3px);
}

.benefit-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 3.25rem;
  height: 3.25rem;
  margin-bottom: 1.5rem;
  border-radius: 12px;
  background: var(--color-gold-soft);
  color: var(--color-gold-hover);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.6);
}

.benefit-card h3 {
  margin: 0 0 0.75rem;
  font-size: 1.1875rem;
  font-weight: 600;
  color: var(--color-navy);
  letter-spacing: -0.01em;
}

.benefit-card p {
  margin: 0;
  font-size: 1rem;
  color: var(--color-muted);
  line-height: 1.75;
}

/* Contact */
.contact {
  margin: var(--space-block) 0;
  padding: var(--section-space-y) 0 calc(var(--section-space-y) + 0.5rem);
}

.contact-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2.5rem, 5vw, 4.5rem);
  align-items: start;
}

.contact-copy {
  padding: clamp(1rem, 2vw, 1.5rem) 0;
}

.contact-copy h2 {
  margin: 0 0 1.25rem;
  font-family: var(--font-serif);
  font-size: clamp(1.875rem, 3.5vw, 2.5rem);
  font-weight: 400;
  color: var(--color-navy);
  line-height: 1.25;
  letter-spacing: -0.02em;
}

.contact-copy > p {
  margin: 0 0 2.5rem;
  color: var(--color-muted);
  font-size: 1.0625rem;
  line-height: 1.75;
}

.contact-details {
  margin: 0;
  padding: 1.5rem 1.75rem;
  list-style: none;
  background: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-card);
}

.contact-details li {
  margin-bottom: 1.25rem;
}

.contact-details li:last-child {
  margin-bottom: 0;
}

.contact-label {
  display: block;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-muted);
  margin-bottom: 0.25rem;
}

.contact-details a {
  font-weight: 500;
  color: var(--color-navy);
}

.contact-form {
  padding: clamp(2rem, 4vw, 2.75rem);
  background: var(--color-white);
  border: 1px solid rgba(228, 233, 240, 0.95);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card);
  transition: box-shadow 0.35s ease;
}

.contact-form:focus-within {
  box-shadow: var(--shadow-card-hover);
}

.form-row {
  margin-bottom: 1.5rem;
}

.form-row label {
  display: block;
  margin-bottom: 0.5rem;
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--color-navy);
}

.optional {
  font-weight: 400;
  color: var(--color-muted);
}

.contact-form input,
.contact-form select,
.contact-form textarea {
  width: 100%;
  padding: 0.875rem 1.125rem;
  font-family: inherit;
  font-size: 1rem;
  color: var(--color-slate);
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: 10px;
  transition: border-color 0.25s ease, box-shadow 0.25s ease, background 0.25s ease;
}

.contact-form input:hover,
.contact-form select:hover,
.contact-form textarea:hover {
  background: var(--color-white);
}

.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: var(--color-gold);
  box-shadow: 0 0 0 3px var(--color-gold-soft);
}

.contact-form textarea {
  resize: vertical;
  min-height: 120px;
}

.form-note {
  margin: 1.25rem 0 0;
  font-size: 0.875rem;
  color: var(--color-muted);
  text-align: center;
  line-height: 1.6;
}

html[dir="rtl"] .contact-form select {
  text-align: right;
}

html[dir="rtl"] .section-header {
  margin-inline-start: 0;
  margin-inline-end: auto;
}

/* Footer */
.site-footer {
  margin-top: var(--space-block);
  padding: clamp(2.5rem, 5vw, 3.5rem) 0;
  background: var(--color-navy-deep);
  color: rgba(255, 255, 255, 0.65);
}

.footer-inner {
  text-align: center;
  padding-inline: 1rem;
}

.footer-brand {
  margin: 0 0 0.75rem;
  font-weight: 600;
  font-size: 1.0625rem;
  letter-spacing: 0.02em;
  color: var(--color-white);
}

.footer-legal {
  margin: 0;
  font-size: 0.875rem;
  line-height: 1.65;
  max-width: 36rem;
  margin-inline: auto;
}

/* Responsive */
@media (max-width: 768px) {
  :root {
    --section-space-y: 3.5rem;
    --space-block: 1.25rem;
  }

  main {
    gap: 1rem;
  }

  .nav a:not(.nav-cta) {
    display: none;
  }

  .header-end {
    gap: 0.5rem;
  }

  .nav-cta {
    font-size: 0.8125rem;
    padding: 0.45rem 0.75rem;
  }

  .hero {
    margin-top: 0.75rem;
    padding: 3.5rem 0 4rem;
    border-radius: 0 0 var(--radius) var(--radius);
  }

  .benefits {
    border-radius: var(--radius);
  }

  .benefits,
  .contact {
    padding: var(--section-space-y) 0;
  }

  .contact-layout {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }

  .contact-form {
    padding: 1.75rem;
  }

  .contact-details {
    padding: 1.25rem 1.5rem;
  }

  .benefit-card:hover {
    transform: none;
  }
}
