/*
Theme Name:   Throw Back Technologies
Theme URI:    https://throwbacktechnologies.com
Description:  TBT Child Theme for Greenshift — People-First Payment Processing
Author:       Throw Back Technologies
Author URI:   https://throwbacktechnologies.com
Template:     greenshift
Version:      1.0.0
License:      GNU General Public License v2 or later
License URI:  http://www.gnu.org/licenses/gpl-2.0.html
Text Domain:  tbt-child
*/

/* ============================================================
   DESIGN TOKENS — mirrors theme.json for non-FSE contexts
============================================================ */
:root {
  /* Purple brand ramp */
  --tbt-purple:         #3B0764;
  --tbt-purple-dark:    #260447;
  --tbt-purple-ink:     #150230;
  --tbt-purple-mid:     #520A8C;
  --tbt-purple-light:   #6B1DB5;
  --tbt-purple-mist:    rgba(59,7,100,0.15);

  /* Brass / Gold accent */
  --tbt-brass:          #C9A84C;
  --tbt-brass-light:    #E2C97E;
  --tbt-brass-dark:     #9E7D2E;
  --tbt-brass-glow:     rgba(201,168,76,0.12);

  /* Neutrals */
  --tbt-cream:          #F5F0E8;
  --tbt-cream-mid:      #DDD5C8;
  --tbt-muted:          #8B7FA0;
  --tbt-white:          #FFFFFF;

  /* Surfaces & Borders */
  --tbt-surface:        #2A0550;
  --tbt-surface-raised: #350666;
  --tbt-border:         #4E1580;
  --tbt-border-strong:  #6B2BAA;

  /* Utility */
  --tbt-teal:           #0D7070;
  --tbt-teal-light:     #18A0A0;
  --tbt-danger:         #C0392B;

  /* Typography */
  --tbt-font-heading:   'Zilla Slab', Georgia, serif;
  --tbt-font-body:      'DM Sans', system-ui, sans-serif;
  --tbt-font-mono:      'DM Mono', monospace;

  /* Spacing */
  --tbt-sp-1:  0.25rem;
  --tbt-sp-2:  0.5rem;
  --tbt-sp-3:  0.75rem;
  --tbt-sp-4:  1rem;
  --tbt-sp-6:  1.5rem;
  --tbt-sp-8:  2rem;
  --tbt-sp-12: 3rem;
  --tbt-sp-16: 4rem;
  --tbt-sp-24: 6rem;
  --tbt-sp-32: 8rem;

  /* Radii */
  --tbt-r-sm:   2px;
  --tbt-r-md:   4px;
  --tbt-r-lg:   8px;
  --tbt-r-xl:   12px;
  --tbt-r-full: 9999px;

  /* Shadows */
  --tbt-shadow-sm:    0 1px 4px rgba(21,2,48,0.5);
  --tbt-shadow-md:    0 4px 16px rgba(21,2,48,0.6);
  --tbt-shadow-lg:    0 8px 40px rgba(21,2,48,0.7);
  --tbt-shadow-brass: 0 0 0 2px var(--tbt-brass);
  --tbt-shadow-card:  0 2px 12px rgba(21,2,48,0.6), 0 0 0 1px var(--tbt-border);

  /* Transitions */
  --tbt-ease:  0.2s ease;
  --tbt-ease-fast: 0.15s ease;
}


/* ============================================================
   GLOBAL BASE
============================================================ */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--tbt-font-body);
  background-color: var(--tbt-purple-ink);
  color: var(--tbt-cream);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Container */
.tbt-container {
  width: 100%;
  max-width: 1280px;
  margin-inline: auto;
  padding-inline: var(--tbt-sp-8);
}
.tbt-container--narrow {
  max-width: 760px;
}
.tbt-container--wide {
  max-width: 1440px;
}


/* ============================================================
   BLOCK LAYOUT RESETS
   Scoped to .tbt-main so they never touch the site header.
   Child theme.json zeros core/group padding.  These rules
   handle WP / Greenshift FSE layout interference.
============================================================ */

/* Main content area: force normal vertical block flow.
   Greenshift FSE and wp:post-content can add flex layout. */
.tbt-main {
  display: block !important;
}
.tbt-main > * {
  display: block;
  width: 100%;
}
/* Catch any FSE post-content wrapper that may still appear */
.tbt-main .wp-block-post-content,
.tbt-main .entry-content {
  display: block !important;
}
.tbt-main .wp-block-post-content > *,
.tbt-main .entry-content > * {
  display: block;
  width: 100%;
}

/* Constrained layout: WP sets max-width 760px + margin:auto
   on children of .is-layout-constrained.  Remove inside TBT
   block sections so .tbt-container handles width instead. */
.tbt-main :where(.is-layout-constrained) > * {
  max-width: none !important;
  margin-left: unset !important;
  margin-right: unset !important;
}

/* Block-gap: WP adds margin-top between sibling blocks. */
.tbt-main .is-layout-flow > * + *,
.tbt-main .is-layout-constrained > * + * {
  margin-block-start: 0 !important;
}

/* Force TBT grid displays — WP layout classes can override
   display to flex/block on wp-block-group elements. */
.tbt-cards-grid   { display: grid !important; }
.tbt-pillars-grid { display: grid !important; }
.tbt-two-col      { display: grid !important; }

/* Re-apply TBT container centering after the reset above */
.tbt-main .tbt-container {
  max-width: 1280px;
  margin-inline: auto;
}
/* Re-apply TBT section-header centering */
.tbt-main .tbt-section-header {
  max-width: 560px;
  margin-inline: auto;
}
/* Re-apply TBT CTA band centering */
.tbt-main .tbt-cta-band__inner {
  max-width: 640px;
  margin-inline: auto;
}


/* ============================================================
   TYPOGRAPHY
============================================================ */
h1, h2, h3, h5 {
  font-family: var(--tbt-font-heading);
  line-height: 1.1;
  color: var(--tbt-white);
}

h4 {
  font-family: var(--tbt-font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--tbt-brass);
  font-weight: 500;
}

h1 { font-size: clamp(2.5rem, 5.5vw, 4rem); font-weight: 700; letter-spacing: -0.02em; }
h2 { font-size: clamp(1.75rem, 3.5vw, 2.25rem); font-weight: 700; letter-spacing: -0.01em; }
h3 { font-size: 1.5rem; font-weight: 600; }

p {
  font-family: var(--tbt-font-body);
  color: var(--tbt-cream-mid);
  line-height: 1.65;
}

a {
  color: var(--tbt-brass);
  text-decoration: none;
  transition: color var(--tbt-ease);
}
a:hover {
  color: var(--tbt-brass-light);
}

strong { color: var(--tbt-cream); }

/* Eyebrow / label text */
.tbt-eyebrow {
  font-family: var(--tbt-font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--tbt-brass);
  display: flex;
  align-items: center;
  gap: var(--tbt-sp-3);
}
.tbt-eyebrow::before {
  content: '';
  width: 24px;
  height: 2px;
  background: var(--tbt-brass);
  flex-shrink: 0;
}


/* ============================================================
   SITE HEADER — frosted glass
============================================================ */
.tbt-site-header {
  position: sticky;
  top: 0;
  z-index: 9999;
  background: rgba(21, 2, 48, 0.72);
  backdrop-filter: blur(20px) saturate(1.4);
  -webkit-backdrop-filter: blur(20px) saturate(1.4);
  border-bottom: 1px solid rgba(78, 21, 128, 0.45);
}
.admin-bar .tbt-site-header { top: 32px; }
@media screen and (max-width: 782px) {
  .admin-bar .tbt-site-header { top: 46px; }
}

.tbt-header-inner {
  display: flex;
  align-items: center;
  gap: 2.5rem;
  padding-block: 1rem;
  min-height: 72px;
}

/* ---- Logo ---- */
.tbt-logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
  flex-shrink: 0;
}
.tbt-logo img,
.tbt-logo .custom-logo { height: 40px !important; width: auto !important; max-width: 180px !important; }
.tbt-logo-name {
  font-family: var(--tbt-font-heading);
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--tbt-white);
  line-height: 1.1;
  letter-spacing: 0.01em;
}

/* ---- Primary Nav ---- */
.tbt-nav {
  flex: 1;
  display: flex;
  justify-content: flex-end;
}
.tbt-nav__list {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  list-style: none;
  margin: 0;
  padding: 0;
}
.tbt-nav__item { position: relative; }
.tbt-nav__item > a {
  font-family: var(--tbt-font-body);
  font-size: 0.825rem;
  font-weight: 500;
  color: rgba(245, 240, 232, 0.7);
  letter-spacing: 0.01em;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  padding: 0.45rem 0.85rem;
  border-radius: var(--tbt-r-full);
  position: relative;
  transition: color 0.2s ease, background 0.2s ease;
  white-space: nowrap;
}
.tbt-nav__item > a:hover {
  color: var(--tbt-white);
  background: rgba(245, 240, 232, 0.08);
}
.tbt-nav__chevron {
  opacity: 0.5;
  transition: transform 0.2s ease, opacity 0.2s ease;
}
.tbt-nav__item--has-sub:hover .tbt-nav__chevron,
.tbt-nav__item--has-sub.is-open .tbt-nav__chevron {
  transform: rotate(180deg);
  opacity: 0.8;
}
.tbt-nav__mobile-cta { display: none; }

/* ---- Mega dropdown ---- */
.tbt-mega {
  position: absolute;
  top: calc(100% + 0.5rem);
  left: 50%;
  transform: translateX(-50%);
  width: 440px;
  background: rgba(21, 2, 48, 0.92);
  backdrop-filter: blur(24px) saturate(1.4);
  -webkit-backdrop-filter: blur(24px) saturate(1.4);
  border: 1px solid rgba(78, 21, 128, 0.5);
  border-radius: 16px;
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.4), 0 0 0 1px rgba(107, 29, 181, 0.1);
  padding: 0.5rem;
  opacity: 0;
  visibility: hidden;
  transform: translateX(-50%) translateY(6px);
  transition: opacity 0.2s ease, visibility 0.2s ease, transform 0.2s ease;
  pointer-events: none;
}
.tbt-mega::before {
  content: '';
  position: absolute;
  top: -0.5rem; left: 0; right: 0;
  height: 0.5rem;
}
.tbt-nav__item--has-sub:hover .tbt-mega,
.tbt-nav__item--has-sub.is-open .tbt-mega {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
  pointer-events: auto;
}
.tbt-mega__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2px;
}
.tbt-mega__item {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  padding: 0.75rem 1rem;
  border-radius: 12px;
  text-decoration: none;
  transition: background 0.15s ease;
}
.tbt-mega__item:hover {
  background: rgba(245, 240, 232, 0.06);
}
.tbt-mega__item strong {
  font-family: var(--tbt-font-body);
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--tbt-white);
  transition: color 0.15s ease;
}
.tbt-mega__item:hover strong {
  color: var(--tbt-brass-light);
}
.tbt-mega__item span {
  font-size: 0.75rem;
  color: var(--tbt-muted);
  line-height: 1.4;
}

/* ---- Header CTA ---- */
.tbt-header-cta {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: var(--tbt-brass);
  color: var(--tbt-purple-ink) !important;
  padding: 0.6rem 1.5rem;
  border-radius: var(--tbt-r-full);
  font-family: var(--tbt-font-body);
  font-size: 0.825rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  text-decoration: none !important;
  transition: background 0.2s ease, transform 0.15s ease, box-shadow 0.2s ease;
  white-space: nowrap;
  flex-shrink: 0;
  box-shadow: 0 0 0 0 rgba(201, 168, 76, 0);
}
.tbt-header-cta:hover {
  background: var(--tbt-brass-light);
  transform: translateY(-1px);
  box-shadow: 0 4px 20px rgba(201, 168, 76, 0.25);
}

/* ---- Hamburger toggle ---- */
.tbt-menu-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  background: transparent;
  border: 1px solid rgba(107, 43, 170, 0.5);
  border-radius: var(--tbt-r-lg);
  padding: 10px 8px;
  cursor: pointer;
  transition: background 0.2s ease, border-color 0.2s ease;
}
.tbt-menu-toggle:hover {
  background: rgba(245, 240, 232, 0.06);
  border-color: rgba(107, 43, 170, 0.8);
}
.tbt-menu-toggle__bar {
  display: block;
  width: 100%;
  height: 2px;
  background: var(--tbt-cream);
  border-radius: 2px;
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.2s ease;
}
.tbt-menu-toggle.is-active .tbt-menu-toggle__bar:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
.tbt-menu-toggle.is-active .tbt-menu-toggle__bar:nth-child(2) {
  opacity: 0;
}
.tbt-menu-toggle.is-active .tbt-menu-toggle__bar:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}


/* ============================================================
   BUTTONS
============================================================ */
.tbt-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--tbt-sp-2);
  font-family: var(--tbt-font-body);
  font-weight: 700;
  font-size: 0.875rem;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  text-decoration: none;
  border: none;
  cursor: pointer;
  border-radius: var(--tbt-r-sm);
  padding: 12px var(--tbt-sp-8);
  transition: background var(--tbt-ease), transform var(--tbt-ease-fast), box-shadow var(--tbt-ease-fast), border-color var(--tbt-ease), color var(--tbt-ease);
  white-space: nowrap;
  line-height: 1;
}
.tbt-btn--lg {
  padding: 16px var(--tbt-sp-12);
  font-size: 1rem;
}
.tbt-btn--sm {
  padding: 8px var(--tbt-sp-4);
  font-size: 0.75rem;
}

/* Primary: Brass */
.tbt-btn--primary {
  background: var(--tbt-brass);
  color: var(--tbt-purple-ink);
  box-shadow: 0 2px 10px rgba(201,168,76,0.2);
}
.tbt-btn--primary:hover {
  background: var(--tbt-brass-light);
  color: var(--tbt-purple-ink);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(201,168,76,0.35);
}

/* Secondary: Purple */
.tbt-btn--secondary {
  background: var(--tbt-purple-mid);
  color: var(--tbt-white);
  border: 1px solid var(--tbt-purple-light);
}
.tbt-btn--secondary:hover {
  background: var(--tbt-purple-light);
  color: var(--tbt-white);
  transform: translateY(-2px);
  box-shadow: var(--tbt-shadow-md);
}

/* Outline: Brass border */
.tbt-btn--outline {
  background: transparent;
  color: var(--tbt-brass);
  border: 1px solid var(--tbt-brass-dark);
}
.tbt-btn--outline:hover {
  background: var(--tbt-brass-glow);
  color: var(--tbt-brass-light);
  border-color: var(--tbt-brass);
}

/* Ghost */
.tbt-btn--ghost {
  background: transparent;
  color: var(--tbt-cream-mid);
  border: 1px solid var(--tbt-border-strong);
}
.tbt-btn--ghost:hover {
  color: var(--tbt-cream);
  border-color: var(--tbt-cream);
}

/* Teal */
.tbt-btn--teal {
  background: var(--tbt-teal);
  color: var(--tbt-white);
}
.tbt-btn--teal:hover {
  background: var(--tbt-teal-light);
  color: var(--tbt-white);
  transform: translateY(-2px);
}


/* ============================================================
   CARDS
============================================================ */
.tbt-card {
  background: var(--tbt-surface);
  border: 1px solid var(--tbt-border);
  border-radius: var(--tbt-r-xl);
  padding: var(--tbt-sp-8);
  position: relative;
  overflow: hidden;
  transition: transform var(--tbt-ease), box-shadow var(--tbt-ease), border-color var(--tbt-ease);
}
.tbt-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--tbt-brass-dark), var(--tbt-brass));
  opacity: 0.4;
  transition: opacity var(--tbt-ease);
}
.tbt-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--tbt-shadow-lg);
  border-color: var(--tbt-border-strong);
}
.tbt-card:hover::before {
  opacity: 1;
}
.tbt-card__icon {
  width: 52px;
  height: 52px;
  background: var(--tbt-brass-glow);
  border: 1px solid var(--tbt-brass-dark);
  border-radius: var(--tbt-r-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  margin-bottom: var(--tbt-sp-6);
}
.tbt-card__title {
  font-family: var(--tbt-font-heading);
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--tbt-white);
  margin: 0 0 var(--tbt-sp-3);
}
.tbt-card__body {
  font-size: 0.875rem;
  color: var(--tbt-muted);
  line-height: 1.7;
  margin: 0 0 var(--tbt-sp-6);
}
.tbt-card__link {
  font-family: var(--tbt-font-mono);
  font-size: 0.75rem;
  color: var(--tbt-brass);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  display: inline-flex;
  align-items: center;
  gap: var(--tbt-sp-2);
  transition: gap var(--tbt-ease);
}
.tbt-card__link::after { content: '→'; }
.tbt-card:hover .tbt-card__link { gap: var(--tbt-sp-3); }


/* ============================================================
   BADGES
============================================================ */
.tbt-badge {
  display: inline-flex;
  align-items: center;
  font-family: var(--tbt-font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 3px 10px;
  border-radius: var(--tbt-r-full);
  font-weight: 500;
  border: 1px solid;
  white-space: nowrap;
}
.tbt-badge--brass   { background: var(--tbt-brass-glow);        color: var(--tbt-brass-light); border-color: var(--tbt-brass-dark); }
.tbt-badge--purple  { background: rgba(107,29,181,0.2);          color: #BF8FFF;                border-color: var(--tbt-purple-light); }
.tbt-badge--teal    { background: rgba(13,112,112,0.2);          color: var(--tbt-teal-light);  border-color: var(--tbt-teal); }
.tbt-badge--neutral { background: rgba(255,255,255,0.04);        color: var(--tbt-muted);       border-color: var(--tbt-border); }
.tbt-badge--danger  { background: rgba(192,57,43,0.15);          color: #E07060;                border-color: var(--tbt-danger); }


/* ============================================================
   SECTIONS — reusable wrappers
============================================================ */
.tbt-section {
  padding-block: var(--tbt-sp-24);
}
.tbt-section--sm { padding-block: var(--tbt-sp-16); }
.tbt-section--lg { padding-block: var(--tbt-sp-32); }

.tbt-section--ink    { background: var(--tbt-purple-ink); }
.tbt-section--purple { background: var(--tbt-purple); }
.tbt-section--surface { background: var(--tbt-surface); }
.tbt-section--dark   { background: #0D0118; }

.tbt-section-header {
  text-align: center;
  max-width: 560px;
  margin-inline: auto;
  margin-bottom: var(--tbt-sp-12);
}
.tbt-section-header h2 { margin-bottom: var(--tbt-sp-4); }
.tbt-section-header p  { font-size: 1.125rem; }

/* Dividers */
.tbt-divider {
  border: none;
  border-top: 1px solid var(--tbt-border);
  margin-block: var(--tbt-sp-8);
}
.tbt-divider--brass { border-color: var(--tbt-brass-dark); }


/* ============================================================
   HERO
============================================================ */
.tbt-hero {
  position: relative;
  overflow: hidden;
  background: var(--tbt-purple);
  padding-block: var(--tbt-sp-32);
}
.tbt-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 70% 70% at 80% 50%, rgba(107,29,181,0.4) 0%, transparent 65%),
    repeating-linear-gradient(90deg, transparent, transparent 80px, rgba(201,168,76,0.03) 80px, rgba(201,168,76,0.03) 81px),
    repeating-linear-gradient(0deg, transparent, transparent 80px, rgba(201,168,76,0.03) 80px, rgba(201,168,76,0.03) 81px);
  pointer-events: none;
}
/* Shield watermark */
.tbt-hero::after {
  content: '';
  position: absolute;
  right: -60px;
  top: 50%;
  transform: translateY(-50%);
  width: 500px;
  height: 570px;
  background: url("data:image/svg+xml,%3Csvg viewBox='0 0 100 115' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M50 3L6 22v34c0 29 19.5 54 44 60 24.5-6 44-31 44-60V22L50 3z' fill='none' stroke='rgba(201,168,76,0.07)' stroke-width='1.5'/%3E%3Cpath d='M50 12L14 28v28c0 24 16 45 36 50 20-5 36-26 36-50V28L50 12z' fill='rgba(201,168,76,0.03)'/%3E%3C/svg%3E") center/contain no-repeat;
  pointer-events: none;
}
.tbt-hero__inner {
  position: relative;
  z-index: 1;
  max-width: 680px;
}
.tbt-hero h1 {
  margin-block: var(--tbt-sp-4) var(--tbt-sp-6);
  color: var(--tbt-white);
}
.tbt-hero h1 em {
  font-style: italic;
  color: var(--tbt-brass);
}
.tbt-hero__sub {
  font-size: 1.2rem;
  color: var(--tbt-cream-mid);
  font-weight: 300;
  line-height: 1.6;
  margin-bottom: var(--tbt-sp-8);
}
.tbt-hero__actions {
  display: flex;
  gap: var(--tbt-sp-4);
  flex-wrap: wrap;
}


/* ============================================================
   STATS BAR
============================================================ */
.tbt-stats {
  background: var(--tbt-surface);
  border-bottom: 1px solid var(--tbt-border);
}
.tbt-stats__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--tbt-border);
}
.tbt-stat {
  background: var(--tbt-surface);
  padding: var(--tbt-sp-8);
  text-align: center;
  transition: background var(--tbt-ease);
}
.tbt-stat:hover {
  background: var(--tbt-surface-raised);
}
.tbt-stat__number {
  font-family: var(--tbt-font-heading);
  font-size: 2.25rem;
  font-weight: 700;
  color: var(--tbt-brass);
  line-height: 1;
  margin-bottom: var(--tbt-sp-2);
}
.tbt-stat__label {
  font-size: 0.875rem;
  color: var(--tbt-muted);
}


/* ============================================================
   PAGE HEADER (inner pages)
============================================================ */
.tbt-page-header {
  background: var(--tbt-purple);
  padding-block: var(--tbt-sp-16);
  border-bottom: 1px solid var(--tbt-purple-dark);
  position: relative;
  overflow: hidden;
}
.tbt-page-header::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 60% 80% at 90% 50%, rgba(107,29,181,0.35) 0%, transparent 65%);
  pointer-events: none;
}
.tbt-page-header__inner {
  position: relative;
  z-index: 1;
}
.tbt-page-header h1 {
  margin-bottom: var(--tbt-sp-3);
}
.tbt-page-header__sub {
  font-size: 1.125rem;
  color: var(--tbt-cream-mid);
  font-weight: 300;
}


/* ============================================================
   FORMS (FluentForms overrides)
============================================================ */
.ff-el-input--label label,
.ff-el-group label {
  font-family: var(--tbt-font-mono) !important;
  font-size: 0.7rem !important;
  letter-spacing: 0.1em !important;
  text-transform: uppercase !important;
  color: var(--tbt-muted) !important;
  margin-bottom: var(--tbt-sp-2) !important;
}
.ff-el-form-control,
.ff-el-form-control:not(.ff-el-form-check-input) {
  background: var(--tbt-surface) !important;
  border: 1px solid var(--tbt-border) !important;
  border-radius: var(--tbt-r-md) !important;
  color: var(--tbt-cream) !important;
  font-family: var(--tbt-font-body) !important;
  font-size: 1rem !important;
  padding: 10px var(--tbt-sp-4) !important;
  transition: border-color var(--tbt-ease), box-shadow var(--tbt-ease) !important;
}
.ff-el-form-control::placeholder {
  color: var(--tbt-border-strong) !important;
}
.ff-el-form-control:focus {
  border-color: var(--tbt-brass) !important;
  box-shadow: var(--tbt-shadow-brass) !important;
  outline: none !important;
}
.ff-btn-submit {
  background: var(--tbt-brass) !important;
  color: var(--tbt-purple-ink) !important;
  font-family: var(--tbt-font-body) !important;
  font-weight: 700 !important;
  font-size: 0.875rem !important;
  letter-spacing: 0.07em !important;
  text-transform: uppercase !important;
  border-radius: var(--tbt-r-sm) !important;
  border: none !important;
  padding: 12px var(--tbt-sp-8) !important;
  transition: background var(--tbt-ease), transform var(--tbt-ease-fast) !important;
}
.ff-btn-submit:hover {
  background: var(--tbt-brass-light) !important;
  transform: translateY(-2px) !important;
}

/* Native WP forms */
input[type="text"],
input[type="email"],
input[type="tel"],
input[type="url"],
input[type="password"],
input[type="search"],
input[type="number"],
textarea,
select {
  background: var(--tbt-surface);
  border: 1px solid var(--tbt-border);
  border-radius: var(--tbt-r-md);
  color: var(--tbt-cream);
  font-family: var(--tbt-font-body);
  font-size: 1rem;
  padding: 10px var(--tbt-sp-4);
  width: 100%;
  transition: border-color var(--tbt-ease), box-shadow var(--tbt-ease);
  -webkit-appearance: none;
}
input:focus,
textarea:focus,
select:focus {
  border-color: var(--tbt-brass);
  box-shadow: var(--tbt-shadow-brass);
  outline: none;
}
input::placeholder,
textarea::placeholder {
  color: var(--tbt-border-strong);
}
label {
  font-family: var(--tbt-font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--tbt-muted);
  display: block;
  margin-bottom: var(--tbt-sp-2);
}


/* ============================================================
   SITE FOOTER
============================================================ */
.tbt-site-footer {
  background: var(--tbt-purple-ink);
  border-top: 2px solid var(--tbt-purple-dark);
  padding-top: var(--tbt-sp-16);
  padding-bottom: var(--tbt-sp-8);
}
.tbt-footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: var(--tbt-sp-12);
  margin-bottom: var(--tbt-sp-12);
}
.tbt-footer-brand p {
  font-size: 0.875rem;
  color: var(--tbt-muted);
  margin-top: var(--tbt-sp-4);
  line-height: 1.75;
  max-width: 280px;
}
.tbt-footer-col h4 {
  margin-bottom: var(--tbt-sp-4);
}
.tbt-footer-col ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: var(--tbt-sp-3);
}
.tbt-footer-col a {
  font-size: 0.875rem;
  color: var(--tbt-muted);
  transition: color var(--tbt-ease);
}
.tbt-footer-col a:hover {
  color: var(--tbt-cream);
}
.tbt-footer-bottom {
  border-top: 1px solid var(--tbt-border);
  padding-top: var(--tbt-sp-6);
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: var(--tbt-sp-8);
  flex-wrap: wrap;
}
.tbt-footer-legal {
  font-size: 0.7rem;
  color: var(--tbt-border-strong);
  line-height: 1.7;
  max-width: 680px;
  font-family: var(--tbt-font-mono);
}
.tbt-footer-legal p { color: inherit; font-size: inherit; font-family: inherit; margin: 0; }
.tbt-footer-legal p + p { margin-top: var(--tbt-sp-2); }


/* ============================================================
   NOTICE / ALERT BLOCKS
============================================================ */
.tbt-notice {
  border-left: 3px solid;
  padding: var(--tbt-sp-4) var(--tbt-sp-6);
  border-radius: 0 var(--tbt-r-md) var(--tbt-r-md) 0;
  font-size: 0.875rem;
  line-height: 1.6;
  margin-bottom: var(--tbt-sp-4);
}
.tbt-notice--info  { border-color: var(--tbt-teal);   background: rgba(13,112,112,0.1); }
.tbt-notice--warn  { border-color: var(--tbt-brass);  background: var(--tbt-brass-glow); }
.tbt-notice--error { border-color: var(--tbt-danger); background: rgba(192,57,43,0.1); }


/* ============================================================
   GUTENBERG / BLOCK EDITOR OVERRIDES
============================================================ */
.wp-block-buttons .wp-block-button__link {
  transition: background var(--tbt-ease), transform var(--tbt-ease-fast), box-shadow var(--tbt-ease-fast) !important;
}
.wp-block-buttons .wp-block-button__link:hover {
  transform: translateY(-2px);
}
.has-brass-background-color.wp-block-button__link:hover {
  background-color: var(--tbt-brass-light) !important;
}
.wp-block-separator {
  border-color: var(--tbt-border) !important;
  opacity: 1 !important;
}
.wp-block-quote {
  border-left: 3px solid var(--tbt-brass) !important;
  background: var(--tbt-surface);
  padding: var(--tbt-sp-6) var(--tbt-sp-8);
  border-radius: 0 var(--tbt-r-md) var(--tbt-r-md) 0;
}

/* Navigation block */
.wp-block-navigation a {
  transition: color var(--tbt-ease) !important;
}
.wp-block-navigation .wp-block-navigation-item.current-menu-item > a {
  color: var(--tbt-brass) !important;
}


/* ============================================================
   RESPONSIVE
============================================================ */
@media (max-width: 1024px) {
  .tbt-footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: var(--tbt-sp-8);
  }
}

@media (max-width: 768px) {
  .tbt-hero { padding-block: var(--tbt-sp-16); }
  .tbt-hero__inner { max-width: 100%; }
  .tbt-hero::after { display: none; }
  .tbt-stats__grid { grid-template-columns: repeat(2, 1fr); }
  .tbt-footer-grid { grid-template-columns: 1fr; }
  .tbt-container { padding-inline: var(--tbt-sp-4); }
}

@media (max-width: 480px) {
  .tbt-hero__actions { flex-direction: column; }
  .tbt-btn--lg { width: 100%; justify-content: center; }
  .tbt-stats__grid { grid-template-columns: repeat(2, 1fr); }
}
/* ============================================================
   TBT Homepage & Layout Patterns
   Append to style.css or keep as separate include
============================================================ */

/* ---- Service cards grid ---- */
.tbt-cards-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--tbt-sp-6);
}

/* ---- 2-col layout ---- */
.tbt-two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--tbt-sp-16);
  align-items: center;
}
.tbt-two-col__content h2 { margin-block: var(--tbt-sp-4) var(--tbt-sp-6); }
.tbt-two-col__content p  { margin-bottom: var(--tbt-sp-6); }

/* Check list */
.tbt-check-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: var(--tbt-sp-3);
}
.tbt-check-list li {
  display: flex;
  align-items: flex-start;
  gap: var(--tbt-sp-3);
  font-size: 0.9375rem;
  color: var(--tbt-cream-mid);
}
.tbt-check-list li::before {
  content: '✓';
  color: var(--tbt-brass);
  font-weight: 700;
  flex-shrink: 0;
  margin-top: 2px;
}

/* ---- Why / Pillars grid ---- */
.tbt-pillars-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--tbt-sp-6);
}
.tbt-pillar {
  padding: var(--tbt-sp-6) var(--tbt-sp-6) var(--tbt-sp-6) calc(var(--tbt-sp-6) + 3px);
  border-left: 3px solid var(--tbt-brass-dark);
  transition: border-color var(--tbt-ease);
}
.tbt-pillar:hover { border-left-color: var(--tbt-brass); }
.tbt-pillar h3 {
  margin-bottom: var(--tbt-sp-3);
  font-size: 1.125rem;
}

/* ---- CTA Band ---- */
.tbt-cta-band {
  border-top: 1px solid var(--tbt-border);
  border-bottom: 1px solid var(--tbt-border);
}
.tbt-cta-band__inner {
  text-align: center;
  max-width: 640px;
  margin-inline: auto;
}
.tbt-cta-band__inner h2 {
  font-size: clamp(1.75rem, 3.5vw, 2.25rem);
  margin-bottom: var(--tbt-sp-4);
}
.tbt-cta-band__inner h2 em {
  font-style: italic;
  color: var(--tbt-brass);
}
.tbt-cta-band__inner p {
  margin-bottom: var(--tbt-sp-8);
  font-size: 1.0625rem;
}
.tbt-cta-band__actions {
  display: flex;
  gap: var(--tbt-sp-4);
  justify-content: center;
  flex-wrap: wrap;
}

/* ---- Page content area ---- */
.tbt-page-content {
  color: var(--tbt-cream-mid);
  line-height: 1.75;
}
.tbt-page-content h2,
.tbt-page-content h3 {
  margin-top: var(--tbt-sp-8);
  margin-bottom: var(--tbt-sp-4);
}
.tbt-page-content p { margin-bottom: var(--tbt-sp-6); }
.tbt-page-content ul,
.tbt-page-content ol {
  padding-left: var(--tbt-sp-6);
  margin-bottom: var(--tbt-sp-6);
}
.tbt-page-content li { margin-bottom: var(--tbt-sp-2); }
.tbt-page-content img {
  border-radius: var(--tbt-r-lg);
  max-width: 100%;
  height: auto;
}
.tbt-page-content a {
  color: var(--tbt-brass);
  text-decoration: underline;
  text-underline-offset: 3px;
}
.tbt-page-content a:hover { color: var(--tbt-brass-light); }

/* ---- Footer badges row ---- */
.tbt-footer-badges {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: var(--tbt-sp-2);
  flex-shrink: 0;
}

/* ---- Responsive ---- */
@media (max-width: 1024px) {
  .tbt-cards-grid    { grid-template-columns: repeat(2, 1fr); }
  .tbt-pillars-grid  { grid-template-columns: repeat(2, 1fr); }
  .tbt-two-col       { gap: var(--tbt-sp-8); }
}
@media (max-width: 768px) {
  .tbt-cards-grid    { grid-template-columns: 1fr; }
  .tbt-pillars-grid  { grid-template-columns: 1fr; }
  .tbt-two-col       { grid-template-columns: 1fr; }
  .tbt-two-col__aside { display: none; } /* Hide aside panel on mobile */
  .tbt-cta-band__actions { flex-direction: column; align-items: center; }
}


/* ============================================================
   LAYOUT FIXES
============================================================ */

/* Section padding */
.tbt-section--ink    { padding-block: var(--tbt-sp-16); }
.tbt-section--purple { padding-block: var(--tbt-sp-16); }
.tbt-section--surface{ padding-block: var(--tbt-sp-16); }

/* Section header */
.tbt-section-header { margin-bottom: var(--tbt-sp-8); }
.tbt-section-header h2 { font-style: normal !important; }
.tbt-section-header .tbt-eyebrow { justify-content: center; margin-bottom: var(--tbt-sp-4); }
.tbt-section-header .tbt-eyebrow::before { display: none; }

/* Ghost button border */
.tbt-btn--ghost {
  border: 1px solid rgba(255,255,255,0.35);
  color: var(--tbt-cream);
}
.tbt-btn--ghost:hover {
  border-color: var(--tbt-cream);
  background: rgba(255,255,255,0.05);
}

/* Headings in sections stay upright */
.tbt-section h2 { font-style: normal; }
.tbt-cta-band__inner h2 { font-style: normal; }
.tbt-cta-band__inner h2 em { font-style: italic; color: var(--tbt-brass); }

/* Stats bar */
.tbt-stats { padding-block: 0; }
.tbt-stats__grid { margin: 0; border: 1px solid var(--tbt-border); }
.tbt-hero { margin-bottom: 0; }

/* Body */
body, #tbt-page-wrap {
  background-color: var(--tbt-purple-ink);
  min-height: 100vh;
}
.tbt-main { margin: 0; padding: 0; }


/* ---- Mobile nav (≤ 900px) ---- */
@media (max-width: 900px) {
  .tbt-menu-toggle { display: flex; }
  .tbt-header-cta { display: none; }
  .tbt-nav {
    position: absolute;
    top: 100%; left: 0; right: 0;
    background: rgba(21, 2, 48, 0.95);
    backdrop-filter: blur(24px) saturate(1.4);
    -webkit-backdrop-filter: blur(24px) saturate(1.4);
    border-bottom: 1px solid rgba(78, 21, 128, 0.4);
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  }
  .tbt-nav.is-open {
    max-height: 100vh;
    overflow-y: auto;
  }
  .tbt-nav__list {
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 0.75rem 1.25rem 1.25rem;
  }
  .tbt-nav__item > a {
    padding: 0.8rem 0.5rem;
    font-size: 0.925rem;
    border-radius: var(--tbt-r-lg);
    justify-content: space-between;
    color: rgba(245, 240, 232, 0.8);
  }
  .tbt-nav__item > a:hover {
    background: rgba(245, 240, 232, 0.05);
    color: var(--tbt-white);
  }
  .tbt-nav__mobile-cta {
    display: block;
    padding-top: 0.75rem;
    border-top: 1px solid rgba(78, 21, 128, 0.35);
    margin-top: 0.5rem;
  }
  .tbt-nav__mobile-cta .tbt-btn { width: 100%; justify-content: center; }

  /* Mega — mobile accordion */
  .tbt-mega {
    position: static;
    width: 100%;
    transform: none;
    border: none;
    border-radius: 0;
    box-shadow: none;
    background: transparent;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    padding: 0 0 0 0.75rem;
    max-height: 0;
    overflow: hidden;
    opacity: 1;
    visibility: visible;
    transition: max-height 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    pointer-events: auto;
  }
  .tbt-mega::before { display: none; }
  .tbt-nav__item--has-sub.is-open .tbt-mega {
    max-height: 500px;
    padding: 0 0 0.5rem 0.75rem;
  }
  .tbt-mega__grid {
    grid-template-columns: 1fr;
    gap: 0;
  }
  .tbt-mega__item {
    padding: 0.55rem 0.75rem;
    border-radius: var(--tbt-r-lg);
  }
  .tbt-mega__item:hover {
    background: rgba(245, 240, 232, 0.04);
  }
}


/* ============================================================
   FOOTER
============================================================ */
.tbt-site-footer {
  background: var(--tbt-purple-ink);
  border-top: 2px solid var(--tbt-purple-dark);
  padding-top: 4rem;
  padding-bottom: 2rem;
  width: 100%;
}
.tbt-footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 3rem;
  margin-bottom: 3rem;
}
.tbt-footer-brand p {
  font-size: 0.875rem;
  color: var(--tbt-muted);
  margin-top: 1rem;
  line-height: 1.75;
  max-width: 280px;
}
.tbt-footer-col h4 { margin-bottom: 1rem; }
.tbt-footer-col ul {
  list-style: none;
  margin: 0; padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}
.tbt-footer-col a { font-size: 0.875rem; color: var(--tbt-muted); text-decoration: none; transition: color 0.2s ease; }
.tbt-footer-col a:hover { color: var(--tbt-cream); }
.tbt-footer-bottom {
  border-top: 1px solid var(--tbt-border);
  padding-top: 1.5rem;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 2rem;
  flex-wrap: wrap;
}
.tbt-footer-legal { font-family: var(--tbt-font-mono); font-size: 0.7rem; color: #6B2BAA; line-height: 1.7; max-width: 680px; }
.tbt-footer-legal p { color: #6B2BAA; font-size: 0.7rem; font-family: var(--tbt-font-mono); margin: 0 0 0.5rem; }
.tbt-footer-badges { display: flex; flex-direction: column; align-items: flex-end; gap: 0.5rem; flex-shrink: 0; }
.tbt-footer-brand__link {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
  margin-bottom: 0.5rem;
}
.tbt-footer-brand__link img,
.tbt-footer-brand__link .custom-logo { height: 40px !important; width: auto !important; }
.tbt-footer-brand__name {
  font-family: var(--tbt-font-heading);
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--tbt-white);
  line-height: 1.1;
  transition: color 0.2s ease;
}
.tbt-footer-brand__link:hover .tbt-footer-brand__name {
  color: var(--tbt-brass-light);
}

@media (max-width: 1024px) { .tbt-footer-grid { grid-template-columns: 1fr 1fr; gap: 2rem; } }
@media (max-width: 640px)  { .tbt-footer-grid { grid-template-columns: 1fr; } }


/* ============================================================
   FAQ — DETAILS / ACCORDION
============================================================ */
.wp-block-details {
  background: var(--tbt-surface);
  border: 1px solid var(--tbt-border);
  border-radius: var(--tbt-r-lg);
  margin-bottom: var(--tbt-sp-3);
  transition: border-color var(--tbt-ease), box-shadow var(--tbt-ease);
}
.wp-block-details:hover {
  border-color: var(--tbt-border-strong);
}
.wp-block-details[open] {
  border-color: var(--tbt-brass-dark);
  box-shadow: 0 4px 20px rgba(201,168,76,0.08);
}
.wp-block-details summary {
  font-family: var(--tbt-font-heading);
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--tbt-cream);
  padding: var(--tbt-sp-4) var(--tbt-sp-6);
  cursor: pointer;
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--tbt-sp-4);
  transition: color var(--tbt-ease);
}
.wp-block-details summary::-webkit-details-marker { display: none; }
.wp-block-details summary::after {
  content: '+';
  font-family: var(--tbt-font-mono);
  font-size: 1.25rem;
  font-weight: 400;
  color: var(--tbt-brass);
  flex-shrink: 0;
  transition: transform var(--tbt-ease);
}
.wp-block-details[open] summary::after {
  content: '\2212';
}
.wp-block-details summary:hover {
  color: var(--tbt-brass-light);
}
.wp-block-details > p,
.wp-block-details > .wp-block-paragraph {
  padding: 0 var(--tbt-sp-6) var(--tbt-sp-4);
  margin: 0;
  color: var(--tbt-cream-mid);
  font-size: 0.9375rem;
  line-height: 1.7;
}

/* Purple section variant — lighter card bg */
.tbt-section--purple .wp-block-details {
  background: rgba(82,10,140,0.35);
  border-color: rgba(107,29,181,0.5);
}
.tbt-section--purple .wp-block-details:hover {
  border-color: var(--tbt-border-strong);
}
.tbt-section--purple .wp-block-details[open] {
  border-color: var(--tbt-brass-dark);
}

@media (max-width: 768px) {
  .wp-block-details summary {
    font-size: 1rem;
    padding: var(--tbt-sp-3) var(--tbt-sp-4);
  }
  .wp-block-details > p,
  .wp-block-details > .wp-block-paragraph {
    padding: 0 var(--tbt-sp-4) var(--tbt-sp-3);
    font-size: 0.875rem;
  }
}


/* ============================================================
   CONTACT PAGE
============================================================ */

/* --- Header --- */
.tbt-contact-header {
  background: var(--tbt-purple);
  padding-block: var(--tbt-sp-24);
  border-bottom: 1px solid var(--tbt-purple-dark);
  position: relative;
  overflow: hidden;
}
.tbt-contact-header::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 80% 100% at 50% 40%, rgba(107,29,181,0.30) 0%, transparent 70%);
  pointer-events: none;
}
.tbt-contact-header__inner {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  max-width: 720px;
  margin: 0 auto;
}
.tbt-contact-header__content {
  margin-bottom: var(--tbt-sp-8);
}
.tbt-contact-header__content .tbt-eyebrow {
  justify-content: center;
  margin-bottom: var(--tbt-sp-4);
}
.tbt-contact-header__content h1,
.tbt-contact-header__content .wp-block-heading {
  margin-bottom: var(--tbt-sp-4);
}
.tbt-contact-header__sub {
  font-size: 1.125rem;
  color: var(--tbt-cream-mid);
  font-weight: 300;
  line-height: 1.65;
  max-width: 560px;
  margin-inline: auto;
}

/* Trust pills — horizontal row */
.tbt-contact-header__trust {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: var(--tbt-sp-3);
}
.tbt-trust-item {
  display: flex;
  align-items: center;
  gap: var(--tbt-sp-2);
  background: rgba(42,5,80,0.55);
  border: 1px solid var(--tbt-border);
  border-radius: var(--tbt-r-full);
  padding: var(--tbt-sp-2) var(--tbt-sp-4);
  backdrop-filter: blur(4px);
}
.tbt-trust-icon { font-size: 1rem; flex-shrink: 0; line-height: 1; }
.tbt-trust-item strong {
  font-size: 0.8125rem;
  color: var(--tbt-white);
  white-space: nowrap;
}

/* --- Body layout --- */
.tbt-contact-layout {
  display: grid;
  grid-template-columns: 1fr 360px;
  gap: var(--tbt-sp-12);
  align-items: start;
}

/* --- Form card --- */
.tbt-contact-form-card {
  background: var(--tbt-surface);
  border: 1px solid var(--tbt-border);
  border-radius: var(--tbt-r-xl);
  overflow: hidden;
}
.tbt-contact-form-card__header {
  padding: var(--tbt-sp-8) var(--tbt-sp-8) 0;
  margin-bottom: var(--tbt-sp-6);
}
.tbt-contact-form-card__header h2 {
  font-size: 1.5rem;
  margin-bottom: var(--tbt-sp-3);
}
.tbt-contact-form-card__header p {
  font-size: 0.9rem;
  color: var(--tbt-muted);
}

/* --- Native form styles --- */
.tbt-native-form {
  padding: 0 var(--tbt-sp-8) var(--tbt-sp-8);
}
.tbt-form-row { margin-bottom: var(--tbt-sp-4); }
.tbt-form-row--2col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--tbt-sp-4);
  margin-bottom: 0;
}
.tbt-form-row--2col .tbt-form-group { margin-bottom: var(--tbt-sp-4); }

.tbt-form-group {
  display: flex;
  flex-direction: column;
  gap: var(--tbt-sp-2);
  margin-bottom: var(--tbt-sp-4);
}
.tbt-form-group label {
  font-family: var(--tbt-font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--tbt-muted);
}
.tbt-form-group .req { color: var(--tbt-brass); }

.tbt-form-group input[type="text"],
.tbt-form-group input[type="email"],
.tbt-form-group input[type="tel"],
.tbt-form-group select,
.tbt-form-group textarea {
  background: var(--tbt-purple-dark);
  border: 1px solid var(--tbt-border);
  border-radius: var(--tbt-r-md);
  color: var(--tbt-cream);
  font-family: var(--tbt-font-body);
  font-size: 0.9375rem;
  padding: 10px var(--tbt-sp-4);
  width: 100%;
  transition: border-color var(--tbt-ease), box-shadow var(--tbt-ease);
  -webkit-appearance: none;
}
.tbt-form-group select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%238B7FA0' stroke-width='1.5' fill='none'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  padding-right: 2.5rem;
  cursor: pointer;
}
.tbt-form-group input:focus,
.tbt-form-group select:focus,
.tbt-form-group textarea:focus {
  border-color: var(--tbt-brass);
  box-shadow: 0 0 0 2px rgba(201,168,76,0.2);
  outline: none;
}
.tbt-form-group input::placeholder,
.tbt-form-group textarea::placeholder {
  color: var(--tbt-border-strong);
  font-size: 0.875rem;
}
.tbt-form-group textarea { resize: vertical; min-height: 120px; line-height: 1.6; }

/* Checkbox group */
.tbt-checkbox-group {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--tbt-sp-2) var(--tbt-sp-4);
  margin-top: var(--tbt-sp-2);
}
.tbt-checkbox-label {
  display: flex;
  align-items: center;
  gap: var(--tbt-sp-2);
  font-family: var(--tbt-font-body) !important;
  font-size: 0.875rem !important;
  letter-spacing: normal !important;
  text-transform: none !important;
  color: var(--tbt-cream-mid) !important;
  cursor: pointer;
  padding: var(--tbt-sp-2) 0;
}
.tbt-checkbox-label input[type="checkbox"] {
  width: 16px;
  height: 16px;
  accent-color: var(--tbt-brass);
  flex-shrink: 0;
  cursor: pointer;
}

/* Form footer */
.tbt-form-footer {
  margin-top: var(--tbt-sp-6);
  display: flex;
  flex-direction: column;
  gap: var(--tbt-sp-3);
}
.tbt-form-submit { width: 100%; justify-content: center; }
.tbt-form-disclaimer {
  font-size: 0.72rem !important;
  color: var(--tbt-muted) !important;
  text-align: center;
  line-height: 1.5;
  margin: 0 !important;
}
.tbt-form-disclaimer a { color: var(--tbt-muted); text-decoration: underline; text-underline-offset: 2px; }
.tbt-form-disclaimer a:hover { color: var(--tbt-cream); }

/* FluentForms overrides inside contact card */
.tbt-contact-form-card .ff-el-input--label label {
  font-family: var(--tbt-font-mono) !important;
  font-size: 0.7rem !important;
  letter-spacing: 0.1em !important;
  text-transform: uppercase !important;
  color: var(--tbt-muted) !important;
}
.tbt-contact-form-card .ff-el-form-control {
  background: var(--tbt-purple-dark) !important;
}
.tbt-contact-form-card .fluentform {
  padding: 0 var(--tbt-sp-8) var(--tbt-sp-8);
}

/* --- Sidebar --- */
.tbt-contact-sidebar {
  display: flex;
  flex-direction: column;
  gap: var(--tbt-sp-4);
  position: sticky;
  top: 88px;
}
.tbt-contact-sidebar__card {
  background: var(--tbt-surface);
  border: 1px solid var(--tbt-border);
  border-radius: var(--tbt-r-xl);
  padding: var(--tbt-sp-6);
}
.tbt-contact-sidebar__card h3 {
  font-size: 1.0625rem;
  font-weight: 600;
  margin-bottom: var(--tbt-sp-3);
}
.tbt-contact-sidebar__card h4 {
  margin-bottom: var(--tbt-sp-4);
}
.tbt-contact-sidebar__card > p {
  font-size: 0.875rem;
  color: var(--tbt-muted);
  line-height: 1.6;
}

/* Schedule card accent */
.tbt-sidebar-schedule {
  border-color: var(--tbt-brass-dark);
  background: linear-gradient(135deg, var(--tbt-surface), rgba(59,7,100,0.6));
}
.tbt-sidebar-schedule h3 { color: var(--tbt-brass); }
.tbt-sidebar-note {
  font-size: 0.65rem !important;
  color: var(--tbt-border-strong) !important;
  text-align: center;
  margin-top: var(--tbt-sp-2) !important;
  font-family: var(--tbt-font-mono) !important;
  letter-spacing: 0.05em;
}

/* Contact detail list */
.tbt-contact-details {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: var(--tbt-sp-4);
}
.tbt-contact-details li {
  display: flex;
  align-items: flex-start;
  gap: var(--tbt-sp-3);
}
.tbt-contact-detail__icon { font-size: 1.1rem; flex-shrink: 0; margin-top: 2px; }
.tbt-contact-detail__label {
  display: block;
  font-family: var(--tbt-font-mono);
  font-size: 0.65rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--tbt-muted);
  margin-bottom: 2px;
}
.tbt-contact-details a,
.tbt-contact-details span {
  font-size: 0.875rem;
  color: var(--tbt-cream-mid);
}
.tbt-contact-details a:hover { color: var(--tbt-brass); }

/* Next steps list */
.tbt-next-steps {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: var(--tbt-sp-4);
}
.tbt-next-steps li {
  display: flex;
  align-items: flex-start;
  gap: var(--tbt-sp-3);
}
.tbt-step-num {
  width: 24px;
  height: 24px;
  background: var(--tbt-brass-glow);
  border: 1px solid var(--tbt-brass-dark);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--tbt-font-mono);
  font-size: 0.7rem;
  color: var(--tbt-brass);
  font-weight: 600;
  flex-shrink: 0;
}
.tbt-next-steps strong {
  display: block;
  font-size: 0.875rem;
  color: var(--tbt-white);
  margin-bottom: 2px;
}
.tbt-next-steps span { font-size: 0.8rem; color: var(--tbt-muted); }

/* Trust badges in sidebar */
.tbt-sidebar-badges {
  display: flex;
  flex-wrap: wrap;
  gap: var(--tbt-sp-2);
}

/* --- Responsive --- */
@media (max-width: 1024px) {
  .tbt-contact-layout {
    grid-template-columns: 1fr;
  }
  .tbt-contact-sidebar {
    position: static;
    display: grid;
    grid-template-columns: 1fr 1fr;
  }
}
@media (max-width: 768px) {
  .tbt-contact-header { padding-block: var(--tbt-sp-16); }
  .tbt-contact-header__trust { gap: var(--tbt-sp-2); }
  .tbt-form-row--2col { grid-template-columns: 1fr; }
  .tbt-checkbox-group { grid-template-columns: 1fr; }
  .tbt-contact-sidebar { grid-template-columns: 1fr; }
  .tbt-native-form { padding: 0 var(--tbt-sp-4) var(--tbt-sp-4); }
  .tbt-contact-form-card__header { padding: var(--tbt-sp-4) var(--tbt-sp-4) 0; }
}

/* Form notices */
.tbt-form-notice {
  position: fixed;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 99999;
  padding: 1rem 2rem;
  border-radius: 8px;
  font-size: 0.9rem;
  font-weight: 500;
  box-shadow: 0 8px 32px rgba(21,2,48,0.6);
  animation: tbt-notice-in 0.3s ease;
  white-space: nowrap;
}
.tbt-form-notice--success {
  background: #1A7A4A;
  color: #fff;
  border: 1px solid #2AA062;
}
.tbt-form-notice--error {
  background: var(--tbt-danger);
  color: #fff;
  border: 1px solid #E05040;
}
@keyframes tbt-notice-in {
  from { opacity: 0; transform: translateX(-50%) translateY(10px); }
  to   { opacity: 1; transform: translateX(-50%) translateY(0); }
}


/* ============================================================
   GRAVITY FORMS — TBT SKIN
   Targets GF's default markup classes
============================================================ */

/* Wrapper */
.tbt-gf-wrap {
  padding: 0 var(--tbt-sp-8) var(--tbt-sp-8);
}
.tbt-gf-wrap .gform_wrapper {
  margin: 0 !important;
}

/* Hide GF title/description (we use our own) */
.tbt-gf-wrap .gform_heading { display: none !important; }

/* Field labels */
.tbt-gf-wrap .gfield_label {
  font-family: var(--tbt-font-mono) !important;
  font-size: 0.7rem !important;
  letter-spacing: 0.1em !important;
  text-transform: uppercase !important;
  color: var(--tbt-muted) !important;
  font-weight: 500 !important;
  margin-bottom: 0.375rem !important;
}

/* Required star */
.tbt-gf-wrap .gfield_required {
  color: var(--tbt-brass) !important;
  margin-left: 3px;
}

/* Input, select, textarea */
.tbt-gf-wrap input:not([type="radio"]):not([type="checkbox"]):not([type="submit"]):not([type="button"]):not([type="image"]):not([type="file"]),
.tbt-gf-wrap select,
.tbt-gf-wrap textarea {
  background: var(--tbt-purple-dark) !important;
  border: 1px solid var(--tbt-border) !important;
  border-radius: var(--tbt-r-md) !important;
  color: var(--tbt-cream) !important;
  font-family: var(--tbt-font-body) !important;
  font-size: 0.9375rem !important;
  padding: 10px 14px !important;
  width: 100% !important;
  box-shadow: none !important;
  transition: border-color var(--tbt-ease), box-shadow var(--tbt-ease) !important;
  -webkit-appearance: none !important;
  height: auto !important;
}

/* Select arrow */
.tbt-gf-wrap select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%238B7FA0' stroke-width='1.5' fill='none'/%3E%3C/svg%3E") !important;
  background-repeat: no-repeat !important;
  background-position: right 14px center !important;
  padding-right: 2.5rem !important;
  cursor: pointer !important;
}

/* Focus */
.tbt-gf-wrap input:focus,
.tbt-gf-wrap select:focus,
.tbt-gf-wrap textarea:focus {
  border-color: var(--tbt-brass) !important;
  box-shadow: 0 0 0 2px rgba(201,168,76,0.2) !important;
  outline: none !important;
}

/* Placeholder */
.tbt-gf-wrap input::placeholder,
.tbt-gf-wrap textarea::placeholder {
  color: var(--tbt-border-strong) !important;
  font-size: 0.875rem !important;
}

/* Textarea */
.tbt-gf-wrap textarea {
  resize: vertical !important;
  min-height: 120px !important;
  line-height: 1.6 !important;
}

/* Field spacing */
.tbt-gf-wrap .gfield {
  margin-bottom: 1.25rem !important;
  padding: 0 !important;
}
.tbt-gf-wrap .gform_fields {
  grid-row-gap: 0 !important;
}

/* Half-width fields (GF uses gf_left_half / gf_right_half) */
.tbt-gf-wrap .gf_left_half,
.tbt-gf-wrap .gf_right_half {
  width: calc(50% - 0.5rem) !important;
  display: inline-block !important;
  vertical-align: top !important;
}
.tbt-gf-wrap .gf_left_half  { margin-right: 0.5rem !important; }
.tbt-gf-wrap .gf_right_half { margin-left: 0.5rem !important; }

/* Radio & Checkbox inputs */
.tbt-gf-wrap .gfield_radio label,
.tbt-gf-wrap .gfield_checkbox label {
  font-family: var(--tbt-font-body) !important;
  font-size: 0.875rem !important;
  letter-spacing: normal !important;
  text-transform: none !important;
  color: var(--tbt-cream-mid) !important;
  cursor: pointer !important;
}
.tbt-gf-wrap input[type="radio"],
.tbt-gf-wrap input[type="checkbox"] {
  accent-color: var(--tbt-brass) !important;
  width: 16px !important;
  height: 16px !important;
  cursor: pointer !important;
}
.tbt-gf-wrap .gfield_radio li,
.tbt-gf-wrap .gfield_checkbox li {
  margin-bottom: 0.5rem !important;
  display: flex !important;
  align-items: center !important;
  gap: 0.5rem !important;
}

/* Checkbox grid layout for multi-select fields */
.tbt-gf-wrap .gfield_checkbox {
  display: grid !important;
  grid-template-columns: 1fr 1fr !important;
  gap: 0.25rem 1rem !important;
}

/* Submit button */
.tbt-gf-wrap .gform_footer,
.tbt-gf-wrap .gform_page_footer {
  margin-top: 1.5rem !important;
  padding: 0 !important;
  border: none !important;
}
.tbt-gf-wrap input[type="submit"],
.tbt-gf-wrap .gform_button {
  background: var(--tbt-brass) !important;
  color: var(--tbt-purple-ink) !important;
  font-family: var(--tbt-font-body) !important;
  font-weight: 700 !important;
  font-size: 1rem !important;
  letter-spacing: 0.07em !important;
  text-transform: uppercase !important;
  border: none !important;
  border-radius: var(--tbt-r-sm) !important;
  padding: 16px 3rem !important;
  width: 100% !important;
  cursor: pointer !important;
  transition: background var(--tbt-ease), transform var(--tbt-ease-fast), box-shadow var(--tbt-ease-fast) !important;
  box-shadow: 0 2px 10px rgba(201,168,76,0.2) !important;
  -webkit-appearance: none !important;
}
.tbt-gf-wrap input[type="submit"]:hover,
.tbt-gf-wrap .gform_button:hover {
  background: var(--tbt-brass-light) !important;
  transform: translateY(-2px) !important;
  box-shadow: 0 6px 20px rgba(201,168,76,0.35) !important;
}

/* Confirmation message */
.tbt-gf-wrap .gforms_confirmation_message {
  background: rgba(26,122,74,0.15) !important;
  border: 1px solid #2AA062 !important;
  border-radius: var(--tbt-r-lg) !important;
  padding: 1.5rem !important;
  color: #88DDAA !important;
  font-size: 0.9375rem !important;
  line-height: 1.65 !important;
  text-align: center;
}

/* Validation error */
.tbt-gf-wrap .gfield_error input,
.tbt-gf-wrap .gfield_error select,
.tbt-gf-wrap .gfield_error textarea {
  border-color: var(--tbt-danger) !important;
}
.tbt-gf-wrap .validation_message,
.tbt-gf-wrap .gfield_description.validation_message {
  color: #FF8866 !important;
  font-size: 0.75rem !important;
  margin-top: 4px !important;
  font-family: var(--tbt-font-mono) !important;
}
.tbt-gf-wrap .validation_error {
  background: rgba(192,57,43,0.1) !important;
  border: 1px solid var(--tbt-danger) !important;
  border-radius: var(--tbt-r-md) !important;
  color: #FF8866 !important;
  padding: 0.75rem 1rem !important;
  font-size: 0.875rem !important;
  margin-bottom: 1rem !important;
}

/* GF placeholder (when GF not installed) */
.tbt-gf-placeholder {
  background: rgba(201,168,76,0.06);
  border: 1px dashed var(--tbt-brass-dark);
  border-radius: var(--tbt-r-lg);
  padding: 2rem;
  text-align: center;
  margin: 1rem 2rem 2rem;
}
.tbt-gf-placeholder p {
  margin-bottom: 0.75rem;
  color: var(--tbt-muted);
  font-size: 0.875rem;
}
.tbt-gf-placeholder code {
  background: var(--tbt-surface);
  padding: 2px 6px;
  border-radius: 3px;
  font-size: 0.8rem;
  color: var(--tbt-brass);
}

/* Responsive */
@media (max-width: 600px) {
  .tbt-gf-wrap { padding: 0 1rem 1rem; }
  .tbt-gf-wrap .gf_left_half,
  .tbt-gf-wrap .gf_right_half {
    width: 100% !important;
    margin: 0 !important;
    display: block !important;
  }
  .tbt-gf-wrap .gfield_checkbox {
    grid-template-columns: 1fr !important;
  }
}
