/* FM Consultants Limited — brand colours from the logo (green #8fc741, navy #2a3b97). Loaded after Bootstrap 5.3. */

:root {
  --fmc-navy: #2a3b97;
  --fmc-navy-700: #22307c;
  --fmc-navy-900: #141d4f;
  --fmc-green: #8fc741;
  --fmc-green-700: #5e9625;
  --fmc-ink: #1c2233;
  --fmc-muted: #5b6478;
  --fmc-surface: #f5f7fc;
  --fmc-border: #e3e7f1;
  --fmc-radius: 1rem;
  --fmc-shadow: 0 1px 2px rgba(20, 29, 79, 0.04), 0 8px 24px rgba(20, 29, 79, 0.06);
  --fmc-shadow-lg: 0 2px 4px rgba(20, 29, 79, 0.05), 0 18px 40px rgba(20, 29, 79, 0.12);
  --fmc-gradient: linear-gradient(120deg, var(--fmc-navy-900) 0%, var(--fmc-navy) 55%, #4f8a3a 100%);
  --fmc-heading-font: 'Plus Jakarta Sans', system-ui, sans-serif;

  --bs-body-font-family: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --bs-body-color: var(--fmc-ink);
  --bs-body-bg: #fff;
  --bs-primary: var(--fmc-navy);
  --bs-primary-rgb: 42, 59, 151;
  --bs-success: var(--fmc-green-700);
  --bs-success-rgb: 94, 150, 37;
  --bs-link-color: var(--fmc-navy);
  --bs-link-color-rgb: 42, 59, 151;
  --bs-link-hover-color: var(--fmc-green-700);
  --bs-link-hover-color-rgb: 94, 150, 37;
  --bs-border-color: var(--fmc-border);
  --bs-secondary-color: var(--fmc-muted);
}

body.fmc {
  font-size: 1rem;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}
.fmc h1, .fmc h2, .fmc h3, .fmc h4, .fmc h5, .fmc h6, .fmc .navbar, .fmc .btn {
  font-family: var(--fmc-heading-font);
}
.fmc h1, .fmc h2, .fmc h3, .fmc h4 {
  color: var(--fmc-navy-900);
  letter-spacing: -0.01em;
}
.fmc img { max-width: 100%; height: auto; }
.fmc :focus-visible { outline: 3px solid rgba(143, 199, 65, 0.6); outline-offset: 2px; }

.fmc-skip {
  position: absolute;
  z-index: 1080;
  top: 0.5rem;
  left: 0.5rem;
  padding: 0.5rem 1rem;
  background: #fff;
  border-radius: 0.5rem;
}

/* buttons */
.fmc .btn { font-weight: 600; letter-spacing: 0.01em; }
.fmc .btn-primary {
  --bs-btn-bg: var(--fmc-navy);
  --bs-btn-border-color: var(--fmc-navy);
  --bs-btn-hover-bg: var(--fmc-navy-700);
  --bs-btn-hover-border-color: var(--fmc-navy-700);
  --bs-btn-active-bg: var(--fmc-navy-900);
  --bs-btn-active-border-color: var(--fmc-navy-900);
  --bs-btn-disabled-bg: var(--fmc-navy);
  --bs-btn-disabled-border-color: var(--fmc-navy);
}
.fmc .btn-success {
  --bs-btn-color: var(--fmc-navy-900);
  --bs-btn-bg: var(--fmc-green);
  --bs-btn-border-color: var(--fmc-green);
  --bs-btn-hover-color: var(--fmc-navy-900);
  --bs-btn-hover-bg: #a1d35a;
  --bs-btn-hover-border-color: #a1d35a;
  --bs-btn-active-color: var(--fmc-navy-900);
  --bs-btn-active-bg: #7fb534;
  --bs-btn-active-border-color: #7fb534;
}
.fmc .btn-light { --bs-btn-color: var(--fmc-navy-900); }
.fmc .form-control:focus { border-color: var(--fmc-green); box-shadow: 0 0 0 0.25rem rgba(143, 199, 65, 0.25); }
.fmc .pagination { --bs-pagination-color: var(--fmc-navy); --bs-pagination-active-bg: var(--fmc-navy); --bs-pagination-active-border-color: var(--fmc-navy); }

/* top bar + navbar */
.fmc-topbar {
  background: var(--fmc-navy-900);
  color: rgba(255, 255, 255, 0.8);
  font-size: 0.85rem;
  padding: 0.5rem 0;
}
.fmc-topbar a { color: inherit; text-decoration: none; }
.fmc-topbar a:hover { color: var(--fmc-green); }
.fmc-topbar i { color: var(--fmc-green); margin-right: 0.4rem; }

.fmc-nav {
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 1px 0 var(--fmc-border), 0 6px 20px rgba(20, 29, 79, 0.05);
  padding: 0.75rem 0;
}
/* only where the menu sits in the bar: backdrop-filter makes the navbar the containing block of its
   position:fixed children, which would squeeze the mobile offcanvas menu into the navbar's height */
@media (min-width: 992px) {
  .fmc-nav { backdrop-filter: blur(8px); }
}
.fmc-logo { height: 46px; width: auto; }
.fmc-nav .navbar-toggler { color: var(--fmc-navy); }
.fmc-nav .nav-link {
  color: var(--fmc-ink);
  font-weight: 600;
  font-size: 0.95rem;
  padding: 0.5rem 0.8rem !important;
  border-radius: 999px;
  white-space: nowrap;
}
.fmc-nav .btn { white-space: nowrap; }
@media (min-width: 992px) and (max-width: 1199.98px) {
  .fmc-logo { height: 36px; }
  .fmc-nav .nav-link { font-size: 0.88rem; padding: 0.45rem 0.55rem !important; }
}
.fmc-nav .nav-link:hover, .fmc-nav .nav-link.active, .fmc-nav .nav-link.show { color: var(--fmc-navy); background: var(--fmc-surface); }
.fmc-nav .dropdown-menu {
  border: 1px solid var(--fmc-border);
  border-radius: 0.85rem;
  box-shadow: var(--fmc-shadow-lg);
  padding: 0.5rem;
  min-width: 15rem;
}
.fmc-nav .dropdown-item { border-radius: 0.5rem; padding: 0.5rem 0.85rem; font-size: 0.93rem; white-space: normal; }
.fmc-nav .dropdown-item:hover { background: var(--fmc-surface); color: var(--fmc-navy); }
.fmc-nav .dropdown-item.active, .fmc-nav .dropdown-item:active { background: var(--fmc-navy); color: #fff; }
@media (min-width: 992px) {
  .fmc-nav .dropdown:hover > .dropdown-menu { display: block; margin-top: 0; }
}
@media (max-width: 991.98px) {
  .fmc-nav .navbar-brand { max-width: calc(100% - 4rem); margin-right: 0; }
  .fmc-nav .fmc-logo { height: 38px; max-width: 100%; object-fit: contain; }
  .fmc-nav .offcanvas { max-width: 85vw; }
  .fmc-nav .dropdown-menu { border: 0; box-shadow: none; padding: 0 0 0 0.75rem; }
}

/* sections */
.fmc-section { padding: 5.5rem 0; }
.fmc-section-alt { background: var(--fmc-surface); }
.fmc-section-head { max-width: 640px; margin: 0 auto 3rem; text-align: center; }
.fmc-section-head p { color: var(--fmc-muted); margin: 0; }
.fmc-eyebrow {
  display: inline-block;
  font-family: var(--fmc-heading-font);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--fmc-green-700);
  margin-bottom: 0.75rem;
}
.fmc-eyebrow::before { content: ''; display: inline-block; width: 1.5rem; height: 2px; background: var(--fmc-green); vertical-align: middle; margin-right: 0.6rem; }
.fmc-eyebrow-light { color: var(--fmc-green); }
.fmc-h2 { font-size: clamp(1.75rem, 3vw, 2.5rem); font-weight: 800; margin-bottom: 1rem; }
.fmc-lead { color: var(--fmc-muted); font-size: 1.05rem; }
.fmc-more { font-family: var(--fmc-heading-font); font-weight: 700; color: var(--fmc-navy); text-decoration: none; }
.fmc-more i { transition: transform 0.2s; display: inline-block; }
a:hover > .fmc-more i, .fmc-more:hover i { transform: translateX(4px); }

/* hero */
.fmc-hero { position: relative; background: var(--fmc-navy-900); }
.fmc-hero .carousel-item { height: clamp(460px, 78vh, 720px); overflow: hidden; }
.fmc .fmc-hero-img { position: absolute; inset: 0; width: 100%; height: 100%; max-width: none; object-fit: cover; }
.fmc-hero .carousel-item.active .fmc-hero-img { animation: fmc-zoom 9s ease-out both; }
@keyframes fmc-zoom { from { transform: scale(1.08); } to { transform: scale(1); } }
.fmc-hero-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  background: linear-gradient(100deg, rgba(20, 29, 79, 0.92) 0%, rgba(42, 59, 151, 0.7) 50%, rgba(20, 29, 79, 0.15) 100%);
  color: #fff;
}
.fmc-hero-title {
  color: #fff !important;
  font-size: clamp(2rem, 5vw, 3.6rem);
  font-weight: 800;
  line-height: 1.12;
  max-width: 14em;
  margin-bottom: 1rem;
}
.fmc-hero-title::first-letter { text-transform: uppercase; }
.fmc-hero-lead { font-size: 1.15rem; color: rgba(255, 255, 255, 0.85); max-width: 32em; margin-bottom: 2rem; }
.fmc-hero .carousel-indicators [data-bs-target] { width: 28px; height: 4px; border-radius: 4px; background-color: #fff; }
.fmc-hero .carousel-indicators .active { background-color: var(--fmc-green); }
.fmc-hero .carousel-control-prev, .fmc-hero .carousel-control-next { width: 6%; }
@media (prefers-reduced-motion: reduce) {
  .fmc-hero .carousel-item.active .fmc-hero-img { animation: none; }
}

/* cards */
.fmc-card {
  display: block;
  height: 100%;
  background: #fff;
  border: 1px solid var(--fmc-border);
  border-radius: var(--fmc-radius);
  box-shadow: var(--fmc-shadow);
  color: inherit;
  text-decoration: none;
  transition: transform 0.25s, box-shadow 0.25s, border-color 0.25s;
  overflow: hidden;
}
a.fmc-card:hover { transform: translateY(-4px); box-shadow: var(--fmc-shadow-lg); border-color: rgba(143, 199, 65, 0.6); color: inherit; }
.fmc-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 3.25rem;
  height: 3.25rem;
  border-radius: 0.9rem;
  background: rgba(143, 199, 65, 0.16);
  color: var(--fmc-green-700);
  font-size: 1.5rem;
  margin-bottom: 1.25rem;
}
.fmc-service-card { padding: 2rem; }
.fmc-service-card h3 { font-size: 1.2rem; font-weight: 700; margin-bottom: 0.6rem; }
.fmc-service-card p { color: var(--fmc-muted); font-size: 0.95rem; }
.fmc-service-card:hover .fmc-icon { background: var(--fmc-navy); color: #fff; }

.fmc-post-card img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; background: var(--fmc-surface); }
.fmc-post-card h3 { font-size: 1.15rem; font-weight: 700; margin: 0.5rem 0; }
.fmc-post-card p { color: var(--fmc-muted); font-size: 0.95rem; }

.fmc-info-card { padding: 2rem; text-align: center; }
.fmc-info-card h2 { font-size: 1.1rem; font-weight: 700; }
.fmc-info-card p { color: var(--fmc-muted); margin: 0; overflow-wrap: anywhere; }

/* about / why */
.fmc-why {
  background: var(--fmc-surface);
  border: 1px solid var(--fmc-border);
  border-radius: calc(var(--fmc-radius) * 1.5);
  padding: 2.5rem;
}
.fmc-why h3 { font-size: 1.35rem; font-weight: 800; margin-bottom: 1.25rem; }
.fmc-checklist li { display: flex; gap: 0.75rem; margin-bottom: 0.85rem; }
.fmc-checklist i { color: var(--fmc-green-700); font-size: 1.15rem; line-height: 1.5; }
.fmc-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; margin: 1.75rem 0; }
.fmc-stats div { background: #fff; border-radius: 0.85rem; padding: 1rem; text-align: center; box-shadow: var(--fmc-shadow); }
.fmc-stats strong { display: block; font-family: var(--fmc-heading-font); font-size: 1.6rem; font-weight: 800; color: var(--fmc-navy); }
.fmc-stats span { font-size: 0.8rem; color: var(--fmc-muted); }

.fmc-sectors { display: flex; flex-wrap: wrap; gap: 0.75rem; margin: 0; }
.fmc-sectors li {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.65rem 1.1rem;
  border: 1px solid var(--fmc-border);
  border-radius: 999px;
  background: #fff;
  font-weight: 500;
  box-shadow: var(--fmc-shadow);
}
.fmc-sectors i { color: var(--fmc-green-700); }

/* CTA band */
.fmc-cta { background: var(--fmc-gradient); color: rgba(255, 255, 255, 0.88); padding: 4rem 0; }
.fmc-cta h2 { color: #fff; font-weight: 800; font-size: clamp(1.5rem, 2.6vw, 2.1rem); }
.fmc-cta p { max-width: 46em; }

/* gallery */
.fmc-gallery-item { display: block; border-radius: var(--fmc-radius); overflow: hidden; box-shadow: var(--fmc-shadow); }
.fmc-gallery-item img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; transition: transform 0.4s; }
.fmc-gallery-item:hover img { transform: scale(1.06); }

/* contact */
.fmc-contact-list li { display: flex; gap: 0.75rem; margin-bottom: 0.85rem; }
.fmc-contact-list i { color: var(--fmc-green); line-height: 1.7; }
.fmc-contact-list a { color: inherit; text-decoration: none; }
.fmc-contact-list a:hover { color: var(--fmc-green); }
.fmc-contact-list-dark i { color: var(--fmc-green-700); }
.fmc-contact-list-dark a:hover { color: var(--fmc-navy); }
.fmc-form .form-label { font-weight: 600; font-size: 0.9rem; }
.fmc-form .form-control { border-radius: 0.65rem; padding: 0.7rem 0.9rem; }

/* inner pages */
.fmc-page-hero { background: var(--fmc-gradient); color: rgba(255, 255, 255, 0.85); padding: 3.5rem 0 3rem; }
.fmc-page-hero h1 { color: #fff; font-weight: 800; font-size: clamp(1.75rem, 4vw, 2.75rem); margin: 0; }
.fmc-page-hero .lead { margin-top: 0.5rem; }
.fmc-page-hero .breadcrumb { --bs-breadcrumb-divider-color: rgba(255, 255, 255, 0.6); --bs-breadcrumb-item-active-color: rgba(255, 255, 255, 0.75); font-size: 0.9rem; }
.fmc-page-hero .breadcrumb a { color: var(--fmc-green); text-decoration: none; }

.fmc-sidebar { position: sticky; top: 6.5rem; display: grid; gap: 1.5rem; }
.fmc-side-box { border: 1px solid var(--fmc-border); border-radius: var(--fmc-radius); padding: 1.5rem; background: #fff; }
.fmc-side-box h2 { font-size: 1.05rem; font-weight: 800; margin-bottom: 1rem; }
.fmc-side-links { margin: 0; }
.fmc-side-links a {
  display: flex;
  gap: 0.5rem;
  padding: 0.55rem 0.75rem;
  border-radius: 0.6rem;
  color: var(--fmc-ink);
  text-decoration: none;
  font-size: 0.95rem;
}
.fmc-side-links i { color: var(--fmc-green-700); font-size: 0.8rem; line-height: 1.9; }
.fmc-side-links a:hover { background: var(--fmc-surface); color: var(--fmc-navy); }
.fmc-side-links a.active { background: var(--fmc-navy); color: #fff; }
.fmc-side-links a.active i { color: var(--fmc-green); }
.fmc-side-cta { background: var(--fmc-gradient); color: rgba(255, 255, 255, 0.85); border-radius: var(--fmc-radius); padding: 2rem 1.5rem; text-align: center; }
.fmc-side-cta > i { font-size: 2rem; color: var(--fmc-green); }
.fmc-side-cta h2 { color: #fff; font-size: 1.15rem; font-weight: 800; margin: 0.75rem 0 0.5rem; }

.fmc-empty { text-align: center; max-width: 480px; margin: 0 auto; padding: 2rem 0; }
.fmc-empty > i { font-size: 3rem; color: var(--fmc-green-700); }
.fmc-empty h2 { font-weight: 800; margin: 1rem 0 0.5rem; }
.fmc-empty p { color: var(--fmc-muted); }

/* CMS HTML (legacy editor): inline Arial and sizes give way to the theme, Bootstrap 4 markup still lays out */
.fmc-prose { font-size: 1.02rem; overflow-wrap: break-word; }
.fmc-prose [style*='font-family'] { font-family: inherit !important; }
.fmc-prose h2, .fmc-prose h3, .fmc-prose h4 { margin: 2rem 0 0.85rem; font-weight: 700; }
.fmc-prose h3 { font-size: 1.35rem; }
.fmc-prose h3 [style*='font-size'], .fmc-prose h5 [style*='font-size'] { font-size: inherit !important; }
.fmc-prose > div > :first-child, .fmc-prose > :first-child { margin-top: 0; }
.fmc-prose ol, .fmc-prose ul { padding-left: 1.4rem; margin-bottom: 1.25rem; }
.fmc-prose li { margin-bottom: 0.5rem; }
.fmc-prose li::marker { color: var(--fmc-green-700); font-weight: 700; }
.fmc-prose table { width: 100%; margin-bottom: 1.5rem; border-collapse: collapse; display: block; overflow-x: auto; }
.fmc-prose th, .fmc-prose td { border: 1px solid var(--fmc-border); padding: 0.6rem 0.8rem; }
.fmc-prose th { background: var(--fmc-surface); }
.fmc-prose iframe { width: 100%; min-height: 70vh; border: 0; border-radius: var(--fmc-radius); background: var(--fmc-surface); }
.fmc-prose .border-bottom { border-color: var(--fmc-border) !important; padding-bottom: 0.5rem; }
.fmc-prose .card { border: 1px solid var(--fmc-border); border-radius: var(--fmc-radius); box-shadow: var(--fmc-shadow); overflow: hidden; }
.fmc-prose .card-header { background: var(--fmc-surface); border-bottom: 1px solid var(--fmc-border); }
.fmc-prose .card-title { font-weight: 700; color: var(--fmc-navy-900); }

/* footer */
.fmc-footer { background: var(--fmc-navy-900); color: rgba(255, 255, 255, 0.72); padding: 4.5rem 0 1.5rem; font-size: 0.95rem; }
.fmc-footer-logo { display: inline-block; background: #fff; border-radius: 0.75rem; padding: 0.6rem 0.9rem; }
.fmc-footer-logo img { height: 40px; width: auto; }
.fmc-footer-title { color: #fff !important; font-size: 1rem; font-weight: 700; margin-bottom: 1.1rem; }
.fmc-footer ul a { color: rgba(255, 255, 255, 0.72); text-decoration: none; display: inline-block; padding: 0.2rem 0; }
.fmc-footer ul a:hover { color: var(--fmc-green); }
.fmc-footer-bottom { border-top: 1px solid rgba(255, 255, 255, 0.1); margin-top: 3rem; padding-top: 1.5rem; font-size: 0.85rem; }
.fmc-footer-bottom a { color: var(--fmc-green); text-decoration: none; }

@media (max-width: 767.98px) {
  .fmc-section { padding: 4rem 0; }
  .fmc-why { padding: 1.75rem; }
  .fmc-stats { gap: 0.5rem; }
  .fmc-stats strong { font-size: 1.3rem; }
}

/* phones: a .g-5 row pulls out 1.5rem each side but the container pads only 0.75rem, so the page scrolled sideways */
@media (max-width: 575.98px) {
  .fmc .row.g-5 { --bs-gutter-x: 1.5rem; }
}
