/* ============================================================
   MBM / Comnet DMS — Global Styles
   Colors: Xerox Red #D92130 | Comnet Blue #0272A7 | Dark #1a1a2e
   ============================================================ */

:root {
  --red:    #D92130;
  --blue:   #0272A7;
  --dark:   #1a1a2e;
  --darker: #12121f;
  --mid:    #2d2d44;
  --light:  #f4f6f9;
  --white:  #ffffff;
  --grey:   #6c757d;
  --border: #e0e4ea;
  --shadow: 0 4px 24px rgba(0,0,0,.10);
  --shadow-lg: 0 8px 40px rgba(0,0,0,.15);
  --radius: 10px;
  --transition: all .3s ease;
}

/* ── Reset & Base ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Inter', 'Segoe UI', sans-serif;
  font-size: 16px;
  color: #333;
  background: var(--white);
  line-height: 1.7;
}
img { max-width: 100%; height: auto; display: block; }
a { text-decoration: none; color: inherit; }
ul { list-style: none; padding: 0; margin: 0; }

/* ── Typography ── */
h1,h2,h3,h4,h5 { font-weight: 700; line-height: 1.25; }
h1 { font-size: clamp(2rem, 5vw, 3.2rem); }
h2 { font-size: clamp(1.6rem, 3.5vw, 2.4rem); }
h3 { font-size: 1.25rem; }
.section-label {
  display: inline-block;
  font-size: .75rem;
  font-weight: 700;
  letter-spacing: .15em;
  text-transform: uppercase;
  color: var(--blue);
  margin-bottom: .75rem;
}
.section-title { color: var(--dark); margin-bottom: 1rem; }
.section-title span { color: var(--red); }
.section-sub { color: var(--grey); max-width: 600px; }

/* ── Utility ── */
.text-red   { color: var(--red) !important; }
.text-blue  { color: var(--blue) !important; }
.bg-dark-brand { background: var(--dark); }
.bg-light-brand { background: var(--light); }
.section-pad { padding: 90px 0; }
.section-pad-sm { padding: 60px 0; }
.divider { width: 50px; height: 4px; border-radius: 2px; margin: 1rem 0 1.5rem; }
.divider-red  { background: var(--red); }
.divider-blue { background: var(--blue); }
.divider-white { background: rgba(255,255,255,.5); }

/* ── Buttons ── */
.btn-brand-red {
  background: var(--red);
  color: var(--white);
  border: 2px solid var(--red);
  padding: .7rem 2rem;
  border-radius: 50px;
  font-weight: 600;
  font-size: .9rem;
  letter-spacing: .03em;
  transition: var(--transition);
  display: inline-block;
}
.btn-brand-red:hover { background: transparent; color: var(--red); }

.btn-brand-blue {
  background: var(--blue);
  color: var(--white);
  border: 2px solid var(--blue);
  padding: .7rem 2rem;
  border-radius: 50px;
  font-weight: 600;
  font-size: .9rem;
  letter-spacing: .03em;
  transition: var(--transition);
  display: inline-block;
}
.btn-brand-blue:hover { background: transparent; color: var(--blue); }

.btn-outline-white {
  background: transparent;
  color: var(--white);
  border: 2px solid rgba(255,255,255,.6);
  padding: .7rem 2rem;
  border-radius: 50px;
  font-weight: 600;
  font-size: .9rem;
  transition: var(--transition);
  display: inline-block;
}
.btn-outline-white:hover { background: var(--white); color: var(--dark); }

/* ── Navbar ── */
#mainNav {
  background: var(--darker);
  padding: 0;
  transition: var(--transition);
  z-index: 1050;
}
#mainNav.scrolled {
  background: rgba(18,18,31,.97);
  box-shadow: 0 2px 20px rgba(0,0,0,.3);
}
.navbar-brand img { height: 48px; width: auto; max-width: 180px; object-fit: contain; }
.navbar-nav .nav-link {
  color: rgba(255,255,255,.85) !important;
  font-size: .88rem;
  font-weight: 500;
  letter-spacing: .04em;
  padding: 1.4rem .9rem !important;
  transition: var(--transition);
  position: relative;
}
.navbar-nav .nav-link::after {
  content: '';
  position: absolute;
  bottom: 0; left: 50%; right: 50%;
  height: 3px;
  background: var(--red);
  transition: var(--transition);
  border-radius: 2px 2px 0 0;
}
.navbar-nav .nav-link:hover,
.navbar-nav .nav-link.active { color: var(--white) !important; }
.navbar-nav .nav-link:hover::after,
.navbar-nav .nav-link.active::after { left: .9rem; right: .9rem; }

/* Dropdown */
.dropdown-menu {
  background: var(--darker);
  border: 1px solid rgba(255,255,255,.08);
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  padding: .5rem 0;
  min-width: 200px;
  margin-top: 0;
}
.dropdown-item {
  color: rgba(255,255,255,.75);
  font-size: .85rem;
  padding: .55rem 1.25rem;
  transition: var(--transition);
}
.dropdown-item:hover { background: rgba(255,255,255,.07); color: var(--white); }
.dropdown-divider { border-color: rgba(255,255,255,.08); }
.navbar-toggler { border: none; color: var(--white); }
.navbar-toggler:focus { box-shadow: none; }

/* ── Hero ── */
.hero {
  position: relative;
  min-height: 92vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  background: var(--darker);
}
.hero-bg {
  position: absolute;
  inset: 0;
  background-image: url('../assets/images/CDMS header.jpg');
  background-size: cover;
  background-position: center;
  opacity: .25;
}
.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(18,18,31,.95) 0%, rgba(2,114,167,.3) 100%);
}
.hero-content { position: relative; z-index: 2; }
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  background: rgba(217,33,48,.15);
  border: 1px solid rgba(217,33,48,.3);
  color: #ff6b7a;
  font-size: .78rem;
  font-weight: 600;
  letter-spacing: .1em;
  text-transform: uppercase;
  padding: .4rem 1rem;
  border-radius: 50px;
  margin-bottom: 1.5rem;
}
.hero h1 { color: var(--white); margin-bottom: 1.25rem; }
.hero h1 span { color: var(--red); }
.hero p { color: rgba(255,255,255,.75); font-size: 1.1rem; max-width: 560px; margin-bottom: 2rem; }
.hero-stats {
  display: flex;
  gap: 2.5rem;
  margin-top: 3rem;
  padding-top: 2rem;
  border-top: 1px solid rgba(255,255,255,.1);
}
.hero-stat-num { font-size: 2rem; font-weight: 800; color: var(--white); line-height: 1; }
.hero-stat-num span { color: var(--red); }
.hero-stat-label { font-size: .78rem; color: rgba(255,255,255,.5); text-transform: uppercase; letter-spacing: .08em; margin-top: .25rem; }
.hero-image-wrap {
  position: relative;
  z-index: 2;
}
.hero-image-wrap img {
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  width: 100%;
}
.hero-image-card {
  position: absolute;
  bottom: -20px;
  left: -20px;
  background: var(--white);
  border-radius: var(--radius);
  padding: 1rem 1.25rem;
  box-shadow: var(--shadow-lg);
  display: flex;
  align-items: center;
  gap: .75rem;
}
.hero-image-card .icon { width: 40px; height: 40px; background: var(--red); border-radius: 8px; display: flex; align-items: center; justify-content: center; color: var(--white); font-size: 1.1rem; }
.hero-image-card .label { font-size: .75rem; color: var(--grey); }
.hero-image-card .value { font-size: .95rem; font-weight: 700; color: var(--dark); }

/* ── Ticker / Announcement Bar ── */
.ticker-bar {
  background: var(--red);
  padding: .55rem 0;
  overflow: hidden;
}
.ticker-inner {
  display: flex;
  align-items: center;
  gap: 1rem;
  white-space: nowrap;
  animation: ticker 30s linear infinite;
}
.ticker-inner span { color: var(--white); font-size: .82rem; font-weight: 500; }
.ticker-inner .dot { color: rgba(255,255,255,.5); }
@keyframes ticker { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* ── Services Cards ── */
.service-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 2rem;
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
  transition: var(--transition);
  height: 100%;
}
.service-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
  border-color: var(--blue);
}
.service-icon {
  width: 56px; height: 56px;
  border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.4rem;
  margin-bottom: 1.25rem;
}
.service-icon.red  { background: rgba(217,33,48,.1);  color: var(--red); }
.service-icon.blue { background: rgba(2,114,167,.1);  color: var(--blue); }
.service-card h3 { font-size: 1.05rem; color: var(--dark); margin-bottom: .6rem; }
.service-card p  { font-size: .88rem; color: var(--grey); margin: 0; }
.service-card .card-link {
  display: inline-flex; align-items: center; gap: .4rem;
  font-size: .82rem; font-weight: 600; color: var(--blue);
  margin-top: 1rem; transition: var(--transition);
}
.service-card .card-link:hover { gap: .7rem; }

/* ── Product Cards ── */
.product-card {
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
  transition: var(--transition);
  height: 100%;
}
.product-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-lg); }
.product-card-img {
  height: 200px;
  background: var(--light);
  display: flex; align-items: center; justify-content: center;
  overflow: hidden;
  position: relative;
}
.product-card-img img { width: 100%; height: 100%; object-fit: cover; }
.product-card-img .badge-cat {
  position: absolute; top: 12px; left: 12px;
  background: var(--red); color: var(--white);
  font-size: .7rem; font-weight: 700; letter-spacing: .05em;
  padding: .3rem .75rem; border-radius: 50px;
}
.product-card-body { padding: 1.5rem; }
.product-card-body h3 { font-size: 1rem; color: var(--dark); margin-bottom: .5rem; }
.product-card-body p  { font-size: .85rem; color: var(--grey); margin-bottom: 1rem; }

/* ── About Section ── */
.about-img-wrap { position: relative; }
.about-img-wrap img { border-radius: var(--radius); box-shadow: var(--shadow-lg); }
.about-badge {
  position: absolute;
  bottom: -20px; right: -20px;
  background: var(--red);
  color: var(--white);
  border-radius: var(--radius);
  padding: 1.25rem 1.5rem;
  text-align: center;
  box-shadow: var(--shadow);
}
.about-badge .num { font-size: 2.2rem; font-weight: 800; line-height: 1; }
.about-badge .lbl { font-size: .72rem; text-transform: uppercase; letter-spacing: .08em; opacity: .85; }
.about-check { display: flex; align-items: flex-start; gap: .75rem; margin-bottom: .85rem; }
.about-check .icon { width: 22px; height: 22px; background: rgba(2,114,167,.12); border-radius: 50%; display: flex; align-items: center; justify-content: center; color: var(--blue); font-size: .7rem; flex-shrink: 0; margin-top: .15rem; }
.about-check p { font-size: .9rem; color: #444; margin: 0; }

/* ── CTA Banner ── */
.cta-section {
  background: linear-gradient(135deg, var(--dark) 0%, var(--mid) 100%);
  position: relative;
  overflow: hidden;
}
.cta-section::before {
  content: '';
  position: absolute;
  top: -50%; right: -10%;
  width: 500px; height: 500px;
  background: radial-gradient(circle, rgba(217,33,48,.15) 0%, transparent 70%);
}
.cta-section::after {
  content: '';
  position: absolute;
  bottom: -50%; left: -10%;
  width: 400px; height: 400px;
  background: radial-gradient(circle, rgba(2,114,167,.15) 0%, transparent 70%);
}
.cta-section .container { position: relative; z-index: 2; }

/* ── Testimonial / Stats ── */
.stat-card {
  text-align: center;
  padding: 2rem 1rem;
}
.stat-card .num { font-size: 3rem; font-weight: 800; color: var(--white); line-height: 1; }
.stat-card .num span { color: var(--red); }
.stat-card .lbl { font-size: .82rem; color: rgba(255,255,255,.55); text-transform: uppercase; letter-spacing: .1em; margin-top: .5rem; }

/* ── Page Hero (inner pages) ── */
.page-hero {
  background: linear-gradient(135deg, var(--darker) 0%, var(--mid) 100%);
  padding: 100px 0 60px;
  position: relative;
  overflow: hidden;
}
.page-hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image: url('../assets/images/CDMS header.jpg');
  background-size: cover;
  background-position: center;
  opacity: .08;
}
.page-hero .container { position: relative; z-index: 2; }
.page-hero h1 { color: var(--white); font-size: clamp(1.8rem, 4vw, 2.8rem); }
.page-hero p  { color: rgba(255,255,255,.65); font-size: 1rem; }
.breadcrumb { background: none; padding: 0; margin: 0; }
.breadcrumb-item a { color: rgba(255,255,255,.55); font-size: .82rem; }
.breadcrumb-item.active { color: rgba(255,255,255,.85); font-size: .82rem; }
.breadcrumb-item + .breadcrumb-item::before { color: rgba(255,255,255,.3); }

/* ── Contact ── */
.contact-info-card {
  background: var(--dark);
  border-radius: var(--radius);
  padding: 2rem;
  height: 100%;
}
.contact-info-card h3 { color: var(--white); font-size: 1.1rem; margin-bottom: 1.5rem; }
.contact-item { display: flex; gap: 1rem; margin-bottom: 1.25rem; align-items: flex-start; }
.contact-item .icon { width: 40px; height: 40px; background: rgba(2,114,167,.2); border-radius: 8px; display: flex; align-items: center; justify-content: center; color: var(--blue); font-size: .95rem; flex-shrink: 0; }
.contact-item .label { font-size: .72rem; color: rgba(255,255,255,.4); text-transform: uppercase; letter-spacing: .08em; }
.contact-item .value { font-size: .9rem; color: rgba(255,255,255,.85); margin-top: .1rem; }
.contact-form-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 2.5rem;
  box-shadow: var(--shadow-lg);
}
.form-control, .form-select {
  border: 1.5px solid var(--border);
  border-radius: 8px;
  padding: .75rem 1rem;
  font-size: .9rem;
  transition: var(--transition);
}
.form-control:focus, .form-select:focus {
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(2,114,167,.12);
}
.form-label { font-size: .82rem; font-weight: 600; color: var(--dark); margin-bottom: .4rem; }

/* ── Footer ── */
footer {
  background: var(--darker);
  color: rgba(255,255,255,.65);
  padding: 70px 0 0;
}
.footer-logo img { height: 44px; width: auto; margin-bottom: 1rem; }
.footer-desc { font-size: .85rem; line-height: 1.8; max-width: 280px; }
.footer-heading { color: var(--white); font-size: .82rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; margin-bottom: 1.25rem; }
.footer-links li { margin-bottom: .55rem; }
.footer-links a { font-size: .85rem; color: rgba(255,255,255,.55); transition: var(--transition); }
.footer-links a:hover { color: var(--white); padding-left: 4px; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.07);
  padding: 1.25rem 0;
  margin-top: 3rem;
}
.footer-bottom p { font-size: .78rem; color: rgba(255,255,255,.35); margin: 0; }
.social-links { display: flex; gap: .6rem; margin-top: 1.25rem; }
.social-links a {
  width: 36px; height: 36px;
  background: rgba(255,255,255,.07);
  border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  color: rgba(255,255,255,.55);
  font-size: .9rem;
  transition: var(--transition);
}
.social-links a:hover { background: var(--red); color: var(--white); }

/* ── Newsletter ── */
.newsletter-form { display: flex; gap: .5rem; }
.newsletter-form input {
  flex: 1;
  background: rgba(255,255,255,.07);
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 8px;
  padding: .65rem 1rem;
  color: var(--white);
  font-size: .85rem;
}
.newsletter-form input::placeholder { color: rgba(255,255,255,.35); }
.newsletter-form input:focus { outline: none; border-color: var(--blue); }
.newsletter-form button {
  background: var(--red);
  border: none;
  border-radius: 8px;
  padding: .65rem 1.25rem;
  color: var(--white);
  font-size: .82rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
  white-space: nowrap;
}
.newsletter-form button:hover { background: #b81c29; }

/* ── Scroll Animations ── */
.fade-up { opacity: 0; transform: translateY(30px); transition: opacity .6s ease, transform .6s ease; }
.fade-up.visible { opacity: 1; transform: translateY(0); }
.fade-left { opacity: 0; transform: translateX(-30px); transition: opacity .6s ease, transform .6s ease; }
.fade-left.visible { opacity: 1; transform: translateX(0); }
.fade-right { opacity: 0; transform: translateX(30px); transition: opacity .6s ease, transform .6s ease; }
.fade-right.visible { opacity: 1; transform: translateX(0); }

/* ── Back to Top ── */
#backToTop {
  position: fixed;
  bottom: 2rem; right: 2rem;
  width: 44px; height: 44px;
  background: var(--red);
  color: var(--white);
  border: none;
  border-radius: 50%;
  font-size: 1rem;
  cursor: pointer;
  box-shadow: var(--shadow);
  opacity: 0; pointer-events: none;
  transition: var(--transition);
  z-index: 999;
  display: flex; align-items: center; justify-content: center;
}
#backToTop.show { opacity: 1; pointer-events: all; }
#backToTop:hover { background: var(--blue); transform: translateY(-3px); }

/* ══════════════════════════════════════════
   RESPONSIVE — Mobile First
   Breakpoints: 1200 | 991 | 767 | 575 | 400
══════════════════════════════════════════ */

/* ── Large Desktop ── */
@media (max-width: 1200px) {
  .hero-image-card { left: 0; bottom: -10px; }
}

/* ── Tablet / Small Desktop ── */
@media (max-width: 991px) {
  /* Navbar */
  .navbar-brand img { height: 38px; }
  .navbar-nav .nav-link { padding: .75rem 1rem !important; border-bottom: 1px solid rgba(255,255,255,.05); }
  .navbar-nav .nav-link::after { display: none; }
  .navbar-nav .nav-item.ms-lg-2 { margin-top: .5rem; padding: 0 1rem .75rem; }
  .navbar-nav .nav-item.ms-lg-2 .btn-brand-red { display: block; text-align: center; border-radius: 8px; }
  .dropdown-menu { background: rgba(255,255,255,.04); border: none; box-shadow: none; padding-left: 1rem; }
  .dropdown-item { padding: .45rem 1rem; font-size: .82rem; }

  /* Hero */
  .hero { min-height: auto; padding: 110px 0 60px; }
  .hero p { font-size: 1rem; }
  .hero-stats { gap: 1.5rem; }
  .hero-image-wrap { margin-top: 2.5rem; }
  .hero-image-card { left: 0; bottom: -10px; padding: .75rem 1rem; }
  .hero-image-card .value { font-size: .85rem; }

  /* About badge */
  .about-badge { bottom: -10px; right: 10px; padding: 1rem 1.25rem; }
  .about-badge .num { font-size: 1.8rem; }

  /* Sections */
  .section-pad { padding: 70px 0; }
  .section-pad-sm { padding: 50px 0; }

  /* Systems sticky quick-nav */
  .quick-nav-bar { top: 60px; }

  /* CTA section radial glows — hide on tablet to avoid overflow */
  .cta-section::before, .cta-section::after { display: none; }

  /* Footer */
  .footer-desc { max-width: 100%; }
}

/* ── Mobile ── */
@media (max-width: 767px) {
  /* Base */
  body { font-size: 15px; }

  /* Sections */
  .section-pad { padding: 55px 0; }
  .section-pad-sm { padding: 40px 0; }

  /* Hero */
  .hero { padding: 100px 0 50px; }
  .hero h1 { font-size: clamp(1.7rem, 7vw, 2.4rem); margin-bottom: 1rem; }
  .hero p { font-size: .95rem; margin-bottom: 1.5rem; }
  .hero-badge { font-size: .7rem; padding: .35rem .85rem; }
  .hero-stats { flex-wrap: wrap; gap: .75rem; margin-top: 2rem; padding-top: 1.5rem; }
  .hero-stat-num { font-size: 1.5rem; }
  .hero-stat-label { font-size: .7rem; }
  .hero-image-wrap { margin-top: 2rem; }
  .hero-image-card { position: static; margin-top: 1rem; border-radius: var(--radius); }

  /* Buttons */
  .btn-brand-red, .btn-brand-blue, .btn-outline-white {
    padding: .65rem 1.5rem;
    font-size: .85rem;
  }
  /* Button groups — stack on very small screens */
  .d-flex.gap-3.flex-wrap { gap: .6rem !important; }

  /* Section headings */
  h2 { font-size: clamp(1.4rem, 5vw, 1.9rem); }
  .section-label { font-size: .7rem; }

  /* Service cards */
  .service-card { padding: 1.5rem; }
  .service-icon { width: 48px; height: 48px; font-size: 1.2rem; }

  /* About section */
  .about-img-wrap { margin-bottom: 2.5rem; }
  .about-badge { bottom: -15px; right: 0; padding: .85rem 1rem; }
  .about-badge .num { font-size: 1.6rem; }
  .about-badge .lbl { font-size: .65rem; }

  /* Stats banner */
  .stat-card .num { font-size: 2.2rem; }
  .stat-card { padding: 1.25rem .5rem; }

  /* Page hero */
  .page-hero { padding: 90px 0 45px; }
  .page-hero h1 { font-size: clamp(1.5rem, 6vw, 2.2rem); }

  /* Contact */
  .contact-form-card { padding: 1.25rem; }
  .contact-info-card { padding: 1.5rem; margin-bottom: 1.5rem; }

  /* Footer */
  footer { padding: 50px 0 0; }
  .footer-logo img { height: 36px; }
  .footer-bottom { margin-top: 2rem; }
  .footer-bottom .col-md-6:last-child { text-align: left !important; margin-top: .5rem; }

  /* Newsletter */
  .newsletter-form { flex-direction: column; }
  .newsletter-form button { width: 100%; padding: .75rem; }

  /* Ticker */
  .ticker-bar { padding: .45rem 0; }
  .ticker-inner span { font-size: .75rem; }

  /* Systems quick-nav */
  .quick-nav-bar .d-flex { gap: .35rem !important; }
  .spec-badge { font-size: .72rem; padding: .25rem .6rem; }

  /* Product spec sections — reverse order on mobile so image comes after text */
  .mobile-reverse { flex-direction: column-reverse; }

  /* Back to top */
  #backToTop { bottom: 1.25rem; right: 1.25rem; width: 40px; height: 40px; font-size: .9rem; }

  /* Inline image panels used in systems/software pages */
  .system-img-panel { padding: 1.5rem !important; }
  .system-img-panel img { max-height: 140px !important; }

  /* Hero image card float fix */
  .hero-image-card { left: 0 !important; bottom: 0 !important; }
}

/* ── Small Mobile ── */
@media (max-width: 575px) {
  .container { padding-left: 1rem; padding-right: 1rem; }

  /* Hero stats — 2 per row */
  .hero-stats > div { flex: 0 0 calc(50% - .5rem); }

  /* Cards full width */
  .service-card { padding: 1.25rem; }

  /* Contact form */
  .contact-form-card { padding: 1rem; }
  .form-control, .form-select { padding: .65rem .85rem; font-size: .85rem; }

  /* Footer links — 2 col layout */
  .footer-links a { font-size: .8rem; }

  /* Buttons full width in CTA */
  .cta-section .btn-brand-red,
  .cta-section .btn-outline-white { width: 100%; text-align: center; }

  /* Page hero */
  .page-hero { padding: 85px 0 40px; }

  /* About badge — inline below image */
  .about-badge { position: static; display: inline-flex; gap: 1rem; align-items: center; margin-top: 1rem; border-radius: var(--radius); }
  .about-badge .num { font-size: 1.4rem; }

  /* Stat cards — 2 per row already via Bootstrap col-6 */
  .stat-card .num { font-size: 1.8rem; }

  /* Systems section images */
  .system-section { padding: 45px 0; }

  /* Ticker speed up on small screens */
  .ticker-inner { animation-duration: 20s; }

  /* Map iframe */
  iframe[title] { height: 280px !important; }
}

/* ── Extra Small ── */
@media (max-width: 400px) {
  .hero h1 { font-size: 1.55rem; }
  .navbar-brand img { height: 32px; }
  .btn-brand-red, .btn-brand-blue { padding: .6rem 1.2rem; font-size: .82rem; }
  .service-card { padding: 1rem; }
  .hero-stats > div { flex: 0 0 100%; }
}

/* ── System Section (systems.html) ── */
.system-section { padding: 70px 0; border-bottom: 1px solid var(--border); }
.system-section:last-of-type { border-bottom: none; }
.system-icon-wrap {
  width: 80px; height: 80px;
  border-radius: 16px;
  display: flex; align-items: center; justify-content: center;
  font-size: 2rem;
  margin-bottom: 1.5rem;
}
.spec-badge {
  display: inline-block;
  background: var(--light);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: .3rem .75rem;
  font-size: .78rem;
  font-weight: 600;
  color: var(--dark);
  margin: .2rem;
  white-space: nowrap;
}

/* ── Scrollbar hide for quick-nav ── */
.quick-nav-bar .d-flex::-webkit-scrollbar { display: none; }
.quick-nav-bar .d-flex { -ms-overflow-style: none; scrollbar-width: none; }

/* ── Image panels ── */
.system-img-panel { overflow: hidden; }
.system-img-panel img { margin: 0 auto; display: block; }

/* ── Bootstrap h-lg-100 helper ── */
@media (min-width: 992px) { .h-lg-100 { height: 100% !important; } }

/* ── Footer logo ── */
.footer-logo img { height: 44px; width: auto; max-width: 200px; object-fit: contain; margin-bottom: 1rem; }

/* ── Ensure images never overflow ── */
img { max-width: 100%; height: auto; }

/* ── Touch target minimum size ── */
@media (max-width: 767px) {
  .btn-brand-red, .btn-brand-blue, .btn-outline-white {
    min-height: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }
  .navbar-toggler { padding: .5rem; min-width: 44px; min-height: 44px; }
  .social-links a { width: 44px; height: 44px; }
  /* Prevent horizontal scroll */
  .ticker-bar { overflow: hidden; }
  .hero-bg { background-attachment: scroll; }
  /* Fix about badge on mobile */
  .about-img-wrap { padding-bottom: 0; }
  /* Fix inline flex button groups */
  .d-flex.flex-wrap.gap-3 { gap: .5rem !important; }
}
