/* Trust-route core layout — grid/nav/footer rules required by the four
   approved Phase 3D-C pages. Loaded before first paint. Do NOT load the
   full framework stylesheet or icon-font stylesheet on these routes. */

/* --- Containers / grid --- */
.container {
  width: 100%;
  max-width: 1140px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 0.75rem;
  padding-right: 0.75rem;
}
.row {
  display: flex;
  flex-wrap: wrap;
  margin-left: -0.75rem;
  margin-right: -0.75rem;
}
.row > [class*="col-"] {
  position: relative;
  padding-left: 0.75rem;
  padding-right: 0.75rem;
  width: 100%;
  max-width: 100%;
  flex-shrink: 0;
}
/* Bootstrap-compatible g-4 gutters used by the footer grid */
.row.g-4 {
  margin-left: -0.75rem;
  margin-right: -0.75rem;
  --bs-gutter-x: 1.5rem;
  --bs-gutter-y: 1.5rem;
}
.row.g-4 > [class*="col-"] {
  padding-left: calc(var(--bs-gutter-x) * 0.5);
  padding-right: calc(var(--bs-gutter-x) * 0.5);
  margin-top: var(--bs-gutter-y);
}
/* Match .row > [class*="col-"] specificity so footer columns do not stack. */
@media (min-width: 768px) {
  .row > .col-md-3 {
    flex: 0 0 25%;
    width: 25%;
    max-width: 25%;
  }
  .row > .col-md-4 {
    flex: 0 0 33.333333%;
    width: 33.333333%;
    max-width: 33.333333%;
  }
  .row > .col-md-6 {
    flex: 0 0 50%;
    width: 50%;
    max-width: 50%;
  }
  .row.g-4 > [class*="col-"] { margin-top: 0; }
}
@media (min-width: 992px) {
  .row > .col-lg-4 {
    flex: 0 0 33.333333%;
    width: 33.333333%;
    max-width: 33.333333%;
  }
  .row > .col-lg-8 {
    flex: 0 0 66.666667%;
    width: 66.666667%;
    max-width: 66.666667%;
  }
}

/* --- Spacing / text utilities used in markup --- */
.mb-0 { margin-bottom: 0 !important; }
.mb-3 { margin-bottom: 1rem !important; }
.mb-4 { margin-bottom: 1.5rem !important; }
.mt-3 { margin-top: 1rem !important; }
.mt-4 { margin-top: 1.5rem !important; }
.ms-2 { margin-left: 0.5rem !important; }
.ms-auto { margin-left: auto !important; }
.ms-lg-2 { margin-left: 0; }
.p-0 { padding: 0 !important; }
.pt-0 { padding-top: 0 !important; }
.text-center { text-align: center !important; }
.text-start { text-align: left !important; }
.small { font-size: 0.875em; }
.h4, h2.h4 { font-size: 1.5rem; font-weight: 700; line-height: 1.3; }
.h5, h2.h5 { font-size: 1.25rem; font-weight: 700; line-height: 1.3; }
.d-flex { display: flex !important; }
.flex-wrap { flex-wrap: wrap !important; }
.gap-2 { gap: 0.5rem; }
.justify-content-center { justify-content: center !important; }
.align-items-lg-center { align-items: stretch; }
.gap-lg-1 { gap: 0; }
@media (min-width: 992px) {
  .ms-lg-2 { margin-left: 0.5rem !important; }
  .align-items-lg-center { align-items: center !important; }
  .gap-lg-1 { gap: 0.25rem; }
}

/* --- Header / navbar shell (stable dimensions) --- */
.ga-header { min-height: 72px; }
.navbar {
  position: relative;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  padding: 0.5rem 0;
  min-height: 64px;
}
.navbar > .container {
  display: flex;
  flex-wrap: inherit;
  align-items: center;
  justify-content: space-between;
}
.navbar-brand {
  display: inline-flex;
  align-items: center;
  padding-top: 0.3rem;
  padding-bottom: 0.3rem;
  margin-right: 1rem;
  text-decoration: none;
  white-space: nowrap;
}
.navbar-toggler {
  padding: 0.25rem 0.75rem;
  font-size: 1.25rem;
  line-height: 1;
  background-color: transparent;
  border: 1px solid rgba(255, 255, 255, 0.35);
  border-radius: 0.375rem;
  width: 44px;
  height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}
.navbar-toggler-icon {
  display: inline-block;
  width: 1.5em;
  height: 1.5em;
  vertical-align: middle;
  background-repeat: no-repeat;
  background-position: center;
  background-size: 100%;
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba%28255,255,255,0.85%29' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}
.navbar-collapse {
  flex-basis: 100%;
  flex-grow: 1;
  align-items: center;
}
.navbar-collapse.collapse:not(.show) { display: none; }
.navbar-collapse.collapse.show { display: block; }
.navbar-nav {
  display: flex;
  flex-direction: column;
  padding-left: 0;
  margin-bottom: 0;
  list-style: none;
}
.nav-link {
  display: block;
  padding: 0.5rem 0;
  text-decoration: none;
  color: inherit;
}
@media (min-width: 992px) {
  .navbar-expand-lg { flex-wrap: nowrap; }
  .navbar-expand-lg .navbar-toggler { display: none; }
  .navbar-expand-lg .navbar-collapse {
    display: flex !important;
    flex-basis: auto;
  }
  .navbar-expand-lg .navbar-nav {
    flex-direction: row;
    align-items: center;
  }
  .navbar-expand-lg .nav-link { padding: 0.5rem 0.75rem; }
}

/* --- Trust bar --- */
.ga-trust-bar {
  font-size: 0.8rem;
  color: var(--ga-text-muted, #9aa3b8);
  padding: 0.45rem 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}
.ga-trust-bar .container {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.25rem;
  align-items: center;
}
.ga-trust-svg {
  width: 14px;
  height: 14px;
  flex: 0 0 14px;
  display: inline-block;
  vertical-align: -2px;
  margin-right: 0.25rem;
}

/* --- Breadcrumb --- */
.ga-breadcrumb {
  padding: 0.75rem 0;
  font-size: 0.875rem;
  color: var(--ga-text-muted, #9aa3b8);
}
.ga-breadcrumb a { text-decoration: none; }

/* --- Page hero / glass cards (final visual — no late mutation) --- */
.ga-page-hero { padding: 1.25rem 0 0.5rem; }
.ga-page-hero h1 {
  margin: 0 0 0.5rem;
  font-size: clamp(1.75rem, 4vw, 2.25rem);
  line-height: 1.2;
}
.ga-section { padding: 3.5rem 0; }
.ga-glass-card {
  background: rgba(18, 24, 42, 0.92);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 14px;
  padding: 1.5rem;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.45);
  line-height: 1.6;
}
.ga-glass-card > h2,
.ga-glass-card > .h4 {
  margin-top: 0;
  margin-bottom: 0.75rem;
  line-height: 1.3;
}
.ga-glass-card p {
  margin-top: 0;
  margin-bottom: 0.75rem;
  line-height: 1.6;
}
.ga-glass-card p:last-child { margin-bottom: 0; }

/* --- Buttons / links --- */
.ga-btn-primary,
.ga-btn-secondary,
.ga-btn-link,
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  font-weight: 600;
  line-height: 1.25;
  text-decoration: none;
  border-radius: 999px;
  cursor: pointer;
  border: 1px solid transparent;
  vertical-align: middle;
}
.ga-btn-primary,
.btn.ga-btn-primary {
  min-height: 40px;
  padding: 0.5rem 1.1rem;
  color: #0a0e1a;
  background: linear-gradient(135deg, #f5d76e, #d4af37, #b8860b);
  border: none;
}
.ga-btn-primary.btn-sm,
.btn-sm.ga-btn-primary {
  min-height: 34px;
  padding: 0.35rem 0.85rem;
  font-size: 0.875rem;
}
.ga-btn-secondary {
  min-height: 40px;
  padding: 0.5rem 1.1rem;
  color: #e8ecf4;
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.2);
}
.ga-btn-link,
.btn-link {
  background: none;
  border: none;
  color: #00d4ff;
  padding: 0;
  min-height: auto;
  border-radius: 0;
  text-decoration: underline;
}
.btn-close {
  width: 1em;
  height: 1em;
  padding: 0.25em;
  background: transparent;
  border: 0;
  opacity: 0.8;
  cursor: pointer;
}
.ga-chrome-icon {
  width: 16px;
  height: 16px;
  flex: 0 0 16px;
  display: inline-block;
  vertical-align: -2px;
}
.ga-chrome-icon--lg {
  width: 22px;
  height: 22px;
  flex: 0 0 22px;
}

/* --- Footer (final layout; matches premium shell, no late Bootstrap CSS) --- */
.ga-footer {
  background: rgba(0, 0, 0, 0.6);
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  padding: 3rem 0 1.5rem;
  margin-top: 3rem;
}
.ga-footer ul { list-style: none; padding: 0; margin: 0; }
.ga-footer li { margin: 0 0 0.5rem; }
.ga-footer a {
  color: var(--ga-text-muted, #9aa3b8);
  text-decoration: none;
  font-size: 0.9rem;
}
.ga-footer a:hover { color: #f5d76e; }
.ga-footer .btn-link,
.ga-footer button.btn-link {
  color: var(--ga-text-muted, #9aa3b8);
  font-size: 0.9rem;
  text-align: left;
  padding: 0;
  text-decoration: none;
}
.ga-footer .btn-link:hover { color: #f5d76e; }
.ga-footer-label {
  color: #f5d76e;
  font-weight: 700;
  margin: 0 0 1rem;
  font-size: 0.9rem;
  border-bottom: 2px solid #7c3aed;
  padding-bottom: 0.5rem;
  display: inline-block;
  letter-spacing: 0.02em;
}
.ga-compliance {
  margin-top: 2rem;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  font-size: 0.75rem;
  color: var(--ga-text-muted, #9aa3b8);
}
.ga-footer .ga-capture-form-wrap { margin-top: 1rem; max-width: 100%; }
.ga-footer .ga-capture-form {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  max-width: 100%;
  margin: 0;
}
.ga-footer .ga-capture-form input {
  flex: 1 1 10rem;
  min-width: 0;
  padding: 0.65rem 0.9rem;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(0, 0, 0, 0.4);
  color: #e8ecf4;
}

/* --- Mobile action bar (final geometry) --- */
body.ga-has-mobile-bar {
  padding-bottom: calc(62px + env(safe-area-inset-bottom, 0px));
}
#ga-mobile-bar {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 40;
  height: calc(62px + env(safe-area-inset-bottom, 0px));
  padding-bottom: env(safe-area-inset-bottom, 0);
  display: flex;
  align-items: stretch;
  background: rgba(5, 5, 8, 0.96);
  border-top: 1px solid rgba(255, 255, 255, 0.12);
}
#ga-mobile-bar a,
#ga-mobile-bar button {
  flex: 1 1 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.15rem;
  min-width: 0;
  border: 0;
  background: transparent;
  color: #e8ecf4;
  font-size: 0.7rem;
  text-decoration: none;
  cursor: pointer;
  padding: 0.35rem 0.25rem;
}
#ga-mobile-bar .ga-chrome-icon {
  width: 18px;
  height: 18px;
  flex: 0 0 18px;
}
@media (min-width: 992px) {
  #ga-mobile-bar { display: none !important; }
  body.ga-has-mobile-bar { padding-bottom: 0; }
}

/* Chatbot widget launcher — reserve fixed footprint before widget.js hydrates. */
#gr-chat-launcher {
  position: fixed !important;
  right: 20px !important;
  bottom: 20px !important;
  width: 62px !important;
  height: 62px !important;
  max-width: 62px;
  max-height: 62px;
  box-sizing: border-box;
  z-index: 9999;
  display: flex !important;
}
@media (max-width: 768px) {
  #gr-chat-launcher {
    bottom: calc(72px + env(safe-area-inset-bottom, 0px)) !important;
    right: 14px !important;
  }
}

/* --- Consent banner (layout-critical; available before banner can render) --- */
#ga-consent-banner.ga-consent-banner {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 1050;
  margin: 0;
  padding: 1rem 1.25rem calc(1rem + env(safe-area-inset-bottom, 0px));
  background: rgba(10, 14, 26, 0.98);
  border-top: 1px solid rgba(255, 255, 255, 0.15);
  color: #e8ecf4;
  box-shadow: 0 -8px 32px rgba(0, 0, 0, 0.45);
}
#ga-consent-banner.ga-consent-banner p {
  margin: 0 0 0.75rem;
  font-size: 0.9rem;
  line-height: 1.45;
  max-width: 52rem;
}
.ga-consent-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  align-items: center;
}
.ga-consent-overlay {
  position: fixed;
  inset: 0;
  z-index: 1060;
  background: rgba(0, 0, 0, 0.55);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}
.ga-consent-dialog {
  background: #12182a;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 14px;
  padding: 1.25rem;
  max-width: 28rem;
  width: 100%;
  color: #e8ecf4;
}
.ga-consent-fieldset {
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 8px;
  padding: 0.75rem 1rem;
  margin: 1rem 0;
}

/* --- Modal shell (wheel) — geometry stable without bootstrap.min.css --- */
.modal { display: none; position: fixed; inset: 0; z-index: 1080; }
.modal.show { display: block; }
.modal-dialog {
  position: relative;
  width: auto;
  max-width: 500px;
  margin: 1.75rem auto;
  pointer-events: none;
}
.modal-dialog-centered {
  display: flex;
  align-items: center;
  min-height: calc(100% - 3.5rem);
}
.modal-content {
  pointer-events: auto;
  background: #12182a;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 14px;
  color: #e8ecf4;
}
.modal-header,
.modal-body { padding: 1rem 1.25rem; }
.modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}
.modal-title { margin: 0; font-size: 1.15rem; }
.border-0 { border: 0 !important; }
.fade { opacity: 1; }
.modal-backdrop { display: none; }
