:root {
  --navy: #0b2b42;
  --navy-deep: #071d2d;
  --blue: #155f8d;
  --orange: #e5653e;
  --ink: #133449;
  --muted: #647782;
  --line: #dbe5e9;
  --surface: #f2f6f7;
  --white: #fff;
  --shell: 1240px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 95px; }
body {
  margin: 0;
  background: var(--white);
  color: var(--ink);
  font-family: "Montserrat", "Segoe UI", sans-serif;
  line-height: 1.65;
}
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; }
img { display: block; max-width: 100%; }
h1, h2, h3, p { margin-top: 0; }
h1, h2, h3 { line-height: 1.1; letter-spacing: -0.045em; }
.page-shell { width: min(var(--shell), calc(100% - 80px)); margin-inline: auto; }
.skip-link {
  position: fixed;
  top: -70px;
  left: 16px;
  z-index: 100;
  padding: 12px 18px;
  background: var(--navy);
  color: #fff;
}
.skip-link:focus { top: 12px; }
:focus-visible { outline: 3px solid #ef8a69; outline-offset: 4px; }

.topbar { background: var(--navy-deep); color: #dce7ed; font-size: 10px; }
.topbar__inner { min-height: 34px; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.topbar a { color: #fff; font-weight: 600; }

.header {
  position: absolute;
  top: 34px;
  left: 0;
  right: 0;
  z-index: 20;
  transition: background 220ms ease, box-shadow 220ms ease, transform 220ms ease;
}
.header.is-stuck {
  position: fixed;
  top: 0;
  background: #fffffffa;
  box-shadow: 0 10px 35px #071d2d17;
}
.header__inner { min-height: 92px; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.brand { width: 112px; height: 76px; display: grid; place-items: center; padding: 6px; border-radius: 11px; background: #fff; }
.brand img { width: 100%; height: 100%; object-fit: contain; }
.nav { display: flex; align-items: center; gap: clamp(15px, 1.5vw, 27px); color: #fff; font-size: 10.5px; font-weight: 600; }
.nav > a:not(.nav__iso) { position: relative; padding: 12px 0; }
.nav > a:not(.nav__iso)::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 3px;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--orange);
  opacity: 0;
  transform: translate(-50%, 5px);
  transition: opacity 180ms ease, transform 180ms ease;
}
.nav > a:hover::after, .nav > a.is-active::after { opacity: 1; transform: translate(-50%, 0); }
.nav__iso {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 10px 14px;
  border-radius: 999px;
  background: var(--orange);
  color: #fff;
  font-size: 9px;
  text-transform: uppercase;
}
.header.is-stuck .nav { color: var(--ink); }
.menu-toggle { display: none; border: 0; border-radius: 7px; padding: 10px 13px; background: #fff; color: var(--navy); font-size: 11px; font-weight: 700; }

.hero {
  position: relative;
  min-height: 720px;
  display: flex;
  align-items: center;
  overflow: hidden;
  background: var(--navy-deep);
  color: #fff;
}
.hero__media {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, #061b2ee8 0%, #09253acc 45%, #09253a5e 75%, #09253a3b 100%),
    url("../images/fms/housekeeping.webp") center / cover no-repeat;
  transform: scale(1.02);
}
.hero__content { position: relative; z-index: 2; padding-top: 90px; }
.breadcrumb { display: flex; align-items: center; gap: 10px; margin-bottom: 30px; color: #aec3cf; font-size: 9px; font-weight: 600; text-transform: uppercase; letter-spacing: 1.4px; }
.breadcrumb a:hover { color: #fff; }
.eyebrow, .section-label { color: var(--orange); font-size: 9px; font-weight: 700; letter-spacing: 2px; text-transform: uppercase; }
.eyebrow { display: flex; align-items: center; gap: 11px; margin-bottom: 18px; }
.eyebrow span { width: 26px; height: 2px; background: var(--orange); }
.hero h1 { max-width: 800px; margin: 0 0 24px; font-size: clamp(52px, 6vw, 82px); font-weight: 400; letter-spacing: -0.065em; }
.hero h1 strong { color: #ff825d; font-weight: 500; }
.hero__intro { max-width: 610px; margin: 0; color: #ccdae1; font-size: 14px; line-height: 1.9; }
.hero__actions { display: flex; gap: 12px; margin-top: 34px; }
.button { min-height: 50px; display: inline-flex; align-items: center; justify-content: center; gap: 10px; padding: 0 21px; border: 1px solid transparent; border-radius: 7px; font-size: 11px; font-weight: 700; transition: transform 180ms ease, background 180ms ease, border-color 180ms ease; }
.button:hover { transform: translateY(-2px); }
.button--accent { background: var(--orange); color: #fff; }
.button--accent:hover { background: #c95432; }
.button--ghost { border-color: #ffffff4a; color: #fff; }
.button--ghost:hover { background: #ffffff12; }
.hero__scroll { position: absolute; z-index: 2; left: 50%; bottom: 28px; display: flex; align-items: center; gap: 13px; color: #b7c8d1; font-size: 9px; font-weight: 600; letter-spacing: 1px; text-transform: uppercase; transform: translateX(-50%); }
.hero__scroll i { color: var(--orange); }

.fms-services {
  padding: 110px 0 120px;
  background:
    linear-gradient(135deg, #edf3f5 0%, #fff 42%, #f7fafb 100%);
}

.fms-services__header { margin-bottom: 48px; }
.fms-services__header .section-label {
  display: flex;
  align-items: center;
  gap: 11px;
  margin-bottom: 15px;
}
.fms-services__header .section-label span {
  width: 28px;
  height: 2px;
  background: var(--orange);
}
.fms-services__header h2 {
  margin: 0;
  color: var(--ink);
  font-size: clamp(42px, 4.5vw, 64px);
  font-weight: 500;
  letter-spacing: -0.06em;
}
.fms-services__header h2 strong { color: var(--orange); font-weight: 500; }

.fms-services__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 26px;
}

.fms-card {
  position: relative;
  overflow: hidden;
  min-width: 0;
  border-radius: 16px;
  border: 1px solid #dce6ea;
  background: #fff;
  box-shadow: 0 22px 50px #0b2b4217;
  transition: transform 220ms ease, box-shadow 220ms ease, border-color 220ms ease;
}
.fms-card:hover {
  border-color: #e7a48f;
  box-shadow: 0 26px 58px #0b2b4223;
  transform: translateY(-6px);
}

.fms-card__image {
  position: relative;
  height: 250px;
  overflow: hidden;
}
.fms-card__image::after {
  content: none;
}
.fms-card__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 650ms cubic-bezier(0.2, 0.7, 0.2, 1);
}
.fms-card:hover .fms-card__image img { transform: scale(1.045); }

.fms-card__label {
  min-height: 88px;
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 18px 22px;
  border-top: 1px solid #e7eef1;
  background: #fff;
}
.fms-card__label i {
  width: 38px;
  height: 38px;
  flex: 0 0 38px;
  display: grid;
  place-items: center;
  border-radius: 9px;
  background: #fff0eb;
  color: var(--orange);
  font-size: 14px;
}
.fms-card__label h3 {
  margin: 0;
  color: var(--ink);
  font-size: 16px;
  font-weight: 700;
  letter-spacing: -0.025em;
}


.project-cta { background: var(--orange); color: #fff; }
.project-cta__inner {
  min-height: 160px;
  display: grid;
  grid-template-columns: minmax(280px, 0.75fr) minmax(650px, 1.55fr);
  align-items: center;
  gap: clamp(35px, 5vw, 75px);
  padding-block: 26px;
}
.project-cta .section-label { color: #fff; }
.project-cta h2 { margin: 0; font-size: clamp(29px, 3vw, 42px); font-weight: 500; }
.project-enquiry {
  position: relative;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr)) auto;
  align-items: end;
  gap: 12px;
}
.project-enquiry__honey {
  position: absolute !important;
  left: -10000px !important;
  width: 1px !important;
  height: 1px !important;
  opacity: 0 !important;
}
.project-enquiry label { display: grid; gap: 6px; }
.project-enquiry label > span {
  color: #fff;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.project-enquiry input {
  width: 100%;
  height: 38px;
  padding: 0 13px;
  border: 1px solid #ffffff75;
  border-radius: 8px;
  background: #ffffffef;
  color: var(--ink);
  font: inherit;
  font-size: 11px;
  outline: 0;
}
.project-enquiry input:focus {
  border-color: #0b2b42;
  box-shadow: 0 0 0 3px #0b2b4224;
}
.project-enquiry input::placeholder { color: #7c8d96; }
.project-enquiry button {
  height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 0 20px;
  border: 1px solid var(--navy);
  border-radius: 8px;
  background: var(--navy);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  white-space: nowrap;
  transition: background 180ms ease, transform 180ms ease;
}
.project-enquiry button:hover { background: #071d2d; transform: translateY(-2px); }
.project-enquiry button:disabled { cursor: wait; opacity: 0.75; }


.js [data-reveal] { opacity: 0; transform: translateY(26px); transition: opacity 750ms ease, transform 750ms cubic-bezier(0.2, 0.7, 0.2, 1); }
.js [data-reveal].is-visible { opacity: 1; transform: none; }

@media (max-width: 1000px) {
  .nav { gap: 12px; font-size: 9px; }
  .nav__iso { padding: 9px 10px; }
  .fms-services__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .project-cta__inner { grid-template-columns: 1fr; gap: 25px; }
}

@media (max-width: 820px) {
  .page-shell { width: calc(100% - 40px); }
  .topbar__inner > span { display: none; }
  .topbar__inner { justify-content: flex-end; }
  .header { top: 34px; }
  .header__inner { min-height: 78px; }
  .brand { width: 96px; height: 66px; }
  .menu-toggle { display: inline-flex; align-items: center; gap: 8px; }
  .nav {
    position: absolute;
    top: calc(100% + 8px);
    left: 20px;
    right: 20px;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 15px;
    border: 1px solid var(--line);
    border-radius: 10px;
    background: #fff;
    color: var(--ink);
    box-shadow: 0 18px 45px #071d2d24;
  }
  .nav.is-open { display: flex; }
  .nav > a { padding: 11px 10px !important; }
  .nav > a:not(.nav__iso)::after { display: none; }
  .nav__iso { justify-content: center; margin-top: 5px; }
  .hero { min-height: 670px; }
  .hero__content { padding-top: 75px; }
  .fms-services { padding: 78px 0 90px; }
  .fms-card__image { height: 235px; }
  .project-cta__inner { padding-block: 36px; }
  .project-enquiry { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 560px) {
  .page-shell { width: calc(100% - 36px); }
  .hero h1 { font-size: clamp(43px, 13vw, 58px); }
  .hero__intro { font-size: 12px; }
  .hero__actions { width: 100%; flex-direction: column; }
  .hero__actions .button { width: 100%; }
  .hero__scroll { display: none; }
  .fms-services__header { margin-bottom: 34px; }
  .fms-services__grid { grid-template-columns: 1fr; gap: 20px; }
  .fms-card__image { height: 225px; }
  .fms-card__label { min-height: 80px; padding: 15px 18px; }
  .project-enquiry { grid-template-columns: 1fr; }
  .project-enquiry button { width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
  .js [data-reveal] { opacity: 1; transform: none; }
}


/* FMS page refinements */
.fms-services__header h2 { max-width: 760px; }
.fms-card__label { align-items: center; }
.fms-card__label h3 { line-height: 1.35; }
