/* Shared navigation, footer and contact surfaces. */
:root {
  --gt-shell-surface: #f5f3f0;
  --gt-shell-ink: #202227;
  --gt-shell-muted: #575b61;
  --gt-shell-line: #d9d6d1;
  --gt-shell-accent: #a5202b;
  --gt-shell-panel: #fff;
}

[data-bs-theme="dark"] {
  --gt-shell-surface: #171a1e;
  --gt-shell-ink: #f4f2ee;
  --gt-shell-muted: #c0c0bd;
  --gt-shell-line: #383b3e;
  --gt-shell-accent: #ff8c92;
  --gt-shell-panel: #202429;
}

body > .navbar.sticky-top {
  --gt-nav-gap: clamp(0.7rem, 1.2vw, 1.35rem);
  background: var(--gt-shell-panel) !important;
  box-shadow: inset 0 -1px 0 var(--gt-shell-line) !important;
}

body > .navbar .navbar-brand {
  margin-right: var(--gt-nav-gap);
  border: 0 !important;
}

body > .navbar .navbar-brand img { max-width: clamp(5.5rem, 8vw, 8.25rem); }

body > .navbar > .btn-secondary {
  display: inline-grid;
  min-width: 42px;
  min-height: 42px;
  place-items: center;
  gap: 0.4rem;
  padding: 0.3rem 0.65rem !important;
  border: 1px solid var(--gt-shell-line) !important;
  border-radius: 6px;
  color: var(--gt-shell-ink) !important;
  background: transparent !important;
  box-shadow: none;
  line-height: 1;
}

body > .navbar > .btn-secondary:hover {
  background: var(--gt-shell-surface) !important;
  color: var(--gt-shell-accent) !important;
}

body > .navbar #navbarCollapse .nav-link {
  color: var(--gt-shell-ink);
  font-size: clamp(0.85rem, 1.05vw, 0.95rem);
  font-weight: 650;
}

body > .navbar #navbarCollapse .nav-link:is(:hover, .active, [aria-current="page"]) {
  color: var(--gt-shell-accent);
}

body > .navbar #navbarCollapse .nav-link::after { background: currentColor; }
body > .navbar #navbarCollapse .nav-link:not(:hover, .active, [aria-current="page"])::after { opacity: 0; }

body > .navbar :is(a, button):focus-visible,
body > .footer a:focus-visible,
.gt-production-control:focus-visible {
  outline: 2px solid var(--gt-shell-accent);
  outline-offset: 3px;
}

body > .navbar .button-wrap .btn.btn-primary {
  background: #a5202b !important;
  border-radius: 6px !important;
  font-size: 0.86rem;
  box-shadow: none;
}

body > .navbar .button-wrap .btn.btn-primary:hover {
  box-shadow: none;
  background: #8c1722 !important;
  filter: none;
}

/* Bootstrap's desktop display utility otherwise overrides the template's
   initial hidden state and places this control over the hero pause button. */
body:has(> .navbar:not(.scroll)) > .back-to-top {
  display: none !important;
}

@media (min-width: 1200px) {
  .gt-home body > .navbar.sticky-top:not(.gt-stuck) {
    box-shadow: inset 0 -1px 0 rgb(255 255 255 / .17) !important;
  }

  .gt-home body > .navbar.sticky-top:not(.gt-stuck) :is(a, button):focus-visible { outline-color: #fff; }

  body > .navbar #navbarCollapse .nav-link {
    margin-inline: 0;
    padding-inline: var(--gt-nav-gap);
  }

  body > .navbar #navbarCollapse .nav-link::after {
    left: var(--gt-nav-gap);
    right: var(--gt-nav-gap);
  }
}

@media (min-width: 1400px) {
  body > .navbar > .btn-secondary[data-bs-target="#ModalA"] {
    grid-auto-flow: column;
  }
}

@media (max-width: 1199.98px) {
  body > .navbar .navbar-brand { flex: 1; }
  body > .navbar .navbar-brand img { max-width: 6rem; }

  body > .navbar #navbarCollapse {
    background: var(--gt-shell-panel);
    border-top: 1px solid var(--gt-shell-line);
  }

  body > .navbar #navbarCollapse.show {
    max-height: calc(100dvh - 76px);
    overflow: auto;
  }

  body > .navbar #navbarCollapse .navbar-nav { padding: 0.5rem 1rem !important; }
  body > .navbar #navbarCollapse .nav-link {
    margin: 0;
    min-height: 46px;
    padding: 0.7rem 0.85rem !important;
    border-radius: 5px;
    font-size: 1rem;
    line-height: 1.6;
  }

  body > .navbar #navbarCollapse .nav-link:is(:hover, .active, [aria-current="page"]) {
    background: var(--gt-shell-surface);
  }

  body > .navbar #navbarCollapse.show .navbar-nav > .nav-item {
    animation: none;
  }
}

@media (max-width: 375px) {
  body > .navbar .navbar-brand { padding-inline: 0.75rem !important; }
  body > .navbar > button[data-bs-target="#navbarCollapse"] { margin-right: 0.75rem !important; }
}

body > .footer {
  background: var(--gt-shell-surface) !important;
  border-top: 1px solid var(--gt-shell-line);
  color: var(--gt-shell-ink) !important;
}

body > .footer > .container { max-width: min(100%, 90rem); }
body > .footer > .container.py-5 { padding-block: clamp(1rem, 4vw, 2.75rem) !important; }
body > .footer .gt-foot-brand { order: -1; }

body > .footer .gt-foot-note {
  max-width: 24ch;
  font-size: 1rem;
  line-height: 1.6;
}

body > .footer :is(.gt-foot-contacts, .gt-foot-nav) h3 {
  color: var(--gt-shell-ink) !important;
  font-size: 1.16rem;
  font-weight: 750;
}

body > .footer .gt-foot-contacts p { margin-bottom: 0.6rem; }

body > .footer .gt-foot-nav ul {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  column-gap: 1rem;
  margin: 0;
  padding: 0;
}

body > .footer .gt-foot-nav li {
  margin: 0;
  list-style: none;
  transform: none;
}

body > .footer .gt-foot-nav a {
  display: flex;
  align-items: center;
  min-height: 35px;
  padding-block: 0.25rem;
}

body > .footer :is(.gt-foot-note, .copyright, .gt-foot-contacts p) { color: var(--gt-shell-muted); }

body > .footer a:not(.btn):hover {
  color: var(--gt-shell-accent) !important;
  text-decoration: underline;
  text-underline-offset: 0.2em;
}

body > .footer .gt-foot-logo:hover img { transform: none; }
body > .footer .copyright { border-color: var(--gt-shell-line) !important; }
body > .footer .gt-anim { opacity: 1; transform: none; animation: none; transition: none; }

@media (max-width: 767.98px) {
  body > .footer > .container { padding-inline: 1.25rem; }
  body > .footer .gt-foot-nav a { min-height: 44px; }
  body > .footer :is(#copyright, #copyright-2) { text-align: left !important; }
}

.gt-production-media {
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  align-items: flex-start;
  position: relative;
  min-height: clamp(17rem, 31vw, 26rem);
  margin-bottom: clamp(1.5rem, 4vw, 3.5rem);
  padding: clamp(1.15rem, 4vw, 3rem);
  overflow: hidden;
  background: #282b2e url("/images/gt-home/production-line.jpg") center / cover no-repeat;
  isolation: isolate;
}

.gt-production-media video {
  position: absolute;
  z-index: -2;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 51% 56%;
}

.gt-production-media::after {
  position: absolute;
  z-index: -1;
  inset: 0;
  content: "";
  background: linear-gradient(0deg, rgb(13 16 19 / .92), rgb(13 16 19 / .48) 65%, rgb(13 16 19 / .16));
}

.gt-production-media > .text-center {
  margin: auto 0 0 !important;
  text-align: left !important;
}

.gt-production-media :is(h1, h2) { color: #fff !important; }
.gt-production-media h6.text-primary { color: #ffd6d8 !important; }

.gt-production-control {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  min-height: 44px;
  margin-top: 0.85rem;
  padding: 0.5rem 0.9rem;
  border: 1px solid rgb(255 255 255 / .4);
  border-radius: 5px;
  color: #fff;
  background: #232528;
  font-size: 0.875rem;
  font-weight: 650;
}

.gt-production-control:hover { background: #373a3c; }
.gt-production-control:focus-visible { outline-color: #fff; }
.gt-production-control[hidden] { display: none; }

/* Present the office as a map annotation, using the actual marker coordinate. */
.gt-office-pin .gt-office-pin-point {
  top: -9px;
  left: -9px;
  width: 18px;
  height: 18px;
  transform: none;
  border: 3px solid #fff;
  border-radius: 50%;
  background: #b62635;
  box-shadow: 0 2px 12px #0008;
}

.gt-office-pin .gt-office-pin-point::after { content: none; }

.gt-office-pin .gt-office-pin-label {
  top: auto;
  bottom: 18px;
  left: 0;
  display: grid;
  gap: 0.35rem;
  width: 13rem;
  padding: 0.7rem 0.9rem;
  transform: translateX(-50%);
  border: 1px solid #687078;
  border-radius: 7px;
  color: #fff;
  background: #20262d;
  box-shadow: 0 4px 18px #15191c70;
  line-height: 1.3;
  white-space: normal;
}

.gt-office-pin-label::after {
  position: absolute;
  top: 100%;
  left: calc(50% - 5px);
  border: 5px solid transparent;
  border-top-color: #20262d;
  content: "";
}

.gt-office-pin-address { color: #e4e6e8; font-size: 0.79rem; font-weight: 500; }

@media (prefers-reduced-motion: reduce) and (min-width: 1200px) {
  .gt-home body > .navbar.sticky-top:not(.gt-stuck) {
    background: #171a1e !important;
  }
}
