/* TransGenie header (ported 1:1 from the new homepage design, scoped with tgh- prefix) */
.tgh-header,
.tgh-header *,
.tgh-header *::before,
.tgh-header *::after { box-sizing: border-box; }

.tgh-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background-color: rgba(255, 255, 255, 0.95);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid #e2e8f0;
  font-family: "DM Sans", -apple-system, BlinkMacSystemFont, sans-serif;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

.tgh-header a { text-decoration: none; }
.tgh-header button {
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
  font: inherit;
  color: inherit;
  cursor: pointer;
  border-radius: 0;
  -webkit-appearance: none;
  appearance: none;
}
.tgh-header svg { display: block; vertical-align: middle; }
.tgh-header .tgh-hidden { display: none !important; }

.tgh-bar {
  max-width: 1440px;
  margin: 0 auto;
  padding: 0 20px;
  height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
}

/* Brand wordmark */
.tgh-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 19px;
  font-weight: 700;
  letter-spacing: -0.025em;
  color: #020617;
  white-space: nowrap;
  flex-shrink: 0;
}
.tgh-brand:hover { color: #020617; }
.tgh-brand svg { flex-shrink: 0; }

/* Desktop navigation */
.tgh-nav { display: none; align-items: center; gap: 28px; }

.tgh-header .tgh-link,
.tgh-header .tgh-trigger {
  font-size: 14px;
  font-weight: 500;
  color: #334155;
  white-space: nowrap;
  flex-shrink: 0;
  transition: color 0.15s cubic-bezier(0.4, 0, 0.2, 1);
}
.tgh-link:hover,
.tgh-trigger:hover { color: #020617; }

.tgh-link.is-active { font-weight: 600; color: #0A5C43; }
.tgh-link.is-active:hover { color: #084734; }

.tgh-trigger { display: inline-flex; align-items: center; gap: 4px; }
.tgh-trigger svg { color: #94a3b8; }

.tgh-dropdown { position: relative; }

.tgh-panel {
  position: absolute;
  left: 0;
  top: 100%;
  padding-top: 10px;
  width: 224px;
  z-index: 50;
}
.tgh-panel--sm { width: 192px; }
.tgh-panel--wide { width: 480px; }

.tgh-panel-inner {
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  box-shadow: 0 20px 40px -15px rgba(15, 23, 42, 0.12);
  padding: 6px;
}
.tgh-panel-inner > * + * { margin-top: 2px; }

.tgh-header .tgh-panel-inner.tgh-panel-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 2px 4px;
}
.tgh-header .tgh-panel-inner.tgh-panel-grid > * + * { margin-top: 0; }

.tgh-header .tgh-panel-item {
  display: block;
  width: 100%;
  text-align: left;
  padding: 8px 12px;
  font-size: 13px;
  font-weight: 500;
  color: #334155;
  border-radius: 8px;
}
.tgh-header .tgh-panel-item:hover { background-color: #F1F6F4; color: #0A5C43; }

/* Actions */
.tgh-actions { display: flex; align-items: center; gap: 12px; flex-shrink: 0; }

.tgh-cta {
  display: none;
  align-items: center;
  gap: 8px;
  padding: 10px 20px;
  font-size: 13px;
  font-weight: 600;
  color: #fff;
  background-color: #0A5C43;
  border-radius: 8px;
  white-space: nowrap;
  flex-shrink: 0;
  transition: background-color 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}
.tgh-cta:hover { background-color: #084734; color: #fff; }
.tgh-cta:focus-visible { outline: 2px solid #0A5C43; outline-offset: 2px; }

.tgh-header .tgh-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 8px;
  border: 1px solid #e2e8f0;
  color: #1e293b;
}

/* Tablet & mobile drawer */
.tgh-drawer {
  background: #fff;
  border-top: 1px solid #e2e8f0;
  padding: 16px 20px;
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -4px rgba(0, 0, 0, 0.1);
}
.tgh-drawer > * + * { margin-top: 4px; }

.tgh-header .tgh-drawer-item {
  display: block;
  width: 100%;
  text-align: left;
  padding: 10px 0;
  font-size: 15px;
  font-weight: 500;
  color: #334155;
}
.tgh-header .tgh-drawer-item.is-active { font-weight: 600; color: #0A5C43; }
.tgh-header .tgh-drawer-item:hover { color: #020617; }
.tgh-header .tgh-drawer-item.is-active:hover { color: #084734; }

.tgh-header .tgh-drawer-trigger {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.tgh-header .tgh-drawer-trigger svg { color: #94a3b8; transition: transform 0.2s ease; }
.tgh-header .tgh-drawer-trigger[aria-expanded="true"] { color: #0A5C43; font-weight: 600; }
.tgh-header .tgh-drawer-trigger[aria-expanded="true"] svg { transform: rotate(180deg); color: #0A5C43; }

.tgh-drawer-sub {
  margin: 2px 0 8px;
  padding: 6px;
  background: #F8FAF9;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
}
.tgh-header .tgh-drawer-subitem {
  display: block;
  padding: 9px 12px;
  font-size: 14px;
  font-weight: 500;
  color: #334155;
  border-radius: 8px;
}
.tgh-header .tgh-drawer-subitem:hover { background-color: #F1F6F4; color: #0A5C43; }

/* Keep a long open drawer scrollable on short screens */
.tgh-drawer { max-height: calc(100dvh - 72px); overflow-y: auto; overscroll-behavior: contain; }

.tgh-drawer-cta-wrap { padding-top: 12px; }
.tgh-drawer-cta {
  display: block;
  width: 100%;
  text-align: center;
  padding: 12px 16px;
  font-size: 14px;
  font-weight: 600;
  color: #fff;
  background-color: #0A5C43;
  border-radius: 8px;
  transition: background-color 0.15s cubic-bezier(0.4, 0, 0.2, 1);
}
.tgh-drawer-cta:hover { background-color: #084734; color: #fff; }

/* Breakpoints (Tailwind sm / lg / xl) */
@media (min-width: 640px) {
  .tgh-bar { padding: 0 32px; }
  .tgh-cta { display: inline-flex; }
  .tgh-drawer { padding: 16px 32px; }
}
@media (min-width: 1024px) {
  .tgh-bar { padding: 0 48px; }
  .tgh-nav { display: flex; }
  .tgh-header .tgh-toggle { display: none; }
  .tgh-header .tgh-drawer { display: none !important; }
}
@media (min-width: 1280px) {
  .tgh-nav { gap: 32px; }
}

/* Old fixed navbar needed a top offset on the page wrapper; the sticky header sits in flow */
.tgh-header ~ main.hp { padding-top: 0; }

/* Footer wordmark (same mark as the header) */
#home-footer .tgh-footer-logo {
  display: inline-flex !important;
  align-items: center;
  gap: 10px;
  margin-bottom: 16px;
  font-family: "DM Sans", -apple-system, BlinkMacSystemFont, sans-serif;
  font-size: 18px;
  font-weight: 700;
  line-height: 1.5;
  letter-spacing: -0.025em;
  color: #020617;
  text-decoration: none;
}
#home-footer .tgh-footer-logo:hover { color: #020617; }
#home-footer .tgh-footer-logo svg { display: block; flex-shrink: 0; margin: 0; }
#home-footer .tgh-footer-logo span { display: inline; margin: 0; font-family: "DM Sans", -apple-system, BlinkMacSystemFont, sans-serif !important; font-size: 18px !important; font-weight: 700 !important; letter-spacing: -0.025em; color: #020617 !important; opacity: 1; }
