/* ============================================================
   SAJ Surveys & Civil Engineering — style.css
   Palette drawn from brand logo: SAJ red + deep navy
   ============================================================ */

:root {
  --red: #d02b34;
  --red-dark: #a81f27;
  --navy: #142a6e;
  --navy-deep: #0b163c;
  --navy-ink: #091230;
  --blue: #1c3a8a;
  --gold: #e8b84b;
  --ink: #17203a;
  --body: #4a556e;
  --line: #e3e7f0;
  --bg-soft: #f4f6fb;
  --white: #ffffff;

  --font-display: "Sora", sans-serif;
  --font-body: "Inter", sans-serif;

  --shadow-sm: 0 2px 10px rgba(9, 18, 48, .08);
  --shadow-md: 0 12px 34px rgba(9, 18, 48, .14);
  --shadow-lg: 0 24px 60px rgba(9, 18, 48, .22);

  --radius: 14px;
  --ease-out: cubic-bezier(.22, .61, .2, 1);
  --header-h: 84px;
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
  scroll-behavior: smooth;
  overflow-x: hidden;
  overflow-x: clip;
}

body {
  font-family: var(--font-body);
  color: var(--body);
  background: var(--white);
  line-height: 1.7;
  font-size: 16.5px;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  overflow-x: clip;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
address { font-style: normal; }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  color: var(--ink);
  line-height: 1.15;
  font-weight: 700;
}

.container {
  width: min(1200px, 92%);
  margin-inline: auto;
}

.section { padding: clamp(72px, 9vw, 120px) 0; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: .95rem;
  padding: .85em 1.9em;
  border-radius: 999px;
  border: 2px solid transparent;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  transition: transform .35s var(--ease-out), box-shadow .35s var(--ease-out),
              background-color .35s, color .35s, border-color .35s;
}
.btn::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(105deg, transparent 40%, rgba(255,255,255,.35) 50%, transparent 60%);
  transform: translateX(-120%);
  transition: transform .7s var(--ease-out);
}
.btn:hover::after { transform: translateX(120%); }

.btn--primary {
  background: var(--red);
  color: var(--white);
  box-shadow: 0 10px 26px rgba(208, 43, 52, .35);
}
.btn--primary:hover {
  background: var(--red-dark);
  transform: translateY(-3px);
  box-shadow: 0 16px 34px rgba(208, 43, 52, .42);
}

.btn--ghost {
  border-color: rgba(255, 255, 255, .55);
  color: var(--white);
  background: rgba(255, 255, 255, .06);
  backdrop-filter: blur(6px);
}
.btn--ghost:hover {
  background: var(--white);
  color: var(--navy);
  transform: translateY(-3px);
}

.btn--light {
  background: var(--white);
  color: var(--navy);
}
.btn--light:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }

.btn--lg { padding: 1.05em 2.4em; font-size: 1rem; }
.btn--block { width: 100%; }

/* ---------- Section headings ---------- */
.section-kicker {
  display: inline-flex;
  align-items: center;
  gap: .6rem;
  font-family: var(--font-display);
  font-size: .82rem;
  font-weight: 700;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--red);
  margin-bottom: 1rem;
}
.section-kicker::before {
  content: "";
  width: 34px;
  height: 2.5px;
  background: var(--red);
  border-radius: 2px;
}
.section-kicker--light { color: #ff8d94; }
.section-kicker--light::before { background: #ff8d94; }

.section-title {
  font-size: clamp(1.9rem, 3.6vw, 2.9rem);
  letter-spacing: -.02em;
  margin-bottom: 1.2rem;
}
.section-title em {
  font-style: normal;
  color: var(--red);
  position: relative;
}
.section-title--light { color: var(--white); }

.section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 3rem;
  margin-bottom: clamp(2.5rem, 5vw, 4rem);
}
.section-head__text { max-width: 380px; padding-bottom: .5rem; }

/* ============================================================
   Preloader
   ============================================================ */
.preloader {
  position: fixed;
  inset: 0;
  z-index: 1000;
  background: var(--navy-ink);
  display: grid;
  place-items: center;
  transition: opacity .6s ease, visibility .6s;
}
.preloader.is-done { opacity: 0; visibility: hidden; }
.preloader__mark { text-align: center; }
.preloader__saj {
  display: block;
  width: 110px;
  height: auto;
  margin-inline: auto;
  filter: drop-shadow(0 4px 18px rgba(208, 43, 52, .35));
  animation: pulse 1.2s ease-in-out infinite;
}
.preloader__bar {
  display: block;
  width: 120px;
  height: 3px;
  margin: 14px auto 0;
  border-radius: 3px;
  background: rgba(255,255,255,.15);
  position: relative;
  overflow: hidden;
}
.preloader__bar::after {
  content: "";
  position: absolute;
  inset: 0;
  width: 40%;
  background: var(--red);
  border-radius: 3px;
  animation: loadbar 1.1s var(--ease-out) infinite;
}
@keyframes pulse { 50% { opacity: .55; } }
@keyframes loadbar {
  0% { transform: translateX(-110%); }
  100% { transform: translateX(280%); }
}

/* ============================================================
   Scroll progress bar
   ============================================================ */
.scroll-progress {
  position: fixed;
  top: 0; left: 0;
  height: 3px;
  width: 0;
  background: linear-gradient(90deg, var(--red), var(--gold));
  z-index: 300;
  transition: width .1s linear;
}

/* ============================================================
   Header
   ============================================================ */
.header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 200;
  transition: background-color .4s, box-shadow .4s, transform .4s;
}
.header__inner {
  height: var(--header-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  transition: height .4s;
}
.header.is-scrolled {
  background: rgba(9, 18, 48, .92);
  backdrop-filter: blur(14px);
  box-shadow: 0 6px 24px rgba(0,0,0,.25);
}
.header.is-scrolled .header__inner { height: 68px; }
.header.is-hidden { transform: translateY(-100%); }

.brand { display: flex; align-items: center; }
.brand__logo {
  height: 104px;
  width: auto;
  margin-top: 34px; /* lets the oversized logo hang below the transparent bar */
  filter: drop-shadow(0 2px 10px rgba(0, 0, 0, .4));
  transition: height .4s, margin-top .4s, transform .35s var(--ease-out);
}
.brand:hover .brand__logo { transform: translateY(-2px); }
.header.is-scrolled .brand__logo { height: 58px; margin-top: 0; }

.nav__list { display: flex; gap: .4rem; }
.nav__link {
  font-family: var(--font-display);
  font-size: .92rem;
  font-weight: 600;
  color: rgba(255,255,255,.82);
  padding: .55em 1em;
  border-radius: 8px;
  position: relative;
  transition: color .3s;
}
.nav__link::after {
  content: "";
  position: absolute;
  left: 1em; right: 1em; bottom: .25em;
  height: 2px;
  background: var(--red);
  border-radius: 2px;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .35s var(--ease-out);
}
.nav__link:hover, .nav__link.is-active { color: #fff; }
.nav__link:hover::after, .nav__link.is-active::after { transform: scaleX(1); }

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: 0;
  cursor: pointer;
  padding: 8px;
  z-index: 210;
}
.nav-toggle span {
  width: 26px; height: 2.5px;
  background: #fff;
  border-radius: 2px;
  transition: transform .35s var(--ease-out), opacity .3s;
}
.nav-toggle.is-open span:nth-child(1) { transform: translateY(7.5px) rotate(45deg); }
.nav-toggle.is-open span:nth-child(2) { opacity: 0; }
.nav-toggle.is-open span:nth-child(3) { transform: translateY(-7.5px) rotate(-45deg); }

/* ============================================================
   Hero
   ============================================================ */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  color: var(--white);
  overflow: hidden;
  padding-top: var(--header-h);
}
.hero__bg { position: absolute; inset: -12% 0; z-index: -3; will-change: transform; }
.hero__bg img {
  width: 100%; height: 100%;
  object-fit: cover;
  animation: heroZoom 14s var(--ease-out) forwards;
}
@keyframes heroZoom { from { transform: scale(1.14); } to { transform: scale(1); } }

.hero__overlay {
  position: absolute; inset: 0; z-index: -2;
  background:
    linear-gradient(100deg, rgba(9, 18, 48, .94) 22%, rgba(13, 27, 69, .72) 55%, rgba(13, 27, 69, .38) 100%);
}
.hero__grid-lines {
  position: absolute; inset: 0; z-index: -1;
  background-image:
    linear-gradient(rgba(255,255,255,.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.045) 1px, transparent 1px);
  background-size: 90px 90px;
  mask-image: radial-gradient(ellipse at 30% 40%, #000 30%, transparent 75%);
}

.hero__content { padding: 4rem 0 2rem; }

.hero__kicker {
  display: flex;
  align-items: center;
  gap: .8rem;
  font-family: var(--font-display);
  font-size: .85rem;
  font-weight: 600;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 1.6rem;
}
.hero__kicker-line { width: 48px; height: 2px; background: var(--red); }

.hero__title {
  color: var(--white);
  font-size: clamp(2.5rem, 6vw, 4.6rem);
  font-weight: 800;
  letter-spacing: -.025em;
  margin-bottom: 1.6rem;
  max-width: 15em;
}
.hero__title em { font-style: normal; color: var(--red); }
.hero__title-line { display: block; overflow: hidden; padding-bottom: .08em; margin-bottom: -.08em; }
.hero__title-line > span {
  display: inline-block;
  transform: translateY(115%);
  animation: riseUp .9s var(--ease-out) forwards;
}
.hero__title-line:nth-child(1) > span { animation-delay: .15s; }
.hero__title-line:nth-child(2) > span { animation-delay: .3s; }
.hero__title-line:nth-child(3) > span { animation-delay: .45s; }
@keyframes riseUp { to { transform: translateY(0); } }

.hero__lead {
  max-width: 560px;
  font-size: 1.08rem;
  color: rgba(255,255,255,.82);
  margin-bottom: 2.2rem;
}
.hero__actions { display: flex; gap: 1rem; flex-wrap: wrap; }

.hero__stats {
  margin-top: auto;
  border-top: 1px solid rgba(255,255,255,.14);
  background: rgba(9, 18, 48, .35);
  backdrop-filter: blur(8px);
}
.hero__stats-inner {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  padding: 1.6rem 0;
  gap: 1rem;
}
.stat { text-align: left; }
.stat__num {
  font-family: var(--font-display);
  font-size: clamp(1.7rem, 3vw, 2.4rem);
  font-weight: 800;
  color: var(--white);
  display: block;
  line-height: 1.1;
}
.stat__label {
  font-size: .82rem;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: rgba(255,255,255,.6);
}

.hero__scroll-hint {
  position: absolute;
  right: 4vw;
  bottom: 130px;
  z-index: 5;
}
.hero__mouse {
  display: block;
  width: 26px; height: 42px;
  border: 2px solid rgba(255,255,255,.55);
  border-radius: 14px;
  position: relative;
}
.hero__mouse span {
  position: absolute;
  top: 7px; left: 50%;
  width: 4px; height: 8px;
  margin-left: -2px;
  background: var(--white);
  border-radius: 2px;
  animation: wheel 1.8s ease-in-out infinite;
}
@keyframes wheel {
  0% { transform: translateY(0); opacity: 1; }
  70% { transform: translateY(14px); opacity: 0; }
  100% { transform: translateY(0); opacity: 0; }
}

/* ============================================================
   Marquee band
   ============================================================ */
.marquee-band {
  background: var(--navy-ink);
  border-block: 1px solid rgba(255,255,255,.08);
  padding: 1.4rem 0;
  overflow: hidden;
}
.marquee__track {
  display: inline-flex;
  align-items: center;
  gap: 3rem;
  white-space: nowrap;
  will-change: transform;
  padding-right: 3rem; /* keeps the loop gap consistent at the seam */
}
.marquee__track.is-animating {
  animation: marqueeScroll var(--marquee-dur, 36s) linear infinite;
}
@keyframes marqueeScroll {
  to { transform: translateX(calc(-1 * var(--marquee-shift, 50%))); }
}
.marquee:hover .marquee__track.is-animating { animation-play-state: paused; }
.marquee__track span {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.15rem;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: rgba(255,255,255,.55);
  transition: color .3s;
}
.marquee__track span:hover { color: var(--white); }
.marquee__track i {
  font-style: normal;
  color: var(--red);
  font-size: .7rem;
}

/* ============================================================
   About
   ============================================================ */
.about { background: var(--white); position: relative; overflow: hidden; }
.about::before {
  content: "";
  position: absolute;
  top: -120px; right: -120px;
  width: 420px; height: 420px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(208,43,52,.07), transparent 65%);
}

.about__grid {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: clamp(2.5rem, 6vw, 5.5rem);
  align-items: center;
}

.about__media { position: relative; padding-bottom: 90px; }
.about__img {
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}
.about__img img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease-out); }
.about__img:hover img { transform: scale(1.05); }
.about__img--main { aspect-ratio: 4 / 4.6; }
.about__img--float {
  position: absolute;
  right: -6%;
  bottom: 30px;
  width: 58%;
  aspect-ratio: 16 / 10;
  border: 6px solid var(--white);
}
.about__badge {
  position: absolute;
  left: 6%;
  bottom: 0;
  background: var(--red);
  color: var(--white);
  border-radius: var(--radius);
  padding: 1.1rem 1.5rem;
  display: flex;
  align-items: center;
  gap: 1rem;
  box-shadow: 0 18px 40px rgba(208,43,52,.4);
}
.about__badge-num {
  font-family: var(--font-display);
  font-size: 2.4rem;
  font-weight: 800;
  line-height: 1;
}
.about__badge-text {
  font-size: .8rem;
  font-weight: 600;
  letter-spacing: .04em;
  text-transform: uppercase;
  line-height: 1.4;
  opacity: .95;
}

.about__features { margin: 1.8rem 0 2.2rem; display: grid; gap: 1.1rem; }
.about__features li { display: flex; gap: 1rem; align-items: flex-start; }
.tick {
  flex: 0 0 auto;
  width: 30px; height: 30px;
  border-radius: 50%;
  background: rgba(208,43,52,.1);
  color: var(--red);
  font-weight: 800;
  display: grid;
  place-items: center;
  font-size: .85rem;
  margin-top: .2rem;
}
.about__features strong {
  display: block;
  font-family: var(--font-display);
  color: var(--ink);
  font-size: 1.02rem;
}
.about__features small { font-size: .92rem; color: var(--body); }

.about__cta { display: flex; align-items: center; gap: 1.8rem; flex-wrap: wrap; }
.about__phone { display: flex; align-items: center; gap: .9rem; }
.about__phone-icon {
  width: 48px; height: 48px;
  border-radius: 50%;
  background: var(--navy);
  color: #fff;
  display: grid;
  place-items: center;
  transition: transform .35s var(--ease-out), background .3s;
}
.about__phone-icon svg { width: 22px; height: 22px; }
.about__phone:hover .about__phone-icon { background: var(--red); transform: rotate(-8deg) scale(1.06); }
.about__phone small { display: block; font-size: .78rem; text-transform: uppercase; letter-spacing: .08em; }
.about__phone strong { font-family: var(--font-display); color: var(--ink); font-size: 1.05rem; }

/* ============================================================
   Services
   ============================================================ */
.services {
  background:
    radial-gradient(1000px 500px at 85% -10%, rgba(208,43,52,.16), transparent 60%),
    linear-gradient(180deg, var(--navy-deep), var(--navy-ink));
  color: rgba(255,255,255,.78);
}
.services .section-head__text { color: rgba(255,255,255,.65); }

.services__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.4rem;
}
.service-card {
  background: rgba(255,255,255,.045);
  border: 1px solid rgba(255,255,255,.09);
  border-radius: var(--radius);
  padding: 2rem 1.6rem;
  position: relative;
  overflow: hidden;
  transition: transform .45s var(--ease-out), background .4s, border-color .4s, box-shadow .45s;
}
.service-card::before {
  content: "";
  position: absolute;
  inset: auto auto -60% -60%;
  width: 180px; height: 180px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(208,43,52,.35), transparent 70%);
  opacity: 0;
  transition: opacity .5s;
}
.service-card:hover {
  transform: translateY(-8px);
  background: rgba(255,255,255,.075);
  border-color: rgba(208,43,52,.45);
  box-shadow: 0 20px 44px rgba(0,0,0,.35);
}
.service-card:hover::before { opacity: 1; }

.service-card__icon {
  width: 62px; height: 62px;
  border-radius: 14px;
  background: linear-gradient(135deg, var(--red), var(--red-dark));
  color: #fff;
  display: grid;
  place-items: center;
  margin-bottom: 1.3rem;
  box-shadow: 0 10px 22px rgba(208,43,52,.35);
  transition: transform .45s var(--ease-out);
}
.service-card__icon svg { width: 32px; height: 32px; }
.service-card:hover .service-card__icon { transform: rotate(-6deg) scale(1.08); }

.service-card h3 {
  color: var(--white);
  font-size: 1.12rem;
  margin-bottom: .6rem;
}
.service-card p { font-size: .92rem; line-height: 1.65; }

/* ============================================================
   Projects
   ============================================================ */
.projects { background: var(--bg-soft); }

.project-tag {
  display: inline-block;
  font-family: var(--font-display);
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--red);
  background: rgba(208,43,52,.09);
  border: 1px solid rgba(208,43,52,.22);
  padding: .35em 1em;
  border-radius: 999px;
  margin-bottom: 1rem;
}

.project-feature {
  display: grid;
  grid-template-columns: 1.25fr 1fr;
  gap: clamp(2rem, 4vw, 3.5rem);
  background: var(--white);
  border-radius: calc(var(--radius) + 6px);
  box-shadow: var(--shadow-md);
  padding: clamp(1.2rem, 2.5vw, 2.2rem);
  margin-bottom: 3rem;
  align-items: center;
}
.project-feature__media { display: grid; gap: .8rem; }
.project-feature__main {
  border-radius: var(--radius);
  overflow: hidden;
  aspect-ratio: 16 / 9;
}
.project-feature__main img,
.project-feature__thumbs img {
  width: 100%; height: 100%;
  object-fit: cover;
  cursor: zoom-in;
  transition: transform .7s var(--ease-out), filter .4s;
}
.project-feature__main img:hover { transform: scale(1.04); }
.project-feature__thumbs {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: .8rem;
}
.project-feature__thumbs img {
  border-radius: 10px;
  aspect-ratio: 16 / 10;
}
.project-feature__thumbs img:hover { transform: scale(1.06); filter: brightness(1.08); }

.project-feature__body h3 {
  font-size: clamp(1.4rem, 2.4vw, 1.9rem);
  margin-bottom: 1rem;
}
.project-feature__body p { margin-bottom: 1.3rem; }
.project-feature__points { display: grid; gap: .55rem; }
.project-feature__points li {
  position: relative;
  padding-left: 1.6rem;
  font-size: .95rem;
  color: var(--ink);
  font-weight: 500;
}
.project-feature__points li::before {
  content: "";
  position: absolute;
  left: 0; top: .5em;
  width: 9px; height: 9px;
  border-radius: 2px;
  background: var(--red);
  transform: rotate(45deg);
}

.projects__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.6rem;
}
.project-card {
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  transition: transform .45s var(--ease-out), box-shadow .45s;
}
.project-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-md);
}
.project-card__media {
  aspect-ratio: 16 / 10.5;
  overflow: hidden;
  position: relative;
}
.project-card__media img, .project-card__media svg {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform .7s var(--ease-out);
}
.project-card__media img { cursor: zoom-in; }
.project-card:hover .project-card__media img,
.project-card:hover .project-card__media svg { transform: scale(1.06); }

.project-card__body { padding: 1.5rem 1.5rem 1.7rem; }
.project-card__body h3 { font-size: 1.13rem; margin-bottom: .55rem; }
.project-card__body p { font-size: .92rem; }

.project-card--more {
  background: linear-gradient(150deg, var(--navy), var(--navy-deep));
  color: rgba(255,255,255,.8);
  justify-content: center;
}
.project-card--more h3 { color: var(--white); font-size: 1.25rem; margin-bottom: 1rem; }
.project-card--more p { margin-bottom: 1.6rem; }

/* ---------- Legacy track record ---------- */
.legacy { margin-top: clamp(3rem, 6vw, 5rem); }
.legacy__head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 2rem;
  margin-bottom: 2rem;
}
.legacy__title {
  display: flex;
  align-items: center;
  gap: .9rem;
  font-size: clamp(1.3rem, 2.4vw, 1.7rem);
}
.legacy__line {
  width: 42px;
  height: 3px;
  border-radius: 3px;
  background: var(--red);
  flex: 0 0 auto;
}
.legacy__text { max-width: 400px; font-size: .95rem; }

.legacy__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.2rem;
}
.legacy-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  transition: transform .45s var(--ease-out), box-shadow .45s, border-color .45s;
}
.legacy-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-md);
  border-color: transparent;
}
.legacy-card__media {
  aspect-ratio: 16 / 10;
  overflow: hidden;
}
.legacy-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .7s var(--ease-out);
}
.legacy-card:hover .legacy-card__media img { transform: scale(1.07); }
.legacy-card__body { padding: 1.1rem 1.2rem 1.3rem; }
.legacy-card__role {
  display: inline-block;
  font-family: var(--font-display);
  font-size: .68rem;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--red);
  margin-bottom: .4rem;
}
.legacy-card__body h4 {
  font-size: 1.02rem;
  margin-bottom: .45rem;
}
.legacy-card__body p {
  font-size: .84rem;
  line-height: 1.6;
}

/* ============================================================
   CTA band
   ============================================================ */
.cta-band {
  position: relative;
  padding: clamp(80px, 12vw, 150px) 0;
  overflow: hidden;
  text-align: center;
  color: var(--white);
}
.cta-band__bg { position: absolute; inset: -18% 0; z-index: -2; will-change: transform; }
.cta-band__bg img { width: 100%; height: 100%; object-fit: cover; }
.cta-band__overlay {
  position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(180deg, rgba(9,18,48,.9), rgba(20,42,110,.82));
}
.cta-band__inner h2 {
  color: var(--white);
  font-size: clamp(2rem, 4.4vw, 3.4rem);
  letter-spacing: -.02em;
  margin-bottom: .8rem;
}
.cta-band__inner p {
  color: rgba(255,255,255,.78);
  font-size: 1.1rem;
  margin-bottom: 2rem;
}

/* ============================================================
   Careers
   ============================================================ */
.careers { background: var(--white); }
.careers__grid {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: clamp(2.5rem, 6vw, 5rem);
  align-items: center;
}
.careers__roles { display: grid; gap: 1rem; margin: 1.8rem 0 2rem; }
.career-chip {
  display: block;
  border: 1px solid var(--line);
  border-left: 4px solid var(--red);
  border-radius: 10px;
  padding: 1rem 1.3rem;
  background: var(--white);
  transition: transform .4s var(--ease-out), box-shadow .4s, border-color .4s;
}
.career-chip:hover {
  transform: translateX(6px);
  box-shadow: var(--shadow-md);
  border-color: rgba(208, 43, 52, .35);
}
.careers__actions { display: flex; gap: .9rem; flex-wrap: wrap; }
.btn--outline {
  border-color: var(--navy);
  color: var(--navy);
  background: transparent;
}
.btn--outline:hover {
  background: var(--navy);
  color: var(--white);
  transform: translateY(-3px);
}
.career-chip strong {
  display: block;
  font-family: var(--font-display);
  color: var(--ink);
}
.career-chip span { font-size: .92rem; }

.careers__media {
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  position: relative;
}
.careers__media img { aspect-ratio: 4/4.4; object-fit: cover; width: 100%; transition: transform .8s var(--ease-out); }
.careers__media:hover img { transform: scale(1.05); }
.careers__media figcaption {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  padding: 2.4rem 1.6rem 1.4rem;
  background: linear-gradient(180deg, transparent, rgba(9,18,48,.88));
  color: var(--white);
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1rem;
}

/* ============================================================
   Career Development (Training Academy)
   ============================================================ */
.training { background: var(--bg-soft); }
.training__panel {
  display: grid;
  grid-template-columns: 1.35fr .65fr;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
  background:
    radial-gradient(700px 400px at 90% -20%, rgba(208, 43, 52, .28), transparent 60%),
    linear-gradient(135deg, var(--navy), var(--navy-deep));
  border-radius: calc(var(--radius) + 8px);
  padding: clamp(2rem, 5vw, 4rem);
  color: rgba(255, 255, 255, .82);
  box-shadow: var(--shadow-lg);
  position: relative;
  overflow: hidden;
}
.training__panel::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.04) 1px, transparent 1px);
  background-size: 70px 70px;
  mask-image: radial-gradient(ellipse at 20% 30%, #000 20%, transparent 70%);
  pointer-events: none;
}
.training__body { position: relative; }
.training__lead { margin-bottom: 1.5rem; }
.training__points { display: grid; gap: .8rem; margin-bottom: 2rem; }
.training__points li {
  display: flex;
  align-items: center;
  gap: .9rem;
  font-size: .97rem;
  color: rgba(255, 255, 255, .9);
}
.tick--light {
  background: rgba(255, 255, 255, .12);
  color: var(--gold);
  margin-top: 0;
}
.training__rating {
  position: relative;
  background: rgba(255, 255, 255, .07);
  border: 1px solid rgba(255, 255, 255, .14);
  backdrop-filter: blur(8px);
  border-radius: var(--radius);
  padding: 2.2rem 1.8rem;
  text-align: center;
}
.training__score {
  font-family: var(--font-display);
  font-size: 3.4rem;
  font-weight: 800;
  color: var(--white);
  line-height: 1;
  display: block;
}
.training__score small {
  font-size: 1.3rem;
  font-weight: 600;
  color: rgba(255, 255, 255, .55);
}
.training__stars {
  display: block;
  color: var(--gold);
  font-size: 1.35rem;
  letter-spacing: .25em;
  margin: .6rem 0 .2rem;
}
.training__rating-note {
  font-size: .85rem;
  color: rgba(255, 255, 255, .6);
}
.training__rating hr {
  border: 0;
  border-top: 1px solid rgba(255, 255, 255, .14);
  margin: 1.3rem 0;
}
.training__since { font-size: .92rem; line-height: 1.6; }
.training__since strong { color: var(--gold); }

/* ============================================================
   Contact
   ============================================================ */
.contact {
  background:
    radial-gradient(900px 480px at 10% 110%, rgba(208,43,52,.18), transparent 60%),
    linear-gradient(180deg, var(--navy-ink), var(--navy-deep));
  color: rgba(255,255,255,.78);
}
.contact__grid {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: clamp(2.5rem, 6vw, 5rem);
  align-items: start;
}
.contact__list { display: grid; gap: 1.6rem; margin-top: 2rem; }
.contact__list li { display: flex; gap: 1.1rem; }
.contact__icon {
  flex: 0 0 auto;
  width: 52px; height: 52px;
  border-radius: 14px;
  background: rgba(255,255,255,.07);
  border: 1px solid rgba(255,255,255,.12);
  color: var(--gold);
  display: grid;
  place-items: center;
  transition: background .3s, transform .35s var(--ease-out);
}
.contact__icon svg { width: 24px; height: 24px; }
.contact__list li:hover .contact__icon { background: var(--red); color: #fff; transform: scale(1.07); }
.contact__list strong {
  display: block;
  font-family: var(--font-display);
  color: var(--white);
  margin-bottom: .25rem;
}
.contact__list p { font-size: .95rem; }
.contact__list a:hover { color: var(--white); text-decoration: underline; }

.contact__form {
  background: var(--white);
  border-radius: calc(var(--radius) + 4px);
  padding: clamp(1.6rem, 3vw, 2.6rem);
  box-shadow: var(--shadow-lg);
}
.contact__form h3 {
  font-size: 1.5rem;
  margin-bottom: 1.6rem;
}
.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.1rem;
}
.form-field { position: relative; margin-bottom: 1.1rem; }
.form-field input,
.form-field select,
.form-field textarea {
  width: 100%;
  font: inherit;
  font-size: .96rem;
  color: var(--ink);
  padding: 1.05em 1.1em .8em;
  border: 1.5px solid var(--line);
  border-radius: 10px;
  background: var(--bg-soft);
  outline: none;
  transition: border-color .3s, background .3s, box-shadow .3s;
}
.form-field textarea { resize: vertical; min-height: 110px; }
.form-field label {
  position: absolute;
  left: 1.1em; top: .95em;
  font-size: .95rem;
  color: #8b94ab;
  pointer-events: none;
  transition: all .25s var(--ease-out);
  background: transparent;
}
.form-field input:focus, .form-field select:focus, .form-field textarea:focus {
  border-color: var(--red);
  background: var(--white);
  box-shadow: 0 0 0 4px rgba(208,43,52,.1);
}
.form-field input:focus + label,
.form-field input:not(:placeholder-shown) + label,
.form-field textarea:focus + label,
.form-field textarea:not(:placeholder-shown) + label,
.form-field select:focus + label,
.form-field select:valid + label {
  top: -.62em;
  left: .9em;
  font-size: .74rem;
  font-weight: 600;
  color: var(--red);
  background: var(--white);
  padding: 0 .45em;
  border-radius: 4px;
}
.contact__form-note {
  margin-top: 1rem;
  font-size: .92rem;
  text-align: center;
  color: var(--navy);
  min-height: 1.4em;
}
.contact__form-note.is-error { color: var(--red); }
.contact__form-note.is-success { color: #1d8a4e; }

/* ============================================================
   Footer
   ============================================================ */
.footer {
  background: var(--navy-ink);
  color: rgba(255,255,255,.65);
  font-size: .94rem;
}
.footer__grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1.2fr;
  gap: 2.5rem;
  padding: 4rem 0 3rem;
}
.footer__logo {
  width: 190px;
  filter: drop-shadow(0 2px 8px rgba(0, 0, 0, .35));
  margin-bottom: 1.2rem;
}
.footer__col h4 {
  color: var(--white);
  font-size: 1rem;
  margin-bottom: 1.1rem;
}
.footer__col a {
  display: block;
  padding: .28em 0;
  transition: color .3s, transform .3s var(--ease-out);
}
.footer__col a:hover { color: var(--white); transform: translateX(4px); }
.footer__col address { padding-top: .4em; line-height: 1.6; }
.footer__bottom { border-top: 1px solid rgba(255,255,255,.08); padding: 1.3rem 0; }
.footer__bottom-inner {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  font-size: .85rem;
}

/* ============================================================
   Lightbox
   ============================================================ */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 400;
  background: rgba(6, 10, 28, .93);
  backdrop-filter: blur(6px);
  display: grid;
  place-items: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity .4s, visibility .4s;
}
.lightbox.is-open { opacity: 1; visibility: visible; }
.lightbox img {
  max-width: min(1100px, 90vw);
  max-height: 84vh;
  border-radius: 10px;
  box-shadow: var(--shadow-lg);
  transform: scale(.92);
  transition: transform .4s var(--ease-out);
}
.lightbox.is-open img { transform: scale(1); }
.lightbox__close,
.lightbox__nav {
  position: absolute;
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.2);
  color: #fff;
  cursor: pointer;
  border-radius: 50%;
  display: grid;
  place-items: center;
  transition: background .3s, transform .3s;
}
.lightbox__close {
  top: 24px; right: 24px;
  width: 48px; height: 48px;
  font-size: 1.6rem;
}
.lightbox__nav {
  top: 50%;
  transform: translateY(-50%);
  width: 54px; height: 54px;
  font-size: 1.2rem;
}
.lightbox__nav--prev { left: 24px; }
.lightbox__nav--next { right: 24px; }
.lightbox__close:hover, .lightbox__nav:hover { background: var(--red); }

/* ============================================================
   Back to top
   ============================================================ */
.to-top {
  position: fixed;
  right: 26px; bottom: 26px;
  width: 52px; height: 52px;
  border-radius: 50%;
  border: 0;
  background: var(--red);
  color: #fff;
  cursor: pointer;
  display: grid;
  place-items: center;
  box-shadow: 0 12px 28px rgba(208,43,52,.45);
  opacity: 0;
  visibility: hidden;
  transform: translateY(16px);
  transition: opacity .4s, visibility .4s, transform .4s var(--ease-out), background .3s;
  z-index: 150;
}
.to-top svg { width: 22px; height: 22px; }
.to-top.is-visible { opacity: 1; visibility: visible; transform: translateY(0); }
.to-top:hover { background: var(--navy); }

/* ============================================================
   Scroll-reveal system
   ============================================================ */
.reveal {
  opacity: 0;
  transform: translateY(46px);
  transition:
    opacity .9s var(--ease-out),
    transform .9s var(--ease-out);
  transition-delay: var(--reveal-delay, 0ms);
  will-change: opacity, transform;
}
.reveal[data-reveal="left"]  { transform: translateX(-56px); }
.reveal[data-reveal="right"] { transform: translateX(56px); }
.reveal[data-reveal="zoom"]  { transform: scale(.86); }
.reveal.is-visible {
  opacity: 1;
  transform: none;
}

/* ============================================================
   Responsive
   ============================================================ */
@media (max-width: 1080px) {
  .services__grid { grid-template-columns: repeat(2, 1fr); }
  .projects__grid { grid-template-columns: repeat(2, 1fr); }
  .legacy__grid { grid-template-columns: repeat(2, 1fr); }
  .legacy__head { flex-direction: column; align-items: flex-start; gap: .6rem; }
  .footer__grid { grid-template-columns: 1fr 1fr; }
  .project-feature { grid-template-columns: 1fr; }
  .header__cta { display: none; }
}

@media (max-width: 860px) {
  .section-head { flex-direction: column; align-items: flex-start; gap: 1rem; }
  .about__grid, .careers__grid, .contact__grid, .training__panel { grid-template-columns: 1fr; }
  .careers__media { order: -1; }
  .hero__stats-inner { grid-template-columns: repeat(2, 1fr); gap: 1.4rem; }
  .hero__scroll-hint { display: none; }

  .nav {
    position: fixed;
    inset: 0;
    background: rgba(9, 18, 48, .98);
    backdrop-filter: blur(16px);
    display: grid;
    place-items: center;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity .4s, visibility .4s;
    z-index: 205;
  }
  .nav.is-open { opacity: 1; visibility: visible; pointer-events: auto; }
  .nav__list { flex-direction: column; text-align: center; gap: .6rem; }
  .nav__link { font-size: 1.5rem; display: inline-block; }
  .nav-toggle { display: flex; }
}

@media (max-width: 560px) {
  body { font-size: 15.5px; }
  .services__grid, .projects__grid, .legacy__grid { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .footer__grid { grid-template-columns: 1fr; gap: 2rem; }
  .about__img--float { right: 0; }
  .hero__actions .btn { width: 100%; }
  .brand__logo { height: 72px; margin-top: 18px; }
  .header.is-scrolled .brand__logo { height: 48px; margin-top: 0; }
  .lightbox__nav { width: 44px; height: 44px; }
  .lightbox__nav--prev { left: 10px; }
  .lightbox__nav--next { right: 10px; }
}

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
  .reveal { opacity: 1; transform: none; }
  .hero__title-line > span { transform: none; animation: none; }
}
