/*
 * Small site-wide accessibility and responsive layer.
 * Keep this after the theme stylesheets so these safeguards win without replacing the original design.
 */
:root {
  color-scheme: light;
  scroll-padding-top: 5rem;
}

html {
  scroll-behavior: smooth;
  overflow-x: clip;
}

body {
  min-width: 320px;
  max-width: 100%;
  overflow-x: clip;
  font-size: 16px;
  line-height: 1.6;
  overflow-wrap: break-word;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

main,
section,
article,
.container,
.row,
[class*="col-"] {
  min-width: 0;
}

img,
svg,
video,
canvas,
iframe {
  max-width: 100%;
}

img {
  display: block;
  height: auto;
}

figure {
  max-width: 100%;
}

iframe {
  border: 0;
}

input,
select,
textarea,
button {
  max-width: 100%;
  font: inherit;
}

input,
select,
textarea {
  min-height: 48px;
  font-size: 16px;
}

textarea {
  min-height: 120px;
}

button,
.btn-default,
.navbar-nav .nav-link,
.pagination a,
.igc-menu-contact,
.contact-us-social-list a,
.footer-social-links-metal a,
.newsletter-btn-metal,
.footer-menu-metal a,
a[href^="tel:"],
a[href^="mailto:"] {
  min-height: 48px;
}

.btn-default,
.footer-menu-metal a,
a[href^="tel:"],
a[href^="mailto:"] {
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

button,
[role="button"],
a,
input,
select,
textarea {
  -webkit-tap-highlight-color: transparent;
}

:where(a, button, input, select, textarea, iframe, [tabindex]):focus-visible {
  outline: 3px solid #9b4b25;
  outline-offset: 3px;
}

.skip-link {
  position: absolute;
  z-index: 1200;
  top: 0.5rem;
  left: 0.5rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0.65rem 1rem;
  transform: translateY(-160%);
  border-radius: 0.35rem;
  background: #fff;
  color: #17212b;
  font-weight: 700;
  text-decoration: none;
  box-shadow: 0 0.25rem 1rem rgb(0 0 0 / 20%);
}

.skip-link:focus {
  transform: translateY(0);
}

.visually-hidden {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

/* Protect wide words and long addresses from creating sideways scrolling. */
p,
li,
h1,
h2,
h3,
h4,
a {
  overflow-wrap: anywhere;
}

/* Map facade reserves a stable responsive frame; the remote map loads only on activation. */
.igc-map-facade {
  display: flex;
  min-height: 18rem;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  overflow: hidden;
  padding: 1rem;
  border: 1px solid #d6dfdc;
  border-radius: 0.75rem;
  background: #eaf0ed;
  text-align: center;
}

.igc-map-preview {
  display: block;
  width: 100%;
  max-height: 18rem;
  border-radius: 0.5rem;
}

.igc-map-caption {
  margin: 0;
  color: #17212b;
  font-size: 1rem;
}

.igc-map-load,
.igc-map-directions {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  padding: 0.7rem 1rem;
  border-radius: 0.35rem;
  text-align: center;
}

.igc-map-directions {
  color: #17212b;
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 0.18em;
}

.google-map-iframe .igc-loaded-map {
  display: block;
  width: 100%;
  height: auto;
  min-height: 18rem;
  aspect-ratio: 16 / 9;
  border: 0;
}

.error-search {
  max-width: 38rem;
  margin: 1.5rem auto;
  text-align: left;
}

.error-search label {
  display: block;
  margin-bottom: 0.45rem;
  font-weight: 700;
}

.error-search-row {
  display: flex;
  align-items: stretch;
  gap: 0.5rem;
}

.error-search-row input {
  min-width: 0;
  flex: 1 1 auto;
  padding: 0.7rem 0.9rem;
  border: 1px solid #66737b;
  border-radius: 0.35rem;
  background: #fff;
  color: #17212b;
}

.error-search-row button {
  flex: 0 0 auto;
}

/* Mobile navigation reuses the same primary link list as desktop in a compact side drawer. */
.igc-menu-backdrop {
  display: none;
}

.igc-mobile-menu-btn,
.igc-menu-close-btn {
  display: none;
}

@media (max-width: 991.98px) {
  html,
  body {
    overflow-x: clip;
  }

  body.igc-menu-open {
    overflow: hidden;
  }

  .main-header {
    position: relative !important;
    z-index: 1200 !important;
  }

  .main-header .navbar .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    min-width: 0;
  }

  .navbar-brand {
    display: inline-flex;
    min-width: 0;
    align-items: center;
  }

  .navbar-brand img {
    width: auto;
    max-width: min(60vw, 13rem);
    height: auto;
  }

  .igc-mobile-menu-btn {
    position: relative;
    z-index: 1204 !important;
    display: inline-flex !important;
    width: 48px;
    min-width: 48px;
    height: 48px;
    flex: 0 0 48px;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 5px;
    padding: 0;
    border: 1px solid currentColor;
    border-radius: 0.4rem;
    background: transparent;
    color: inherit;
    cursor: pointer;
  }

  .igc-mobile-menu-btn span {
    display: block;
    width: 22px;
    height: 2px;
    border-radius: 2px;
    background: currentColor;
  }

  .main-menu .igc-menu-close-btn {
    display: inline-flex !important;
    width: 48px;
    min-width: 48px;
    height: 48px;
    min-height: 48px;
    flex: 0 0 48px;
    align-items: center;
    justify-content: center;
    align-self: flex-end;
    margin: 0 0 0.5rem auto;
    padding: 0;
    border: 1px solid #64727a;
    border-radius: 0.4rem;
    background: #fff;
    color: #17212b;
    cursor: pointer;
  }

  .main-menu .igc-menu-close-btn svg {
    width: 1.25rem;
    height: 1.25rem;
  }

  .main-menu,
  .main-menu.collapse:not(.show) {
    position: fixed !important;
    z-index: 1202 !important;
    top: 0.5rem !important;
    right: 0.5rem !important;
    bottom: 0.5rem !important;
    left: auto !important;
    display: flex !important;
    width: min(88vw, 22.5rem);
    max-width: calc(100vw - 1rem);
    flex-direction: column;
    align-items: stretch;
    overflow-x: hidden;
    overflow-y: auto;
    overscroll-behavior: contain;
    padding: 1.25rem 1rem 1rem;
    border-radius: 0.75rem;
    background: #fff;
    color: #17212b;
    box-shadow: 0 1rem 3rem rgb(0 0 0 / 24%);
    transform: translateX(calc(100% + 1rem)) !important;
    visibility: hidden !important;
    pointer-events: none !important;
    transition: transform 180ms ease, visibility 180ms ease;
  }

  body.igc-menu-open .main-menu,
  body.igc-menu-open .main-menu.collapse:not(.show) {
    display: flex !important;
    transform: translateX(0) !important;
    visibility: visible !important;
    pointer-events: auto !important;
  }

  .main-menu .nav-menu-wrapper,
  .main-menu .navbar-nav {
    display: flex;
    width: 100%;
    flex-direction: column;
    align-items: stretch;
  }

  .main-menu .navbar-nav {
    margin: 0;
    padding: 0;
    list-style: none;
  }

  .main-menu .navbar-nav .nav-link {
    display: flex;
    min-height: 48px;
    align-items: center;
    padding: 0.7rem 0.75rem;
    color: inherit;
    text-decoration: none;
  }

  .main-menu .submenu > ul {
    position: static;
    display: none !important;
    width: 100%;
    margin: 0;
    padding: 0 0 0 0.75rem;
    opacity: 1;
    visibility: visible;
    transform: none;
  }

  .main-menu .submenu.igc-open > ul {
    display: block !important;
  }

  .main-menu .header-btn {
    margin-top: 0.75rem;
  }

  .igc-menu-footer {
    margin-top: auto;
    padding: 1rem 0.75rem 0.25rem;
    border-top: 1px solid #d9e0e2;
  }

  .igc-menu-footer-title {
    margin: 0 0 0.4rem;
    font-size: 0.95rem;
    font-weight: 700;
  }

  .igc-menu-contact {
    display: flex;
    min-height: 48px;
    align-items: center;
    gap: 0.55rem;
    color: inherit;
    text-decoration: none;
  }

  .igc-menu-contact svg {
    width: 1.25rem;
    height: 1.25rem;
    flex: 0 0 1.25rem;
  }

  .igc-menu-backdrop {
    position: fixed !important;
    z-index: 1199 !important;
    inset: 0;
    display: block !important;
    background: rgb(10 18 24 / 55%);
    opacity: 0;
    visibility: hidden;
    transition: opacity 180ms ease, visibility 180ms ease;
  }

  body.igc-menu-open .igc-menu-backdrop {
    opacity: 1 !important;
    visibility: visible !important;
  }

  .responsive-menu {
    display: none !important;
  }
}

@media (max-width: 767.98px) {
  body {
    font-size: 16px;
  }

  body :where(p, li, label, input, select, textarea) {
    font-size: 16px !important;
  }

  .container {
    width: 100%;
    max-width: 100%;
    padding-right: 1rem;
    padding-left: 1rem;
  }

  .row {
    margin-right: -0.5rem;
    margin-left: -0.5rem;
  }

  .row > * {
    padding-right: 0.5rem;
    padding-left: 0.5rem;
  }

  .error-search-row {
    flex-direction: column;
  }

  .error-search-row button {
    width: 100%;
  }

  .igc-map-facade {
    min-height: 16rem;
    padding: 0.75rem;
  }

  .igc-map-preview {
    max-height: 12rem;
  }
}

@media (max-width: 359.98px) {
  .main-menu,
  .main-menu.collapse:not(.show) {
    width: calc(100vw - 1rem);
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}


/* Branded social glyphs remain visible without inventing unverified profile URLs. */
.footer-social-links-metal ul,
.contact-us-social-list ul {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.igc-social-icon {
  display: inline-grid;
  width: 48px;
  min-width: 48px;
  height: 48px;
  min-height: 48px;
  place-items: center;
  border: 1px solid currentColor;
  border-radius: 50%;
  color: inherit;
  font-size: 1.1rem;
}
