/*
 * Thompson Design-Build — standalone navigation styles
 * Pairs with site.js. Uses the site's existing theme variables.
 * Visibility is toggled with `display` because the export forces
 * opacity/visibility to visible !important globally.
 */

/* ===== Header logo size ===== */
.tb-logo {
  height: 52px;
  max-width: 240px;
  width: auto;
}
@media (min-width: 1024px) {
  .tb-logo {
    height: 76px;
    max-width: 320px;
  }
}

/* ===== Desktop "Services" dropdown ===== */
.tb-has-dropdown { position: relative; }

.tb-dropdown {
  display: none;
  position: absolute;
  top: calc(100% + 16px);
  left: 50%;
  transform: translateX(-50%);
  min-width: 250px;
  background: var(--color-background);
  border: 1px solid var(--color-border);
  border-radius: 8px;
  box-shadow: 0 18px 44px -14px rgba(28, 46, 26, 0.28);
  padding: 8px;
  z-index: 60;
}
.tb-has-dropdown.is-open .tb-dropdown { display: block; }

.tb-dropdown a {
  display: block;
  padding: 11px 14px;
  font-size: 13px;
  font-weight: 500;
  color: var(--color-foreground);
  text-decoration: none;
  border-radius: 6px;
  white-space: nowrap;
}
.tb-dropdown a:hover {
  background: var(--color-cream);
  color: var(--color-accent);
}

.tb-has-dropdown.is-open svg.lucide-chevron-down { transform: rotate(180deg); }

/* ===== Mobile menu ===== */
.tb-backdrop {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(28, 46, 26, 0.45);
  z-index: 90;
}

.tb-mobile {
  display: none;
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  width: min(86vw, 360px);
  background: var(--color-background);
  z-index: 100;
  box-shadow: -16px 0 48px -16px rgba(28, 46, 26, 0.4);
  padding: 22px;
  overflow-y: auto;
  flex-direction: column;
}

body.tb-menu-open { overflow: hidden; }
body.tb-menu-open .tb-backdrop { display: block; }
body.tb-menu-open .tb-mobile { display: flex; }

.tb-mobile-close {
  align-self: flex-end;
  background: none;
  border: none;
  cursor: pointer;
  font-size: 34px;
  line-height: 1;
  color: var(--color-foreground);
  padding: 0 4px;
  margin-bottom: 6px;
}

.tb-mobile-inner {
  display: flex;
  flex-direction: column;
}

.tb-mobile-heading {
  font-size: 10px;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  font-weight: 600;
  color: var(--color-muted);
  margin: 6px 0 4px;
}

.tb-mobile-sublink {
  font-size: 15px;
  color: var(--color-foreground);
  text-decoration: none;
  padding: 9px 0 9px 12px;
  border-left: 2px solid var(--color-border);
}
.tb-mobile-sublink:hover {
  color: var(--color-accent);
  border-left-color: var(--color-accent);
}

.tb-mobile-link {
  font-size: 12px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  font-weight: 600;
  color: var(--color-foreground);
  text-decoration: none;
  padding: 15px 0;
  border-top: 1px solid var(--color-border);
}
.tb-mobile-link:first-of-type { margin-top: 18px; }
.tb-mobile-link:hover { color: var(--color-accent); }

.tb-mobile-cta {
  margin-top: 22px;
  text-align: center;
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  font-weight: 600;
  text-decoration: none;
  background: var(--color-ink);
  color: var(--color-ink-foreground);
  padding: 15px 18px;
  border-radius: 6px;
}
.tb-mobile-cta:hover { background: var(--color-accent); }

/* Never show the mobile menu on desktop, even after a resize. */
@media (min-width: 1024px) {
  .tb-backdrop,
  .tb-mobile { display: none !important; }
}

/* ===== Process page: "Everything you get" checklist ===== */
.tb-checklist { list-style: none; margin: 0; padding: 0; }
.tb-checklist li {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  padding: 14px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.15);
}
.tb-check {
  flex: 0 0 auto;
  margin-top: 2px;
  width: 24px;
  height: 24px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 9999px;
  background: var(--color-accent);
  color: #fff;
}
.tb-check svg { display: block; }
.tb-get-title { font-weight: 600; color: #fff; line-height: 1.3; margin: 0; }
.tb-get-body { color: rgba(255, 255, 255, 0.6); font-size: 0.875rem; line-height: 1.5; margin: 4px 0 0; }

/* ===== Process page: benefit bullets ("Why design-build?") ===== */
.tb-benefits { list-style: none; margin: 0; padding: 0; display: grid; gap: 18px; }
.tb-benefits li { display: flex; gap: 14px; align-items: flex-start; }
.tb-benefit-title { font-weight: 600; color: var(--color-foreground); margin: 0; line-height: 1.3; }
.tb-benefit-body { color: rgba(28, 46, 26, 0.65); font-size: 0.95rem; line-height: 1.5; margin: 3px 0 0; }

/* ===== Process page: FAQ accordion ===== */
.tb-faq { max-width: 760px; margin: 0 auto; }
.tb-faq details { border-top: 1px solid rgba(28, 46, 26, 0.15); }
.tb-faq details:last-child { border-bottom: 1px solid rgba(28, 46, 26, 0.15); }
.tb-faq summary {
  list-style: none;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding: 20px 0;
  font-weight: 600;
  font-size: 1.05rem;
  color: var(--color-foreground);
}
.tb-faq summary::-webkit-details-marker { display: none; }
.tb-faq summary::after {
  content: "+";
  font-size: 1.5rem;
  line-height: 1;
  color: var(--color-accent);
  flex: 0 0 auto;
}
.tb-faq details[open] summary::after { content: "\2212"; }
.tb-faq-a { color: rgba(28, 46, 26, 0.7); line-height: 1.6; margin: 0; padding: 0 0 20px; }

/* ===== Light CTA button (for the accent-green final CTA band) ===== */
.tb-btn-light {
  display: inline-flex;
  align-items: center;
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  font-weight: 600;
  padding: 14px 32px;
  border-radius: 6px;
  text-decoration: none;
  background: #fff;
  color: var(--color-ink);
  transition: background-color 0.3s;
}
.tb-btn-light:hover { background: rgba(255, 255, 255, 0.88); }

/* ===== Process page: merged design price card ===== */
.tb-pricecard {
  background: #fff;
  color: var(--color-foreground);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 24px 60px -24px rgba(0, 0, 0, 0.55);
}
.tb-pricecard-head { padding: 26px 26px 6px; }
.tb-pricecard-label {
  font-size: 10px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  font-weight: 600;
  color: var(--color-muted);
  margin: 0 0 14px;
}
.tb-price-includes { list-style: none; margin: 0; padding: 0; display: grid; gap: 11px; }
.tb-price-includes li { display: flex; gap: 10px; align-items: center; font-size: 0.9rem; color: rgba(28, 46, 26, 0.82); }
.tb-price-includes .tb-check { width: 20px; height: 20px; }
.tb-pricecard-prices {
  border-top: 1px solid rgba(28, 46, 26, 0.1);
  margin-top: 18px;
  padding: 4px 26px;
}
.tb-price-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 16px;
  padding: 13px 0;
  border-bottom: 1px solid rgba(28, 46, 26, 0.08);
  font-size: 0.95rem;
}
.tb-price-row:last-child { border-bottom: none; }
.tb-price-sub { display: block; font-size: 0.78rem; color: rgba(28, 46, 26, 0.5); }
.tb-price { font-weight: 700; color: var(--color-accent); white-space: nowrap; font-size: 1.05rem; }
.tb-price-note { margin: 0; padding: 6px 26px 0; font-size: 0.8rem; font-weight: 600; color: var(--color-accent); }
.tb-card-cta {
  display: block;
  margin: 20px 26px 26px;
  text-align: center;
  background: var(--color-ink);
  color: #fff;
  padding: 14px;
  border-radius: 8px;
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  font-weight: 600;
  text-decoration: none;
  transition: background-color 0.3s;
}
.tb-card-cta:hover { background: var(--color-accent); }
/* Narrower price card on tablet/desktop; full-width on mobile */
@media (min-width: 768px) {
  .tb-pricecard { max-width: 480px; margin-left: auto; margin-right: auto; }
}

/* ===== Long-form / legal text (privacy policy) ===== */
.tb-prose h2 { font-family: var(--font-display); font-weight: 300; font-size: 1.6rem; color: var(--color-foreground); margin: 2.2rem 0 0.8rem; }
.tb-prose p, .tb-prose li { color: rgba(28, 46, 26, 0.78); line-height: 1.7; margin: 0 0 1rem; }
.tb-prose ul { padding-left: 1.2rem; margin: 0 0 1rem; list-style: disc; }
.tb-prose a { color: var(--color-accent); text-decoration: underline; }
.tb-prose strong { color: var(--color-foreground); font-weight: 600; }