:root {
  color-scheme: dark;
  --blue: #1f6fe5;          /* company blue */
  --blue-bright: #5b9bff;   /* lighter tint for text on black */
  --blue-glow: rgba(31, 111, 229, .35);
  --blue-soft: rgba(31, 111, 229, .18);
  --bg: #05070b;
  --surface: rgba(255, 255, 255, .035);
  --line: rgba(255, 255, 255, .09);
  --ink: #f2f5fa;
  --muted: #9aa4b5;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: "DM Sans", system-ui, sans-serif;
  color: var(--ink);
  background-color: var(--bg);
  background-image:
    radial-gradient(60rem 40rem at 85% -10%, rgba(31, 111, 229, .28), transparent 60%),
    radial-gradient(40rem 30rem at -10% 60%, rgba(31, 111, 229, .12), transparent 60%);
  background-repeat: no-repeat;
  min-height: 100vh;
}

/* faint blueprint grid */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(255, 255, 255, .035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, .035) 1px, transparent 1px);
  background-size: 56px 56px;
  -webkit-mask-image: radial-gradient(ellipse at 50% 0%, #000 20%, transparent 70%);
          mask-image: radial-gradient(ellipse at 50% 0%, #000 20%, transparent 70%);
}

.page {
  position: relative;
  max-width: 1080px;
  margin: 0 auto;
  padding: 32px 24px 0;
}

/* Logo: unchanged look */
.brand {
  font-size: 1.25rem;
  letter-spacing: .02em;
  color: var(--blue-bright);
}
.brand span { color: #fff; }

/* Hero */
.hero {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 40px;
  align-items: center;
  margin: 56px 0 16px;
}
.eyebrow {
  display: inline-block;
  margin: 0 0 18px;
  padding: 5px 14px;
  border-radius: 999px;
  background: var(--blue-soft);
  border: 1px solid rgba(91, 155, 255, .35);
  color: var(--blue-bright);
  font-size: .8rem;
  font-weight: 500;
  letter-spacing: .05em;
  text-transform: uppercase;
}
h1 {
  font-size: clamp(2rem, 3.6vw, 2.6rem);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -.01em;
  margin: 0 0 20px;
}
h1 em {
  font-style: normal;
  color: var(--blue-bright);
  background: linear-gradient(90deg, var(--blue) 0%, #6aa8ff 100%);
  -webkit-background-clip: text;
          background-clip: text;
  -webkit-text-fill-color: transparent;
}
.hero-copy p { color: var(--muted); line-height: 1.65; margin: 0 0 12px; max-width: 52ch; }
.hero-copy .lead { color: var(--ink); font-size: 1.15rem; }

/* Infinity loop */
.loop {
  width: 100%;
  max-width: 420px;
  justify-self: center;
  overflow: visible;
  filter: drop-shadow(0 0 28px var(--blue-glow));
}
.loop-labels text {
  fill: #fff;
  font: 700 9px "DM Sans", sans-serif;
  letter-spacing: .06em;
  text-anchor: middle;
  dominant-baseline: central;
}
.loop-flow {
  stroke-dasharray: 6 94;
  stroke-opacity: .22;
  animation: loop-flow 6s linear infinite;
}
@keyframes loop-flow { to { stroke-dashoffset: -100; } }
@media (prefers-reduced-motion: reduce) { .loop-flow { display: none; } }

/* Service cards */
.cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin: 48px 0;
}
.card {
  position: relative;
  background: linear-gradient(180deg, rgba(255, 255, 255, .05), rgba(255, 255, 255, .015));
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 22px;
  overflow: hidden;
  transition: transform .25s ease, border-color .25s ease, box-shadow .25s ease;
}
.card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--blue), transparent);
  opacity: 0;
  transition: opacity .25s ease;
}
.card:hover {
  transform: translateY(-4px);
  border-color: rgba(91, 155, 255, .45);
  box-shadow: 0 18px 40px -18px var(--blue-glow);
}
.card:hover::before { opacity: 1; }
.card h2 { font-size: 1.05rem; font-weight: 600; color: var(--ink); margin: 16px 0 8px; }
.card p { font-size: .9rem; color: var(--muted); line-height: 1.6; margin: 0; }

.icon {
  width: 36px; height: 36px;
  border-radius: 10px;
  background: var(--blue-soft);
  border: 1px solid rgba(91, 155, 255, .3);
  display: grid; place-items: center;
}
.icon svg, .round svg {
  width: 18px; height: 18px;
  fill: none; stroke: var(--blue-bright); stroke-width: 1.8;
  stroke-linecap: round; stroke-linejoin: round;
}

/* Scrolling logos: white monochrome on black */
.stack {
  overflow: hidden;
  margin: 0 0 40px;
  padding: 20px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
          mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}
.stack-track {
  list-style: none;
  padding: 0; margin: 0;
  display: flex; align-items: center; gap: 64px;
  width: max-content;
  animation: scroll-logos 25s linear infinite;
}
.stack:hover .stack-track { animation-play-state: paused; }
.stack li { display: flex; align-items: center; }
.stack li img {
  height: 44px; width: auto; display: block;
  opacity: .9;
  transition: opacity .2s ease, transform .2s ease;
}
.stack li img:hover { opacity: 1; transform: scale(1.06); }
.stack li img.logo-lg { height: 76px; margin: -16px 0; }
@keyframes scroll-logos {
  to { transform: translateX(calc(-50% - 32px)); }
}
@media (prefers-reduced-motion: reduce) {
  .stack-track { animation: none; flex-wrap: wrap; width: auto; justify-content: center; }
  .stack-track li[aria-hidden] { display: none; }
}

/* Contact bar */
.cta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 20px 24px;
  margin-bottom: 48px;
  border: 1px solid rgba(91, 155, 255, .3);
  border-radius: 16px;
  background:
    radial-gradient(30rem 8rem at 50% 0%, rgba(31, 111, 229, .25), transparent 70%),
    rgba(255, 255, 255, .03);
}
.cta p { color: var(--ink); font-size: 1.2rem; font-weight: 500; margin: 0; text-align: center; }

.btn {
  background: var(--blue);
  color: #fff;
  text-decoration: none;
  font-weight: 500;
  padding: 13px 20px;
  border-radius: 10px;
  white-space: nowrap;
  box-shadow: 0 8px 24px -8px var(--blue-glow);
  transition: background .2s ease, transform .2s ease;
}
.btn:hover { background: #1658bb; transform: translateY(-1px); }

.contact { display: flex; gap: 12px; }
.round {
  width: 48px; height: 48px;
  border-radius: 50%;
  background: #0d1117;
  border: 1px solid var(--line);
  display: grid; place-items: center;
  transition: background .2s ease, border-color .2s ease;
}
.round svg { width: 22px; height: 22px; stroke: #fff; }
.round:hover { background: var(--blue); border-color: var(--blue); }
.round svg.wa { fill: #25d366; stroke: none; width: 24px; height: 24px; }
.round:hover svg.wa { fill: #fff; }

.nowrap { white-space: nowrap; }

@media (max-width: 760px) {
  .hero { grid-template-columns: 1fr; margin-top: 32px; }
  .loop { max-width: 340px; }
  .cards { grid-template-columns: 1fr; }
  .cta { flex-direction: column; }
}

@media (max-width: 420px) {
  .eyebrow { font-size: .7rem; letter-spacing: .02em; }
}

/* Contact popup */
.modal {
  width: min(560px, calc(100% - 32px));
  max-height: calc(100dvh - 32px);
  padding: 0;
  border: 1px solid rgba(91, 155, 255, .3);
  border-radius: 18px;
  background:
    radial-gradient(28rem 10rem at 50% 0%, rgba(31, 111, 229, .22), transparent 70%),
    #0b0f16;
  color: var(--ink);
  box-shadow: 0 30px 80px -20px rgba(0, 0, 0, .8), 0 0 60px -20px var(--blue-glow);
}
.modal::backdrop {
  background: rgba(2, 4, 8, .72);
  backdrop-filter: blur(4px);
}
.modal[open] { animation: modal-in .22s ease-out; }
@keyframes modal-in { from { opacity: 0; transform: translateY(12px) scale(.98); } }
@media (prefers-reduced-motion: reduce) { .modal[open] { animation: none; } }

.modal-body { position: relative; padding: 28px; display: grid; gap: 14px; }
.modal-body .eyebrow { justify-self: start; margin: 0; }
.modal-body h2 { margin: 0; font-size: 1.5rem; }
.modal-sub { margin: -6px 0 4px; color: var(--muted); font-size: .92rem; }
.modal-close {
  position: absolute; top: 14px; right: 14px;
  width: 36px; height: 36px;
  border: 1px solid var(--line); border-radius: 50%;
  background: transparent; color: var(--muted);
  font-size: 1.4rem; line-height: 1; cursor: pointer;
}
.modal-close:hover { color: #fff; border-color: var(--blue-bright); }

.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.modal label { display: grid; gap: 6px; font-size: .85rem; color: var(--muted); }
.modal .lbl i { font-style: normal; color: var(--blue-bright); }
.modal input, .modal select, .modal textarea {
  width: 100%;
  font: inherit; font-size: .95rem;
  color: var(--ink);
  background: rgba(255, 255, 255, .04);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 11px 12px;
  transition: border-color .15s ease, box-shadow .15s ease;
}
.modal textarea { resize: vertical; min-height: 96px; }
.modal select option { background: #0b0f16; }
.modal input::placeholder, .modal textarea::placeholder { color: #5d6675; }
.modal input:focus, .modal select:focus, .modal textarea:focus {
  outline: none;
  border-color: var(--blue);
  box-shadow: 0 0 0 3px var(--blue-soft);
}
.modal .invalid { border-color: #f05252; }
.hp { position: absolute !important; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

button.btn { border: 0; font: inherit; font-weight: 500; cursor: pointer; }
.btn-block { width: 100%; padding: 14px; font-size: 1rem; }
.btn:disabled { opacity: .6; cursor: wait; }

.form-status { margin: 0; font-size: .9rem; min-height: 1.2em; }
.form-status.success { color: #4ade80; }
.form-status.error { color: #f87171; }

@media (max-width: 520px) {
  .field-row { grid-template-columns: 1fr; }
  .modal-body { padding: 22px 18px; }
}

/* Top bar + client login */
.topbar { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.btn-outline {
  display: inline-flex; align-items: center; gap: 8px;
  font: inherit; font-size: .92rem; font-weight: 500;
  color: var(--ink);
  background: rgba(255, 255, 255, .04);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 9px 16px;
  cursor: pointer;
  transition: border-color .2s ease, background .2s ease;
}
.btn-outline svg {
  width: 16px; height: 16px;
  fill: none; stroke: var(--blue-bright); stroke-width: 1.8;
  stroke-linecap: round; stroke-linejoin: round;
}
.btn-outline:hover { border-color: var(--blue-bright); background: var(--blue-soft); }

.modal-sm { width: min(420px, calc(100% - 32px)); }
.forgot { justify-self: end; margin-top: -6px; font-size: .85rem; color: var(--blue-bright); text-decoration: none; }
.forgot:hover { text-decoration: underline; }
.form-status.info { color: var(--blue-bright); }

/* Responsive polish */
.brand, .btn-outline { white-space: nowrap; }
@media (max-width: 900px) and (min-width: 761px) {
  .hero { grid-template-columns: 1fr 1fr; gap: 28px; }
  .cards { gap: 14px; }
  .card { padding: 18px; }
}
@media (max-width: 360px) {
  .page { padding-left: 16px; padding-right: 16px; }
  .brand { font-size: 1.1rem; }
  .btn-outline { padding: 8px 12px; font-size: .85rem; gap: 6px; }
}

/* Compact contact bar */
.cta {
  margin: 0 0 40px;
  padding: 10px 12px;
  gap: 16px;
  border-radius: 14px;
}
.cta p { font-size: 1rem; }
.cta .btn { padding: 9px 16px; font-size: .92rem; border-radius: 9px; }
.cta .round { width: 38px; height: 38px; }
.cta .round svg.wa { width: 20px; height: 20px; }
@media (max-width: 760px) {
  .cta { padding: 16px; gap: 12px; }
}

/* Bottom section: Careers | Contact (60%) | DutyTracker, no box */
.bottom {
  display: grid;
  grid-template-columns: 1fr 3fr 1fr;
  align-items: center;
  margin: 8px 0 48px;
  padding: 24px 0;
}
.bottom-col {
  display: flex; flex-direction: column; align-items: center; gap: 12px;
  text-align: center;
  padding: 0 16px;
}
.bottom-main {
  border-left: 1px solid var(--line);
  border-right: 1px solid var(--line);
  padding: 0 24px;
}
.bottom-text { margin: 0; color: var(--ink); font-size: 1.1rem; font-weight: 500; }
.bottom-actions { display: flex; align-items: center; gap: 12px; }
.bottom .btn { padding: 10px 18px; font-size: .95rem; }
.bottom .round { width: 42px; height: 42px; }
.bottom .round svg.wa { width: 21px; height: 21px; }
.bottom .round:hover { background: #25d366; border-color: #25d366; }
.bottom .btn-outline { text-decoration: none; }
.btn-outline .ext { width: 13px; height: 13px; stroke: var(--muted); margin-left: -2px; }

@media (max-width: 659px) {
  .bottom { grid-template-columns: 1fr 1fr; row-gap: 28px; }
  .bottom-main {
    grid-column: 1 / -1; grid-row: 1;
    border: 0;
    border-bottom: 1px solid var(--line);
    padding: 0 0 28px;
  }
}

/* No divider lines */
.stack { border-top: 0; border-bottom: 0; }
.bottom-main { border: 0 !important; }

/* Contact message, button and WhatsApp on one line */
.bottom-main { flex-direction: row; justify-content: center; flex-wrap: wrap; gap: 16px; }
.bottom-text { white-space: nowrap; }

/* Order: Careers | DutyTracker | Contact - left group and right group */
@media (min-width: 660px) {
  .bottom { display: flex; align-items: center; gap: 12px; }
  .bottom-col { padding: 0; }
  .bottom-main { margin-left: auto; padding: 0; flex-wrap: nowrap; }
}
@media (max-width: 659px) {
  .bottom-main { grid-row: 2; padding: 0; }
}
@media (max-width: 420px) {
  .bottom-col { padding: 0; }
  .bottom { column-gap: 8px; }
}

/* Keep the contact message on one line: shrink text instead of wrapping */
.bottom-text { white-space: nowrap; font-size: clamp(.68rem, 3.3vw, 1.1rem); }
@media (min-width: 660px) { .bottom-text { font-size: 1.05rem; } }

/* Small screens: message on top, then Careers | DutyTracker | Contact us | WhatsApp in one row */
@media (max-width: 659px) {
  .bottom {
    display: flex; flex-wrap: wrap; justify-content: center; align-items: center;
    gap: 14px 10px;
  }
  .bottom-col, .bottom-main, .bottom-actions { display: contents; }
  .bottom-text { order: -1; flex-basis: 100%; text-align: center; }
}
@media (max-width: 520px) {
  .bottom { gap: 12px 6px; }
  .bottom .btn-outline, .bottom .btn { font-size: .8rem; padding: 8px 11px; gap: 5px; }
  .bottom .btn-outline svg { width: 14px; height: 14px; }
  .bottom .btn-outline .ext { display: none; }
  .bottom .round { width: 35px; height: 35px; }
  .bottom .round svg.wa { width: 18px; height: 18px; }
}
@media (max-width: 380px) {
  .bottom .btn-outline svg { display: none; }
  .bottom .btn-outline, .bottom .btn { font-size: .76rem; padding: 7px 10px; }
}
@media (max-width: 420px) {
  .bottom { gap: 12px 5px; }
  .bottom .btn-outline svg:not(.ext) { display: none; }
  .bottom .btn-outline, .bottom .btn { font-size: .76rem; padding: 7px 10px; }
  .bottom .round { width: 32px; height: 32px; }
  .bottom .round svg.wa { width: 17px; height: 17px; }
}
@media (max-width: 340px) {
  .bottom .btn-outline, .bottom .btn { font-size: .72rem; padding: 7px 8px; }
}

/* Mail icon opens the Contact us form */
button.round { padding: 0; font: inherit; cursor: pointer; color: inherit; }
.mail-btn svg { fill: none; stroke: var(--blue-bright); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; width: 20px; height: 20px; }
.bottom .round.mail-btn:hover { background: var(--blue); border-color: var(--blue); }
.mail-btn:hover svg { stroke: #fff; }
@media (max-width: 420px) { .mail-btn svg { width: 16px; height: 16px; } }

/* 720-1023px: still one line, scaled down */
@media (min-width: 660px) and (max-width: 1023px) {
  .bottom { gap: 8px; }
  .bottom-main { gap: 10px; }
  .bottom-text { font-size: clamp(.78rem, 1.55vw, 1.05rem); }
  .bottom .btn-outline { font-size: .82rem; padding: 7px 12px; gap: 6px; }
  .bottom .btn-outline .ext { display: none; }
  .bottom .round { width: 36px; height: 36px; }
  .bottom .round svg.wa, .mail-btn svg { width: 18px; height: 18px; }
}
@media (min-width: 660px) and (max-width: 860px) {
  .bottom .btn-outline svg { display: none; }
}

/* One centred group, no gap in the middle */
@media (min-width: 660px) {
  .bottom { justify-content: center; gap: 12px; }
  .bottom-main { margin-left: 12px; gap: 12px; }
}

/* Bottom row spans the full content width: starts under the logo, ends under Client login */
@media (min-width: 660px) {
  .bottom {
    display: flex; flex-wrap: nowrap; align-items: center;
    justify-content: space-between; gap: 10px;
    padding: 28px 0;
  }
  .bottom-col, .bottom-main, .bottom-actions { display: contents; }
  .bottom-main { margin: 0; }
  .bottom-text { order: 0; flex-basis: auto; white-space: nowrap; }
  .bottom .btn-outline .ext { display: inline-block; }
  .bottom .btn-outline svg { display: inline-block; }
}
@media (min-width: 1024px) {
  .bottom-text { font-size: 1.15rem; }
  .bottom .btn-outline { font-size: 1rem; padding: 11px 20px; gap: 8px; }
  .bottom .btn-outline svg:not(.ext) { width: 18px; height: 18px; }
  .bottom .round { width: 46px; height: 46px; }
  .bottom .round svg.wa, .bottom .mail-btn svg { width: 22px; height: 22px; }
}
@media (min-width: 660px) and (max-width: 1023px) {
  .bottom-text { font-size: clamp(.74rem, 1.45vw, 1rem); }
  .bottom .btn-outline { font-size: clamp(.74rem, 1.4vw, .92rem); padding: 7px 12px; gap: 6px; }
  .bottom .round { width: 36px; height: 36px; }
}
@media (min-width: 660px) and (max-width: 900px) {
  .bottom .btn-outline svg { display: none; }
}

/* Six items in one line (720px+): everything scales with screen width */
@media (min-width: 660px) {
  .bottom { gap: 8px; }
  .bottom-text { font-size: clamp(.74rem, 1.32vw, 1.08rem); }
  .bottom .btn-outline {
    font-size: clamp(.72rem, 1.22vw, .98rem);
    padding: clamp(6px, .75vw, 10px) clamp(9px, 1.3vw, 18px);
    gap: 6px;
  }
  .bottom .btn-outline svg:not(.ext) { width: 16px; height: 16px; display: inline-block; }
  .bottom .btn-outline .ext { display: inline-block; width: 12px; height: 12px; }
  .bottom .round { width: clamp(32px, 3.5vw, 46px); height: clamp(32px, 3.5vw, 46px); }
  .bottom .round svg.wa, .bottom .mail-btn svg { width: clamp(16px, 1.7vw, 22px); height: clamp(16px, 1.7vw, 22px); }
}
@media (min-width: 660px) and (max-width: 1099px) {
  .bottom .btn-outline svg:not(.ext) { display: none; }
}
@media (min-width: 660px) and (max-width: 659px) {
  .bottom .btn-outline .ext { display: none; }
}
@media (min-width: 660px) {
  .bottom-text { font-size: clamp(.74rem, 1.32vw, 1rem); }
  .bottom .btn-outline { font-size: clamp(.72rem, 1.22vw, .92rem); padding: clamp(6px, .75vw, 9px) clamp(9px, 1.3vw, 16px); }
  .bottom .round { width: clamp(32px, 3.5vw, 42px); height: clamp(32px, 3.5vw, 42px); }
  .bottom .round svg.wa, .bottom .mail-btn svg { width: clamp(16px, 1.7vw, 20px); height: clamp(16px, 1.7vw, 20px); }
}

/* No big gaps: buttons stretch to fill, fixed small gap, bigger sizes */
@media (min-width: 660px) {
  .bottom { justify-content: flex-start; gap: 10px; }
  .bottom .btn-outline {
    flex: 1 1 0; justify-content: center;
    font-size: clamp(.8rem, 1.3vw, 1rem);
    padding: clamp(8px, 1vw, 12px) 10px;
  }
  .bottom-text { font-size: clamp(.82rem, 1.45vw, 1.1rem); padding: 0 6px; }
  .bottom .round { width: clamp(36px, 4vw, 48px); height: clamp(36px, 4vw, 48px); }
  .bottom .round svg.wa, .bottom .mail-btn svg { width: clamp(17px, 1.9vw, 22px); height: clamp(17px, 1.9vw, 22px); }
}
@media (min-width: 660px) and (max-width: 819px) {
  .bottom { gap: 8px; }
  .bottom-text { font-size: .76rem; padding: 0 2px; }
  .bottom .btn-outline { font-size: .74rem; padding: 8px 6px; }
  .bottom .round { width: 34px; height: 34px; }
}

/* Tighter space between the logo strip and the bottom row */
.stack { margin-bottom: 4px; padding-bottom: 12px; }
.bottom { padding-top: 8px; margin-top: 0; }

/* Equal spacing: cards -> logos -> bottom row */
.cards { margin-bottom: 0; }
.stack { margin: 0; padding: 32px 0; }
.bottom { padding-top: 32px; }
.stack { padding: 48px 0 32px; }
.bottom { padding-top: 16px; }

/* Careers page */
.brand-link { text-decoration: none; }
.careers-hero { margin: 56px 0 32px; max-width: 640px; }
.careers-hero h1 { font-size: clamp(2rem, 4vw, 2.8rem); margin: 0 0 14px; }
.careers-hero h1 em { font-style: normal; color: var(--blue-bright); }
.careers-hero .lead { color: var(--muted); font-size: 1.1rem; line-height: 1.6; margin: 0; }
.jobs { display: grid; gap: 16px; margin-bottom: 32px; }
.jobs-title { font-size: 1.1rem; margin: 0 0 4px; color: var(--ink); display: flex; align-items: center; gap: 10px; }
.jobs-title span {
  font-size: .8rem; color: var(--blue-bright);
  background: var(--blue-soft); border: 1px solid rgba(91,155,255,.3);
  border-radius: 999px; padding: 2px 10px;
}
.job {
  background: linear-gradient(180deg, rgba(255,255,255,.05), rgba(255,255,255,.015));
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 22px 24px;
  transition: border-color .25s ease, box-shadow .25s ease;
}
.job:hover { border-color: rgba(91,155,255,.45); box-shadow: 0 18px 40px -18px var(--blue-glow); }
.job-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.job h2 { margin: 0; font-size: 1.25rem; }
.job p { color: var(--muted); line-height: 1.6; margin: 10px 0 12px; }
.job ul { margin: 0; padding-left: 18px; color: var(--muted); line-height: 1.7; font-size: .93rem; }
.job li::marker { color: var(--blue-bright); }
.job .btn { padding: 10px 22px; }
.jobs-note {
  display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap;
  padding: 20px 24px; margin-bottom: 40px;
  border: 1px dashed rgba(91,155,255,.35); border-radius: 14px;
}
.jobs-note p { margin: 0; color: var(--ink); }
.jobs-note .btn-outline { text-decoration: none; }
@media (max-width: 520px) {
  .job-head { align-items: flex-start; }
  .job { padding: 18px; }
}
a.btn-outline { text-decoration: none; color: var(--ink); }

/* Phone with country code (India by default) */
.phone-field { display: grid; gap: 6px; font-size: .85rem; color: var(--muted); }
.phone-row { display: flex; gap: 8px; }
.phone-row select { flex: 0 0 auto; width: auto; max-width: 48%; }
.phone-row input { flex: 1 1 auto; min-width: 0; }
.modal select option[disabled] { color: #5d6675; }
.phone-row select { flex: 0 0 150px; width: 150px; max-width: none; text-overflow: ellipsis; }
@media (max-width: 420px) { .phone-row select { flex-basis: 135px; width: 135px; } }

/* Inline email message */
.field-msg { min-height: 0; font-size: .8rem; color: var(--muted); }
.field-msg:empty { display: none; }
.field-msg.error { color: #f87171; }
.field-fix {
  background: none; border: 0; padding: 0; font: inherit;
  color: var(--blue-bright); text-decoration: underline; cursor: pointer;
}

/* Header: larger logo, centred with the Client login button */
.topbar { align-items: center; min-height: 44px; }
.brand { font-size: 1.65rem; line-height: 1; letter-spacing: .03em; }
@media (max-width: 420px) { .brand { font-size: 1.3rem; } }

/* Header: logo letters and Client login button start at the same distance from the top */
.topbar { align-items: flex-start; }
.brand { margin-top: -3px; }
@media (max-width: 420px) { .brand { margin-top: -2px; } }

.modal label[hidden] { display: none !important; }

/* Client login: same height as the SOLO SAJAN letters */
.topbar .btn-outline {
  position: relative;
  height: calc(1.65rem * .72);
  padding: 0 10px;
  font-size: .7rem;
  line-height: 1;
  gap: 5px;
}
.topbar .btn-outline svg { width: 11px; height: 11px; }
.topbar .btn-outline::after { content: ""; position: absolute; inset: -12px -6px; } /* bigger tap area, invisible */
.topbar .brand { margin-top: 0; line-height: .72; padding-top: 0; }
@media (max-width: 420px) {
  .topbar .brand { font-size: 1.45rem; }
  .topbar .btn-outline { height: calc(1.45rem * .72); font-size: .62rem; padding: 0 8px; }
  .topbar .btn-outline svg { width: 10px; height: 10px; }
}
.topbar .brand { position: relative; top: 1px; }

/* ===== Client login on the headline line ===== */
/* undo the slim header button and logo nudges */
.topbar .brand { position: static; top: auto; line-height: 1; margin-top: 0; }
.topbar .btn-outline { height: auto; padding: 9px 16px; font-size: .92rem; gap: 8px; }
.topbar .btn-outline svg { width: 16px; height: 16px; }
.topbar .btn-outline::after { content: none; }
.topbar { align-items: center; }

.hero { align-items: start; }
.hero-side { display: flex; flex-direction: column; align-items: flex-end; gap: 18px; }
.hero-side .loop { align-self: center; }
.hero-login { font-size: 1rem; padding: 11px 20px; gap: 9px; }
.hero-login svg { width: 18px; height: 18px; }

@media (max-width: 760px) {
  .hero-side { display: contents; }
  .hero-login { order: -1; justify-self: end; margin-bottom: -8px; }
  .hero-side .loop { justify-self: center; }
}
@media (min-width: 761px) {
  /* keep the button centred on the headline's first line as the headline scales */
  .hero-side { margin-top: calc(clamp(2rem, 3.6vw, 2.6rem) * .65 - 27px); }
}
@media (max-width: 760px) {
  .page { position: relative; }
  .hero-login { position: absolute; top: 25px; right: 24px; margin: 0; font-size: .92rem; padding: 9px 16px; }
}
@media (max-width: 360px) {
  .hero-login { right: 16px; padding: 8px 12px; font-size: .85rem; }
}
@media (max-width: 760px) { .hero-login { top: 34px; } }
@media (max-width: 360px) { .hero-login { top: 36px; } }

/* ===== Client login moved to the bottom row ===== */
.hero { align-items: center; }
.bottom button.btn-outline { cursor: pointer; }

/* Seven items on one line (900px+): sizes tuned to the 1032px content width */
@media (min-width: 660px) {
  .bottom { gap: 8px; }
  .bottom-text { font-size: clamp(.78rem, 1.32vw, .98rem); padding: 0 4px; }
  .bottom .btn-outline {
    flex: 1 1 0; justify-content: center;
    font-size: clamp(.74rem, 1.2vw, .9rem);
    padding: clamp(8px, .9vw, 11px) 8px; gap: 6px;
  }
  .bottom .btn-outline svg:not(.ext) { width: 15px; height: 15px; }
  .bottom .round { width: clamp(34px, 3.6vw, 42px); height: clamp(34px, 3.6vw, 42px); }
  .bottom .round svg.wa, .bottom .mail-btn svg { width: clamp(16px, 1.7vw, 20px); height: clamp(16px, 1.7vw, 20px); }
  .bottom .btn-outline .ext { display: none; }
}
@media (min-width: 660px) and (max-width: 1179px) {
  .bottom .btn-outline svg:not(.ext) { display: none; }
}

/* Shorter message: one line from 640px up */
@media (min-width: 660px) {
  .bottom { gap: 8px; }
  .bottom-text { font-size: clamp(.8rem, 1.45vw, 1.02rem); }
  .bottom .btn-outline { font-size: clamp(.74rem, 1.25vw, .92rem); padding: clamp(8px, .9vw, 11px) 6px; }
  .bottom .round { width: clamp(34px, 3.8vw, 42px); height: clamp(34px, 3.8vw, 42px); }
}
@media (min-width: 660px) and (max-width: 899px) {
  .bottom .btn-outline svg:not(.ext) { display: none; }
}
@media (min-width: 1080px) {
  .bottom .btn-outline svg:not(.ext) { display: inline-block; }
}

/* Buttons sized to their wording (no stretching); row still spans edge to edge */
@media (min-width: 660px) {
  .bottom { justify-content: space-between; gap: 8px; }
  .bottom .btn-outline {
    flex: 0 0 auto;
    font-size: clamp(.76rem, 1.42vw, 1rem);
    padding: clamp(8px, .9vw, 11px) clamp(12px, 2vw, 22px);
  }
  .bottom-text { font-size: clamp(.82rem, 1.62vw, 1.12rem); flex: 0 0 auto; }
  .bottom .round { width: clamp(34px, 4vw, 44px); height: clamp(34px, 4vw, 44px); }
}
@media (min-width: 660px) {
  .bottom .btn-outline { font-size: clamp(.7rem, 1.5vw, 1rem); padding: clamp(7px, .95vw, 11px) clamp(9px, 2.05vw, 22px); }
  .bottom-text { font-size: clamp(.74rem, 1.68vw, 1.12rem); }
  .bottom .round { width: clamp(32px, 4.1vw, 44px); height: clamp(32px, 4.1vw, 44px); }
}
@media (min-width: 900px) { .bottom .btn-outline svg:not(.ext) { display: inline-block; } }
@media (min-width: 660px) and (max-width: 899px) { .bottom .btn-outline svg:not(.ext) { display: none; } }

/* ===== Phones (<660px): 2x2 buttons, then message + mail + WhatsApp on one line ===== */
@media (max-width: 659px) {
  .bottom {
    display: grid; grid-template-columns: 1fr 1fr;
    gap: 10px; padding-top: 16px;
  }
  .bottom-col { display: block; padding: 0; }
  .bottom-col .btn-outline {
    width: 100%; justify-content: center;
    font-size: .9rem; padding: 10px 8px; gap: 7px;
  }
  .bottom .btn-outline svg:not(.ext) { display: inline-block; width: 15px; height: 15px; }
  .bottom .btn-outline .ext { display: none; }
  .bottom-main {
    display: flex; grid-column: 1 / -1; grid-row: auto;
    flex-direction: row; flex-wrap: nowrap;
    justify-content: center; align-items: center; gap: 10px;
    margin: 8px 0 0; padding: 0; border: 0;
  }
  .bottom-actions { display: flex; gap: 8px; }
  .bottom-text { order: 0; flex-basis: auto; white-space: nowrap; font-size: clamp(.82rem, 3.9vw, 1rem); padding: 0; }
  .bottom .round { width: 40px; height: 40px; }
  .bottom .round svg.wa, .bottom .mail-btn svg { width: 19px; height: 19px; }
}
@media (max-width: 359px) {
  .bottom-col .btn-outline { font-size: .82rem; padding: 9px 6px; gap: 5px; }
  .bottom .btn-outline svg:not(.ext) { width: 13px; height: 13px; }
  .bottom .round { width: 36px; height: 36px; }
}

/* Stop the iPhone/Android "pull past the end" bounce, and keep any overscroll the same dark colour */
html { background: var(--bg); overscroll-behavior-y: none; }
body { overscroll-behavior-y: none; }

/* Bottom row: no box around Client login / Careers / DutyTracker / SoloBooking */
.bottom .btn-outline {
  background: none;
  border-color: transparent;
  box-shadow: none;
}
.bottom .btn-outline:hover {
  background: none;
  border-color: transparent;
  color: var(--blue-bright);
}
.bottom .btn-outline:focus-visible { outline: 2px solid var(--blue-bright); outline-offset: 2px; }

/* Careers intro without the heading */
.careers-hero { margin-top: 40px; }
