/*
 * fms-match-live.css: makes the current Bootstrap build look like the live WordPress site.
 * A short-term bridge for internal review, tested live against the Laravel build on 1 Oct 2026
 * (Home, Staff, Contact, Buyer Kiosk, mobile menu). Remove it when the Tailwind conversion lands.
 *
 * Install:
 *   1. Save as public/css/fms-match-live.css
 *   2. In layout.layout <head>, AFTER all other CSS (Bootstrap, app.css, /css/style.css):
 *        <link rel="preconnect" href="https://fonts.googleapis.com">
 *        <link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
 *        <link rel="stylesheet" href="https://fonts.googleapis.com/css2?family=Raleway:wght@400;500;700&display=swap">
 *        <link rel="stylesheet" href="{{ asset('css/fms-match-live.css') }}">
 *
 * Many selectors target the current markup (inline style attributes, Bootstrap class combos).
 * If a view's markup changes, re-check that page.
 */

:root {
  --fms-green: #04a704;
  --fms-ink: #333333;
  --fms-footer: #333333;
  --fms-line: rgba(51, 51, 51, 0.1);
  --fms-gutter: clamp(16px, 9vw, 80px);
  --bs-body-font-family: "Helvetica Neue", Arial, sans-serif;
  --bs-body-font-size: 16px;
  --bs-body-color: #333333;
  --bs-body-bg: #ffffff;
}

/* ---------- Base ---------- */
html, body {
  min-height: 100%;
  font-family: "Helvetica Neue", Arial, sans-serif !important; /* replaces Nunito */
  font-size: 16px;
  color: var(--fms-ink);
  background: #fff !important;                                 /* replaces #F8FAFC */
}
body { min-height: 100vh; display: flex; flex-direction: column; }
.site-shell { flex: 1 0 auto; display: flex; flex-direction: column; min-height: 0; }
.site-content { flex: 1 0 auto; }
p, li { font-size: 16px; font-weight: 300; line-height: 24px; color: var(--fms-ink); }
p { margin-bottom: 1.5rem; }
b, strong { font-weight: 700 !important; }

/* ---------- Header: static (like live), logo left, toggle right ---------- */
nav.navbar.fixed-top { position: relative !important; }
nav.navbar { background: #fff !important; padding: 10px 0 !important; box-shadow: none; }
nav.navbar > .container-fluid {
  padding-left: var(--fms-gutter) !important;
  padding-right: var(--fms-gutter) !important;
  align-items: center;
}
nav.navbar > .container-fluid > .d-flex:first-child { flex: 1 1 auto; align-items: center; }
nav.navbar > .container-fluid > .d-flex:first-child > .nav-link { padding: 0; }
nav.navbar img { height: 83px; width: auto; }
@media (min-width: 992px) {
  nav.navbar > .container-fluid > .d-flex:first-child { flex: 0 0 auto; }
}

.navbar-toggler {
  border: 1px solid var(--fms-ink) !important;
  border-radius: 0 !important;
  padding: 8px 10px !important;
  box-shadow: none !important;
  align-self: center;
}
.navbar-toggler-icon {
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='%23333' stroke-linecap='square' stroke-width='3' d='M5 8h20M5 15h20M5 22h20'/%3e%3c/svg%3e") !important;
}

.navbar .nav-link,
.navbar .dropdown-item {
  font-family: "Raleway", Arial, sans-serif;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: #000 !important;
}
.navbar .nav-link:hover,
.navbar .nav-link.active,
.navbar .dropdown-item:hover { color: var(--fms-green) !important; background: transparent; }
.navbar .dropdown-menu { border-radius: 0; border: 1px solid #e5e5e5; box-shadow: 0 6px 18px rgba(0, 0, 0, 0.08); }
.navbar .nav-split-dropdown { display: flex; flex-wrap: wrap; align-items: center; }
.navbar .nav-split-dropdown > .nav-section-link { flex: 0 1 auto; padding-right: 4px; }
.navbar .nav-dropdown-toggle {
  display: inline-flex;
  flex: 0 0 32px;
  width: 32px;
  align-items: center;
  justify-content: center;
  padding-left: 4px;
  padding-right: 4px;
  border: 0;
  background: transparent;
}
.navbar .nav-dropdown-toggle::after { margin-left: 0; }
.navbar .nav-dropdown-toggle:focus-visible { outline: 2px solid var(--fms-green); outline-offset: 2px; }
.navbar .nav-split-dropdown > .dropdown-menu {
  z-index: 1080;
  flex-basis: 100%;
}
.navbar #aboutDropdown { min-width: 15rem; }
.navbar #aboutDropdown .about-privacy-group {
  margin-top: 0.5rem;
  padding-top: 0.6rem;
  border-top: 1px solid #e5e5e5;
}
.navbar #aboutDropdown .about-privacy-heading {
  padding: 0.2rem 1rem 0.35rem;
  color: var(--fms-green);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
.navbar #aboutDropdown .about-privacy-link { padding-left: 2rem; }

/* Desktop menus open on hover or keyboard focus; Bootstrap click toggles still work. */
@media (min-width: 992px) {
  .navbar .nav-split-dropdown > .dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    margin-top: 0;
  }
  .navbar .dropdown:hover > .dropdown-menu,
  .navbar .dropdown:focus-within > .dropdown-menu {
    display: block;
  }
}

/* mobile menu drops below the logo row as a full-width list */
@media (max-width: 991.98px) {
  nav.navbar > .container-fluid > div:nth-child(2) { flex: 0 0 100%; width: 100%; }
  nav.navbar .navbar-nav { gap: 0 !important; padding: 10px 0; border-top: 1px solid #eee; margin-top: 10px; }
  nav.navbar .navbar-nav .nav-link { padding: 10px 0 !important; border-bottom: 1px solid #f0f0f0; }
  nav.navbar .nav-split-dropdown > .nav-section-link { flex: 1 1 auto; }
  nav.navbar .nav-dropdown-toggle { flex-basis: 44px; width: 44px; border-bottom: 1px solid #f0f0f0; }
  nav.navbar .nav-split-dropdown > .dropdown-menu { width: 100%; }
  nav.navbar .dropdown-menu { border: 0; box-shadow: none; padding-left: 1rem; }
}

/* ---------- Page banner ---------- */
.container-fluid.p-0 > div[style*="background-image"] {
  background-color: var(--fms-footer);
  background-size: cover;
  background-position: center;
  padding: 40px 0 !important;
  margin-top: 0 !important;   /* the 88px offset was only there for the fixed nav */
  gap: 0 !important;
}
.container-fluid.p-0 > div[style*="background-image"] > h2.fw-bold {
  font-family: "Raleway", Arial, sans-serif;
  font-size: 50px;
  line-height: 1.23;
  font-weight: 700;
  color: #fff;
  margin: 0 0 18px;
  text-align: center;
}
.container-fluid.p-0 > div[style*="background-image"] > h2.border { /* short white rule */
  width: 50px !important;
  height: 0;
  margin: 0 !important;
  border: 0 !important;
  border-top: 2px solid #fff !important;
}
@media (max-width: 575.98px) {
  .container-fluid.p-0 > div[style*="background-image"] > h2.fw-bold { font-size: 36px; }
}

/* ---------- Content wrapper (inline padding 3rem 8rem) ---------- */
div[style*="padding: 3rem 8rem"] {
  padding: 3rem var(--fms-gutter) 4rem !important;
  max-width: 1140px;
  margin: 0 auto;
}

/* Section titles, e.g. "WHO WE ARE", "CONTACT US" */
main h1, .mb-3 h1, .mb-3 h2:not(.fw-bold):not(.border) {
  font-family: "Raleway", Arial, sans-serif !important;
  font-size: 32px;
  line-height: 1.23;
  font-weight: 700 !important;
  color: var(--fms-green);
  text-transform: uppercase;
  margin-bottom: 1.5rem;
}
/* Headings directly above a table (Staff): grey, not uppercase, like live */
.mb-3 h1:has(+ table), .mb-3 h2:has(+ table) {
  font-size: 22px;
  color: var(--fms-ink);
  text-transform: none;
  margin-bottom: 1rem;
}
/* Product pages: BENEFITS / FEATURES labels (live: 19px green, letter-spaced) */
.mb-3 h1.fw-bold.my-4 {
  font-family: "Helvetica Neue", Arial, sans-serif !important;
  font-size: 19px;
  letter-spacing: 1.9px;
  margin: 2rem 0 1rem !important;
}
.mb-3 h3, .mb-3 h4, .mb-3 h5 {
  font-family: "Raleway", Arial, sans-serif;
  font-weight: 700;
  font-size: 22px;
  color: var(--fms-ink);
  margin-top: 1.25rem;
}
/* Product tagline */
.mb-3 p.fs-4 { font-size: 15px !important; justify-content: flex-start !important; margin-bottom: 1rem; }

/* ---------- Home: two columns, slider aligned with text ---------- */
@media (min-width: 768px) {
  .mb-3 > .d-flex > .col-md-5 { flex: 0 0 48%; max-width: 48%; }
}
.mb-3 > .d-flex > .col-md-5:last-child { align-items: flex-start !important; padding-top: 4.5rem !important; }
.carousel-item img { width: 100% !important; }
@media (max-width: 767.98px) {
  .mb-3 > .d-flex { flex-direction: column; }
  .mb-3 > .d-flex > .col-md-5 { max-width: 100%; }
  .mb-3 > .d-flex > .col-md-5:last-child { padding-top: 0 !important; }
}

/* ---------- Tables (Staff, PAIA) ---------- */
.table, .table td, .table th { font-size: 16px; font-weight: 400; color: var(--fms-ink); }
.table-bordered > :not(caption) > * > * { border-color: var(--fms-line) !important; padding: 6.4px 8px; }

/* ---------- Buttons (Download as PDF, Send) ---------- */
a[href$=".pdf"] { display: inline-block; text-decoration: none; }
a[href$=".pdf"] button, a[href$=".pdf"].btn, .btn-success, button[type="submit"] {
  background: var(--fms-green) !important;
  border: 0 !important;
  border-radius: 0 !important;
  color: #fff !important;
  font-weight: 700;
  text-transform: uppercase;
  padding: 13px 26px !important;
}
a[href$=".pdf"] button { width: auto !important; white-space: nowrap; font-size: 16px !important; font-weight: 500 !important; }

/* ---------- Footer: bottom-aligned on short pages, normal flow on long pages ---------- */
.site-footer { flex-shrink: 0; margin-top: auto; background: var(--fms-footer) !important; padding: 18px 0 !important; font-size: 14px; }
.site-footer * { font-size: 14px; color: #fff; }
.site-footer a { color: #b6b6b3; }

/* ---------- Contact map / large images: never wider than the page ---------- */
iframe { max-width: 100%; }
img { max-width: 100%; height: auto; }   /* Clients map image was 1298px and caused sideways scroll */

/* ---------- Clients page ---------- */
p.fw-bold.fs-3 { font-size: 19px !important; line-height: 1.5; font-weight: 500 !important; } /* intro line */
