/* =====================================================================
   FPM - Facility & Property Management -- Public site stylesheet
   ===================================================================== */

:root {
  --navy-950: #061a2b;
  --navy-900: #0b2e4a;
  --navy-800: #0f3d61;
  --navy-700: #144e7c;
  --blue-600: #1c6fa8;
  --blue-500: #2b8fd1;
  --red-600: #c8102e;
  --red-500: #e0233f;
  --grey-50:  #f6f8fa;
  --grey-100: #eef1f4;
  --grey-200: #e2e7ec;
  --grey-400: #9aa7b2;
  --grey-600: #5c6b77;
  --grey-800: #2c363e;
  --white: #ffffff;
  --radius: 10px;
  --shadow-sm: 0 2px 10px rgba(6, 26, 43, 0.06);
  --shadow-md: 0 10px 30px rgba(6, 26, 43, 0.12);
  --shadow-lg: 0 20px 50px rgba(6, 26, 43, 0.18);
  --container: 1180px;
  --font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; overflow-x: hidden; max-width: 100%; }
body {
  margin: 0;
  font-family: var(--font);
  color: var(--grey-800);
  background: var(--white);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  max-width: 100%;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { margin: 0; padding: 0; list-style: none; }
h1, h2, h3, h4 { margin: 0 0 .6em; font-weight: 700; color: var(--navy-900); line-height: 1.25; }
p { margin: 0 0 1em; }
.container { max-width: var(--container); margin: 0 auto; padding: 0 24px; }
section { padding: 84px 0; }
.section-tight { padding: 56px 0; }
.bg-grey { background: var(--grey-50); }
.bg-navy { background: linear-gradient(135deg, var(--navy-950), var(--navy-800)); color: #fff; }
.bg-navy h1, .bg-navy h2, .bg-navy h3 { color: #fff; }

/* ---------- Eyebrow / section headers ---------- */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--red-600);
  margin-bottom: 14px;
}
.eyebrow::before { content: ''; width: 24px; height: 2px; background: var(--red-600); display: inline-block; }
.section-head { max-width: 720px; margin: 0 auto 48px; text-align: center; }
.section-head h2 { font-size: clamp(26px, 3vw, 36px); }
.section-head p { color: var(--grey-600); font-size: 17px; }
.section-head.align-left { margin-left: 0; text-align: left; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 26px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 15px;
  border: 2px solid transparent;
  cursor: pointer;
  transition: all .2s ease;
  white-space: nowrap;
}
.btn-primary { background: var(--red-600); color: #fff; }
.btn-primary:hover { background: var(--red-500); transform: translateY(-1px); box-shadow: var(--shadow-md); }
.btn-outline { border-color: rgba(255,255,255,.5); color: #fff; }
.btn-outline:hover { background: rgba(255,255,255,.12); }
.btn-navy { background: var(--navy-900); color: #fff; }
.btn-navy:hover { background: var(--navy-800); }
.btn-sm { padding: 9px 18px; font-size: 13px; }
.btn-block { width: 100%; justify-content: center; }

/* ---------- Top utility bar ---------- */
.topbar {
  background: var(--navy-950);
  color: rgba(255,255,255,.85);
  font-size: 13px;
}
.topbar .container { display: flex; justify-content: space-between; align-items: center; padding-top: 8px; padding-bottom: 8px; flex-wrap: wrap; gap: 6px; }
.topbar .contact-items { display: flex; gap: 22px; flex-wrap: wrap; }
.topbar .contact-items span { display: inline-flex; align-items: center; gap: 6px; }
.topbar .social { display: flex; gap: 12px; }
.topbar .social a { width: 26px; height: 26px; border-radius: 50%; background: rgba(255,255,255,.1); display: inline-flex; align-items: center; justify-content: center; }
.topbar .social a:hover { background: var(--red-600); }

/* ---------- Header / nav ---------- */
header.site-header {
  position: sticky;
  top: 0;
  z-index: 200;
  background: #fff;
  box-shadow: var(--shadow-sm);
}
.navwrap { display: flex; align-items: center; justify-content: space-between; padding: 14px 24px; }
.brand { display: flex; align-items: center; gap: 12px; font-weight: 800; font-size: 20px; color: var(--navy-900); }
.brand img { height: 46px; width: auto; }
.brand .tagline { display: block; font-size: 11px; font-weight: 600; letter-spacing: .05em; color: var(--grey-600); text-transform: uppercase; }

nav.main-nav { display: flex; align-items: center; }
nav.main-nav > ul { display: flex; gap: 4px; align-items: center; }
nav.main-nav > ul > li { position: relative; }
nav.main-nav > ul > li > a {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 14px 16px;
  font-weight: 600;
  font-size: 14.5px;
  color: var(--navy-900);
  border-radius: 6px;
}
nav.main-nav > ul > li > a:hover,
nav.main-nav > ul > li.active > a { color: var(--red-600); }
nav.main-nav .caret { width: 8px; height: 8px; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: rotate(45deg); margin-top: -4px; opacity: .6; }

.dropdown { position: absolute; top: 100%; left: 0; min-width: 260px; background: #fff; border-radius: var(--radius); box-shadow: var(--shadow-lg); padding: 10px; opacity: 0; visibility: hidden; transform: translateY(8px); transition: all .18s ease; }
nav.main-nav > ul > li:hover .dropdown { opacity: 1; visibility: visible; transform: translateY(0); }
.dropdown a { display: block; padding: 10px 14px; border-radius: 8px; font-size: 14px; font-weight: 500; color: var(--grey-800); }
.dropdown a:hover { background: var(--grey-50); color: var(--red-600); }

.nav-cta { margin-left: 10px; }
.nav-toggle { display: none; }

/* ---------- Hero slider ---------- */
.hero { position: relative; overflow: hidden; background: var(--navy-950); color: #fff; }
.hero-slides { position: relative; height: 560px; }
.hero-slide {
  position: absolute; inset: 0;
  background-size: cover; background-position: center;
  opacity: 0; transition: opacity .9s ease;
}
.hero-slide.active { opacity: 1; }
.hero-slide::after {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(90deg, rgba(6,26,43,.92) 10%, rgba(6,26,43,.55) 55%, rgba(6,26,43,.25));
}
.hero-content { position: relative; z-index: 2; height: 100%; display: flex; flex-direction: column; justify-content: center; max-width: 640px; padding: 0 24px; margin: 0 auto; }
.hero-inner { max-width: var(--container); margin: 0 auto; position: relative; height: 100%; }
.hero-text { position: absolute; left: 24px; bottom: 90px; max-width: 620px; z-index: 3; }
.hero-text .eyebrow { color: #ffb3bf; }
.hero-text h1 { color: #fff; font-size: clamp(28px, 4vw, 44px); }
.hero-dots { position: absolute; bottom: 28px; left: 24px; display: flex; gap: 8px; z-index: 3; }
.hero-dots button { width: 34px; height: 4px; border: none; background: rgba(255,255,255,.35); cursor: pointer; border-radius: 2px; padding: 0; }
.hero-dots button.active { background: var(--red-600); }

/* ---------- Stats ---------- */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.stat { text-align: center; }
.stat .num { font-size: 38px; font-weight: 800; color: var(--navy-900); }
.stat .label { color: var(--grey-600); font-size: 14px; font-weight: 600; text-transform: uppercase; letter-spacing: .04em; }

/* ---------- Cards ---------- */
.grid { display: grid; gap: 28px; }
.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(--grey-200);
  border-radius: var(--radius);
  padding: 32px 26px;
  transition: all .2s ease;
  height: 100%;
}
.card:hover { box-shadow: var(--shadow-md); border-color: transparent; transform: translateY(-4px); }
.card .icon {
  width: 54px; height: 54px; border-radius: 14px;
  background: linear-gradient(135deg, var(--navy-900), var(--blue-600));
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 18px; color: #fff;
}
.card h3 { font-size: 18px; margin-bottom: 10px; }
.card p { color: var(--grey-600); font-size: 15px; margin-bottom: 0; }
.card .tag { display: inline-block; font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; color: var(--blue-600); background: rgba(43,143,209,.1); padding: 4px 10px; border-radius: 999px; margin-bottom: 14px; }

/* ---------- About / split sections ---------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.split img { border-radius: var(--radius); box-shadow: var(--shadow-md); }
.split.reverse { direction: rtl; }
.split.reverse > * { direction: ltr; }
.checklist li { display: flex; gap: 10px; margin-bottom: 12px; color: var(--grey-800); }
.checklist li::before { content: ''; flex: none; width: 20px; height: 20px; margin-top: 2px; border-radius: 50%; background: var(--red-600); position: relative; }
.checklist li::after { content: ''; position: absolute; }

/* ---------- Values / numbered items ---------- */
.value-item { display: flex; gap: 20px; padding: 26px 0; border-bottom: 1px solid var(--grey-200); }
.value-item:last-child { border-bottom: none; }
.value-item .num { flex: none; width: 50px; height: 50px; border-radius: 50%; background: var(--navy-900); color: #fff; display: flex; align-items: center; justify-content: center; font-weight: 800; }

/* ---------- Timeline (engagements / mission list) ---------- */
.tick-list li { position: relative; padding-left: 34px; margin-bottom: 16px; color: var(--grey-800); }
.tick-list li::before {
  content: '✓'; position: absolute; left: 0; top: -1px;
  width: 22px; height: 22px; border-radius: 50%; background: var(--red-600); color: #fff;
  font-size: 12px; display: flex; align-items: center; justify-content: center; font-weight: 700;
}

/* ---------- References / logos strip ---------- */
.logo-strip { display: flex; flex-wrap: wrap; gap: 30px; align-items: center; justify-content: center; }
.logo-strip .logo-item {
  background: #fff; border: 1px solid var(--grey-200); border-radius: var(--radius);
  padding: 18px 26px; display: flex; align-items: center; justify-content: center;
  min-width: 160px; font-weight: 700; color: var(--navy-800);
}

/* ---------- CTA band ---------- */
.cta-band { background: linear-gradient(120deg, var(--navy-950), var(--navy-800)); color: #fff; border-radius: 20px; padding: 56px; display: flex; justify-content: space-between; align-items: center; gap: 30px; flex-wrap: wrap; }
.cta-band h2 { color: #fff; margin-bottom: 8px; }
.cta-band p { color: rgba(255,255,255,.75); margin: 0; }

/* ---------- Page hero (interior pages) ---------- */
.page-hero { background: linear-gradient(135deg, var(--navy-950), var(--navy-800)); color: #fff; padding: 64px 0 50px; }
.breadcrumb { font-size: 13px; color: rgba(255,255,255,.65); margin-bottom: 10px; }
.breadcrumb a { color: rgba(255,255,255,.85); }
.page-hero h1 { color: #fff; font-size: clamp(26px, 3.4vw, 38px); margin-bottom: 8px; }
.page-hero .subtitle { color: rgba(255,255,255,.78); font-size: 17px; max-width: 640px; }

/* ---------- Sidebar / nav within pages (about section) ---------- */
.subnav { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 40px; }
.subnav a { padding: 10px 18px; border-radius: 999px; border: 1px solid var(--grey-200); font-weight: 600; font-size: 14px; color: var(--navy-800); }
.subnav a:hover, .subnav a.active { background: var(--navy-900); color: #fff; border-color: var(--navy-900); }

/* ---------- Forms ---------- */
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.form-group { margin-bottom: 18px; }
.form-group.full { grid-column: 1 / -1; }
label { display: block; font-weight: 600; font-size: 14px; margin-bottom: 7px; color: var(--navy-900); }
input[type=text], input[type=email], input[type=tel], input[type=password], input[type=date], select, textarea {
  width: 100%; padding: 13px 15px; border: 1px solid var(--grey-200); border-radius: 8px;
  font-family: var(--font); font-size: 14.5px; background: #fff; color: var(--grey-800);
}
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--blue-500); box-shadow: 0 0 0 3px rgba(43,143,209,.15); }
textarea { resize: vertical; min-height: 120px; }
.form-card { background: #fff; border-radius: var(--radius); box-shadow: var(--shadow-md); padding: 40px; }
.field-hint { font-size: 12px; color: var(--grey-400); margin-top: 4px; }
.required { color: var(--red-600); }

.alert { padding: 14px 18px; border-radius: 8px; margin-bottom: 20px; font-size: 14.5px; font-weight: 500; }
.alert-success { background: #e5f7ec; color: #1a7a41; border: 1px solid #b9e8ca; }
.alert-error { background: #fdeaea; color: #b3261e; border: 1px solid #f6c1bd; }

/* ---------- Job listing ---------- */
.job-item { display: flex; justify-content: space-between; align-items: center; gap: 18px; padding: 26px; border: 1px solid var(--grey-200); border-radius: var(--radius); margin-bottom: 16px; flex-wrap: wrap; }
.job-item h3 { margin-bottom: 6px; font-size: 18px; }
.job-meta { display: flex; gap: 14px; flex-wrap: wrap; font-size: 13px; color: var(--grey-600); }
.job-meta span { display: inline-flex; align-items: center; gap: 5px; }

/* ---------- Locations ---------- */
.location-card { display: flex; gap: 16px; padding: 22px; border: 1px solid var(--grey-200); border-radius: var(--radius); }
.location-card .pin { flex: none; width: 44px; height: 44px; border-radius: 50%; background: var(--red-600); color: #fff; display: flex; align-items: center; justify-content: center; }

/* ---------- Footer ---------- */
footer.site-footer { background: var(--navy-950); color: rgba(255,255,255,.75); padding-top: 64px; }
footer.site-footer h4 { color: #fff; font-size: 16px; margin-bottom: 18px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 40px; padding-bottom: 46px; border-bottom: 1px solid rgba(255,255,255,.1); }
.footer-grid a { display: block; padding: 6px 0; font-size: 14px; color: rgba(255,255,255,.7); }
.footer-grid a:hover { color: #fff; }
.footer-brand img { height: 42px; margin-bottom: 16px; filter: brightness(0) invert(1); }
.footer-brand p { font-size: 14px; color: rgba(255,255,255,.6); }
.footer-social { display: flex; gap: 10px; margin-top: 16px; }
.footer-social a { width: 34px; height: 34px; border-radius: 50%; background: rgba(255,255,255,.08); display: flex; align-items: center; justify-content: center; }
.footer-social a:hover { background: var(--red-600); }
.footer-bottom { display: flex; justify-content: space-between; padding: 22px 0; font-size: 13px; color: rgba(255,255,255,.5); flex-wrap: wrap; gap: 10px; }
.contact-line { display: flex; gap: 10px; margin-bottom: 12px; font-size: 14px; color: rgba(255,255,255,.75); }

/* ---------- Utilities ---------- */
.mt-0{margin-top:0}.mb-0{margin-bottom:0}.text-center{text-align:center}.mx-auto{margin-left:auto;margin-right:auto}
.flex{display:flex}.items-center{align-items:center}.gap-10{gap:10px}
.badge { display: inline-block; padding: 4px 11px; border-radius: 999px; font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .03em; }
.badge-blue{background:#e5f1fb;color:#1c6fa8}.badge-orange{background:#fff2e2;color:#c76a11}
.badge-green{background:#e5f7ec;color:#1a7a41}.badge-red{background:#fdeaea;color:#b3261e}.badge-grey{background:#eef1f4;color:#5c6b77}

/* ---------- Responsive ---------- */
@media (max-width: 980px) {
  .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .split { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .stats { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 760px) {
  nav.main-nav { position: fixed; top: 76px; left: 0; right: 0; bottom: 0; background: #fff; flex-direction: column; padding: 20px; transform: translateX(-100%); transition: transform .25s ease; overflow-y: auto; }
  nav.main-nav.open { transform: translateX(0); }
  nav.main-nav > ul { flex-direction: column; width: 100%; align-items: stretch; }
  nav.main-nav > ul > li > a { padding: 16px 6px; border-bottom: 1px solid var(--grey-100); }
  .dropdown { position: static; opacity: 1; visibility: visible; transform: none; box-shadow: none; display: none; padding-left: 14px; }
  nav.main-nav > ul > li.open .dropdown { display: block; }
  .nav-toggle { display: flex; flex-direction: column; gap: 5px; background: none; border: none; cursor: pointer; padding: 8px; }
  .nav-toggle span { width: 24px; height: 2px; background: var(--navy-900); }
  .nav-cta { display: none; }
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .form-grid { grid-template-columns: 1fr; }
  .hero-slides { height: 540px; }
  .hero-text {
    left: 16px;
    right: 16px;
    bottom: 60px;
    max-width: none;
    width: auto;
  }
  .hero-text p { max-width: none !important; }
  .hero-text .flex { flex-wrap: wrap; row-gap: 10px; }
  .hero-text .btn { white-space: normal; }
  .footer-grid { grid-template-columns: 1fr; }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .job-item { flex-direction: column; align-items: flex-start; }
  .cta-band { flex-direction: column; text-align: center; }
}

@media (max-width: 420px) {
  .hero-text h1 { font-size: 24px; }
  .hero-text .eyebrow { font-size: 11px; }
  .hero-text p { font-size: 14px; }
  .btn { padding: 11px 20px; font-size: 14px; }
}
