/* =========================================================================
   TourBuilt Lab — design system
   Dark steel base + crimson accent. Outfit display headings over Spline
   Sans body copy. No frameworks, hand-written.
   ========================================================================= */

:root {
  --tbl-steel-950: #0a0b0d;
  --tbl-steel-900: #14171c;
  --tbl-steel-800: #1b1f26;
  --tbl-steel-700: #262b34;
  --tbl-steel-600: #333a46;
  --tbl-cream: #f1ede6;
  --tbl-chip: #23272f;
  --tbl-surface: #191c22;
  --tbl-crimson: #d92d3f;
  --tbl-crimson-light: #ec6672;
  --tbl-crimson-dark: #a81f2d;
  --tbl-white: #fbfaf8;
  --tbl-gray-100: #e9e5da;
  --tbl-gray-300: #b2ac9e;
  --tbl-line: rgba(255, 255, 255, 0.08);

  --tbl-font-display: 'Outfit', system-ui, -apple-system, sans-serif;
  --tbl-font-body: 'Spline Sans', system-ui, -apple-system, sans-serif;

  --tbl-container-w: 1180px;
  --tbl-radius: 6px;
  --tbl-shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.3);
  --tbl-shadow-md: 0 8px 24px rgba(0, 0, 0, 0.35);
  --tbl-shadow-lg: 0 20px 48px rgba(0, 0, 0, 0.45);
  --tbl-transition: 200ms ease;
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--tbl-font-body);
  color: var(--tbl-gray-300);
  background: var(--tbl-steel-900);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; margin: 0; padding: 0; }
button { font-family: inherit; }
h1, h2, h3, h4 {
  font-family: var(--tbl-font-display);
  color: var(--tbl-white);
  line-height: 1.15;
  margin: 0 0 0.5em;
  font-weight: 700;
}
p { margin: 0 0 1em; color: var(--tbl-gray-300); }
address { font-style: normal; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
}

.tbl-skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--tbl-steel-800);
  color: var(--tbl-cream);
  padding: 0.75em 1.25em;
  z-index: 1000;
}
.tbl-skip-link:focus { left: 1em; top: 1em; }

.tbl-container {
  width: 100%;
  max-width: var(--tbl-container-w);
  margin: 0 auto;
  padding: 0 24px;
}

/* ---------- Buttons ---------- */
.tbl-btn {
  display: inline-block;
  padding: 0.85em 1.9em;
  border-radius: var(--tbl-radius);
  font-weight: 600;
  font-size: 0.95rem;
  letter-spacing: 0.02em;
  transition: transform var(--tbl-transition), box-shadow var(--tbl-transition), background var(--tbl-transition), color var(--tbl-transition);
  border: 1px solid transparent;
  cursor: pointer;
}
.tbl-btn-gold {
  background: var(--tbl-crimson);
  color: var(--tbl-steel-950);
}
.tbl-btn-gold:hover { background: var(--tbl-crimson-light); transform: translateY(-2px); box-shadow: var(--tbl-shadow-md); }
.tbl-btn-outline {
  background: transparent;
  border-color: var(--tbl-cream);
  color: var(--tbl-cream);
}
.tbl-btn-outline:hover { background: rgba(241, 237, 228, 0.12); transform: translateY(-2px); }
.tbl-btn-green {
  background: var(--tbl-steel-800);
  color: var(--tbl-cream);
}
.tbl-btn-green:hover { background: var(--tbl-steel-700); transform: translateY(-2px); box-shadow: var(--tbl-shadow-md); }
.tbl-btn-block { display: block; text-align: center; width: 100%; }

/* ---------- Header ---------- */
.tbl-site-header {
  background: var(--tbl-steel-800);
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: var(--tbl-shadow-sm);
}
.tbl-header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 84px;
}
.tbl-brand {
  display: flex;
  align-items: center;
  gap: 12px;
}
.tbl-brand-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 2px solid var(--tbl-crimson);
  color: var(--tbl-crimson-light);
  font-family: var(--tbl-font-display);
  font-weight: 700;
  font-size: 0.95rem;
  letter-spacing: 0.03em;
}
.tbl-brand-text { display: flex; flex-direction: column; line-height: 1.2; }
.tbl-brand-name {
  font-family: var(--tbl-font-display);
  color: var(--tbl-cream);
  font-size: 1.25rem;
  font-weight: 700;
}
.tbl-brand-tagline {
  color: var(--tbl-crimson-light);
  font-size: 0.7rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.tbl-nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  background: transparent;
  border: none;
  cursor: pointer;
}
.tbl-nav-toggle span {
  display: block;
  height: 2px;
  background: var(--tbl-cream);
  border-radius: 2px;
  transition: transform var(--tbl-transition), opacity var(--tbl-transition);
}
.tbl-nav-toggle.is-active span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.tbl-nav-toggle.is-active span:nth-child(2) { opacity: 0; }
.tbl-nav-toggle.is-active span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.tbl-site-nav { display: flex; align-items: center; gap: 28px; }
.tbl-nav-list { display: flex; align-items: center; gap: 22px; }
.tbl-nav-item { position: relative; }
.tbl-nav-item > a {
  color: var(--tbl-cream);
  font-size: 0.92rem;
  font-weight: 600;
  padding: 8px 2px;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  border-bottom: 2px solid transparent;
  transition: border-color var(--tbl-transition), color var(--tbl-transition);
}
.tbl-nav-item > a:hover,
.tbl-nav-item.is-active > a { border-color: var(--tbl-crimson); color: var(--tbl-crimson-light); }
.tbl-nav-item .tbl-caret { font-size: 0.6rem; opacity: 0.8; }

.tbl-sub-nav {
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 230px;
  background: var(--tbl-surface);
  border-radius: var(--tbl-radius);
  box-shadow: var(--tbl-shadow-lg);
  padding: 8px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(6px);
  transition: opacity var(--tbl-transition), transform var(--tbl-transition), visibility var(--tbl-transition);
  z-index: 50;
}
.tbl-nav-item.tbl-has-children:hover .tbl-sub-nav,
.tbl-nav-item.tbl-has-children.tbl-sub-open .tbl-sub-nav {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
.tbl-sub-nav li a {
  display: block;
  padding: 9px 14px;
  border-radius: 4px;
  color: var(--tbl-white);
  font-size: 0.9rem;
  font-weight: 500;
  transition: background var(--tbl-transition), color var(--tbl-transition);
}
.tbl-sub-nav li a:hover { background: var(--tbl-chip); color: var(--tbl-steel-950); }

.tbl-nav-cta { padding: 0.6em 1.4em; font-size: 0.88rem; }

@media (max-width: 960px) {
  .tbl-nav-toggle { display: flex; }
  .tbl-site-nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--tbl-steel-800);
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    max-height: 0;
    overflow: hidden;
    transition: max-height var(--tbl-transition);
    box-shadow: var(--tbl-shadow-md);
  }
  .tbl-site-nav.is-open { max-height: 720px; }
  .tbl-nav-list { flex-direction: column; align-items: stretch; gap: 0; padding: 12px 24px; }
  .tbl-nav-item { border-bottom: 1px solid rgba(241,237,228,0.1); }
  .tbl-nav-item > a { display: flex; justify-content: space-between; padding: 14px 0; }
  .tbl-sub-nav {
    position: static;
    box-shadow: none;
    opacity: 1;
    visibility: visible;
    transform: none;
    max-height: 0;
    overflow: hidden;
    background: rgba(0,0,0,0.12);
    border-radius: 0;
    padding: 0;
    transition: max-height var(--tbl-transition);
  }
  .tbl-nav-item.tbl-sub-open .tbl-sub-nav { max-height: 400px; padding: 6px 0 12px; }
  .tbl-nav-item.tbl-has-children:hover .tbl-sub-nav { max-height: 0; } /* disable hover on touch/mobile width */
  .tbl-nav-item.tbl-sub-open:hover .tbl-sub-nav { max-height: 400px; }
  .tbl-sub-nav li a { color: var(--tbl-crimson-light); padding: 8px 12px; }
  .tbl-nav-cta { margin: 16px 24px 24px; text-align: center; }
}

/* ---------- Hero ---------- */
.tbl-hero {
  background: linear-gradient(160deg, var(--tbl-steel-950) 0%, var(--tbl-steel-800) 55%, var(--tbl-steel-700) 100%);
  color: var(--tbl-cream);
  padding: 96px 0 110px;
  position: relative;
  overflow: hidden;
}
.tbl-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(circle at 85% 20%, rgba(217,45,63,0.16), transparent 45%),
    radial-gradient(circle at 10% 90%, rgba(217,45,63,0.10), transparent 40%);
  pointer-events: none;
}
.tbl-hero-inner { position: relative; display: grid; grid-template-columns: 1.15fr 0.85fr; gap: 48px; align-items: center; }
.tbl-hero-eyebrow {
  display: inline-block;
  color: var(--tbl-crimson-light);
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-size: 0.78rem;
  font-weight: 700;
  margin-bottom: 18px;
}
.tbl-hero h1 { color: var(--tbl-cream); font-size: clamp(2.1rem, 4vw, 3.2rem); max-width: 16ch; }
.tbl-hero-lede { color: rgba(241,237,228,0.86); font-size: 1.1rem; max-width: 46ch; }
.tbl-hero-actions { display: flex; gap: 16px; margin-top: 28px; flex-wrap: wrap; }
.tbl-hero-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-top: 48px;
  padding-top: 28px;
  border-top: 1px solid rgba(241,237,228,0.16);
}
.tbl-hero-stat .tbl-stat-num { font-family: var(--tbl-font-display); font-size: 1.8rem; color: var(--tbl-crimson-light); display: block; }
.tbl-hero-stat .tbl-stat-label { font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.06em; color: rgba(241,237,228,0.7); }

.tbl-hero-visual {
  border: 1px solid rgba(217,45,63,0.35);
  border-radius: var(--tbl-radius);
  background: rgba(255,255,255,0.03);
  padding: 28px;
  box-shadow: var(--tbl-shadow-lg);
}
.tbl-hero-visual-title { color: var(--tbl-crimson-light); font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.1em; margin-bottom: 16px; }
.tbl-hero-metric-row { display: flex; justify-content: space-between; padding: 12px 0; border-bottom: 1px dashed rgba(241,237,228,0.18); }
.tbl-hero-metric-row:last-child { border-bottom: none; }
.tbl-hero-metric-row span:first-child { color: rgba(241,237,228,0.7); font-size: 0.88rem; }
.tbl-hero-metric-row span:last-child { color: var(--tbl-cream); font-weight: 700; font-family: var(--tbl-font-display); }

@media (max-width: 860px) {
  .tbl-hero-inner { grid-template-columns: 1fr; }
  .tbl-hero-stats { grid-template-columns: repeat(3, 1fr); gap: 10px; }
}

/* ---------- Page header (non-home hero) ---------- */
.tbl-page-header {
  background: linear-gradient(160deg, var(--tbl-steel-950), var(--tbl-steel-700));
  color: var(--tbl-cream);
  padding: 64px 0 72px;
  position: relative;
}
.tbl-page-header .tbl-breadcrumb { color: var(--tbl-crimson-light); font-size: 0.8rem; letter-spacing: 0.06em; text-transform: uppercase; margin-bottom: 14px; }
.tbl-page-header h1 { color: var(--tbl-cream); font-size: clamp(1.8rem, 3.4vw, 2.6rem); max-width: 22ch; }
.tbl-page-header .tbl-lede { color: rgba(241,237,228,0.85); max-width: 60ch; font-size: 1.05rem; }

/* ---------- Sections ---------- */
section { padding: 76px 0; }
.tbl-section-alt { background: var(--tbl-surface); }
.tbl-section-tight { padding: 56px 0; }
.tbl-section-head { max-width: 700px; margin: 0 auto 48px; text-align: center; }
.tbl-section-head.tbl-left { margin: 0 0 40px; text-align: left; }
.tbl-eyebrow {
  display: inline-block;
  color: var(--tbl-crimson-light);
  text-transform: uppercase;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  margin-bottom: 12px;
}
.tbl-section-head h2 { font-size: clamp(1.6rem, 3vw, 2.2rem); }
.tbl-section-head p { font-size: 1.05rem; }

/* ---------- Grid / cards ---------- */
.tbl-grid { display: grid; gap: 28px; }
.tbl-grid-2 { grid-template-columns: repeat(2, 1fr); }
.tbl-grid-3 { grid-template-columns: repeat(3, 1fr); }
.tbl-grid-4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 960px) { .tbl-grid-3, .tbl-grid-4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .tbl-grid-2, .tbl-grid-3, .tbl-grid-4 { grid-template-columns: 1fr; } }

.tbl-card {
  background: var(--tbl-surface);
  border: 1px solid var(--tbl-line);
  border-radius: var(--tbl-radius);
  padding: 30px 26px;
  transition: transform var(--tbl-transition), box-shadow var(--tbl-transition), border-color var(--tbl-transition);
}
.tbl-card:hover { transform: translateY(-4px); box-shadow: var(--tbl-shadow-md); border-color: var(--tbl-crimson); }
.tbl-card-icon {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: var(--tbl-chip);
  color: var(--tbl-crimson-light);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--tbl-font-display);
  font-weight: 700;
  margin-bottom: 18px;
  border: 1px solid var(--tbl-crimson);
}
.tbl-card h3 { font-size: 1.2rem; }
.tbl-card p:last-child { margin-bottom: 0; }
.tbl-card-link { display: inline-block; margin-top: 10px; color: var(--tbl-crimson-light); font-weight: 700; font-size: 0.9rem; border-bottom: 1px solid transparent; transition: border-color var(--tbl-transition); }
.tbl-card-link:hover { border-color: var(--tbl-crimson-light); }

/* Service card variant on dark steel */
.tbl-card-on-dark {
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(217,45,63,0.25);
  color: var(--tbl-cream);
}
.tbl-card-on-dark h3 { color: var(--tbl-cream); }
.tbl-card-on-dark p { color: rgba(241,237,228,0.78); }

/* ---------- Process steps ---------- */
.tbl-process-steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; counter-reset: tbl-step; }
@media (max-width: 900px) { .tbl-process-steps { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .tbl-process-steps { grid-template-columns: 1fr; } }
.tbl-step { position: relative; padding: 30px 22px 26px; background: var(--tbl-surface); border: 1px solid var(--tbl-line); border-radius: var(--tbl-radius); }
.tbl-step-num {
  counter-increment: tbl-step;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--tbl-steel-800);
  color: var(--tbl-crimson-light);
  font-family: var(--tbl-font-display);
  font-weight: 700;
  margin-bottom: 16px;
}
.tbl-step-num::before { content: counter(tbl-step); }

/* ---------- Table (pricing / gapping) ---------- */
.tbl-table-wrap { overflow-x: auto; border: 1px solid var(--tbl-line); border-radius: var(--tbl-radius); }
table { width: 100%; border-collapse: collapse; background: var(--tbl-surface); min-width: 560px; }
th, td { padding: 14px 18px; text-align: left; border-bottom: 1px solid var(--tbl-line); font-size: 0.95rem; }
thead th { background: var(--tbl-steel-800); color: var(--tbl-cream); font-family: var(--tbl-font-display); font-weight: 700; }
tbody tr:hover { background: var(--tbl-chip); }
tbody tr:last-child td { border-bottom: none; }

/* ---------- Pricing cards ---------- */
.tbl-pricing-card { display: flex; flex-direction: column; }
.tbl-pricing-card .tbl-price { font-family: var(--tbl-font-display); font-size: 2.1rem; color: var(--tbl-white); margin: 8px 0 4px; }
.tbl-pricing-card .tbl-price span { font-size: 0.95rem; color: var(--tbl-gray-300); font-family: var(--tbl-font-body); }
.tbl-pricing-card ul { margin: 18px 0; display: flex; flex-direction: column; gap: 10px; }
.tbl-pricing-card li { padding-left: 22px; position: relative; font-size: 0.93rem; color: var(--tbl-gray-300); }
.tbl-pricing-card li::before { content: "\2713"; position: absolute; left: 0; color: var(--tbl-crimson-light); font-weight: 700; }
.tbl-pricing-card.tbl-featured { border-color: var(--tbl-crimson); box-shadow: var(--tbl-shadow-md); position: relative; }
.tbl-pricing-card.tbl-featured::before {
  content: "Most Popular";
  position: absolute;
  top: -14px;
  left: 26px;
  background: var(--tbl-crimson);
  color: var(--tbl-steel-950);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 5px 12px;
  border-radius: 20px;
}

/* ---------- Testimonials ---------- */
.tbl-testimonial {
  background: var(--tbl-surface);
  border: 1px solid var(--tbl-line);
  border-radius: var(--tbl-radius);
  padding: 30px 26px;
  position: relative;
}
.tbl-testimonial::before {
  content: "\201C";
  font-family: var(--tbl-font-display);
  font-size: 3.4rem;
  color: var(--tbl-crimson);
  position: absolute;
  top: 6px;
  left: 20px;
  line-height: 1;
  opacity: 0.5;
}
.tbl-testimonial p { position: relative; z-index: 1; font-style: italic; color: var(--tbl-gray-100); }
.tbl-testimonial-author { display: flex; align-items: center; gap: 12px; margin-top: 16px; }
.tbl-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--tbl-steel-800);
  color: var(--tbl-crimson-light);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--tbl-font-display);
  font-weight: 700;
}
.tbl-testimonial-author strong { display: block; color: var(--tbl-white); font-size: 0.95rem; }
.tbl-testimonial-author span { font-size: 0.82rem; color: var(--tbl-gray-300); }
.tbl-stars { color: var(--tbl-crimson-light); letter-spacing: 2px; font-size: 0.9rem; margin-bottom: 10px; display: block; }

/* ---------- CTA band ---------- */
.tbl-cta-band {
  background: linear-gradient(135deg, var(--tbl-steel-950), var(--tbl-steel-700));
  color: var(--tbl-cream);
  text-align: center;
  padding: 64px 0;
}
.tbl-cta-band h2 { color: var(--tbl-cream); }
.tbl-cta-band p { color: rgba(241,237,228,0.82); max-width: 56ch; margin: 0 auto 28px; }
.tbl-cta-actions { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }

/* ---------- Team ---------- */
.tbl-team-card { text-align: center; }
.tbl-team-photo {
  width: 96px;
  height: 96px;
  border-radius: 50%;
  margin: 0 auto 16px;
  background: var(--tbl-steel-800);
  color: var(--tbl-crimson-light);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--tbl-font-display);
  font-size: 1.6rem;
  font-weight: 700;
  border: 3px solid var(--tbl-crimson);
}
.tbl-team-role { color: var(--tbl-crimson-light); font-size: 0.85rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.04em; margin-bottom: 10px; display: block; }

/* ---------- Brand / cert boxes ---------- */
.tbl-brand-box {
  border: 1px solid var(--tbl-line);
  border-radius: var(--tbl-radius);
  background: var(--tbl-surface);
  padding: 22px;
  text-align: center;
  transition: border-color var(--tbl-transition), transform var(--tbl-transition);
}
.tbl-brand-box:hover { border-color: var(--tbl-crimson); transform: translateY(-3px); }
.tbl-brand-box .tbl-brand-initials {
  font-family: var(--tbl-font-display);
  font-weight: 700;
  font-size: 1.4rem;
  color: var(--tbl-white);
  border: 2px solid var(--tbl-crimson);
  border-radius: 50%;
  width: 64px;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 12px;
}
.tbl-brand-box strong { display: block; color: var(--tbl-white); margin-bottom: 4px; }
.tbl-brand-box span { font-size: 0.82rem; color: var(--tbl-gray-300); }

/* ---------- FAQ (details/summary, no JS) ---------- */
.tbl-faq-item {
  border-bottom: 1px solid var(--tbl-line);
  padding: 18px 0;
}
.tbl-faq-item summary {
  cursor: pointer;
  font-weight: 700;
  color: var(--tbl-white);
  font-size: 1.05rem;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
}
.tbl-faq-item summary::-webkit-details-marker { display: none; }
.tbl-faq-item summary::after { content: "+"; font-family: var(--tbl-font-display); font-size: 1.4rem; color: var(--tbl-crimson-light); }
.tbl-faq-item[open] summary::after { content: "\2212"; }
.tbl-faq-item p { margin-top: 12px; }

/* ---------- Forms ---------- */
.tbl-form-card {
  background: var(--tbl-surface);
  border: 1px solid var(--tbl-line);
  border-radius: var(--tbl-radius);
  padding: 36px;
  box-shadow: var(--tbl-shadow-sm);
}
.tbl-form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-bottom: 20px; }
@media (max-width: 640px) { .tbl-form-row { grid-template-columns: 1fr; } }
.tbl-form-field { display: flex; flex-direction: column; gap: 6px; margin-bottom: 20px; }
.tbl-form-field label { font-weight: 600; font-size: 0.9rem; color: var(--tbl-white); }
.tbl-form-field input,
.tbl-form-field select,
.tbl-form-field textarea {
  font-family: var(--tbl-font-body);
  font-size: 0.95rem;
  padding: 12px 14px;
  border: 1px solid var(--tbl-line);
  border-radius: 4px;
  background: var(--tbl-steel-900);
  color: var(--tbl-gray-100);
  transition: border-color var(--tbl-transition), box-shadow var(--tbl-transition);
}
.tbl-form-field input:focus,
.tbl-form-field select:focus,
.tbl-form-field textarea:focus {
  outline: none;
  border-color: var(--tbl-crimson);
  box-shadow: 0 0 0 3px rgba(217,45,63,0.22);
}
.tbl-form-note { font-size: 0.85rem; color: var(--tbl-gray-300); }

/* ---------- Map placeholder ---------- */
.tbl-map-placeholder {
  position: relative;
  height: 140px;
  border-radius: var(--tbl-radius);
  background: linear-gradient(160deg, var(--tbl-steel-700), var(--tbl-steel-950));
  overflow: hidden;
  border: 1px solid rgba(217,45,63,0.3);
}
.tbl-map-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(241,237,228,0.08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(241,237,228,0.08) 1px, transparent 1px);
  background-size: 22px 22px;
}
.tbl-map-pin {
  position: absolute;
  top: 46%;
  left: 52%;
  width: 16px;
  height: 16px;
  background: var(--tbl-crimson);
  border-radius: 50% 50% 50% 0;
  transform: translate(-50%, -50%) rotate(-45deg);
  box-shadow: 0 0 0 6px rgba(217,45,63,0.2);
}
.tbl-map-label {
  position: absolute;
  bottom: 10px;
  left: 12px;
  color: var(--tbl-cream);
  font-size: 0.78rem;
  letter-spacing: 0.04em;
}
.tbl-contact-map-large { height: 260px; }

/* Large map on contact page */
.tbl-map-placeholder-lg {
  position: relative;
  height: 320px;
  border-radius: var(--tbl-radius);
  background: linear-gradient(160deg, var(--tbl-steel-700), var(--tbl-steel-950));
  overflow: hidden;
  border: 1px solid rgba(217,45,63,0.3);
}
.tbl-map-placeholder-lg .tbl-map-grid { background-size: 30px 30px; }
.tbl-map-placeholder-lg .tbl-map-pin { width: 22px; height: 22px; }

/* ---------- Blog ---------- */
.tbl-post-card { display: flex; flex-direction: column; }
.tbl-post-meta { font-size: 0.8rem; color: var(--tbl-crimson-light); text-transform: uppercase; letter-spacing: 0.05em; margin-bottom: 8px; font-weight: 700; }
.tbl-post-card h3 { font-size: 1.15rem; }
.tbl-article-body { max-width: 760px; margin: 0 auto; }
.tbl-article-body h2 { margin-top: 1.6em; font-size: 1.5rem; }
.tbl-article-body h3 { margin-top: 1.3em; font-size: 1.2rem; }
.tbl-article-body ul, .tbl-article-body ol { margin: 0 0 1.2em; padding-left: 1.4em; color: var(--tbl-gray-300); }
.tbl-article-body li { margin-bottom: 0.5em; }
.tbl-article-body blockquote {
  border-left: 3px solid var(--tbl-crimson);
  margin: 1.6em 0;
  padding: 0.4em 0 0.4em 1.4em;
  font-style: italic;
  color: var(--tbl-white);
  font-family: var(--tbl-font-display);
  font-size: 1.1rem;
}
.tbl-article-header { text-align: center; margin-bottom: 40px; }
.tbl-article-header .tbl-post-meta { margin-bottom: 16px; }

/* ---------- Footer ---------- */
.tbl-site-footer { background: var(--tbl-steel-950); color: rgba(241,237,228,0.85); padding: 68px 0 0; }
.tbl-footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr 1fr;
  gap: 36px;
  padding-bottom: 48px;
  border-bottom: 1px solid rgba(241,237,228,0.12);
}
@media (max-width: 960px) { .tbl-footer-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .tbl-footer-grid { grid-template-columns: 1fr; } }
.tbl-footer-col h3 { color: var(--tbl-crimson-light); font-size: 0.95rem; text-transform: uppercase; letter-spacing: 0.06em; margin-bottom: 16px; }
.tbl-footer-brand .tbl-brand-name { display: block; font-family: var(--tbl-font-display); color: var(--tbl-cream); font-size: 1.3rem; margin-bottom: 12px; }
.tbl-footer-badges { display: flex; flex-direction: column; gap: 8px; margin-top: 16px; }
.tbl-badge-box {
  border: 1px solid rgba(217,45,63,0.35);
  border-radius: 4px;
  padding: 6px 10px;
  font-size: 0.76rem;
  color: var(--tbl-crimson-light);
  display: inline-block;
  width: fit-content;
}
.tbl-site-footer address { font-size: 0.92rem; margin-bottom: 10px; color: rgba(241,237,228,0.75); }
.tbl-site-footer a:hover { color: var(--tbl-crimson-light); }
.tbl-hours-list li { display: flex; justify-content: space-between; gap: 12px; font-size: 0.86rem; padding: 4px 0; color: rgba(241,237,228,0.75); }
.tbl-footer-nav li { margin-bottom: 8px; font-size: 0.9rem; }
.tbl-footer-bottom { padding: 22px 0; }
.tbl-footer-bottom-inner { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px; font-size: 0.8rem; color: rgba(241,237,228,0.55); }

/* ---------- 404 ---------- */
.tbl-error-page { text-align: center; padding: 120px 0; }
.tbl-error-page .tbl-error-code { font-family: var(--tbl-font-display); font-size: 6rem; color: var(--tbl-crimson); line-height: 1; }
.tbl-error-page h1 { margin-top: 8px; }

/* ---------- Utility ---------- */
.tbl-text-center { text-align: center; }
.tbl-mt-0 { margin-top: 0; }
.tbl-mb-0 { margin-bottom: 0; }
.tbl-list-check li { padding-left: 26px; position: relative; margin-bottom: 10px; }
.tbl-list-check li::before { content: "\2713"; position: absolute; left: 0; color: var(--tbl-crimson-light); font-weight: 700; }
.tbl-two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; }
@media (max-width: 800px) { .tbl-two-col { grid-template-columns: 1fr; } }
.tbl-tag-row { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 18px; }
.tbl-tag { background: var(--tbl-chip); color: var(--tbl-white); font-size: 0.8rem; font-weight: 600; padding: 6px 14px; border-radius: 20px; }
