/* ==========================================================================
   Record Management System: header/footer styles
   File: Record-Management-System/rms.css

   The RMS pages keep loading their existing design (css/style.css, ../dms.css and
   the other existing sheets). This file adds ONLY the look of the shared header/footer:
   the look of the shared <esuor-header> and <esuor-footer>, copied from
   css/styles.css section 2.

   Everything is scoped to esuor-header / esuor-footer, so nothing here can
   change the existing RMS content and nothing in style.css/Bootstrap can
   restyle the header or footer by accident.
   Put any further RMS-only styles at the bottom of this file.
   ========================================================================== */

/* Tokens (scoped, so they cannot collide with variables in the existing CSS) */
esuor-header, esuor-footer {
  --navy: #00417f; --teal: #00679c; --brand: #03527a; --gold: #f5c34f; --gold-soft: #ffd36e;
  --ice: #eef4f9; --line: #d3e0ea; --ink: #212529; --muted: #3a4650; --soft: #cfe0ec;
  --white: #ffffff; --deep: #001f33; --deep-line: #304959;
  --font-display: 'Bricolage Grotesque', 'Figtree', system-ui, sans-serif;
  --font-body: 'Figtree', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --font-logo: 'Montserrat', system-ui, sans-serif;
  --gutter: clamp(20px, 5vw, 80px);
  --wrap: 1240px;
  --header-h: 80px;
  font-family: var(--font-body); line-height: 1.6; color: var(--ink);
  -webkit-font-smoothing: antialiased;
}

/* Local reset: the same base rules the shared header/footer expect */
:is(esuor-header, esuor-footer) *, :is(esuor-header, esuor-footer) *::before, :is(esuor-header, esuor-footer) *::after { box-sizing: border-box; }
:is(esuor-header, esuor-footer) img { max-width: 100%; height: auto; display: block; }
:is(esuor-header, esuor-footer) a { color: inherit; text-decoration: none; }
:is(esuor-header, esuor-footer) ul, :is(esuor-header, esuor-footer) ol { margin: 0; padding: 0; list-style: none; }
:is(esuor-header, esuor-footer) h1, :is(esuor-header, esuor-footer) h2, :is(esuor-header, esuor-footer) h3, :is(esuor-header, esuor-footer) p { margin: 0; }
:is(esuor-header, esuor-footer) h1, :is(esuor-header, esuor-footer) h2, :is(esuor-header, esuor-footer) h3 { font-family: var(--font-display); }
:is(esuor-header, esuor-footer) button { font: inherit; color: inherit; }
:is(esuor-header, esuor-footer) :focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; }
:is(esuor-header, esuor-footer) .wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; }
:is(esuor-header, esuor-footer) .has-particles { position: relative; overflow: hidden; }
:is(esuor-header, esuor-footer) .particles { position: absolute; inset: 0; z-index: 1; width: 100%; height: 100%; pointer-events: none; }
:is(esuor-header, esuor-footer) .has-particles > .wrap { position: relative; z-index: 2; }
:is(esuor-header, esuor-footer) .wordmark {
  position: relative; display: inline-block; padding-bottom: 8px;
  font-family: var(--font-logo); font-weight: 800; font-size: 38px; line-height: 1;
  letter-spacing: .02em; color: var(--brand);
}
:is(esuor-header, esuor-footer) .wordmark sup { font-size: 11px; vertical-align: top; margin-left: 2px; letter-spacing: 0; }
:is(esuor-header, esuor-footer) .wordmark::after {
  content: ''; position: absolute; left: 0; bottom: 0; width: 76%; height: 3px; border-radius: 3px;
  background: linear-gradient(90deg, var(--gold), rgba(245, 195, 79, 0));
}

/* ------------------------- Header and footer ------------------------- */
/* ===== 2. HEADER AND FOOTER ===== */
/* ==========================================================================
   components.css: styles for <esuor-header> and <esuor-footer>.
   Edit here and every page changes.
   ========================================================================== */
esuor-footer { display: block; }

/* ------------------------------ Header ------------------------------ */
/* The <esuor-header> element is the sticky one. It must be, because a sticky
   child can only stick inside its parent, and the parent is only as tall as
   the header. Here the parent is <body>, so the header stays at the top for
   the whole page. */
esuor-header {
  display: block;
  position: sticky; top: 0; z-index: 100;
}
:is(esuor-header, esuor-footer) .site-header {
  position: relative;
  background: var(--white);
  transition: box-shadow .25s;
}
:is(esuor-header, esuor-footer) .site-header.is-scrolled,
:is(esuor-header, esuor-footer) .site-header.is-open { box-shadow: 0 2px 14px rgba(0, 65, 127, .16); }
:is(esuor-header, esuor-footer) .site-header__bar {
  max-width: 1440px; margin: 0 auto; min-height: var(--header-h);
  padding: 12px var(--gutter);
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
}
:is(esuor-header, esuor-footer) .logo { display: inline-flex; align-items: center; flex: none; }
:is(esuor-header, esuor-footer) .logo img { height: 44px; width: auto; }
:is(esuor-header, esuor-footer) .logo .wordmark { font-size: 36px; }

:is(esuor-header, esuor-footer) .nav__list { display: flex; align-items: center; gap: 6px 30px; }
:is(esuor-header, esuor-footer) .nav__item { position: relative; }
:is(esuor-header, esuor-footer) .nav__link {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 10px 0; background: none; border: 0; cursor: pointer;
  font-size: 14px; font-weight: 600; letter-spacing: .05em; text-transform: uppercase; color: var(--ink);
  border-bottom: 2px solid transparent; transition: color .2s;
}
:is(esuor-header, esuor-footer) .nav__link:hover { color: var(--teal); }
:is(esuor-header, esuor-footer) .nav__item.is-active > .nav__link { border-bottom-color: var(--gold); }
:is(esuor-header, esuor-footer) .nav__toggle i { font-size: 10px; transition: transform .2s; }
:is(esuor-header, esuor-footer) .has-menu.is-open > .nav__toggle i { transform: rotate(180deg); }

:is(esuor-header, esuor-footer) .menu {
  position: absolute; top: 100%; left: -18px; min-width: 330px; padding: 10px;
  background: var(--white); border-radius: 16px; border: 1px solid var(--line);
  box-shadow: 0 24px 48px rgba(0, 65, 127, .18);
  opacity: 0; visibility: hidden; transform: translateY(8px);
  transition: opacity .2s, transform .2s, visibility .2s;
}
:is(esuor-header, esuor-footer) .has-menu:hover > .menu,
:is(esuor-header, esuor-footer) .has-menu:focus-within > .menu,
:is(esuor-header, esuor-footer) .has-menu.is-open > .menu {
  opacity: 1; visibility: visible; transform: none;
}
:is(esuor-header, esuor-footer) .menu a {
  display: flex; align-items: center; gap: 14px; padding: 11px 12px; border-radius: 10px;
  font-size: 15px; font-weight: 600; color: var(--ink); transition: background .2s, color .2s;
}
:is(esuor-header, esuor-footer) .menu a i { width: 20px; text-align: center; color: var(--navy); transition: color .2s; }
:is(esuor-header, esuor-footer) .menu a:hover { background: var(--navy); color: var(--white); }
:is(esuor-header, esuor-footer) .menu a:hover i { color: var(--gold); }

/* Menu button: only visible when the nav collapses (1100px and below). */
:is(esuor-header, esuor-footer) .burger {
  display: none; flex: none; width: 44px; height: 44px; border-radius: 12px; border: 1.5px solid var(--line);
  background: var(--white); cursor: pointer; padding: 0; position: relative;
}
:is(esuor-header, esuor-footer) .burger span {
  position: absolute; left: 11px; right: 11px; height: 2px; border-radius: 2px; background: var(--navy);
  transition: transform .25s, opacity .2s, top .25s;
}
:is(esuor-header, esuor-footer) .burger span:nth-child(1) { top: 14px; }
:is(esuor-header, esuor-footer) .burger span:nth-child(2) { top: 21px; }
:is(esuor-header, esuor-footer) .burger span:nth-child(3) { top: 28px; }
:is(esuor-header, esuor-footer) .site-header.is-open .burger span:nth-child(1) { top: 21px; transform: rotate(45deg); }
:is(esuor-header, esuor-footer) .site-header.is-open .burger span:nth-child(2) { opacity: 0; }
:is(esuor-header, esuor-footer) .site-header.is-open .burger span:nth-child(3) { top: 21px; transform: rotate(-45deg); }

@media (max-width: 1100px) {
  :is(esuor-header, esuor-footer) .burger { display: block; }
  :is(esuor-header, esuor-footer) .nav {
    position: absolute; left: 0; right: 0; top: 100%;
    background: var(--white); border-top: 1px solid var(--line);
    box-shadow: 0 18px 30px rgba(0, 65, 127, .16);
    max-height: calc(100vh - var(--header-h)); overflow-y: auto;
    display: none;
  }
  :is(esuor-header, esuor-footer) .site-header.is-open .nav { display: block; }
  :is(esuor-header, esuor-footer) .nav__list { flex-direction: column; align-items: stretch; gap: 0; padding: 8px var(--gutter) 20px; }
  :is(esuor-header, esuor-footer) .nav__item { border-bottom: 1px solid var(--line); }
  :is(esuor-header, esuor-footer) .nav__link { width: 100%; justify-content: space-between; padding: 16px 0; border-bottom: 0; font-size: 15px; }
  :is(esuor-header, esuor-footer) .nav__item.is-active > .nav__link { color: var(--teal); }
  :is(esuor-header, esuor-footer) .menu {
    position: static; min-width: 0; padding: 0 0 10px; border: 0; box-shadow: none; border-radius: 0;
    opacity: 1; visibility: visible; transform: none; display: none;
  }
  :is(esuor-header, esuor-footer) .has-menu:hover > .menu,
:is(esuor-header, esuor-footer) .has-menu:focus-within > .menu { display: none; }
  :is(esuor-header, esuor-footer) .has-menu.is-open > .menu { display: block; }
}

/* ---------------------- Header menu: flyouts (Services and Product). Shared header, so it lives in styles.css ---------------------- */
:is(esuor-header, esuor-footer) .has-sub { position: relative; }
:is(esuor-header, esuor-footer) .menu__sub-toggle {
  width: 100%; display: flex; align-items: center; gap: 14px; padding: 11px 12px;
  border: 0; border-radius: 10px; background: none; cursor: pointer; text-align: left;
  font-size: 15px; font-weight: 600; color: var(--ink); transition: background .2s, color .2s;
}
:is(esuor-header, esuor-footer) .menu__sub-toggle > i:first-child { width: 20px; text-align: center; color: var(--navy); transition: color .2s; }
:is(esuor-header, esuor-footer) .menu__sub-toggle > span { flex: 1; min-width: 0; }
:is(esuor-header, esuor-footer) .sub-arrow { font-size: 11px; transition: transform .2s; }
:is(esuor-header, esuor-footer) .has-sub:hover > .menu__sub-toggle,
:is(esuor-header, esuor-footer) .has-sub:focus-within > .menu__sub-toggle,
:is(esuor-header, esuor-footer) .has-sub.is-open > .menu__sub-toggle { background: var(--gold); color: var(--navy); }
:is(esuor-header, esuor-footer) .has-sub:hover > .menu__sub-toggle > i:first-child,
:is(esuor-header, esuor-footer) .has-sub:focus-within > .menu__sub-toggle > i:first-child,
:is(esuor-header, esuor-footer) .has-sub.is-open > .menu__sub-toggle > i:first-child { color: var(--navy); }

:is(esuor-header, esuor-footer) .submenu {
  position: absolute; top: -11px; left: calc(100% + 6px); z-index: 2; min-width: 300px; padding: 10px;
  background: var(--white); border: 1px solid var(--line); border-radius: 16px;
  box-shadow: 0 24px 48px rgba(0, 65, 127, .18);
  display: none;
}
/* Invisible strip so the pointer can cross the gap between menu and flyout. */
:is(esuor-header, esuor-footer) .submenu::before { content: ''; position: absolute; top: 0; bottom: 0; left: -10px; width: 10px; }
:is(esuor-header, esuor-footer) .has-sub:hover > .submenu,
:is(esuor-header, esuor-footer) .has-sub:focus-within > .submenu,
:is(esuor-header, esuor-footer) .has-sub.is-open > .submenu {
  display: block; animation: submenu-in .2s ease-out;
}
@keyframes submenu-in { from { opacity: 0; transform: translateX(8px); } to { opacity: 1; transform: none; } }
:is(esuor-header, esuor-footer) .submenu.is-flipped { left: auto; right: calc(100% + 6px); }
:is(esuor-header, esuor-footer) .submenu.is-flipped::before { left: auto; right: -10px; }

@media (max-width: 1100px) {
  :is(esuor-header, esuor-footer) .submenu {
    position: static; min-width: 0; margin: 2px 0 6px 22px; padding: 0 0 0 12px;
    border: 0; border-left: 2px solid var(--line); border-radius: 0; box-shadow: none;
    display: none; animation: none;
  }
  :is(esuor-header, esuor-footer) .submenu::before { display: none; }
  :is(esuor-header, esuor-footer) .has-sub:hover > .submenu,
:is(esuor-header, esuor-footer) .has-sub:focus-within > .submenu { display: none; }
  :is(esuor-header, esuor-footer) .has-sub.is-open > .submenu { display: block; animation: none; }
  :is(esuor-header, esuor-footer) .has-sub:hover > .menu__sub-toggle,
:is(esuor-header, esuor-footer) .has-sub:focus-within > .menu__sub-toggle { background: none; color: var(--ink); }
  :is(esuor-header, esuor-footer) .has-sub.is-open > .menu__sub-toggle { background: var(--gold); color: var(--navy); }
  :is(esuor-header, esuor-footer) .has-sub.is-open > .menu__sub-toggle .sub-arrow { transform: rotate(90deg); }
  :is(esuor-header, esuor-footer) .menu__sub-toggle { padding: 13px 12px; }
}

/* ------------------------------ Footer ------------------------------ */
:is(esuor-header, esuor-footer) .site-footer { background: var(--deep); color: var(--white); }
:is(esuor-header, esuor-footer) .site-footer__main {
  padding: clamp(56px, 7vw, 88px) var(--gutter) clamp(44px, 5vw, 64px);
  max-width: calc(var(--wrap) + 2 * var(--gutter));
  display: grid;
  grid-template-columns: minmax(0, 270px) minmax(0, 2fr) minmax(0, 1.2fr);
  gap: 48px clamp(40px, 6vw, 88px);
}
:is(esuor-header, esuor-footer) .footer-title {
  position: relative; padding-bottom: 14px; margin-bottom: 20px;
  font-size: 28px; font-weight: 700; line-height: 1.1;
}
:is(esuor-header, esuor-footer) .footer-title::after { content: ''; position: absolute; left: 0; bottom: 0; width: 48px; height: 3px; border-radius: 2px; background: var(--gold); }

:is(esuor-header, esuor-footer) .footer-col--brand { display: flex; flex-direction: column; gap: 26px; }
:is(esuor-header, esuor-footer) .iso { /*display: flex; align-items: center; gap: 16px;*/ text-align: center; }
:is(esuor-header, esuor-footer) .iso img { /*width: 92px; height: 92px;*/ width: 100%; object-fit: contain; flex: none; padding: 0 65px 15px; }
:is(esuor-header, esuor-footer) .iso p { /*font-size: 17px; line-height: 1.5; font-weight: 500;*/ font-family: var(--font-display); }
:is(esuor-header, esuor-footer) .iso-badge {
  flex: none; width: 92px; height: 92px; border-radius: 50%; display: grid; place-content: center; text-align: center;
  background: radial-gradient(circle at 30% 25%, #fbe694, var(--gold) 55%, #b98a1c);
  color: #5c4208; box-shadow: inset 0 0 0 5px rgba(255, 255, 255, .25);
}
:is(esuor-header, esuor-footer) .iso-badge b { font-size: 24px; line-height: 1; font-weight: 800; }
:is(esuor-header, esuor-footer) .iso-badge span { font-size: 11px; font-weight: 800; }
:is(esuor-header, esuor-footer) .footer-col--brand .wordmark { color: var(--white); }

:is(esuor-header, esuor-footer) .social { display: flex; flex-wrap: wrap; gap: 9px; }
:is(esuor-header, esuor-footer) .social__link {
  width: 37px; height: 37px; border-radius: 50%; display: grid; place-items: center;
  border: 1px solid var(--deep-line); color: var(--white); font-size: 16px;
  transition: background .2s, color .2s, border-color .2s, transform .2s;
}
:is(esuor-header, esuor-footer) .social__link:hover { background: var(--gold); border-color: var(--gold); color: var(--navy); transform: translateY(-3px); }

:is(esuor-header, esuor-footer) .quick-links {
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr));
  grid-template-rows: repeat(5, auto); grid-auto-flow: column; column-gap: 32px;
}
:is(esuor-header, esuor-footer) .quick-links a {
  display: flex; align-items: center; gap: 12px; padding: 10px 0;
  font-size: 14px; line-height: 1.35; color: #e6edf2; transition: color .2s, padding .2s;
}
:is(esuor-header, esuor-footer) .quick-links a i { color: var(--gold); font-size: 11px; flex: none; }
:is(esuor-header, esuor-footer) .quick-links a:hover { color: var(--gold); padding-left: 6px; }

:is(esuor-header, esuor-footer) .contact-list { border-top: 1px solid var(--deep-line); }
:is(esuor-header, esuor-footer) .contact-list li { display: flex; align-items: center; gap: 16px; padding: 10px 0; border-bottom: 1px solid var(--deep-line); font-size: 14px; line-height: 1.55; }
:is(esuor-header, esuor-footer) .contact-list__icon {
  flex: none; width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center;
  background: rgba(245, 195, 79, .12); color: var(--gold); font-size: 14px;
}
:is(esuor-header, esuor-footer) .contact-list a:hover { color: var(--gold); }
:is(esuor-header, esuor-footer) .contact-list .email { overflow-wrap: anywhere; }

:is(esuor-header, esuor-footer) .site-footer__bar { position: relative; z-index: 2; border-top: 1px solid var(--deep-line); padding: 22px var(--gutter); color: #e6edf2; font-size: 14px; }
:is(esuor-header, esuor-footer) .site-footer__bar .wrap { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 32px; }
:is(esuor-header, esuor-footer) .site-footer .sep { margin: 0 8px; color: var(--deep-line); }
:is(esuor-header, esuor-footer) .legal { display: inline-flex; flex-wrap: wrap; align-items: center; }
:is(esuor-header, esuor-footer) .legal a:hover { color: var(--gold); }

@media (max-width: 980px) {
  :is(esuor-header, esuor-footer) .site-footer__main { grid-template-columns: minmax(0, 1fr); }
  :is(esuor-header, esuor-footer) .footer-col--brand { flex-direction: row; flex-wrap: wrap; align-items: center; justify-content: space-between; }
}
@media (max-width: 640px) {
  :is(esuor-header, esuor-footer) .quick-links { grid-template-columns: minmax(0, 1fr); grid-template-rows: none; grid-auto-flow: row; }
  :is(esuor-header, esuor-footer) .footer-col--brand { flex-direction: column; align-items: flex-start; }
}


@media (max-width: 760px) {
  esuor-header { --header-h: 68px; }
  :is(esuor-header, esuor-footer) .logo img { height: 38px; }
  :is(esuor-header, esuor-footer) .logo .wordmark { font-size: 30px; }
  :is(esuor-header, esuor-footer) .menu a { padding: 13px 12px; }
}
@media (max-width: 380px) {
  esuor-header, esuor-footer { --gutter: 16px; }
  :is(esuor-header, esuor-footer) .footer-title { font-size: 24px; }
}

/* ------------------------- RMS-only styles go below ------------------------- */

/* ==========================================================================
   RMS page body (the body HTML now sits directly in each page, inside <main class="flex-1">)
   Scoped to main.flex-1 so it only affects this content.
   Colors follow the ESUOR palette: navy #00417f > teal #00679c, gold #f5c34f.
   ========================================================================== */
main.flex-1 {
  --r-navy: #00417f; --r-teal: #00679c; --r-gold: #f5c34f; --r-ice: #eef4f9; --r-line: #d3e0ea; --r-muted: #3a4650; --r-ink: #212529;
  display: block; overflow-x: hidden; background: #fff; color: var(--r-ink);
  font-family: 'Figtree', system-ui, -apple-system, 'Segoe UI', sans-serif; font-size: 16px; line-height: 1.65;
}
main.flex-1 *, main.flex-1 *::before, main.flex-1 *::after { box-sizing: border-box; }
main.flex-1 h1, main.flex-1 h2, main.flex-1 h3 { font-family: 'Bricolage Grotesque', 'Figtree', system-ui, sans-serif; line-height: 1.12; margin: 0; }
main.flex-1 p { margin: 0 0 16px; }
main.flex-1 .text-md { font-size: 16px; }
main.flex-1 .text-justify { text-align: left; }
main.flex-1 .text-muted-foreground { color: var(--r-muted); }

/* Hero */
main.flex-1 .bg-gradient-hero {
  position: relative; overflow: hidden; padding: clamp(56px, 7vw, 96px) 0; color: #fff;
  background: radial-gradient(520px 300px at 88% 15%, rgba(245, 195, 79, .22), transparent 70%),
              linear-gradient(100deg, #00417f 0%, #004d7c 55%, #00679c 100%);
}
main.flex-1 .bg-gradient-hero > div { width: 100%; max-width: 1240px; margin: 0 auto; padding: 0 clamp(20px, 5vw, 40px); text-align: center; }
main.flex-1 .bg-gradient-hero h1 { font-size: clamp(34px, 5vw, 56px); font-weight: 800; letter-spacing: -.02em; color: #fff; margin-bottom: 18px; }
main.flex-1 .bg-gradient-hero h1::after { content: ''; display: block; width: 64px; height: 4px; margin: 18px auto 0; border-radius: 4px; background: var(--r-gold); }
main.flex-1 .bg-gradient-hero p { max-width: 760px; margin: 0 auto; font-size: clamp(16px, 1.6vw, 19px); color: #dbe8f2; }

/* Intro: text + image */
main.flex-1 .services { padding: clamp(48px, 6vw, 80px) 0 clamp(40px, 5vw, 72px); }
main.flex-1 .services .container { max-width: 1240px; padding-left: clamp(20px, 5vw, 40px); padding-right: clamp(20px, 5vw, 40px); }
main.flex-1 .services .row { align-items: center; }
main.flex-1 .services img { border-radius: 24px; box-shadow: 0 24px 50px rgba(0, 65, 127, .16); }
main.flex-1 .services .col-md-7 p { font-size: 17px; }

/* Features */
main.flex-1 .services .text-center h2 {
  display: inline-block; position: relative; padding-bottom: 14px; margin-bottom: 8px;
  font-size: clamp(30px, 4vw, 40px); font-weight: 800; letter-spacing: .02em; color: var(--r-navy);
}
main.flex-1 .services .text-center h2::after { content: ''; position: absolute; left: 50%; bottom: 0; width: 56px; height: 4px; margin-left: -28px; border-radius: 4px; background: var(--r-gold); }
main.flex-1 .services .text-center { margin-bottom: 28px !important; }
main.flex-1 .page { display: flex; align-items: stretch; height: 100%; margin-bottom: 0 !important; border-radius: 18px; overflow: hidden; border: 1px solid var(--r-line); background: #fff; transition: box-shadow .2s, transform .2s; }
main.flex-1 .page:hover { box-shadow: 0 16px 34px rgba(0, 65, 127, .14); transform: translateY(-3px); }
main.flex-1 .icon-bg {
  --c: #17a89b; flex: none; width: 56px; display: grid; place-items: center; background: var(--c); color: #fff;
}
main.flex-1 .icon-bg::before { content: '\f00c'; font-family: 'Font Awesome 6 Free', 'Font Awesome 5 Free'; font-weight: 900; font-size: 18px; }
main.flex-1 .icon-text { --t: #17a89b; flex: 1; min-width: 0; padding: 18px 20px; background: color-mix(in srgb, var(--t) 9%, #fff); }
main.flex-1 .icon-text h3 { font-size: 19px; font-weight: 700; color: var(--r-navy); margin-bottom: 6px; }
main.flex-1 .icon-text p { margin: 0; font-size: 15px; }
main.flex-1 .services .row > [class*="col-md-4"] { margin-bottom: 24px !important; }
main.flex-1 .icon-bg.Turquoise { --c: #17a89b; }
main.flex-1 .icon-text.Turquoise-bg { --t: #17a89b; }
main.flex-1 .icon-bg.Chelsea-cucumber { --c: #7fa23a; }
main.flex-1 .icon-text.Chelsea-cucumber-bg { --t: #7fa23a; }
main.flex-1 .icon-bg.purple { --c: #7a3fb8; }
main.flex-1 .icon-text.purple-bg { --t: #7a3fb8; }
main.flex-1 .icon-bg.punch { --c: #d9483b; }
main.flex-1 .icon-text.punch-bg { --t: #d9483b; }
main.flex-1 .icon-bg.Gamboge { --c: #e19a0c; }
main.flex-1 .icon-text.Gamboge-bg { --t: #e19a0c; }
main.flex-1 .icon-bg.Cerise { --c: #d12f7e; }
main.flex-1 .icon-text.Cerise-bg { --t: #d12f7e; }
main.flex-1 .icon-bg.Green { --c: #2b9a57; }
main.flex-1 .icon-text.Green-bg { --t: #2b9a57; }
main.flex-1 .icon-bg.Pomegranate { --c: #df3a2c; }
main.flex-1 .icon-text.Pomegranate-bg { --t: #df3a2c; }
main.flex-1 .icon-bg.Lochinvar { --c: #23888a; }
main.flex-1 .icon-text.Lochinvar-bg { --t: #23888a; }
main.flex-1 .icon-bg.Lemon { --c: #c9a90e; }
main.flex-1 .icon-text.Lemon-bg { --t: #c9a90e; }

@media (max-width: 767px) {
  main.flex-1 .services .row { flex-direction: column-reverse !important; }
  main.flex-1 .services .col-md-5 { margin-bottom: 8px; }
}

/* Location section (added to each page: its own heading, text and links to other places in the same state) */
.rms-local { padding: clamp(40px, 5vw, 72px) 0; background: #eef4f9; font-family: 'Figtree', system-ui, -apple-system, 'Segoe UI', sans-serif; color: #212529; line-height: 1.65; }
.rms-local *, .rms-local *::before, .rms-local *::after { box-sizing: border-box; }
.rms-local__inner { width: 100%; max-width: 1240px; margin: 0 auto; padding: 0 clamp(20px, 5vw, 40px); }
.rms-local__crumbs { font-size: 14px; color: #3a4650; margin-bottom: 14px; }
.rms-local__crumbs a { color: #00679c; text-decoration: none; }
.rms-local__crumbs a:hover { text-decoration: underline; }
.rms-local h2 { margin: 0 0 14px; font-family: 'Bricolage Grotesque', 'Figtree', system-ui, sans-serif; font-size: clamp(26px, 3.2vw, 34px); font-weight: 800; line-height: 1.12; color: #00417f; }
.rms-local p { margin: 0 0 14px; max-width: 900px; color: #3a4650; font-size: 16.5px; }
.rms-local h3 { margin: 26px 0 12px; font-family: 'Bricolage Grotesque', 'Figtree', system-ui, sans-serif; font-size: 20px; font-weight: 700; color: #00417f; }
.rms-local__links { display: flex; flex-wrap: wrap; gap: 8px 10px; margin: 0; padding: 0; list-style: none; }
.rms-local__links a { display: inline-block; padding: 6px 14px; border-radius: 999px; background: #fff; border: 1px solid #d3e0ea; color: #00417f; font-size: 14px; font-weight: 600; text-decoration: none; transition: background .2s, color .2s, border-color .2s; }
.rms-local__links a:hover { background: #00417f; border-color: #00417f; color: #fff; }

/* ==========================================================================
   RMS Features (Record-Management-System/features.html, loaded into <div id="features">)
   Four equal tiles per row, big outline numbers,
   round icon badges and a colour bar that grows on hover.
   ========================================================================== */
.rmsf { position: relative; padding: clamp(36px, 5vw, 72px) 0 clamp(48px, 6vw, 88px); font-family: 'Figtree', system-ui, -apple-system, 'Segoe UI', sans-serif; color: #212529; line-height: 1.6; }
.rmsf *, .rmsf *::before, .rmsf *::after { box-sizing: border-box; }
.rmsf__inner { width: 100%; max-width: 1240px; margin: 0 auto; padding: 0 clamp(20px, 5vw, 40px); }
.rmsf__head { text-align: center; margin-bottom: clamp(28px, 4vw, 48px); }
.rmsf__head h2 { display: inline-block; position: relative; margin: 0; padding-bottom: 16px; font-family: 'Bricolage Grotesque', 'Figtree', system-ui, sans-serif; font-size: clamp(32px, 4.4vw, 46px); font-weight: 800; letter-spacing: .02em; text-transform: uppercase; color: #00417f; }
.rmsf__head h2::after { content: ''; position: absolute; left: 50%; bottom: 0; width: 72px; height: 4px; margin-left: -36px; border-radius: 4px; background: #f5c34f; }
.rmsf__grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; }
.rmsf__tile {
  --c: #17a89b; position: relative; overflow: hidden; min-height: 230px; padding: 30px 28px 34px;
  background: #fff; border: 1px solid #d3e0ea; border-radius: 24px;
  transition: transform .25s, box-shadow .25s, border-color .25s;
}
.rmsf__tile::after { content: ''; position: absolute; left: 0; bottom: 0; height: 5px; width: 44px; background: var(--c); border-radius: 0 5px 0 0; transition: width .35s; }
.rmsf__tile:hover { transform: translateY(-5px); box-shadow: 0 22px 44px rgba(0, 65, 127, .16); border-color: var(--c); }
.rmsf__tile:hover::after { width: 100%; border-radius: 0; }
.rmsf__num { position: absolute; top: 14px; right: 22px; font-family: 'Bricolage Grotesque', 'Figtree', system-ui, sans-serif; font-size: 64px; font-weight: 800; line-height: 1; color: transparent; -webkit-text-stroke: 1.5px color-mix(in srgb, var(--c) 45%, #fff); user-select: none; }
.rmsf__icon { width: 56px; height: 56px; margin-bottom: 20px; border-radius: 18px 18px 18px 6px; display: grid; place-items: center; font-size: 22px; color: #fff; background: var(--c); box-shadow: 0 12px 22px color-mix(in srgb, var(--c) 35%, transparent); }
.rmsf__tile h3 { margin: 0 0 8px; font-family: 'Bricolage Grotesque', 'Figtree', system-ui, sans-serif; font-size: 22px; font-weight: 700; line-height: 1.15; color: #00417f; }
.rmsf__tile p { margin: 0; max-width: 46ch; font-size: 15.5px; color: #3a4650; }
.rmsf--Turquoise { --c: #17a89b; }
.rmsf--Chelsea-cucumber { --c: #7fa23a; }
.rmsf--purple { --c: #7a3fb8; }
.rmsf--punch { --c: #d9483b; }
.rmsf--Gamboge { --c: #e19a0c; }
.rmsf--Cerise { --c: #d12f7e; }
.rmsf--Green { --c: #2b9a57; }
.rmsf--Pomegranate { --c: #df3a2c; }
.rmsf--Lochinvar { --c: #23888a; }
.rmsf--Lemon { --c: #c9a90e; }
/* 10 tiles = 4 + 4 + 2: the last two share the full last row (two columns each), so no gap is left */
@media (min-width: 1001px) { .rmsf__tile:nth-last-child(-n+2) { grid-column: span 2; min-height: 0; } }
@media (max-width: 1000px) {
  .rmsf__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 600px) {
  .rmsf__grid { grid-template-columns: minmax(0, 1fr); gap: 16px; }
  .rmsf__tile { min-height: 0; }
}