html {
  font-size: 14px;
}

@media (min-width: 768px) {
  html {
    font-size: 16px;
  }
}

.btn:focus, .btn:active:focus, .btn-link.nav-link:focus, .form-control:focus, .form-check-input:focus {
  box-shadow: 0 0 0 0.1rem white, 0 0 0 0.25rem #258cfb;
}

html {
  position: relative;
  min-height: 100%;
}

/* Page layout: keep footer in normal flow */
html, body { height: 100%; }
body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}
main { flex: 1 0 auto; }
footer.footer {
  position: static !important;
  height: auto;
  line-height: 1.5;
  flex-shrink: 0;
}

/* Theme colors: Navy + Mobicon Yellow accents */
:root {
  --mmh-navy: #0b1e3a;
  --mmh-yellow: #f7c500;
  --mmh-light: #f8f9fa;
}

.bg-mmh-navy { background-color: var(--mmh-navy) !important; }
.text-mmh-yellow { color: var(--mmh-yellow) !important; }
.border-mmh-yellow { border-color: var(--mmh-yellow) !important; }
.link-mmh-yellow { color: var(--mmh-yellow); }
.link-mmh-yellow:hover { color: #d6ac00; }

/* Navbar tweaks */
.navbar-dark .navbar-nav .nav-link {
  color: rgba(255,255,255,.9);
}
.navbar-dark .navbar-nav .nav-link:hover,
.navbar-dark .navbar-nav .nav-link:focus {
  color: var(--mmh-yellow);
}
.navbar-dark .navbar-brand {
  color: #fff;
}

/* Logo containers for cards and grids */
.logo-tile {
  width: 100%;
  height: 140px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #fff;
  padding: 0.75rem;
}
@media (min-width: 768px) {
  .logo-tile { height: 180px; padding: 1rem; }
}
.logo-img {
  max-width: 85%;
  max-height: 85%;
  object-fit: contain;
  display: block;
}

.placeholder-logo {
  background: #e9ecef;
  color: #6c757d;
  font-weight: 600;
  font-size: 0.95rem;
  text-transform: uppercase;
  letter-spacing: .03em;
}

/* Brand grid */
.brand-card {
  border: 1px solid #e5e7eb;
  border-radius: .5rem;
  height: 100%;
  background-color: #ffffff;
}
.brand-card .card-body {
  display: flex;
  flex-direction: column;
}
.brand-name {
  font-weight: 600;
  margin-top: .5rem;
}
.brand-desc {
  font-size: .9rem;
  color: #555;
}

/* Movie strip / carousel sizing */
/* Multi-image filmstrip */
:root { --fs-gap: 12px; --fs-per-view: 1; }
@media (min-width: 576px) { :root { --fs-per-view: 2; } }
@media (min-width: 992px) { :root { --fs-per-view: 3; } }
@media (min-width: 1400px) { :root { --fs-per-view: 4; } }
.filmstrip-viewport {
  display: flex;
  gap: var(--fs-gap);
  overflow-x: auto;
  scroll-behavior: smooth;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
}
.film-item {
  flex: 0 0 calc((100% - (var(--fs-gap) * (var(--fs-per-view) - 1))) / var(--fs-per-view));
  scroll-snap-align: center;
}
.film-img {
  width: 100%;
  height: 225px;
  object-fit: cover;
  border-radius: .5rem;
  box-shadow: 0 1px 8px rgba(0,0,0,.08);
}
@media (max-width: 767.98px) {
  .film-img { height: 187.5px; }
}
.filmstrip-controls .btn { padding: .15rem .5rem; }
@media (prefers-reduced-motion: reduce) {
  .filmstrip-viewport { scroll-behavior: auto; }
}

/* About imagery sizing to avoid unnecessary upscaling */
.about-card-img {
  width: 100%;
  height: auto;
  max-width: 504px;
  border-radius: .5rem;
}

/* Contacts HQ photo */
.hq-photo {
  max-height: 320px;
  width: 100%;
  object-fit: cover;
  object-position: center;
}
.logo-tile {
  padding: 1rem 1.25rem;
}
@media (min-width: 768px) {
  .logo-tile { padding: 1.25rem 1.5rem; }
}
.logo-img {
  max-width: 75%;
  max-height: 75%;
}

/* Home title size: fit one line on desktop, scale on mobile */
.home-title {
  font-size: clamp(1.3rem, 1.8vw + 0.4rem, 2rem);
  line-height: 1.2;
  margin-bottom: .75rem;
  word-break: keep-all;
  white-space: nowrap;
}
@media (max-width: 991.98px) {
  .home-title { white-space: normal; }
}
/* Tighten title specifically for narrow desktop (lg 992–1199px) */
@media (min-width: 992px) and (max-width: 1199.98px) {
  .home-title {
    font-size: 1.25rem;
  }
}

/* Brand/Visit buttons */
.btn-mmh {
  background-color: var(--mmh-navy);
  color: #fff;
  border: 1px solid var(--mmh-navy);
}
.btn-mmh:hover, .btn-mmh:focus {
  background-color: #0e2648;
  border-color: #0e2648;
  color: var(--mmh-yellow);
}

/* Footer layout helpers */
.footer-legal .col {
  padding: .25rem 0;
}
.footer-legal .col-left {
  min-width: 0;
  overflow-wrap: anywhere;
  white-space: normal;
}

/* Reset any legacy oversized logo helpers */
.logo-img-lg {
  max-width: 85% !important;
  max-height: 85% !important;
  width: auto !important;
  height: auto !important;
  transform: none !important;
}


/* removed legacy scaling rules for .logo-img-lg */
