/* ==========================================================================
   Looped Careers — design tokens (matches the main looped.re brand system)
   ========================================================================== */

@font-face {
  font-family: "Small Fry";
  src: url("../fonts/SmallFry.ttf") format("truetype");
  font-display: swap;
}

@font-face {
  font-family: "Gveret";
  src: url("../fonts/Gveret.otf") format("opentype");
  font-display: swap;
}

@font-face {
  font-family: "Poplar";
  src: url("../fonts/Poplar.ttf") format("truetype");
  font-display: swap;
}

@font-face {
  font-family: "Yarden";
  src: url("../fonts/Yarden.otf") format("opentype");
  font-display: swap;
}

:root {
  --blue: #468bff;
  --blue-deep: #3a7ae8;
  --blue-tint: #eef4ff;
  --navy: #052a65;
  --orange: #ff6b3d;
  --orange-dark: #e85a2a;
  --green: #2dd66a;
  --green-dark: #14a24a;
  --ink: #1a2333;
  --ink-soft: #52607a;
  --paper: #ffffff;
  --paper-tint: #f6f9ff;
  --border: #e2e9f7;

  --radius-pill: 999px;
  --radius-card: 24px;
  --radius-sm: 14px;

  --shadow-card: 0 15px 40px rgba(5, 42, 101, 0.08);
  --shadow-card-hover: 0 20px 45px rgba(5, 42, 101, 0.18);
  --shadow-pill: 0 10px 30px rgba(5, 42, 101, 0.15);

  --container: 1100px;
  --font-main: "Assistant", "Segoe UI", sans-serif;
  --font-display: "Small Fry", "Gveret", serif;
  --font-numeral: "Poplar", "Yarden", sans-serif;
}

html[lang="he"] {
  /* Gveret/Yarden have no Latin glyphs, so a stray Latin word (e.g. "Looped")
     inside Hebrew copy falls back to the matching Latin display font instead
     of a generic serif. */
  --font-display: "Gveret", "Small Fry", serif;
  --font-numeral: "Yarden", "Poplar", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-main);
  color: var(--ink);
  background: var(--paper);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

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

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

ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: 24px;
}

/* Display / numeral headline fonts ------------------------------------- */

.display {
  font-family: var(--font-display);
  font-weight: 400;
  line-height: 1;
  margin: 0;
}

html[lang="en"] .display {
  text-transform: uppercase;
}

.display--stroke {
  -webkit-text-stroke: 2.5px currentColor;
}

html[lang="he"] .display--stroke {
  -webkit-text-stroke: 0;
}

.numeral {
  font-family: var(--font-numeral);
  font-weight: 400;
  line-height: 1;
}

.eyebrow {
  display: inline-block;
  font-weight: 800;
  font-size: 13px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 6px 16px;
  border-radius: var(--radius-pill);
  background: rgba(255, 255, 255, 0.18);
  color: var(--paper);
}

.eyebrow--tint {
  background: rgba(255, 255, 255, 0.85);
  color: var(--navy);
}

/* Sticker badges --------------------------------------------------------- */

.sticker {
  position: absolute;
  width: clamp(90px, 11vw, 150px);
  height: auto;
  filter: drop-shadow(0 8px 16px rgba(5, 42, 101, 0.25));
  pointer-events: none;
  user-select: none;
}

/* ==========================================================================
   Buttons — signature hard offset shadow (Looped sticker style)
   ========================================================================== */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: var(--font-main);
  font-weight: 800;
  font-size: 17px;
  padding: 15px 30px;
  border-radius: var(--radius-sm);
  border: none;
  cursor: pointer;
  transition: transform 0.15s ease;
  white-space: nowrap;
}

.btn:hover {
  transform: translateY(-2px);
}

.btn:active {
  transform: translateY(0);
}

.btn--orange {
  background: var(--orange);
  color: var(--paper);
  box-shadow: -8px 8px 0 var(--orange-dark);
}

[dir="rtl"] .btn--orange {
  box-shadow: 8px 8px 0 var(--orange-dark);
}

.btn--green {
  background: var(--green);
  color: var(--paper);
  box-shadow: -8px 8px 0 var(--green-dark);
}

[dir="rtl"] .btn--green {
  box-shadow: 8px 8px 0 var(--green-dark);
}

.btn--outline {
  background: transparent;
  color: var(--navy);
  border: 2px solid var(--border);
}

.btn--outline:hover {
  border-color: var(--blue);
  color: var(--blue);
}

/* ==========================================================================
   Header — floating pill nav
   ========================================================================== */

.site-header {
  position: sticky;
  top: 16px;
  z-index: 50;
  padding-inline: 16px;
}

.site-header__inner {
  max-width: var(--container);
  margin-inline: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  background: var(--paper);
  border-radius: var(--radius-pill);
  box-shadow: var(--shadow-pill);
  padding: 10px 14px 10px 28px;
}

[dir="rtl"] .site-header__inner {
  padding: 10px 28px 10px 14px;
}

.brand img {
  height: 26px;
  width: auto;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 26px;
}

.site-nav a {
  font-weight: 700;
  font-size: 14px;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: var(--ink);
}

.site-nav a:hover {
  color: var(--blue);
}

.site-nav .site-nav__external {
  color: var(--ink-soft);
  font-weight: 700;
}

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

.lang-toggle {
  display: flex;
  background: var(--paper-tint);
  border: 1px solid var(--border);
  border-radius: var(--radius-pill);
  padding: 3px;
}

.lang-toggle button {
  font-family: var(--font-main);
  font-weight: 800;
  font-size: 13px;
  border: none;
  background: transparent;
  color: var(--ink-soft);
  padding: 7px 14px;
  border-radius: var(--radius-pill);
  cursor: pointer;
}

.lang-toggle button.is-active {
  background: var(--navy);
  color: var(--paper);
}

/* ==========================================================================
   Blue mega-section (hero + about + positions run continuously,
   like the main site's single long blue scroll)
   ========================================================================== */

.blue-zone {
  background: linear-gradient(180deg, var(--blue-deep) 0%, var(--blue) 320px, var(--blue) 100%);
  position: relative;
  overflow: hidden;
}

.blue-zone::before {
  content: "";
  position: absolute;
  top: -10%;
  inset-inline-end: -10%;
  width: 60vw;
  height: 60vw;
  max-width: 700px;
  max-height: 700px;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.16) 0%, rgba(255, 255, 255, 0) 70%);
  pointer-events: none;
}

.blue-zone::after {
  content: "";
  position: absolute;
  bottom: -20%;
  inset-inline-start: -15%;
  width: 55vw;
  height: 55vw;
  max-width: 600px;
  max-height: 600px;
  background: radial-gradient(circle, rgba(255, 107, 61, 0.14) 0%, rgba(255, 107, 61, 0) 70%);
  pointer-events: none;
}

/* ==========================================================================
   Hero
   ========================================================================== */

.hero {
  position: relative;
  padding-block: 90px 70px;
  text-align: center;
}

.hero__inner {
  position: relative;
  max-width: 780px;
  margin-inline: auto;
}

.hero__eyebrow {
  margin-bottom: 22px;
}

.hero h1 {
  font-size: clamp(42px, 6.4vw, 78px);
  color: var(--paper);
  margin: 0 0 22px;
}

.hero p {
  font-size: 19px;
  color: rgba(255, 255, 255, 0.92);
  max-width: 52ch;
  margin: 0 auto 34px;
}

.hero .sticker {
  top: -40px;
  inset-inline-start: -30px;
  transform: rotate(-10deg);
}

@media (max-width: 700px) {
  .hero .sticker {
    display: none;
  }
}

/* ==========================================================================
   About / values section
   ========================================================================== */

.section {
  padding-block: 70px;
  position: relative;
}

.section__head {
  max-width: 640px;
  margin: 0 auto 44px;
  text-align: center;
}

.section__head .eyebrow {
  margin-bottom: 14px;
}

.section__head h2 {
  font-size: clamp(32px, 4.6vw, 50px);
  color: var(--paper);
  margin: 0 0 12px;
}

.section__head p {
  font-size: 17px;
  color: rgba(255, 255, 255, 0.85);
  margin: 0;
}

.title-flanked {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
}

.title-flanked img {
  height: 56px;
  width: auto;
  object-fit: contain;
  flex-shrink: 0;
}

.title-flanked .flank-left {
  transform: rotate(-8deg) translateY(6px);
}

.title-flanked .flank-right {
  transform: rotate(7deg) translateY(-6px);
}

@media (max-width: 640px) {
  .title-flanked img {
    display: none;
  }
}

.floating-card {
  background: var(--paper);
  border-radius: 30px;
  padding: 44px;
  box-shadow: 0 25px 60px rgba(5, 42, 101, 0.25);
}

.value-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 36px;
}

.value-card {
  background: var(--navy);
  border-radius: var(--radius-card);
  padding: 28px 24px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  cursor: default;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.value-card:hover {
  transform: translateY(-10px) rotate(-1.5deg);
  box-shadow: 0 20px 40px rgba(5, 42, 101, 0.3);
}

.value-card:nth-child(2):hover {
  transform: translateY(-10px) rotate(1.5deg);
}

.value-card__num {
  font-size: 38px;
  color: var(--paper);
  margin-bottom: 10px;
}

.value-card h3 {
  font-family: var(--font-numeral);
  font-weight: 400;
  font-size: 24px;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: var(--paper);
  margin: 0 0 12px;
}

.value-card p {
  font-size: 15px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.88);
  margin: 0;
  line-height: 1.35;
}

/* ==========================================================================
   Positions list
   ========================================================================== */

.positions-card {
  background: var(--paper);
  border-radius: 30px;
  padding: 16px;
  box-shadow: 0 25px 60px rgba(5, 42, 101, 0.25);
}

.position-row {
  display: flex;
  align-items: center;
  gap: 22px;
  background: var(--paper-tint);
  border-radius: var(--radius-card);
  padding: 26px 28px;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.position-row + .position-row {
  margin-top: 14px;
}

.position-row:hover {
  transform: translateY(-6px) rotate(-0.6deg);
  box-shadow: var(--shadow-card-hover);
}

.position-row__emoji {
  font-size: 32px;
  width: 60px;
  height: 60px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--blue-tint);
  border-radius: var(--radius-sm);
}

.position-row__body {
  flex: 1;
  min-width: 0;
}

.position-row__body h3 {
  font-size: 21px;
  font-weight: 800;
  color: var(--navy);
  margin: 0 0 6px;
}

.position-row__body p {
  font-size: 15px;
  color: var(--ink-soft);
  margin: 0 0 12px;
}

.tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.tag {
  font-size: 13px;
  font-weight: 700;
  color: var(--navy);
  background: var(--paper);
  border: 1px solid var(--border);
  border-radius: var(--radius-pill);
  padding: 5px 13px;
}

.tag--green {
  background: rgba(45, 214, 106, 0.14);
  color: var(--green-dark);
  border-color: transparent;
}

.position-row__action {
  flex-shrink: 0;
}

.empty-state {
  text-align: center;
  padding: 40px 24px;
  color: var(--ink-soft);
}

/* ==========================================================================
   Closing CTA (white section, matches main site's calltoaction pattern)
   ========================================================================== */

.cta-section {
  background: var(--paper);
  padding-block: 90px;
  text-align: center;
}

.cta-section h2 {
  color: var(--navy);
  font-family: var(--font-numeral);
  font-weight: 400;
  font-size: clamp(38px, 6vw, 72px);
  line-height: 1;
  margin: 0;
}

html[lang="en"] .cta-section h2 {
  text-transform: uppercase;
}

.cta-section p {
  font-size: 18px;
  color: var(--ink-soft);
  margin: 18px 0 34px;
}

/* ==========================================================================
   Job detail page
   ========================================================================== */

.job-hero-section {
  position: relative;
  padding-block: 60px 50px;
}

.job-back {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-weight: 700;
  font-size: 14px;
  color: rgba(255, 255, 255, 0.85);
  margin-bottom: 24px;
}

.job-back:hover {
  color: var(--paper);
}

.job-hero {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 32px;
}

.job-hero h1 {
  font-size: clamp(36px, 5.6vw, 64px);
  color: var(--paper);
  margin: 6px 0 4px;
}

.job-hero__tagline {
  font-size: 17px;
  color: rgba(255, 255, 255, 0.9);
  max-width: 60ch;
  margin: 0 0 18px;
}

.job-hero__art img {
  max-height: 190px;
  width: auto;
  filter: drop-shadow(0 15px 25px rgba(0, 0, 0, 0.2));
}

@media (max-width: 700px) {
  .job-hero {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .job-hero__tagline {
    margin-inline: auto;
  }

  .job-hero__art {
    order: -1;
  }

  .job-hero__art img {
    max-height: 140px;
    margin-inline: auto;
  }
}

.job-detail-body {
  padding-block: 50px 40px;
}

.job-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  padding: 22px 26px;
  background: var(--paper-tint);
  border-radius: var(--radius-card);
  margin-bottom: 40px;
}

.job-meta__item {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.job-meta__item span.label {
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--ink-soft);
}

.job-meta__item span.value {
  font-size: 15px;
  font-weight: 800;
  color: var(--navy);
}

.lang-tabs {
  display: inline-flex;
  gap: 6px;
  background: var(--paper-tint);
  border: 1px solid var(--border);
  border-radius: var(--radius-pill);
  padding: 4px;
  margin-bottom: 32px;
}

.lang-tabs button {
  font-family: var(--font-main);
  font-weight: 800;
  font-size: 13px;
  border: none;
  background: transparent;
  color: var(--ink-soft);
  padding: 8px 18px;
  border-radius: var(--radius-pill);
  cursor: pointer;
}

.lang-tabs button.is-active {
  background: var(--blue);
  color: var(--paper);
}

.job-ad p {
  font-size: 17px;
  color: var(--ink);
}

.job-ad__intro {
  font-size: 19px;
  font-weight: 600;
  color: var(--navy);
}

.job-ad__section {
  margin-block: 28px;
}

.job-ad__section h2 {
  font-size: 22px;
  font-weight: 800;
  color: var(--navy);
  margin: 0 0 10px;
}

.job-ad__note {
  font-size: 15px;
  font-style: italic;
  color: var(--ink-soft);
  border-inline-start: 3px solid var(--blue);
  padding-inline-start: 14px;
  margin-block: 28px;
}

[dir="rtl"] .job-ad__note {
  font-style: normal;
}

.apply-box {
  margin-top: 48px;
  background: var(--navy);
  color: var(--paper);
  border-radius: var(--radius-card);
  padding: 44px 40px;
  text-align: center;
}

.apply-box h2 {
  font-size: clamp(28px, 4vw, 40px);
  color: var(--paper);
  margin: 0 0 12px;
}

.apply-box p {
  color: rgba(255, 255, 255, 0.85);
  margin: 0 0 24px;
  font-size: 16px;
}

.apply-box__email {
  margin-top: 16px;
  font-size: 14px;
  color: rgba(255, 255, 255, 0.7);
}

.apply-box__email a {
  color: var(--paper);
  font-weight: 700;
  text-decoration: underline;
}

/* ==========================================================================
   Footer
   ========================================================================== */

.site-footer {
  background: var(--navy);
  color: rgba(255, 255, 255, 0.85);
  padding-block: 48px;
}

.site-footer__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 20px;
}

.site-footer__brand {
  display: flex;
  align-items: center;
  gap: 12px;
}

.site-footer__brand img {
  height: 26px;
  width: auto;
}

.site-footer__brand span {
  font-weight: 700;
  font-size: 14px;
  color: rgba(255, 255, 255, 0.7);
}

.site-footer__links {
  display: flex;
  gap: 24px;
  font-size: 14px;
  font-weight: 700;
}

.site-footer__links a:hover {
  color: var(--blue);
}

.site-footer__rights {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.5);
  margin-top: 24px;
  text-align: center;
}

/* ==========================================================================
   Responsive
   ========================================================================== */

@media (max-width: 860px) {
  .site-nav {
    display: none;
  }

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

  .floating-card {
    padding: 28px 22px;
    border-radius: 24px;
  }

  .section {
    padding-block: 50px;
  }

  .hero {
    padding-block: 60px 50px;
  }

  .position-row {
    flex-wrap: wrap;
  }

  .position-row__action {
    width: 100%;
  }

  .position-row__action .btn {
    width: 100%;
  }

  .cta-section {
    padding-block: 60px;
  }

  .site-footer__inner {
    flex-direction: column;
    text-align: center;
  }
}
