/* Shared marketing-site footer. Markup lives in src/partials/_footer.html. */
.site-footer {
  margin-top: auto;
  background: var(--ink);
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  color: rgba(255, 255, 255, 0.6);
  padding: 4rem 0 2rem;
  font-size: 0.9rem;
}

/* Its own grid, so the footer needs nothing from Bootstrap: the brand, then
   one column for each menu the navbar has, in the same order. */
.site-footer-inner {
  width: min(1200px, calc(100% - 96px));
  margin-inline: auto;
}

.site-footer-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) repeat(6, minmax(0, 1fr));
  gap: 2.5rem 1.75rem;
}

/* Seven columns from 1200px; four between, the about column across. */
@media (max-width: 1199.98px) and (min-width: 992px) {
  .site-footer-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .site-footer-about { grid-column: 1 / -1; }
}

/* Column headings are h2s for a sound page outline, styled as small labels.
   Two classes outrank the page-scoped h2 rules (.rail-home h2, etc.). */
.site-footer .site-footer-heading {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  line-height: 1.6;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  text-wrap: wrap;
  color: rgba(255, 255, 255, 0.5);
  margin: 0 0 1rem;
  font-weight: 500;
}

.site-footer ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.site-footer li {
  margin-bottom: 0.6rem;
}

.site-footer a {
  color: rgba(255, 255, 255, 0.75);
  text-decoration: none;
  transition: color var(--t-fast) var(--ease-out);
}

/* A link's row is at least 24px tall, the smallest target a finger can hit. */
.site-footer li a {
  display: inline-block;
  padding: 2px 0;
}

.site-footer .site-footer-social {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  margin-left: -12px;
  font-size: 1.1rem;
}

.site-footer .footer-built {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  letter-spacing: 0.08em;
}

.site-footer .footer-built i {
  color: var(--bitcoin-orange);
}

.site-footer a:hover {
  color: var(--bitcoin-orange);
}

.site-footer .footer-bottom {
  margin-top: 3rem;
  padding-top: 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  align-items: center;
  justify-content: space-between;
  color: rgba(255, 255, 255, 0.55);   /* 0.45 read at 4.48:1, under AA */
  font-size: 0.85rem;
}

.site-footer .footer-brand {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  margin-bottom: 1rem;
}

.site-footer .footer-brand img {
  height: 22px;
  width: auto;
}

.site-footer .footer-tagline {
  max-width: 280px;
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.85rem;
  line-height: 1.6;
  margin-bottom: 0.75rem;
}

@media (max-width: 991.98px) {
  .site-footer-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .site-footer-about { grid-column: 1 / -1; }
}

@media (max-width: 700px) {
  .site-footer-inner { width: calc(100% - 40px); }
  .site-footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 2rem 1.25rem; }
  .site-footer .footer-bottom { margin-top: 2rem; }
}

/* The inquiry form's dialog (partials/_inquiry_modal.html), on every layout
   like the footer, in the site's own design rather than Bootstrap's: a dark
   panel with a hairline, labels in the mono face, fields 44px tall, one gold
   button. The id outranks home.css's and Bootstrap's modal rules on every
   layout. It drops below the sticky navbar where there is room; on a phone
   that drop would push the Send button below the fold. */
@media (min-width: 768px) {
  .inquiry-dialog { margin-top: 120px; }
}

#inquiryModal .modal-dialog { max-width: 640px; }
#inquiryModal .modal-content {
  border: 1px solid #2f3028;
  border-radius: 14px;
  background: #11110f;
  color: #ecebe4;
  box-shadow: 0 40px 120px rgba(0, 0, 0, 0.6);
}
#inquiryModal .modal-header { padding: 24px 28px 0; border: 0; background: none; }
#inquiryModal .modal-title { color: #f6f5ef; font-size: 1.375rem !important; font-weight: 500; letter-spacing: -0.02em; }
#inquiryModal .modal-title .bi { color: var(--bitcoin-orange); font-size: 1.125rem; }
#inquiryModal .modal-body { padding: 10px 28px 4px !important; }
#inquiryModal .modal-body .text-muted { color: #a9aa9c !important; font-size: 0.9375rem; line-height: 1.6; }
#inquiryModal .form-label {
  margin-bottom: 6px;
  color: #a9aa9c;
  font: 500 0.6875rem/1.4 var(--font-mono);
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
#inquiryModal .form-label .text-danger { color: var(--bitcoin-orange) !important; }
#inquiryModal .form-control,
#inquiryModal .form-select {
  min-height: 44px;
  padding: 10px 13px;
  border: 1px solid #36382d;
  border-radius: 8px;
  background-color: #0a0a09;
  color: #f6f5ef;
  font-size: 0.9375rem;
}
#inquiryModal .form-select {
  --bs-form-select-bg-img: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3e%3cpath fill='none' stroke='%23c9c8bd' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='m2 5 6 6 6-6'/%3e%3c/svg%3e");
  background-image: var(--bs-form-select-bg-img);
}
#inquiryModal .form-select option { background: #11110f; color: #f6f5ef; }
#inquiryModal .form-control::placeholder { color: #8a8c7e; opacity: 1; }
#inquiryModal .form-control:focus,
#inquiryModal .form-select:focus {
  border-color: var(--bitcoin-orange);
  box-shadow: 0 0 0 3px rgba(232, 181, 60, 0.18);
}
#inquiryModal .form-text { color: #8f9184; }
#inquiryModal .alert-danger {
  border: 1px dashed var(--bitcoin-orange-dark);
  border-radius: 8px;
  background: rgba(232, 181, 60, 0.08);
  color: #f6f5ef;
}
#inquiryModal .modal-footer { padding: 16px 28px 26px; border: 0; }
#inquiryModal .modal-footer .btn {
  min-height: 44px;
  padding: 0 18px;
  border-radius: 8px;
  font-size: 0.9375rem;
  font-weight: 500;
}
#inquiryModal .modal-footer .btn-outline-secondary { border-color: transparent; background: none; color: #c9c8bd; }
#inquiryModal .modal-footer .btn-outline-secondary:hover { color: #fff; }
#inquiryModal .modal-footer .btn-bitcoin {
  border: 1px solid var(--bitcoin-orange);
  background: var(--bitcoin-orange);
  color: #0b0b0a;
}
#inquiryModal .modal-footer .btn-bitcoin:hover { border-color: #f0c14d; background: #f0c14d; }
#inquiryModal .inquiry-sent-mark { color: var(--bitcoin-orange); font-size: 3rem; }
#inquiryModal #inquirySuccess h2 { color: #f6f5ef; }

@media (max-width: 575.98px) {
  #inquiryModal .modal-header { padding: 20px 20px 0; }
  #inquiryModal .modal-body { padding: 8px 20px 4px !important; }
  #inquiryModal .modal-footer { padding: 14px 20px 22px; }
}

/* The analytics question (partials/_consent.html), on every layout. Its two
   answers are the same size and neither is gold: refusing is as easy as
   allowing. While it waits, the phone's sticky sign-up bar stays away. */
.site-footer .site-footer-button {
  padding: 2px 0;
  border: 0;
  background: none;
  color: rgba(255, 255, 255, 0.75);
  font: inherit;
  text-align: left;
  cursor: pointer;
  transition: color var(--t-fast) var(--ease-out);
}

.site-footer .site-footer-button:hover { color: var(--bitcoin-orange); }

.sr-consent {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 1045;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px 28px;
  padding: 12px 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(14, 14, 13, 0.97);
  color: rgba(255, 255, 255, 0.84);
  font-size: 0.875rem;
  line-height: 1.5;
}

.sr-consent[hidden] { display: none; }
.sr-consent p { margin: 0; }
.sr-consent a { color: var(--bitcoin-orange); text-underline-offset: 3px; }
.sr-consent-actions { display: flex; flex: none; gap: 10px; }

.sr-consent button {
  min-width: 112px;
  min-height: 40px;
  padding: 6px 16px;
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 10px;
  background: transparent;
  color: #fff;
  font: inherit;
  font-weight: 600;
  cursor: pointer;
}

.sr-consent button:hover { border-color: var(--bitcoin-orange); color: var(--bitcoin-orange); }
.sr-consent button:focus-visible { outline: 2px solid var(--bitcoin-orange); outline-offset: 2px; }

.sr-consent-pending .rail-sticky,
.sr-consent-pending #stickyCta { display: none !important; }

@media (max-width: 700px) {
  .sr-consent { flex-direction: column; align-items: stretch; padding: 14px 16px 16px; }
  .sr-consent-actions button { flex: 1 1 0; min-height: 44px; }
}
