/* RoofSealing.ae — Careers overview page.
   Design language taken 1:1 from the live Site Manager role page
   (sitemanager-role.roofsealing.ae) so the two pages read as one site.
   Colours are the brand-book v2.0 ones: green #89B623, navy #16222F. */

@font-face {
  font-family: Montserrat;
  src: url(/fonts/montserrat.woff2) format("woff2");
  font-weight: 500 800;
  font-style: normal;
  font-display: swap;
}

:root {
  --navy-rgb: 22 34 47;          /* #16222F */
  --green-rgb: 137 182 35;       /* #89B623 */
  --navy: rgb(var(--navy-rgb));
  --green: rgb(var(--green-rgb));
  --green-ink: #6E9119;
  --bg: #ffffff;
  --soft: #f4f6f1;
  --text: rgb(var(--navy-rgb) / .78);
  --line: rgb(var(--navy-rgb) / .1);
  --wrap: 1160px;
  --gut: 20px;
  --sy: 72px;
  --font: "Montserrat", -apple-system, "Segoe UI", Helvetica, Arial, sans-serif;
  --ease: cubic-bezier(.22, .61, .24, 1);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--font); font-size: 16px; font-weight: 500; line-height: 1.65;
  color: var(--text); background: var(--bg); -webkit-font-smoothing: antialiased; overflow-x: clip;
}
img, svg, video { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
b, strong { font-weight: 700; color: var(--navy); }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gut); }
section { padding: var(--sy) 0; position: relative; }

h1, h2, h3 { color: var(--navy); font-weight: 800; letter-spacing: -.02em; text-wrap: balance; }
p, li { text-wrap: pretty; }
h1 { font-size: clamp(2.6rem, 9vw, 4.6rem); line-height: 1; letter-spacing: -.035em; }
h2 { font-size: clamp(1.65rem, 3.4vw, 2.5rem); line-height: 1.12; }
h3 { font-size: 1.15rem; line-height: 1.3; letter-spacing: -.01em; }

.sec-head { margin-bottom: 36px; max-width: 760px; }
.sec-head p { margin-top: 14px; }

.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 52px; padding: 0 28px; border: 0; border-radius: 999px;
  background: var(--green); color: var(--navy);
  font: 700 15.5px/1.2 var(--font); cursor: pointer;
  transition: background-color .25s var(--ease), translate .25s var(--ease);
}
.btn:hover, .btn:focus-visible { background: #9ac72c; translate: 0 -1px; }
.btn:focus-visible { outline: 2px solid var(--navy); outline-offset: 3px; }
.btn.small { min-height: 42px; padding: 0 20px; font-size: 14px; }
.btn.ghost { background: transparent; color: var(--navy); box-shadow: inset 0 0 0 2px var(--green); }
.btn.ghost:hover { background: rgb(var(--green-rgb) / .14); }

/* Header — it sits on the navy hero at the top, and turns white once scrolled past it. */
.site-header {
  position: sticky; top: 0; z-index: 50; background: transparent;
  -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
  transition: background-color .25s var(--ease), box-shadow .25s var(--ease);
}
.site-header.solid { background: #ffffffeb; box-shadow: 0 1px 0 var(--line); }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; height: 68px; }
.site-header .logo { display: block; }
.site-header .logo img { height: 46px; width: auto; }
.site-header .logo .on-light { display: none; }
.site-header.solid .logo .on-navy { display: none; }
.site-header.solid .logo .on-light { display: block; }
.site-header nav { display: flex; align-items: center; gap: 22px; font-size: 14.5px; font-weight: 600; color: #fff; }
.site-header.solid nav { color: var(--navy); }
.site-header nav > a:not(.btn) { display: none; }
.site-header nav > a:not(.btn):hover { color: var(--green); }
.site-header.solid nav > a:not(.btn):hover { color: var(--green-ink); }

/* Hero — navy band, white type */
.hero {
  padding: 36px 0 56px; background: var(--navy); color: #ffffffcc;
  margin-top: -68px; padding-top: 104px;
}
.hero h1 { color: #fff; }
.hero b, .hero strong { color: #fff; }
.hero-grid { display: grid; gap: 32px; align-items: center; }
.hero .sub { margin-top: 20px; font-size: clamp(1.05rem, 1.6vw, 1.2rem); line-height: 1.6; max-width: 32em; }
.facts {
  list-style: none; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px; max-width: 460px; margin-top: 24px;
}
.facts li {
  padding: 8px; border-radius: 999px; background: rgb(255 255 255 / .09); border: 1px solid rgb(255 255 255 / .18);
  color: #fff; font-size: clamp(12px, 3.4vw, 14px); font-weight: 600;
  line-height: 1.3; text-align: center; white-space: nowrap;
}
.hero-act { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 20px; margin-top: 30px; }
.or { font-size: 14.5px; }
.or a {
  color: #fff; font-weight: 700; text-decoration: underline;
  text-decoration-color: rgb(var(--green-rgb) / .9); text-decoration-thickness: 2px; text-underline-offset: 3px;
}
.hero-media {
  margin: 0; aspect-ratio: 4 / 3; border-radius: 20px; overflow: hidden;
  background: rgb(255 255 255 / .08);
}
.hero-media video { width: 100%; height: 100%; object-fit: cover; }

/* Lists */
.list { list-style: none; display: grid; gap: 14px; }
.list li { position: relative; padding-left: 26px; color: var(--navy); }
.list li:before {
  content: ""; position: absolute; left: 0; top: .55em;
  width: 10px; height: 10px; border-radius: 2px; background: var(--green);
}

/* Open roles */
.roles { background: var(--soft); }
.role-list { display: grid; gap: 18px; }
.role {
  background: var(--bg); border: 1px solid var(--line); border-radius: 18px;
  padding: 26px 24px; display: grid; gap: 18px; align-items: start;
}
.role h3 { font-size: 1.5rem; letter-spacing: -.02em; }
.role .meta { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.role .meta li {
  padding: 6px 14px; border-radius: 999px; background: var(--soft); border: 1px solid var(--line);
  color: var(--navy); font-size: 13.5px; font-weight: 600; line-height: 1.3;
}
.role .blurb { margin-top: 16px; max-width: 46em; }
.role .act { display: grid; gap: 10px; justify-items: start; }
.role .act .btn { width: 100%; }
.role .act .note { font-size: 13.5px; color: rgb(var(--navy-rgb) / .6); }
.roles .more { margin-top: 26px; font-size: 15px; }
.roles .more a {
  color: var(--navy); font-weight: 700; text-decoration: underline;
  text-decoration-color: rgb(var(--green-rgb) / .8); text-decoration-thickness: 2px; text-underline-offset: 3px;
}

/* Why us */
.fit-grid { display: grid; gap: 28px; align-items: start; }
.offer { background: var(--navy); border-radius: 18px; padding: 28px 24px; }
.offer h3 { color: #fff; margin-bottom: 18px; font-size: 1.25rem; }
.offer .list li { color: #ffffffe6; }
.offer .list li:before { background: var(--green); }

/* Company */
.company { background: var(--soft); }
.company-head { max-width: 760px; }
.company-head p { margin-top: 18px; font-size: 1.05rem; }
.photos { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 32px; }
.photos figure { margin: 0; border-radius: 14px; overflow: hidden; aspect-ratio: 4 / 5; background: var(--line); }
.photos img { width: 100%; height: 100%; object-fit: cover; }

/* Steps */
.steps { display: grid; gap: 22px; counter-reset: s; }
.step { display: grid; grid-template-columns: 44px 1fr; gap: 16px; align-items: start; }
.step .n { font-size: 2.1rem; font-weight: 800; color: var(--green-ink); line-height: 1; letter-spacing: -.03em; }
.step h3 { margin-bottom: 4px; }

/* Open application */
.apply-head { max-width: 680px; margin-bottom: 26px; }
.apply-head p { margin-top: 14px; }
.apply .hero-act { margin-top: 0; }

/* Footer */
.site-footer { background: var(--navy); color: #ffffffb3; padding: 56px 0 32px; text-align: center; }
.site-footer .wrap { display: grid; justify-items: center; gap: 18px; }
.flogo { height: 64px; width: auto; }
.fline { display: flex; gap: 10px; flex-wrap: wrap; justify-content: center; color: #fff; font-weight: 600; }
.fline span { color: #ffffff80; }
.fline a:hover { color: var(--green); }
.fcopy { font-size: 13px; }

@media (min-width: 640px) {
  .photos { gap: 14px; }
  .photos figure { aspect-ratio: 3 / 2; }
  .role { grid-template-columns: 1fr 260px; gap: 32px; }
  .role .act { justify-items: stretch; }
}
@media (min-width: 760px) {
  :root { --gut: 32px; --sy: 96px; }
  .site-header .wrap { height: 76px; }
  .site-header .logo img { height: 52px; }
  .site-header nav > a:not(.btn) { display: inline; }
  .hero { margin-top: -76px; padding-top: 112px; }
  .steps { grid-template-columns: repeat(3, 1fr); gap: 32px; }
}
@media (min-width: 980px) {
  .hero { padding: 56px 0 88px; margin-top: -76px; padding-top: 132px; }
  .hero-grid { grid-template-columns: 6fr 5fr; gap: 56px; }
  .hero-media { aspect-ratio: 5 / 4; }
  .fit-grid { grid-template-columns: 1fr 1fr; gap: 56px; }
  .offer { padding: 36px; }
  .role { padding: 34px 32px; }
}

/* Reveal on scroll — same behaviour as the role page */
.motion [data-reveal] {
  opacity: 0; translate: 0 14px;
  transition: opacity .6s var(--ease) var(--rd, 0ms), translate .7s var(--ease) var(--rd, 0ms);
}
.motion [data-reveal].in { opacity: 1; translate: none; }
.motion [data-reveal].now { transition: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .btn { transition: none; }
}
