:root {
  --red: #d7141a;
  --seal-red: #be000c;
  --navy: #082b3e;
  --ink: #263039;
  --muted: #66737f;
  --line: #dce3e8;
  --pale: #f5f7f8;
  --blue: #2f7194;
  --teal: #1b7e7c;
  --white: #ffffff;
  --max: 1392px;
  --font-body: -apple-system, BlinkMacSystemFont, "Segoe UI", "Noto Sans SC", Roboto, Arial, sans-serif;
  --font-heading: -apple-system, BlinkMacSystemFont, "Segoe UI", "Noto Sans SC", Roboto, Arial, sans-serif;
}

* {
  box-sizing: border-box;
}

html[data-font="humanist"] {
  --font-body: "Trebuchet MS", "Segoe UI", "Noto Sans SC", Arial, sans-serif;
  --font-heading: "Trebuchet MS", "Segoe UI", "Noto Sans SC", Arial, sans-serif;
}

html[data-font="classic"] {
  --font-body: Georgia, "Times New Roman", "Noto Serif SC", serif;
  --font-heading: Arial, Helvetica, "Noto Sans SC", sans-serif;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--white);
  font-family: var(--font-body);
  letter-spacing: 0;
}

html[lang="ar"] {
  --font-body: Tahoma, Arial, sans-serif;
  --font-heading: Tahoma, Arial, sans-serif;
}

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

:focus-visible {
  outline: 3px solid rgba(215, 20, 26, 0.45);
  outline-offset: 4px;
  border-radius: 6px;
}

h1,
h2,
h3,
.brand-name,
.main-nav,
.button {
  font-family: var(--font-heading);
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  display: grid;
  grid-template-columns: minmax(250px, 420px) minmax(0, 1fr) minmax(220px, 260px);
  align-items: center;
  gap: 22px;
  min-height: 120px;
  padding: 18px clamp(24px, 6.5vw, 104px);
  background: #f8f9fa;
  border-bottom: 1px solid #eef2f4;
}

.nav-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  gap: 5px;
  width: 48px;
  height: 44px;
  color: var(--ink);
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 8px;
  cursor: pointer;
}

.nav-toggle-line {
  display: block;
  width: 18px;
  height: 2px;
  background: currentColor;
  border-radius: 2px;
}

.nav-toggle-label {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 16px;
  min-width: 0;
}

.brand-stamp {
  width: 140px;
  height: 37px;
  object-fit: contain;
  display: block;
}

.brand-name {
  font-size: 24px;
  line-height: 1;
  font-weight: 700;
  white-space: nowrap;
}

.main-nav {
  display: flex;
  justify-content: center;
  gap: clamp(16px, 1.55vw, 26px);
  text-transform: uppercase;
  font-size: 17px;
  font-weight: 700;
  white-space: nowrap;
}

.main-nav a {
  color: #202830;
}

.main-nav a:hover,
.main-nav .active {
  color: var(--red);
}

.header-actions {
  display: grid;
  gap: 14px;
  justify-items: stretch;
  align-items: center;
}

.langs {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0 8px;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.3;
}

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

.langs a:hover,
.langs a[aria-current="page"] {
  color: var(--red);
}

.langs span {
  color: #a4adb5;
}

.inquiry-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  padding: 0 18px;
  color: var(--blue);
  background: #e9eff3;
  border: 1px solid #d7e1e8;
  border-radius: 6px;
  font-weight: 700;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 47.6%) minmax(0, 52.4%);
  min-height: 470px;
}

.hero-copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-width: 0;
  padding: 58px clamp(28px, 6.6vw, 108px);
  color: var(--white);
  background: var(--navy);
}

.hero h1 {
  margin: 0;
  max-width: 660px;
  font-size: clamp(42px, 4.1vw, 56px);
  line-height: 1.06;
  font-weight: 700;
}

.hero p {
  max-width: 660px;
  margin: 24px 0 0;
  color: #edf4f7;
  font-size: clamp(20px, 1.6vw, 26px);
  line-height: 1.36;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 30px;
  margin-top: 36px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  padding: 0 20px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 16px;
}

.button.primary {
  color: var(--white);
  background: var(--red);
}

.button.secondary {
  color: #14324a;
  background: var(--white);
}

.hero-media {
  min-height: 470px;
  background-color: var(--navy);
  background-image:
    linear-gradient(rgba(8, 43, 62, 0.24), rgba(8, 43, 62, 0.24)),
    url("assets/hero-documents.webp");
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
}

.trust-cards {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 52px;
  max-width: var(--max);
  margin: 0 auto;
  padding: 38px clamp(24px, 6.5vw, 104px) 40px;
}

.trust-card {
  padding: 30px 34px 26px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 8px;
  border-left: 8px solid var(--red);
  box-shadow: 0 18px 34px rgba(15, 40, 54, 0.08);
}

.trust-card h2 {
  margin: 0 0 10px;
  color: #173d5a;
  font-size: 24px;
  line-height: 1.2;
}

.trust-card p,
.section p,
.contact-panel p {
  margin: 0;
  color: var(--muted);
  font-size: 18px;
  line-height: 1.5;
}

.section {
  max-width: var(--max);
  margin: 0 auto;
  padding: 72px clamp(24px, 6.5vw, 104px);
  border-top: 1px solid #eef2f4;
}

.section-kicker {
  margin-bottom: 13px;
  color: var(--red);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0;
  text-transform: uppercase;
}

.section h2,
.contact-panel h2 {
  margin: 0 0 22px;
  color: var(--ink);
  font-size: clamp(30px, 3vw, 38px);
  line-height: 1.15;
}

.split {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 0.9fr);
  gap: 72px;
  align-items: start;
}

.credentials {
  background: linear-gradient(#ffffff, #f8fafb);
}

.credentials .note {
  margin-top: 18px;
  color: #40515d;
  font-weight: 700;
}

.badge-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.badge-grid li {
  display: flex;
  align-items: center;
  min-height: 68px;
  padding: 0 24px;
  color: #173d5a;
  background: var(--white);
  border: 1px solid var(--line);
  border-left: 6px solid var(--red);
  border-radius: 7px;
  font-size: 18px;
  font-weight: 700;
  line-height: 1.2;
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 20px;
}

.product-grid article {
  padding: 28px;
  background: var(--pale);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.product-grid h3,
.process-steps h3 {
  margin: 0 0 12px;
  color: #173d5a;
  font-size: 22px;
  line-height: 1.2;
}

.process {
  background: #fbfcfd;
}

.process-steps {
  position: relative;
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 28px;
}

.process-steps::before {
  content: "";
  position: absolute;
  top: 28px;
  left: 28px;
  right: 28px;
  height: 2px;
  background: #cfe0e7;
}

.process-steps article {
  position: relative;
}

.process-steps span {
  position: relative;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  margin-bottom: 20px;
  color: var(--teal);
  background: #eef8f8;
  border: 1px solid #cfe4e4;
  border-radius: 50%;
  font-weight: 700;
}

.process-steps p {
  font-size: 16px;
}

.partners h2 {
  max-width: 900px;
  margin-bottom: 4px;
  font-size: 24px;
}

.partners > p {
  margin-bottom: 30px;
  font-size: 20px;
}

.logo-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 14px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.logo-grid li {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 58px;
  color: #255f9e;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 7px;
  font-size: 24px;
  font-weight: 700;
}

.logo-grid .logo-teva,
.logo-grid .logo-green {
  color: #388a63;
}

.about {
  background: #fbfcfd;
}

.office-strip {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 0.72fr);
  gap: 36px;
  margin-top: 44px;
  padding: 28px 34px;
  background: var(--white);
  border: 1px solid var(--line);
  border-left: 8px solid var(--red);
  border-radius: 8px;
}

.office-strip h3 {
  margin: 0 0 8px;
  color: #173d5a;
  font-size: 22px;
}

.office-strip p {
  margin: 0;
}

.office-lines {
  display: grid;
  gap: 4px;
}

.office-lines span {
  display: block;
}

.contact-panel {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  gap: 72px;
  width: min(calc(100% - 48px), var(--max));
  max-width: var(--max);
  margin: 32px auto 88px;
  padding: 44px 48px;
  color: var(--white);
  background: var(--navy);
  border-radius: 8px;
}

.contact-panel h2,
.contact-panel p,
.contact-panel .section-kicker {
  color: var(--white);
}

.contact-panel p {
  color: #dbe8ef;
}

.contact-details {
  display: grid;
  gap: 18px;
  align-content: start;
  color: #dbe8ef;
  font-size: 18px;
}

.contact-company {
  color: var(--white);
  font-size: 24px;
  font-weight: 700;
  line-height: 1.15;
}

.contact-block {
  display: grid;
  gap: 4px;
  line-height: 1.35;
}

.contact-block strong {
  color: var(--white);
  font-size: 16px;
}

.contact-block span,
.contact-block a {
  color: #dbe8ef;
  font-size: 16px;
  font-weight: 500;
}

.contact-block span a {
  color: var(--white);
}

.inquiry-form {
  display: grid;
  gap: 16px;
  margin-top: 28px;
}

.inquiry-form label {
  display: grid;
  gap: 7px;
  color: #dbe8ef;
  font-size: 15px;
  font-weight: 700;
}

.inquiry-form input {
  min-height: 46px;
  width: 100%;
  padding: 0 14px;
  color: var(--ink);
  background: var(--white);
  border: 1px solid #d7e1e8;
  border-radius: 7px;
  font: inherit;
}

.inquiry-form input::placeholder {
  color: #8899a8;
}

.form-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 4px;
}

.inquiry-form .button {
  border: 0;
  cursor: pointer;
}

.inquiry-form .button.secondary {
  border: 1px solid #d7e1e8;
}

.contact-panel .form-note {
  color: #bcd1dc;
  font-size: 14px;
}

footer {
  background: var(--pale);
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  width: min(calc(100% - 48px), var(--max));
  max-width: var(--max);
  margin: 0 auto;
  padding: 14px 0;
  color: var(--muted);
  font-size: 16px;
}

.footer-inner a {
  color: var(--blue);
  font-weight: 700;
}

[dir="rtl"] .site-header,
[dir="rtl"] .hero {
  direction: ltr;
}

[dir="rtl"] .hero-copy,
[dir="rtl"] .section,
[dir="rtl"] .contact-panel {
  direction: rtl;
  text-align: right;
}

[dir="rtl"] .brand,
[dir="rtl"] .header-actions,
[dir="rtl"] .langs,
[dir="rtl"] .contact-details,
[dir="rtl"] .footer-inner {
  direction: ltr;
}

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

@media (max-width: 1100px) {
  .site-header {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .main-nav {
    justify-content: flex-start;
    flex-wrap: wrap;
  }

  .header-actions {
    display: flex;
    align-items: center;
    gap: 18px;
  }

  .hero,
  .split,
  .contact-panel,
  .office-strip {
    grid-template-columns: 1fr;
  }

  .hero-media {
    min-height: 320px;
  }

  .trust-cards,
  .product-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .process-steps,
  .logo-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .process-steps::before {
    display: none;
  }

}

@media (max-width: 700px) {
  .site-header {
    grid-template-columns: 1fr auto;
    min-height: auto;
    padding: 18px 20px;
  }

  .brand {
    gap: 8px;
  }

  .brand-stamp {
    width: 132px;
  }

  .brand-name {
    font-size: 21px;
  }

  .nav-toggle {
    display: inline-flex;
    flex-direction: column;
  }

  .main-nav {
    display: none;
    grid-column: 1 / -1;
    width: 100%;
    padding: 16px 0 4px;
  }

  .site-header.nav-open .main-nav {
    display: grid;
    gap: 12px;
  }

  .header-actions {
    grid-column: 1 / -1;
  }

  .hero-copy {
    padding: 46px 24px;
  }

  .trust-cards,
  .product-grid,
  .process-steps,
  .logo-grid,
  .badge-grid {
    grid-template-columns: 1fr;
  }

  .section {
    padding: 56px 24px;
  }

  .contact-panel {
    margin: 24px 24px 64px;
    padding: 34px 24px;
  }

  .form-actions {
    gap: 10px;
  }

  .form-actions .button {
    width: 100%;
  }

  footer {
    padding: 0 24px;
  }

  .footer-inner {
    flex-direction: column;
    width: auto;
    padding: 14px 0;
  }
}

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

@media print {
  html {
    scroll-behavior: auto;
  }

  body {
    color: #000;
    background: #fff;
  }

  .site-header {
    position: static;
    display: block;
    min-height: 0;
    padding: 0 0 18px;
    background: #fff;
    border-bottom: 1px solid #999;
  }

  .main-nav,
  .header-actions,
  .nav-toggle,
  .hero-media,
  .hero-actions,
  .inquiry-form {
    display: none;
  }

  .hero,
  .split,
  .contact-panel,
  .office-strip {
    display: block;
  }

  .hero-copy,
  .contact-panel {
    width: auto;
    margin: 0;
    padding: 20px 0;
    color: #000;
    background: #fff;
    border-radius: 0;
  }

  .hero-copy h1,
  .hero-copy p,
  .contact-panel h2,
  .contact-panel p,
  .contact-panel .section-kicker {
    color: #000;
  }

  .section,
  .trust-cards {
    max-width: none;
    padding: 24px 0;
  }

  .trust-cards,
  .product-grid,
  .process-steps,
  .logo-grid,
  .badge-grid {
    display: block;
  }

  .trust-card,
  .product-grid article,
  .badge-grid li,
  .office-strip {
    box-shadow: none;
    page-break-inside: avoid;
  }

  footer {
    background: #fff;
  }

  .footer-inner {
    width: auto;
    border-top: 1px solid #999;
  }
}
