/* ==========================================================================
   SmartCity HR Services — palette taken from the logo
   navy #12275E · blue #1B7FD4 · green #2E7D32 · light #F4F6F9
   ========================================================================== */

:root {
  --navy: #12275e;
  --navy-700: #1b3576;
  --navy-900: #0b1838;
  --blue: #1b7fd4;
  --blue-400: #4ba0e8;
  --blue-50: #eaf4fd;
  --green: #2e7d32;
  --green-400: #4caf50;
  --green-50: #eaf5eb;

  --ink: #14243f;
  --body: #55627a;
  --muted: #8a94a6;
  --line: #e4e9f2;
  --bg: #ffffff;
  --bg-soft: #f4f6f9;

  --radius: 16px;
  --radius-sm: 10px;
  --shadow-sm: 0 1px 2px rgba(18, 39, 94, .06), 0 2px 8px rgba(18, 39, 94, .05);
  --shadow: 0 8px 30px rgba(18, 39, 94, .10);
  --shadow-lg: 0 24px 60px rgba(18, 39, 94, .16);
  --grad: linear-gradient(135deg, var(--navy) 0%, #1a3f8f 48%, var(--blue) 100%);
  --maxw: 1180px;
  --ease: cubic-bezier(.4, 0, .2, 1);
}

*, *::before, *::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  /* The off-canvas mobile menu is fixed-positioned just past the right edge.
     Clipping at the root stops it creating a horizontal scrollbar, while
     `clip` (unlike `hidden`) keeps position: sticky working on the header. */
  overflow-x: clip;
}

body {
  margin: 0;
  overflow-x: clip;
  font-family: 'Plus Jakarta Sans', 'Segoe UI', system-ui, -apple-system, sans-serif;
  color: var(--body);
  background: var(--bg);
  font-size: 16px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5 {
  font-family: 'Plus Jakarta Sans', 'Segoe UI', system-ui, sans-serif;
  color: var(--ink);
  line-height: 1.22;
  margin: 0 0 .6em;
  font-weight: 800;
  letter-spacing: -.02em;
}
h1 { font-size: clamp(2.1rem, 4.6vw, 3.4rem); }
h2 { font-size: clamp(1.65rem, 3.2vw, 2.4rem); }
h3 { font-size: clamp(1.15rem, 2vw, 1.4rem); }
p  { margin: 0 0 1.1em; }

a { color: var(--blue); text-decoration: none; transition: color .2s var(--ease); }
a:hover { color: var(--navy); }
img { max-width: 100%; display: block; }

.container { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: 20px; }
.section { padding: 84px 0; }
.section--soft { background: var(--bg-soft); }
.text-center { text-align: center; }

/* ---------- Skip link (keyboard + screen reader) ---------- */
.skip-link {
  position: absolute; left: 12px; top: -60px; z-index: 200;
  background: var(--navy); color: #fff; padding: 11px 20px;
  border-radius: 0 0 10px 10px; font-weight: 700; font-size: .92rem;
  transition: top .2s var(--ease);
}
.skip-link:focus { top: 0; color: #fff; outline: 3px solid var(--blue-400); outline-offset: 2px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  padding: 13px 26px; border: 0; border-radius: 999px;
  font: inherit; font-weight: 700; font-size: .95rem; letter-spacing: .01em;
  cursor: pointer; text-align: center; white-space: nowrap;
  transition: transform .2s var(--ease), box-shadow .2s var(--ease), background .2s var(--ease);
}
.btn:hover { transform: translateY(-2px); }
/* Solid CTAs read white on a dark fill, and invert to a light fill with the
   brand colour as the text on hover. */
.btn--primary {
  background: var(--grad); color: #fff;
  border: 1.5px solid transparent;
  box-shadow: 0 8px 22px rgba(27, 127, 212, .32);
}
.btn--primary:hover, .btn--primary:focus-visible {
  background: #fff; background-image: none;
  color: var(--navy); border-color: var(--navy);
  box-shadow: 0 14px 32px rgba(18, 39, 94, .22);
}

.btn--green {
  background: linear-gradient(135deg, var(--green) 0%, var(--green-400) 100%); color: #fff;
  border: 1.5px solid transparent;
  box-shadow: 0 8px 22px rgba(46, 125, 50, .3);
}
.btn--green:hover, .btn--green:focus-visible {
  background: #fff; background-image: none;
  color: var(--green); border-color: var(--green);
  box-shadow: 0 14px 32px rgba(46, 125, 50, .26);
}

/* On a dark section the inversion runs the other way: translucent → solid white. */
.btn--ghost { background: rgba(255, 255, 255, .12); color: #fff; border: 1.5px solid rgba(255, 255, 255, .45); backdrop-filter: blur(6px); }
.btn--ghost:hover, .btn--ghost:focus-visible { background: #fff; color: var(--navy); border-color: #fff; }

.btn--outline { background: #fff; color: var(--navy); border: 1.5px solid var(--line); box-shadow: var(--shadow-sm); }
.btn--outline:hover, .btn--outline:focus-visible {
  background: var(--navy); color: #fff; border-color: var(--navy);
  box-shadow: 0 10px 26px rgba(18, 39, 94, .24);
}

/* Keyboard focus stays visible on every variant. */
.btn:focus-visible { outline: 3px solid rgba(27, 127, 212, .45); outline-offset: 2px; }
.btn--sm { padding: 9px 18px; font-size: .86rem; }
.btn--block { width: 100%; }
.btn[disabled] { opacity: .55; pointer-events: none; }

/* ---------- Header ---------- */
.topbar {
  background: var(--navy-900); color: rgba(255, 255, 255, .78);
  font-size: .84rem; padding: 8px 0;
}
.topbar .container { display: flex; gap: 22px; align-items: center; flex-wrap: wrap; }
.topbar a { color: rgba(255, 255, 255, .85); }
.topbar a:hover { color: #fff; }
.topbar .spacer { margin-left: auto; }

.site-header {
  position: sticky; top: 0; z-index: 60;
  background: rgba(255, 255, 255, .92);
  backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid var(--line);
  transition: box-shadow .25s var(--ease);
}
.site-header.is-stuck { box-shadow: var(--shadow-sm); }
.site-header .container { display: flex; align-items: center; gap: 18px; min-height: 76px; }

.brand { display: flex; align-items: center; gap: 12px; flex-shrink: 0; }
.brand img { height: 48px; width: auto; }
.brand__txt { display: none; line-height: 1.15; }
.brand__txt b { display: block; color: var(--navy); font-size: 1.02rem; font-weight: 800; letter-spacing: -.02em; }
.brand__txt span { font-size: .72rem; color: var(--green); font-weight: 600; letter-spacing: .05em; text-transform: uppercase; }

.nav { margin-left: auto; display: flex; align-items: center; gap: 4px; }
.nav a {
  padding: 9px 15px; border-radius: 999px; color: var(--ink);
  font-weight: 600; font-size: .94rem;
  transition: background .2s var(--ease), color .2s var(--ease);
}
.nav a:hover { background: var(--blue-50); color: var(--blue); }
.nav a.active { color: var(--blue); background: var(--blue-50); }

/* The CTA inside the nav is a button, not a nav link — `.nav a` above would
   otherwise win on specificity and turn its white label dark. */
.nav a.btn { padding: 11px 22px; }
.nav a.btn.btn--sm { padding: 9px 20px; }
.nav a.btn--primary { color: #fff; background: var(--grad); }
.nav a.btn--primary:hover, .nav a.btn--primary:focus-visible {
  color: var(--navy); background: #fff; background-image: none; border-color: var(--navy);
}
.nav a.btn--green { color: #fff; }
.nav a.btn--green:hover, .nav a.btn--green:focus-visible { color: var(--green); background: #fff; background-image: none; }
.nav a.btn--outline { color: var(--navy); background: #fff; }
.nav a.btn--outline:hover, .nav a.btn--outline:focus-visible { color: #fff; background: var(--navy); }

.header-cta { margin-left: 10px; }

.nav-toggle {
  display: none; margin-left: auto; width: 44px; height: 44px;
  border: 1px solid var(--line); border-radius: 12px; background: #fff;
  cursor: pointer; align-items: center; justify-content: center;
}
.nav-toggle span { display: block; width: 19px; height: 2px; background: var(--navy); position: relative; border-radius: 2px; transition: .25s var(--ease); }
.nav-toggle span::before, .nav-toggle span::after {
  content: ''; position: absolute; left: 0; width: 19px; height: 2px; background: var(--navy); border-radius: 2px; transition: .25s var(--ease);
}
.nav-toggle span::before { top: -6px; }
.nav-toggle span::after { top: 6px; }
.nav-toggle.is-open span { background: transparent; }
.nav-toggle.is-open span::before { top: 0; transform: rotate(45deg); }
.nav-toggle.is-open span::after { top: 0; transform: rotate(-45deg); }

/* ---------- Hero ---------- */
.hero { position: relative; background: var(--grad); color: #fff; overflow: hidden; padding: 96px 0 104px; }
.hero::before, .hero::after {
  content: ''; position: absolute; border-radius: 50%; pointer-events: none;
}
.hero::before { width: 620px; height: 620px; right: -170px; top: -230px; background: radial-gradient(circle, rgba(76, 175, 80, .28), transparent 68%); }
.hero::after  { width: 520px; height: 520px; left: -180px; bottom: -250px; background: radial-gradient(circle, rgba(75, 160, 232, .32), transparent 68%); }
.hero .container { position: relative; z-index: 2; }
.hero-grid { display: grid; grid-template-columns: 1.08fr .92fr; gap: 56px; align-items: center; }
.hero h1, .hero .h1-alt { color: #fff; margin-bottom: .45em; }
/* Slides 2 and 3 look like the headline but are not <h1>, so the page keeps a
   single top-level heading — correct for search engines and screen readers. */
.hero .h1-alt {
  font-family: 'Plus Jakarta Sans', 'Segoe UI', system-ui, sans-serif;
  font-size: clamp(2.1rem, 4.6vw, 3.4rem);
  font-weight: 800; line-height: 1.22; letter-spacing: -.02em;
}
.hero h1 .accent { background: linear-gradient(120deg, #7ee08a, var(--green-400)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero p.lead { color: rgba(255, 255, 255, .88); font-size: 1.12rem; max-width: 52ch; }
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 30px; }

.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 7px 16px; border-radius: 999px; margin-bottom: 22px;
  background: rgba(255, 255, 255, .14); border: 1px solid rgba(255, 255, 255, .26);
  font-size: .8rem; font-weight: 700; letter-spacing: .07em; text-transform: uppercase;
}
.eyebrow--light { background: var(--blue-50); border-color: transparent; color: var(--blue); }
.eyebrow--green { background: var(--green-50); border-color: transparent; color: var(--green); }

.hero-card {
  background: rgba(255, 255, 255, .1); border: 1px solid rgba(255, 255, 255, .22);
  border-radius: 22px; padding: 30px; backdrop-filter: blur(12px);
  box-shadow: var(--shadow-lg);
}

/* Slide artwork. The intrinsic width/height on the <img> reserves the space, so
   the hero never jumps as the illustration loads. */
.hero-figure { margin: 0; }
.hero-figure img {
  width: 100%; height: auto; max-width: 560px; margin-inline: auto;
  filter: drop-shadow(0 18px 44px rgba(8, 21, 48, .34));
}

/* The three headline points, under the call-to-action buttons. */
.hero-points {
  list-style: none; margin: 28px 0 0; padding: 0;
  display: flex; flex-wrap: wrap; gap: 10px 26px;
}
.hero-points li {
  display: flex; gap: 9px; align-items: center;
  color: rgba(255, 255, 255, .9); font-size: .92rem;
}
.hero-points .tick {
  flex: 0 0 20px; height: 20px; border-radius: 50%;
  background: var(--green-400); color: #fff; font-size: 11px; font-weight: 800;
  display: grid; place-items: center;
}
.hero-card h3 { color: #fff; font-size: 1.15rem; margin-bottom: 18px; }
.hero-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
/* Default to body text, because this list is also used on white sections
   (the Services page). The white variant is scoped to dark backgrounds below. */
.hero-list li { display: flex; gap: 12px; align-items: flex-start; color: var(--body); font-size: .95rem; }
.hero-list li b { color: var(--ink); }

.hero .hero-list li,
.hero-card .hero-list li,
.page-head .hero-list li,
.cta-band .hero-list li,
.site-footer .hero-list li { color: rgba(255, 255, 255, .92); }
.hero .hero-list li b,
.hero-card .hero-list li b,
.page-head .hero-list li b,
.cta-band .hero-list li b { color: #fff; }
.hero-list .tick {
  flex: 0 0 22px; height: 22px; border-radius: 50%; margin-top: 2px;
  background: var(--green-400); color: #fff; font-size: 12px; font-weight: 800;
  display: grid; place-items: center;
}

/* ---------- Slider (hero carousel + page-head highlights) ---------- */
.slides { display: grid; }
.slide {
  grid-area: 1 / 1;          /* all slides stack, so the tallest sets the height */
  min-width: 0;
}
html.js .slide {
  opacity: 0; visibility: hidden; transform: translateY(16px);
  transition: opacity .55s var(--ease), transform .55s var(--ease), visibility .55s var(--ease);
}
html.js .slide.is-active { opacity: 1; visibility: visible; transform: none; }

/* Controls */
.slider-ui {
  display: flex; align-items: center; gap: 14px;
  margin-top: 34px; position: relative; z-index: 3;
}
.slider-dots { display: flex; gap: 9px; }
.slider-dot {
  width: 30px; height: 5px; padding: 0; border: 0; border-radius: 99px; cursor: pointer;
  background: rgba(255, 255, 255, .34);
  transition: background .25s var(--ease), width .25s var(--ease);
}
.slider-dot:hover { background: rgba(255, 255, 255, .6); }
.slider-dot[aria-selected="true"] { background: var(--green-400); width: 46px; }
.slider-dot:focus-visible { outline: 3px solid rgba(255, 255, 255, .7); outline-offset: 3px; }

.slider-arrow {
  width: 42px; height: 42px; flex: 0 0 42px; padding: 0; cursor: pointer;
  border-radius: 50%; border: 1.5px solid rgba(255, 255, 255, .42);
  background: rgba(255, 255, 255, .12); color: #fff;
  display: grid; place-items: center;
  transition: background .2s var(--ease), color .2s var(--ease), border-color .2s var(--ease);
}
.slider-arrow:hover, .slider-arrow:focus-visible { background: #fff; color: var(--navy); border-color: #fff; }
.slider-arrow:focus-visible { outline: 3px solid rgba(255, 255, 255, .7); outline-offset: 2px; }
.slider-arrow svg { width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }

.slider-count { margin-left: auto; font-size: .82rem; color: rgba(255, 255, 255, .62); font-weight: 600; letter-spacing: .04em; }

/* Progress bar along the bottom of the hero */
.slider-progress { position: absolute; left: 0; right: 0; bottom: 0; height: 3px; background: rgba(255, 255, 255, .14); z-index: 3; }
.slider-progress span { display: block; height: 100%; width: 0; background: linear-gradient(90deg, var(--green-400), #7ee08a); }
.slider-progress span.run { transition: width linear; }

/* Compact variant used in the page-head banners */
.strip { display: flex; align-items: flex-start; gap: 14px; }
.strip__icon {
  flex: 0 0 44px; height: 44px; border-radius: 13px; display: grid; place-items: center;
  background: rgba(255, 255, 255, .16); border: 1px solid rgba(255, 255, 255, .24); font-size: 20px;
}
.strip b { display: block; color: #fff; font-size: 1.02rem; margin-bottom: 2px; }
.strip p { margin: 0; color: rgba(255, 255, 255, .8); font-size: .94rem; }

.page-head--slider { padding-bottom: 46px; }
.page-head--slider .slides { margin-top: 26px; padding-top: 22px; border-top: 1px solid rgba(255, 255, 255, .16); }
.page-head--slider .slider-ui { margin-top: 18px; }

@media (max-width: 640px) {
  .slider-ui { gap: 10px; margin-top: 26px; }
  .slider-arrow { width: 38px; height: 38px; flex-basis: 38px; }
  .slider-count { display: none; }
  .strip__icon { flex-basis: 38px; height: 38px; font-size: 17px; border-radius: 11px; }
}

@media (prefers-reduced-motion: reduce) {
  html.js .slide { transition: none; }
  .slider-progress { display: none; }
}

@media print {
  html.js .slide { opacity: 1; visibility: visible; position: static; transform: none; }
  .slider-ui, .slider-progress { display: none; }
}

/* ---------- Full-bleed hero slides (background image + overlaid text) ---------- */
.hero--bg { padding: 0; }
.hero--bg::before, .hero--bg::after { display: none; }   /* the scrim handles the glow now */
.hero--bg .slides { display: grid; }
.hero--bg .slide {
  grid-area: 1 / 1;
  position: relative;
  display: grid;
  align-items: center;
  min-height: clamp(540px, 76vh, 760px);
  padding: 96px 0 118px;                 /* room for the controls at the bottom */
  overflow: hidden;
}

/* Two stacked background layers. The photo sits on top; if it is missing the
   browser simply skips that layer and the illustration below it shows through,
   so the hero looks right before any photograph has been added. */
.hero--bg .slide__media {
  position: absolute; inset: 0; z-index: 0;
  background-size: cover, contain;
  background-position: center center, right -40px center;
  background-repeat: no-repeat, no-repeat;
}

/* Paths are declared here rather than in the HTML: a relative url() is resolved
   against the stylesheet, so keeping them in one place avoids broken links and
   makes swapping a photograph a one-line change.
   Second layer = the bundled illustration, shown if the photo is ever missing. */
.hero--bg .slide--1 .slide__media {
  background-image: url(../img/photos/slide-1-handshake.jpg), url(../img/hero-recruitment.svg);
}
.hero--bg .slide--2 .slide__media {
  background-image: url(../img/photos/slide-2-warehouse-team.jpg), url(../img/hero-manpower.svg);
}
.hero--bg .slide--3 .slide__media {
  background-image: url(../img/photos/slide-3-interview.jpg), url(../img/hero-jobs.svg);
}

/* Darkens the photo so the text stays readable whatever the image is. */
.hero--bg .slide__scrim {
  position: absolute; inset: 0; z-index: 1;
  background:
    linear-gradient(100deg, rgba(8, 20, 48, .93) 0%, rgba(11, 27, 66, .84) 38%,
                            rgba(13, 40, 96, .58) 66%, rgba(16, 60, 130, .42) 100%),
    radial-gradient(60% 80% at 88% 18%, rgba(76, 175, 80, .30), transparent 70%);
}

.hero--bg .slide__inner { position: relative; z-index: 2; }
.hero--bg .slide__inner > * { max-width: 640px; }
.hero--bg .eyebrow { margin-bottom: 20px; }
.hero--bg .lead { font-size: 1.1rem; }

/* Controls pinned to the bottom of the hero, lined up with the page container. */
.hero--bg .slider-ui {
  position: absolute; left: 0; right: 0; bottom: 34px;
  margin: 0 auto; z-index: 4;
}
.hero--bg .slider-progress { bottom: 0; }

@media (max-width: 991px) {
  .hero--bg .slide { min-height: clamp(500px, 74vh, 660px); padding: 76px 0 104px; }
  /* Without the two-column layout the artwork fallback would crowd the text,
     so it is centred and dimmed behind the scrim instead. */
  .hero--bg .slide__media { background-position: center center, center right -90px; }
}

@media (max-width: 640px) {
  .hero--bg .slide { min-height: 0; padding: 190px 0 92px; }   /* photo shows above the copy */
  .hero--bg .lead { font-size: 1rem; }
  /* On a phone the text sits over the lower half, so the photograph is left
     mostly clear at the top and the scrim deepens behind the copy. */
  .hero--bg .slide__scrim {
    background:
      linear-gradient(180deg, rgba(8, 20, 48, .38) 0%, rgba(9, 23, 56, .62) 26%,
                              rgba(10, 26, 64, .88) 46%, rgba(11, 27, 66, .95) 62%,
                              rgba(11, 27, 66, .97) 100%),
      radial-gradient(80% 36% at 78% 6%, rgba(76, 175, 80, .22), transparent 74%);
  }
  /* Portrait-shaped crops on phones, so faces are not cut off by `cover`. */
  .hero--bg .slide__media {
    background-size: cover, 300px;
    background-position: center top, top -20px right -50px;
  }
  .hero--bg .slide--1 .slide__media { background-image: url(../img/photos/slide-1-handshake-sm.jpg), url(../img/hero-recruitment.svg); }
  .hero--bg .slide--2 .slide__media { background-image: url(../img/photos/slide-2-warehouse-team-sm.jpg), url(../img/hero-manpower.svg); }
  .hero--bg .slide--3 .slide__media { background-image: url(../img/photos/slide-3-interview-sm.jpg), url(../img/hero-jobs.svg); }
  .hero--bg .slider-ui { bottom: 26px; }
}

/* ---------- Stats ---------- */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; margin-top: -52px; position: relative; z-index: 5; }
.hero--bg + .container .stats { margin-top: 36px; }
.stat {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 26px 22px; text-align: center; box-shadow: var(--shadow);
  transition: transform .25s var(--ease), box-shadow .25s var(--ease);
}
.stat:hover { transform: translateY(-5px); box-shadow: var(--shadow-lg); }
.stat b, .stat b span { display: block; font-size: 2.05rem; font-weight: 800; color: var(--navy); letter-spacing: -.03em; line-height: 1.1; }
.stat > span { font-size: .87rem; color: var(--muted); font-weight: 600; }

/* ---------- Section heads ---------- */
.sec-head { max-width: 680px; margin: 0 auto 52px; text-align: center; }
.sec-head p { color: var(--body); font-size: 1.04rem; margin-bottom: 0; }
.sec-head--left { margin-inline: 0; text-align: left; }

/* ---------- Cards ---------- */
.grid { display: grid; gap: 24px; }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid--2 { grid-template-columns: repeat(2, 1fr); }
.grid--4 { grid-template-columns: repeat(4, 1fr); }

.card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 30px; box-shadow: var(--shadow-sm);
  transition: transform .25s var(--ease), box-shadow .25s var(--ease), border-color .25s var(--ease);
}
.card:hover { transform: translateY(-6px); box-shadow: var(--shadow); border-color: #d3dcea; }
.card h3 { margin-bottom: .5em; }
.card p:last-child { margin-bottom: 0; }

.icon-badge {
  width: 54px; height: 54px; border-radius: 15px; margin-bottom: 20px;
  display: grid; place-items: center; font-size: 25px;
  background: var(--blue-50); color: var(--blue);
}
.icon-badge--green { background: var(--green-50); color: var(--green); }
.icon-badge--navy { background: #e8ecf6; color: var(--navy); }

/* ---------- Job cards ---------- */
.job-card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 26px; box-shadow: var(--shadow-sm); display: flex; flex-direction: column; gap: 14px;
  transition: transform .25s var(--ease), box-shadow .25s var(--ease), border-color .25s var(--ease);
}
.job-card:hover { transform: translateY(-5px); box-shadow: var(--shadow); border-color: var(--blue-400); }
.job-card__top { display: flex; justify-content: space-between; gap: 14px; align-items: flex-start; }
.job-card h3 { margin: 0 0 4px; font-size: 1.16rem; }
.job-card h3 a { color: var(--ink); }
.job-card h3 a:hover { color: var(--blue); }
.job-card__co { color: var(--muted); font-size: .9rem; font-weight: 600; }
.job-card__meta { display: flex; flex-wrap: wrap; gap: 8px; }
.job-card__foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: auto; padding-top: 16px; border-top: 1px dashed var(--line); }
.job-card__foot small { color: var(--muted); }

.chip {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 5px 12px; border-radius: 999px; font-size: .79rem; font-weight: 700;
  background: var(--bg-soft); color: var(--body); border: 1px solid var(--line);
}
.chip--blue { background: var(--blue-50); color: var(--blue); border-color: transparent; }
.chip--green { background: var(--green-50); color: var(--green); border-color: transparent; }
.chip--navy { background: #e8ecf6; color: var(--navy); border-color: transparent; }

/* ---------- Filters ---------- */
.filters {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 20px; box-shadow: var(--shadow); margin-bottom: 34px;
  display: grid; grid-template-columns: 2fr 1.2fr 1.2fr auto; gap: 14px; align-items: end;
}

/* ---------- Forms ---------- */
.field { display: block; margin-bottom: 18px; }
.field > label, .label {
  display: block; margin-bottom: 7px;
  font-size: .86rem; font-weight: 700; color: var(--ink); letter-spacing: .01em;
}
.field .req { color: #d63a3a; }
input[type=text], input[type=email], input[type=tel], input[type=url], input[type=number],
input[type=password], input[type=date], input[type=file], select, textarea {
  width: 100%; padding: 12px 15px;
  border: 1.5px solid var(--line); border-radius: var(--radius-sm);
  font: inherit; font-size: .95rem; color: var(--ink); background: #fff;
  transition: border-color .2s var(--ease), box-shadow .2s var(--ease);
}
textarea { min-height: 130px; resize: vertical; }
input:focus, select:focus, textarea:focus {
  outline: none; border-color: var(--blue); box-shadow: 0 0 0 4px rgba(27, 127, 212, .14);
}
.hint { font-size: .8rem; color: var(--muted); margin-top: 6px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 0 18px; }

.alert {
  border-radius: var(--radius-sm); padding: 14px 18px; margin-bottom: 22px;
  font-size: .93rem; border: 1px solid transparent; font-weight: 600;
}
.alert--success { background: var(--green-50); color: #22622a; border-color: #bfe3c2; }
.alert--error   { background: #fdecec; color: #a32020; border-color: #f5c6c6; }
.alert--info    { background: var(--blue-50); color: #12558f; border-color: #c2dff6; }
.alert ul { margin: 8px 0 0; padding-left: 20px; font-weight: 500; }

/* ---------- Page banner ---------- */
.page-head { background: var(--grad); color: #fff; padding: 62px 0; position: relative; overflow: hidden; }
.page-head::after { content: ''; position: absolute; width: 480px; height: 480px; right: -140px; top: -190px; border-radius: 50%; background: radial-gradient(circle, rgba(76, 175, 80, .25), transparent 70%); }
.page-head .container { position: relative; z-index: 2; }
.page-head h1 { color: #fff; margin-bottom: .3em; }
.page-head p { color: rgba(255, 255, 255, .85); margin: 0; max-width: 60ch; }
.crumbs { font-size: .85rem; color: rgba(255, 255, 255, .7); margin-bottom: 14px; }
.crumbs a { color: rgba(255, 255, 255, .9); }
.crumbs span { margin: 0 7px; }

/* ---------- Photo banner on the inner pages (same treatment as the home hero) ---------- */
.page-head--photo { position: relative; overflow: hidden; }
.page-head--photo::after { display: none; }          /* the scrim replaces the old glow */

.page-head__media {
  position: absolute; inset: 0; z-index: 0;
  background-size: cover;
  background-position: center 34%;
  background-repeat: no-repeat;
}
.page-head__scrim {
  position: absolute; inset: 0; z-index: 1;
  background:
    linear-gradient(100deg, rgba(8, 20, 48, .94) 0%, rgba(11, 27, 66, .88) 40%,
                            rgba(13, 40, 96, .66) 72%, rgba(16, 60, 130, .52) 100%),
    radial-gradient(58% 80% at 88% 14%, rgba(76, 175, 80, .26), transparent 72%);
}
.page-head--photo .container { position: relative; z-index: 2; }
.page-head--photo .slides,
.page-head--photo .slider-ui { position: relative; z-index: 3; }

/* One photograph per page, declared here so the paths resolve against this file. */
.page-head--about    .page-head__media { background-image: url(../img/photos/slide-1-handshake.jpg); }
.page-head--services .page-head__media { background-image: url(../img/photos/slide-2-warehouse-team.jpg); }
.page-head--jobs     .page-head__media { background-image: url(../img/photos/slide-3-interview.jpg); }
.page-head--contact  .page-head__media { background-image: url(../img/photos/slide-1-handshake.jpg); background-position: center 28%; }

@media (max-width: 640px) {
  .page-head__media { background-position: center 30%; }
  .page-head__scrim {
    background:
      linear-gradient(180deg, rgba(8, 20, 48, .74) 0%, rgba(10, 26, 64, .90) 42%,
                              rgba(11, 27, 66, .96) 100%),
      radial-gradient(80% 40% at 78% 6%, rgba(76, 175, 80, .20), transparent 74%);
  }
}

/* ---------- Job detail ---------- */
.detail-grid { display: grid; grid-template-columns: 1.65fr .95fr; gap: 34px; align-items: start; }
.panel { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 32px; box-shadow: var(--shadow-sm); }
.panel + .panel { margin-top: 24px; }
.panel h2 { font-size: 1.35rem; }
.panel h3 { font-size: 1.08rem; margin-top: 1.6em; }
.panel h3:first-child { margin-top: 0; }
.prose { color: var(--body); }
.prose ul { padding-left: 20px; margin: 0 0 1.1em; }
.prose li { margin-bottom: 8px; }
.sticky { position: sticky; top: 100px; }

.kv { list-style: none; margin: 0 0 22px; padding: 0; display: grid; gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--radius-sm); overflow: hidden; }
.kv li { display: flex; justify-content: space-between; gap: 14px; background: #fff; padding: 12px 16px; font-size: .92rem; }
.kv li span { color: var(--muted); font-weight: 600; }
.kv li b { color: var(--ink); text-align: right; font-weight: 700; }

/* ---------- Contact ---------- */
.contact-grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: 34px; align-items: start; }
.contact-item { display: flex; gap: 16px; align-items: flex-start; margin-bottom: 26px; }
.contact-item .icon-badge { margin-bottom: 0; width: 46px; height: 46px; font-size: 20px; border-radius: 13px; flex-shrink: 0; }
.contact-item b { display: block; color: var(--ink); font-size: .98rem; margin-bottom: 3px; }
.contact-item p { margin: 0; font-size: .94rem; }
.map-frame { border: 0; width: 100%; height: 320px; border-radius: var(--radius); box-shadow: var(--shadow-sm); }

/* ---------- CTA band ---------- */
.cta-band { background: var(--grad); color: #fff; border-radius: 24px; padding: 54px; text-align: center; position: relative; overflow: hidden; }
.cta-band::after { content: ''; position: absolute; width: 460px; height: 460px; left: -160px; bottom: -240px; border-radius: 50%; background: radial-gradient(circle, rgba(76, 175, 80, .3), transparent 70%); }
.cta-band > * { position: relative; z-index: 2; }
.cta-band h2 { color: #fff; }
.cta-band p { color: rgba(255, 255, 255, .86); max-width: 56ch; margin-inline: auto; }
.cta-band .hero-actions { justify-content: center; }
.cta-band .btn--outline, .hero .btn--outline, .page-head .btn--outline {
  background: transparent; color: #fff; border-color: rgba(255, 255, 255, .55);
}
.cta-band .btn--outline:hover, .hero .btn--outline:hover, .page-head .btn--outline:hover {
  background: #fff; color: var(--navy); border-color: #fff;
}

/* ---------- Footer ---------- */
.site-footer { background: var(--navy-900); color: rgba(255, 255, 255, .68); padding: 62px 0 0; margin-top: 0; }
.site-footer h4 { color: #fff; font-size: .95rem; letter-spacing: .05em; text-transform: uppercase; margin-bottom: 18px; }
.site-footer a { color: rgba(255, 255, 255, .72); }
.site-footer a:hover { color: #fff; }
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1.3fr; gap: 38px; }
.footer-brand img { height: 56px; background: #fff; border-radius: 12px; padding: 7px 10px; margin-bottom: 18px; }
.footer-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 11px; font-size: .93rem; }
.footer-bottom {
  margin-top: 48px; border-top: 1px solid rgba(255, 255, 255, .1); padding: 20px 0;
  display: flex; justify-content: space-between; gap: 14px; flex-wrap: wrap; font-size: .86rem;
}

/* ---------- Back to top ---------- */
.to-top {
  position: fixed; right: 22px; bottom: 22px; z-index: 55;
  width: 48px; height: 48px; border: 0; border-radius: 50%;
  background: var(--grad); color: #fff; font-size: 19px; line-height: 1;
  display: grid; place-items: center; cursor: pointer;
  box-shadow: 0 10px 26px rgba(18, 39, 94, .3);
  opacity: 0; visibility: hidden; transform: translateY(14px) scale(.9);
  transition: opacity .25s var(--ease), transform .25s var(--ease),
              visibility .25s var(--ease), background .2s var(--ease), color .2s var(--ease);
}
.to-top.is-shown { opacity: 1; visibility: visible; transform: none; }
.to-top:hover, .to-top:focus-visible {
  background: #fff; background-image: none;
  color: var(--navy); box-shadow: 0 14px 32px rgba(18, 39, 94, .26);
  transform: translateY(-3px);
}
.to-top:focus-visible { outline: 3px solid rgba(27, 127, 212, .45); outline-offset: 3px; }
.to-top svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2.4;
              stroke-linecap: round; stroke-linejoin: round; }

@media (max-width: 640px) {
  .to-top { right: 16px; bottom: 16px; width: 44px; height: 44px; }
}
@media print { .to-top { display: none; } }

/* ---------- Misc ---------- */
.empty { text-align: center; padding: 64px 24px; background: #fff; border: 1px dashed var(--line); border-radius: var(--radius); }
.empty .icon-badge { margin: 0 auto 18px; }

.table-wrap { overflow-x: auto; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow-sm); }
table.tbl { width: 100%; border-collapse: collapse; font-size: .92rem; min-width: 760px; }
table.tbl th, table.tbl td { padding: 13px 16px; text-align: left; border-bottom: 1px solid var(--line); vertical-align: top; }
table.tbl th { background: var(--bg-soft); color: var(--ink); font-weight: 700; font-size: .82rem; text-transform: uppercase; letter-spacing: .04em; }
table.tbl tr:last-child td { border-bottom: 0; }
table.tbl tbody tr:hover { background: #fbfcfe; }

/* Content is visible by default; only the JS-enabled document animates it in,
   so nothing is ever hidden if a script fails to load. */
html.js .reveal { opacity: 0; transform: translateY(22px); transition: opacity .6s var(--ease), transform .6s var(--ease); }
html.js .reveal.in { opacity: 1; transform: none; }

/* Fallback for browsers without overflow-x: clip (older Safari) */
@supports not (overflow-x: clip) {
  html, body { overflow-x: hidden; }
}

/* ---------- Responsive ---------- */
@media (min-width: 992px) { .brand__txt { display: block; } }

@media (max-width: 991px) {
  .section { padding: 64px 0; }
  .hero { padding: 72px 0 84px; }
  .hero-grid, .detail-grid, .contact-grid { grid-template-columns: 1fr; gap: 34px; }
  .hero-figure img { max-width: 440px; }
  .hero-points { gap: 10px 20px; }
  .sticky { position: static; }
  .grid--4 { grid-template-columns: repeat(2, 1fr); }
  .grid--3 { grid-template-columns: repeat(2, 1fr); }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .filters { grid-template-columns: 1fr 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .nav-toggle { display: flex; }
  .nav {
    position: fixed; inset: 0 0 auto; top: 0; height: 100dvh; width: min(310px, 82vw); left: auto; right: 0;
    background: #fff; flex-direction: column; align-items: stretch; gap: 6px;
    padding: 92px 22px 22px; box-shadow: var(--shadow-lg);
    transform: translateX(105%);
    visibility: hidden;                 /* keeps closed links out of the tab order */
    transition: transform .3s var(--ease), visibility .3s var(--ease);
    z-index: 70;
  }
  .nav.is-open { transform: none; visibility: visible; }


  .nav a { padding: 12px 14px; border-radius: 12px; }
  .header-cta { margin: 12px 0 0; }
  .nav-backdrop { position: fixed; inset: 0; background: rgba(11, 24, 56, .45); opacity: 0; pointer-events: none; transition: opacity .3s var(--ease); z-index: 65; }
  .nav-backdrop.is-open { opacity: 1; pointer-events: auto; }
}

@media (max-width: 640px) {
  .section { padding: 52px 0; }
  .hero-figure img { max-width: 330px; }
  .hero-points { flex-direction: column; gap: 9px; }
  .grid--3, .grid--2, .grid--4, .filters, .form-row, .footer-grid { grid-template-columns: 1fr; }
  .stats { grid-template-columns: 1fr 1fr; margin-top: -34px; }
  .hero--bg + .container .stats { margin-top: 26px; }
  .panel, .card { padding: 22px; }
  .cta-band { padding: 38px 24px; border-radius: 18px; }
  .topbar .container { justify-content: center; gap: 14px; font-size: .78rem; }
  .topbar .spacer { display: none; }
  .btn { width: 100%; }
  .hero-actions .btn { width: auto; flex: 1 1 auto; }
}

@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; }
  html.js .reveal { opacity: 1; transform: none; }
}

@media print {
  html.js .reveal { opacity: 1; transform: none; }
  .site-header, .topbar, .nav-toggle, .nav-backdrop { display: none; }
}
