
:root {
  color-scheme: light;
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
  color: #17211d;
  background: #f7f4ec;
  --ink: #17211d;
  --muted: #667069;
  --line: rgba(23, 33, 29, 0.12);
  --gold: #f5a400;
  --gold-dark: #a96500;
  --green: #0e8f66;
  --blue: #2866c7;
  --paper: #fffdf7;
  --deep: #111713;
  --radius: 8px;
  --shadow: 0 22px 70px rgba(31, 38, 32, 0.14);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.86), rgba(247, 244, 236, 0.92)),
    #f7f4ec;
}

/* Guard against any element forcing the page wider than the viewport.
   overflow-x: clip (not hidden) avoids creating a scroll container, so the
   sticky header keeps working. */
html,
body {
  max-width: 100%;
  overflow-x: clip;
}

main {
  max-width: 100%;
  overflow-x: clip;
}

section,
.hero,
.jobs-hero,
.hero-copy,
.section-heading,
.section-heading.with-action,
.job-grid,
.metrics,
.trust-strip,
.hero-actions,
.local-band,
.footer {
  max-width: 100%;
  min-width: 0;
}

.hero p,
.jobs-hero p,
h1,
h2,
h3,
p,
a,
button,
span,
li {
  overflow-wrap: anywhere;
}

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

button,
input {
  font: inherit;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 16px clamp(18px, 5vw, 64px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.16);
  color: #fffdf7;
  background: rgba(17, 23, 19, 0.94);
  backdrop-filter: blur(18px);
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-width: fit-content;
}

.logo-mark {
  position: relative;
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 12px;
  color: #111713;
  background:
    radial-gradient(circle at 68% 28%, #fff3c8 0 8%, transparent 9%),
    linear-gradient(135deg, #ffc04b 0%, var(--gold) 52%, #d78300 100%);
  font-size: 24px;
  font-weight: 900;
  box-shadow: 0 12px 28px rgba(245, 164, 0, 0.24);
}

.logo-mark::after {
  content: "";
  position: absolute;
  right: 7px;
  bottom: 7px;
  width: 8px;
  height: 8px;
  border: 2px solid #111713;
  border-left: 0;
  border-top: 0;
  border-radius: 0 0 8px 0;
}

.logo strong,
.logo small {
  display: block;
  line-height: 1.05;
}

.logo small {
  margin-top: 3px;
  color: var(--gold);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

.desktop-nav {
  display: flex;
  align-items: center;
  gap: 26px;
  color: rgba(255, 253, 247, 0.74);
  font-weight: 650;
}

.desktop-nav a:hover {
  color: #fff;
}

.nav-actions,
.hero-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.lang-toggle {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 42px;
  padding: 0 14px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 999px;
  color: #fffdf7;
  background: rgba(255, 255, 255, 0.08);
  cursor: pointer;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 50px;
  padding: 0 22px;
  border: 0;
  border-radius: var(--radius);
  color: #121714;
  background: var(--gold);
  box-shadow: 0 12px 28px rgba(245, 164, 0, 0.22);
  font-weight: 850;
  cursor: pointer;
}

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

.button.compact {
  min-height: 42px;
  padding-inline: 16px;
}

.button.secondary {
  border: 1px solid rgba(255, 253, 247, 0.34);
  color: #fffdf7;
  background: rgba(255, 255, 255, 0.08);
  box-shadow: none;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(320px, 0.9fr);
  gap: clamp(32px, 6vw, 78px);
  min-height: min(720px, calc(100vh - 74px));
  padding: clamp(42px, 6vw, 76px) clamp(18px, 5vw, 64px) 34px;
  color: #fffdf7;
  background:
    linear-gradient(90deg, rgba(17, 23, 19, 0.96) 0%, rgba(17, 23, 19, 0.78) 48%, rgba(17, 23, 19, 0.38) 100%),
    url("../images/hero.jpg") center / cover;
  /* WebP with JPEG fallback (older browsers ignore this override and keep the jpg above) */
  background-image:
    linear-gradient(90deg, rgba(17, 23, 19, 0.96) 0%, rgba(17, 23, 19, 0.78) 48%, rgba(17, 23, 19, 0.38) 100%),
    image-set(url("../images/hero.webp") type("image/webp"), url("../images/hero.jpg") type("image/jpeg"));
}

.jobs-hero {
  padding: clamp(58px, 8vw, 94px) clamp(18px, 5vw, 64px) clamp(42px, 6vw, 68px);
  color: #fffdf7;
  background:
    linear-gradient(90deg, rgba(17, 23, 19, 0.96), rgba(17, 23, 19, 0.7)),
    url("../images/hero.jpg") center / cover;
  background-image:
    linear-gradient(90deg, rgba(17, 23, 19, 0.96), rgba(17, 23, 19, 0.7)),
    image-set(url("../images/hero.webp") type("image/webp"), url("../images/hero.jpg") type("image/jpeg"));
}

.jobs-hero h1 {
  max-width: 760px;
  margin: 14px 0 18px;
}

.jobs-hero p {
  max-width: 720px;
  color: rgba(255, 253, 247, 0.78);
  font-size: 20px;
  line-height: 1.6;
}

.jobs-page-section {
  padding-top: clamp(48px, 6vw, 78px);
}

.compliance-note {
  padding-top: 0;
  background: #eef2ed;
}

.hero-copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
  max-width: 780px;
  min-width: 0;
}

/* Prevent grid/flex children from forcing the hero wider than the viewport */
.hero > *,
.hero-actions > * {
  min-width: 0;
}

.eyebrow,
.kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  width: fit-content;
  color: #8f4f00;
  font-size: 13px;
  font-weight: 850;
  text-transform: uppercase;
}

.hero .eyebrow {
  color: #ffd071;
}

.mobile-sticky-cta {
  display: none;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  max-width: 760px;
  margin-bottom: 20px;
  font-size: clamp(44px, 6vw, 74px);
  line-height: 0.96;
  letter-spacing: 0;
}

.hero p {
  max-width: min(650px, 100%);
  overflow-wrap: break-word;
  color: rgba(255, 253, 247, 0.78);
  font-size: clamp(17px, 1.65vw, 21px);
  line-height: 1.55;
}

.trust-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 26px;
}

.trust-strip span {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 34px;
  padding: 0 12px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 999px;
  color: rgba(255, 253, 247, 0.9);
  background: rgba(255, 255, 255, 0.1);
  font-size: 14px;
  font-weight: 700;
}

.trust-strip svg {
  color: #53d18e;
}

.hero-panel {
  align-self: center;
}

.candidate-card {
  overflow: hidden;
  max-width: 520px;
  margin-left: auto;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.12);
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px);
}

.candidate-card img {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
}

.candidate-card div {
  padding: 22px;
}

.candidate-card strong,
.candidate-card span {
  display: block;
}

.candidate-card strong {
  font-size: 22px;
}

.candidate-card span {
  margin-top: 4px;
  color: #ffd071;
  font-weight: 750;
}

.candidate-card p {
  margin: 14px 0 0;
  color: rgba(255, 253, 247, 0.82);
  font-size: 16px;
}

.metrics {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--line);
}

.metric {
  padding: 30px clamp(18px, 4vw, 48px);
  background: #fff9ea;
}

.metric strong,
.metric span {
  display: block;
}

.metric strong {
  color: #8f4f00;
  font-size: clamp(30px, 4vw, 48px);
  line-height: 1;
}

.metric span {
  margin-top: 8px;
  color: var(--muted);
  font-weight: 700;
}

.section {
  padding: clamp(64px, 8vw, 104px) clamp(18px, 5vw, 64px);
}

.section-heading {
  max-width: 760px;
  margin-bottom: 34px;
}

.section-heading.with-action {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
  max-width: none;
}

h2 {
  margin-bottom: 12px;
  font-size: clamp(34px, 5vw, 58px);
  line-height: 1.02;
  letter-spacing: 0;
}

.section-heading p,
.job-card p,
.why-card p,
.local-band p,
.faq-item p,
.final-cta p {
  color: var(--muted);
  line-height: 1.65;
}

.steps,
.why-grid,
.testimonial-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.step,
.why-card,
.testimonial,
.job-card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--paper);
  box-shadow: 0 14px 45px rgba(35, 39, 35, 0.06);
}

.step {
  padding: 28px;
}

.icon-badge {
  display: grid;
  width: 48px;
  height: 48px;
  place-items: center;
  margin-bottom: 22px;
  border-radius: var(--radius);
  color: #103d2e;
  background: #dff5e9;
}

.step small {
  color: #8f4f00;
  font-weight: 850;
  text-transform: uppercase;
}

.step h3,
.why-card h3,
.job-card h3 {
  margin: 8px 0 10px;
  font-size: 22px;
}

.jobs-section {
  background: #eef2ed;
}

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #8f4f00;
  font-weight: 850;
}

.filters {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 22px;
}

.filters button {
  min-height: 40px;
  padding: 0 15px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: #34423b;
  background: #fffdf7;
  font-weight: 800;
  cursor: pointer;
}

.filters button.active {
  border-color: var(--gold);
  color: #111713;
  background: var(--gold);
}

.job-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.job-card {
  display: flex;
  flex-direction: column;
  padding: 24px;
}

.job-topline,
.job-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 750;
}

.job-topline {
  justify-content: space-between;
}

.category {
  color: #8f4f00;
}

.job-meta {
  margin-top: auto;
}

.job-meta span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 18px 0;
}

.tag {
  padding: 6px 9px;
  border-radius: 999px;
  color: #34423b;
  background: #e8ece8;
  font-size: 12px;
  font-weight: 850;
}

.tag.priority-match {
  color: #06563d;
  background: #ccf2df;
}

.tag.english-ok {
  color: #123d78;
  background: #dcecff;
}

.tag.remote,
.tag.hybrid {
  color: #694300;
  background: #ffecb8;
}

.card-button {
  width: 100%;
}

.why-grid {
  grid-template-columns: repeat(4, 1fr);
}

.why-card {
  padding: 24px;
}

.why-card svg {
  color: var(--green);
}

.local-band {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 0.72fr);
  gap: clamp(28px, 6vw, 78px);
  padding: clamp(64px, 8vw, 104px) clamp(18px, 5vw, 64px);
  color: #fffdf7;
  background:
    linear-gradient(90deg, rgba(17, 23, 19, 0.94), rgba(17, 23, 19, 0.78)),
    url("../images/hero.jpg") center / cover;
  background-image:
    linear-gradient(90deg, rgba(17, 23, 19, 0.94), rgba(17, 23, 19, 0.78)),
    image-set(url("../images/hero.webp") type("image/webp"), url("../images/hero.jpg") type("image/jpeg"));
}

.local-band .kicker,
.local-band p {
  color: rgba(255, 253, 247, 0.74);
}

.local-list {
  display: grid;
  gap: 12px;
  align-content: center;
  margin: 0;
  padding: 0;
  list-style: none;
}

.local-list li {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.1);
  font-weight: 800;
}

.local-list svg {
  color: #65df9e;
  flex: 0 0 auto;
}

.testimonial {
  padding: 24px;
}

.avatar {
  display: grid;
  width: 48px;
  height: 48px;
  place-items: center;
  margin-bottom: 14px;
  border-radius: 50%;
  color: #fffdf7;
  background: #2866c7;
  font-weight: 900;
}

.stars {
  display: flex;
  gap: 3px;
  color: var(--gold-dark);
}

.testimonial strong {
  color: #34423b;
}

.faq {
  background: #fffdf7;
}

.faq-list {
  display: grid;
  gap: 10px;
  max-width: 940px;
}

.faq-item {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
}

.faq-item button {
  display: flex;
  width: 100%;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  min-height: 64px;
  padding: 0 20px;
  border: 0;
  color: var(--ink);
  background: transparent;
  font-weight: 850;
  text-align: left;
  cursor: pointer;
}

.faq-item p {
  display: none;
  margin: 0;
  padding: 0 20px 20px;
}

.faq-item.open p {
  display: block;
}

.faq-item.open svg {
  transform: rotate(180deg);
}

.final-cta {
  display: grid;
  grid-template-columns: minmax(0, 0.84fr) minmax(320px, 1fr);
  gap: clamp(28px, 5vw, 68px);
  align-items: start;
  padding: clamp(64px, 8vw, 104px) clamp(18px, 5vw, 64px);
  background: #e7efe7;
}

.lead-form {
  display: grid;
  gap: 14px;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--paper);
  box-shadow: var(--shadow);
}

.lead-form label {
  display: grid;
  gap: 7px;
  color: #34423b;
  font-weight: 800;
}

.lead-form input {
  width: 100%;
  min-height: 50px;
  padding: 0 14px;
  border: 1px solid rgba(23, 33, 29, 0.16);
  border-radius: var(--radius);
  color: var(--ink);
  background: #fff;
}

.upload-label {
  position: relative;
}

.upload-label svg {
  position: absolute;
  right: 14px;
  bottom: 16px;
  color: var(--muted);
}

.lead-form small {
  color: var(--muted);
  text-align: center;
}

.transparency-box {
  margin-top: 24px;
  padding: 18px;
  border: 1px solid rgba(23, 33, 29, 0.12);
  border-radius: var(--radius);
  background: rgba(255, 253, 247, 0.72);
}

.transparency-box h3 {
  margin: 0 0 12px;
  font-size: 18px;
}

.transparency-box ul {
  display: grid;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.transparency-box li {
  display: flex;
  gap: 9px;
  color: #47524c;
  font-size: 14px;
  line-height: 1.45;
}

.transparency-box li::before {
  content: "";
  width: 7px;
  height: 7px;
  margin-top: 7px;
  border-radius: 50%;
  background: var(--green);
  flex: 0 0 auto;
}

.transparency-box svg {
  margin-top: 2px;
  color: var(--green);
  flex: 0 0 auto;
}

.embedded-form {
  display: grid;
  gap: 14px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--paper);
  box-shadow: var(--shadow);
}

.formcraft-frame {
  display: block;
  width: 100%;
  min-height: 640px;
  border: 0;
  border-radius: var(--radius);
  background: #fff;
}

.formcraft-frame[src=""] {
  display: none;
}

.form-placeholder {
  display: grid;
  min-height: 360px;
  place-items: center;
  align-content: center;
  gap: 8px;
  padding: 26px;
  border: 1px dashed rgba(23, 33, 29, 0.22);
  border-radius: var(--radius);
  color: #34423b;
  background: #fff;
  text-align: center;
}

.form-placeholder p {
  max-width: 360px;
  margin: 0;
  color: var(--muted);
}

.embedded-form small {
  color: var(--muted);
  text-align: center;
}

.embedded-form small a {
  color: #8f4f00;
  font-weight: 800;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 30px clamp(18px, 5vw, 64px);
  color: rgba(255, 253, 247, 0.76);
  background: var(--deep);
}

.footer div {
  display: flex;
  gap: 18px;
  flex-wrap: wrap;
}

.footer p {
  margin: 0;
  color: rgba(255, 253, 247, 0.58);
}

.legal-page {
  width: min(860px, calc(100% - 32px));
  margin: 0 auto;
  padding: 48px 0 72px;
}

.legal-page h1 {
  color: var(--ink);
  font-size: clamp(38px, 6vw, 64px);
}

.legal-page h2 {
  margin-top: 34px;
  font-size: 24px;
}

.legal-page p {
  color: #47524c;
  line-height: 1.72;
}

.legal-back {
  display: inline-flex;
  margin-bottom: 28px;
  color: #8f4f00;
  font-weight: 850;
}

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

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

  .hero-panel {
    display: none;
  }

  .job-grid,
  .why-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .metrics,
  .steps,
  .testimonial-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 720px) {
  .site-header {
    padding: 12px 16px;
  }

  .logo span:last-child,
  .nav-actions .button {
    display: none;
  }

  .hero {
    min-height: auto;
    padding: 34px 16px 28px;
  }

  .eyebrow {
    max-width: 100%;
    white-space: normal;
    flex-wrap: wrap;
    line-height: 1.35;
  }

  .hero,
  .jobs-hero {
    width: 100%;
    box-sizing: border-box;
    overflow: hidden;
  }

  .hero-copy,
  .jobs-hero > *,
  .section-heading {
    width: 100%;
    max-width: 100%;
    min-width: 0;
  }

  h1 {
    max-width: 100%;
    font-size: clamp(30px, 8.8vw, 40px);
    line-height: 1.04;
  }

  .hero p,
  .jobs-hero p {
    max-width: 100%;
    font-size: 16px;
    line-height: 1.55;
  }

  .hero-actions,
  .hero-actions .button,
  .trust-strip span,
  .section-heading.with-action,
  .final-cta,
  .local-band {
    width: 100%;
  }

  .section-heading.with-action,
  .final-cta,
  .local-band {
    display: block;
  }

  .trust-strip {
    display: grid;
    gap: 8px;
    margin-top: 18px;
  }

  .trust-strip span {
    min-height: 30px;
    font-size: 13px;
  }

  .metrics,
  .steps,
  .job-grid,
  .why-grid,
  .testimonial-grid {
    grid-template-columns: 1fr;
  }

  .metric {
    padding: 22px 16px;
  }

  .section,
  .final-cta,
  .local-band {
    padding: 56px 16px;
  }

  .filters {
    flex-wrap: nowrap;
    max-width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    padding-bottom: 6px;
  }

  .filters button {
    flex: 0 0 auto;
    max-width: max-content;
  }

  .job-card,
  .step,
  .why-card,
  .testimonial,
  .lead-form,
  .embedded-form {
    padding: 20px;
  }

  .formcraft-frame {
    min-height: 720px;
  }

  .text-link {
    margin-top: 8px;
  }

  .local-list {
    margin-top: 24px;
  }

  .footer {
    align-items: flex-start;
    flex-direction: column;
    padding-bottom: 96px;
  }

  /* Shown only after the user scrolls past the in-hero CTA (toggled in JS) */
  .mobile-sticky-cta.visible {
    display: block;
    position: fixed;
    left: 16px;
    right: 16px;
    bottom: 14px;
    z-index: 60;
    max-width: calc(100vw - 32px);
    padding: 12px 20px;
    text-align: center;
    font-weight: 850;
    color: #111713;
    background: var(--gold);
    border-radius: 999px;
    box-shadow: 0 12px 32px rgba(31, 38, 32, 0.3);
  }

}

    