/* GeoJibe global header.
   Keep in visual sync with GeoJibeWebsite/css/styles.css (Navigation Bar)
   and the auth-shell header in web/css/app.css. Copied into Guides so the
   marketing site and docs can deploy independently. */

.site-header,
.gj-sidenav {
  --primary-blue: #0052ff;
  --primary-blue-hover: #0045d8;
  --primary-blue-light: #ebf2fe;
  --accent-teal: #00a887;
  --text-dark: #0f172a;
  --font-main: "Plus Jakarta Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

:root {
  --gj-site-header-height: 80px;
  --gj-docs-chrome-height: 188px;
  /* Same content box as .site-header .nav-container */
  --gj-content-max: 1240px;
  --gj-content-gutter: 24px;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 5;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(226, 232, 240, 0.6);
  height: 80px;
  display: flex;
  align-items: center;
  font-family: var(--font-main);
  color: var(--text-dark);
  box-shadow: none;
}

.site-header a {
  text-decoration: none;
  transition: all 0.2s ease;
}

.site-header .nav-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 24px;
}

.site-header .brand-logo-wrap {
  display: flex;
  align-items: center;
  text-decoration: none;
  flex-shrink: 0;
}

.site-header .logo-text,
.gj-sidenav .logo-text {
  font-size: 29px;
  font-weight: 800;
  letter-spacing: -0.8px;
  display: inline-flex;
  align-items: center;
  line-height: 1.5;
  font-family: var(--font-main);
}

.site-header .logo-geo,
.gj-sidenav .logo-geo {
  color: var(--primary-blue);
}

.site-header .logo-jibe,
.gj-sidenav .logo-jibe {
  color: var(--accent-teal);
}

.site-header .nav-links {
  display: flex;
  align-items: center;
  gap: 32px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.site-header .nav-link {
  color: var(--text-dark);
  font-size: 15px;
  font-weight: 500;
  line-height: 1.5;
  transition: color 0.2s ease;
}

.site-header .nav-link:hover,
.site-header .nav-link:focus {
  color: var(--primary-blue);
}

.site-header .nav-link.active-nav {
  color: var(--primary-blue) !important;
  font-weight: 700 !important;
  position: relative;
}

.site-header .nav-link.active-nav::after {
  content: "";
  position: absolute;
  bottom: -6px;
  left: 0;
  width: 100%;
  height: 2px;
  background: var(--primary-blue);
  border-radius: 2px;
}

.site-header .nav-actions {
  display: flex;
  align-items: center;
  gap: 20px;
}

.site-header .btn-sign-in {
  color: var(--text-dark);
  font-family: inherit;
  font-size: 15px;
  font-weight: 600;
  padding: 8px 14px;
  border-radius: 8px;
  background: transparent;
  border: none;
  cursor: pointer;
  text-transform: none;
  letter-spacing: 0;
  line-height: 1.15;
  height: auto;
  box-shadow: none;
  transition: all 0.2s ease;
}

.site-header .btn-sign-in:hover,
.site-header .btn-sign-in:focus {
  color: var(--primary-blue);
  background-color: var(--primary-blue-light);
}

.site-header .btn-get-started,
.gj-sidenav .btn-get-started {
  background: var(--primary-blue) !important;
  color: #ffffff !important;
  font-family: inherit !important;
  font-size: 15px !important;
  font-weight: 600 !important;
  text-transform: none !important;
  letter-spacing: 0 !important;
  padding: 0 24px !important;
  height: 44px !important;
  line-height: 44px !important;
  border-radius: 8px !important;
  box-shadow: 0 2px 6px rgba(0, 82, 255, 0.25) !important;
  transition: all 0.25s ease !important;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.site-header .btn-get-started:hover,
.site-header .btn-get-started:focus,
.gj-sidenav .btn-get-started:hover,
.gj-sidenav .btn-get-started:focus {
  background: var(--primary-blue-hover) !important;
  box-shadow: 0 4px 14px rgba(0, 82, 255, 0.35) !important;
  transform: translateY(-1px);
}

.site-header .mobile-menu-trigger {
  display: none;
  align-items: center;
  justify-content: center;
  background: none;
  border: none;
  color: var(--text-dark);
  font-size: 28px;
  cursor: pointer;
  padding: 0;
  width: 40px;
  height: 40px;
  line-height: 1;
  box-shadow: none;
}

.site-header .mobile-menu-trigger .material-icons,
.gj-sidenav .material-icons {
  font-family: "Material Icons";
  font-weight: 400;
  font-style: normal;
  font-size: 28px;
  line-height: 1;
  letter-spacing: normal;
  text-transform: none;
  display: inline-block;
  white-space: nowrap;
  direction: ltr;
  -webkit-font-smoothing: antialiased;
  font-feature-settings: "liga";
  color: inherit;
}

.gj-sidenav {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 12;
  display: flex;
  flex-direction: column;
  width: 280px;
  max-width: 86vw;
  height: 100%;
  padding: 24px 16px;
  background: #ffffff;
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.18);
  font-family: var(--font-main);
  transform: translateX(-105%);
  transition: transform 0.25s ease;
  overflow-y: auto;
  pointer-events: none;
  visibility: hidden;
}

.gj-sidenav.is-open {
  transform: translateX(0);
  pointer-events: auto;
  visibility: visible;
}

.gj-sidenav .brand-logo-wrap {
  display: flex;
  align-items: center;
  margin-bottom: 8px;
  padding: 12px 12px 0;
  text-decoration: none;
}

.gj-sidenav a {
  display: block;
  font-weight: 600;
  color: var(--text-dark);
  font-size: 16px;
  line-height: 1.4;
  border-radius: 8px;
  padding: 12px 16px;
  text-decoration: none;
  transition: all 0.2s ease;
}

.gj-sidenav a:hover,
.gj-sidenav a:focus {
  background-color: var(--primary-blue-light);
  color: var(--primary-blue);
}

.gj-sidenav .gj-sidenav-active {
  color: var(--primary-blue);
  font-weight: 700;
}

.gj-sidenav-divider {
  height: 1px;
  margin: 8px 0;
  background: #e0e0e0;
}

.gj-sidenav-cta {
  padding: 12px 16px;
}

.gj-sidenav-cta .btn-get-started {
  width: 100%;
  text-align: center;
  box-sizing: border-box;
}

.gj-sidenav-overlay {
  position: fixed;
  inset: 0;
  z-index: 11;
  background: rgba(15, 23, 42, 0.45);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
}

.gj-sidenav-overlay.is-open {
  opacity: 1;
  pointer-events: auto;
}

body.gj-sidenav-open {
  overflow: hidden;
}

@media (max-width: 992px) {
  .site-header .nav-links,
  .site-header .nav-actions {
    display: none;
  }

  .site-header .mobile-menu-trigger {
    display: flex;
  }
}

/* Docs chrome sits under the global header and stays a separate nav system. */
.md-header {
  top: var(--gj-site-header-height);
  z-index: 4;
}

.md-header__button.md-logo {
  display: none;
}

[data-md-toggle="search"]:checked ~ .md-header {
  z-index: 7;
}

/*
  Constrain Guides chrome to the same centered content box as the
  GeoJibe header (max-width 1240px, 24px gutters). Backgrounds stay
  full-bleed; only the inner grids are boxed.
*/
.md-header__inner.md-grid,
.md-tabs > .md-grid,
.md-main__inner.md-grid,
.md-footer__inner.md-grid,
.md-footer-meta__inner.md-grid {
  width: 100%;
  max-width: var(--gj-content-max);
  margin-left: auto;
  margin-right: auto;
  padding-left: var(--gj-content-gutter);
  padding-right: var(--gj-content-gutter);
  box-sizing: border-box;
}

[dir="ltr"] .md-tabs__list {
  margin-left: 0;
}

[dir="rtl"] .md-tabs__list {
  margin-right: 0;
}

@media screen and (min-width: 76.25em) {
  .md-sidebar {
    top: var(--gj-docs-chrome-height) !important;
    height: calc(100vh - var(--gj-docs-chrome-height)) !important;
  }
}

html {
  scroll-padding-top: var(--gj-docs-chrome-height);
}
