/* ============================================================
   Texas Structured Solutions — site styles
   Extends Tailwind utilities with the industrial charcoal /
   maroon / brushed-metal design system.
   ============================================================ */

/* ---------- Base ---------- */
html { scroll-behavior: smooth; }
body { -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }
section[id] { scroll-margin-top: 5rem; }

/* ---------- Skip link ---------- */
.skip-link {
  position: absolute;
  left: 1rem;
  top: -100%;
  z-index: 100;
  padding: .6rem 1rem;
  border-radius: .25rem;
  background: #5a1b30;
  color: #fff;
  font-weight: 600;
}
.skip-link:focus { top: 1rem; }

/* ---------- Full lockup on dark surfaces ---------- */
/* The all-maroon lockup PNG reads as a dark silhouette on the deep charcoal
   background. Brighten it for visibility but desaturate it so it stays a
   deep brand maroon (not pink/raspberry). */
.logo-on-dark { filter: brightness(2) saturate(0.7); }

/* ---------- Sticky header ---------- */
.site-header {
  background: transparent;
  border-bottom: 1px solid transparent;
}
.site-header.scrolled {
  background: rgba(18,18,18,.94);
  backdrop-filter: blur(8px);
  border-bottom-color: #2f2f2f;
  box-shadow: 0 8px 30px rgba(0,0,0,.35);
}
.nav-link {
  position: relative;
  font-size: .95rem;
  font-weight: 500;
  color: #f5f5f5;
  padding: .25rem 0;
  transition: color .2s ease;
}
.nav-link::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -2px;
  height: 2px;
  width: 0;
  background: #7f2b4b;
  transition: width .25s ease;
}
.nav-link:hover, .nav-link:focus-visible { color: #fff; }
.nav-link:hover::after, .nav-link:focus-visible::after { width: 100%; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  padding: .75rem 1.5rem;
  border-radius: .25rem;
  font-weight: 600;
  font-size: .95rem;
  line-height: 1;
  letter-spacing: .01em;
  transition: all .2s ease;
  white-space: nowrap;
}
.btn:focus-visible { outline: 2px solid #9a3c5e; outline-offset: 2px; }
.btn-primary { background: #5a1b30; color: #fff; }
.btn-primary:hover { background: #6f2440; transform: translateY(-1px); }
.btn-outline { border: 1px solid #3f3f3f; color: #f5f5f5; background: transparent; }
.btn-outline:hover { border-color: #9a3c5e; color: #fff; background: rgba(90,27,48,.14); }

/* ---------- Eyebrow ---------- */
.eyebrow {
  display: inline-block;
  font-family: "Barlow Condensed", system-ui, sans-serif;
  text-transform: uppercase;
  letter-spacing: .18em;
  font-size: .8rem;
  font-weight: 600;
  color: #9a3c5e;
  padding-bottom: .25rem;
  border-bottom: 1px solid #5a1b30;
}

/* ---------- Hero grid & brushed-metal panel removed (solid deep slate background) ---------- */

/* ---------- Logo badge removed (transparent PNG logos now in use) ---------- */

/* ---------- Service cards (tabs) ---------- */
.service-card {
  text-align: left;
  display: flex;
  flex-direction: column;
  gap: .75rem;
  padding: 1.5rem;
  border-radius: .25rem;
  border: 1px solid #2f2f2f;
  background: #1f1f1f;
  color: #f5f5f5;
  transition: all .25s ease;
  cursor: pointer;
}
.service-card:hover { border-color: #3f3f3f; transform: translateY(-2px); }
.service-card.is-active {
  border-color: #7f2b4b;
  box-shadow: 0 0 0 1px #7f2b4b;
}
.service-card__icon {
  display: inline-flex;
  width: 2.75rem;
  height: 2.75rem;
  align-items: center;
  justify-content: center;
  border-radius: .25rem;
  background: rgba(90,27,48,.16);
  color: #9a3c5e;
}
.service-card__icon svg { width: 1.5rem; height: 1.5rem; }
.service-card__title {
  font-family: "Barlow Condensed", system-ui, sans-serif;
  font-size: 1.5rem;
  font-weight: 600;
  color: #fff;
}
.service-card__desc { font-size: .95rem; color: #e5e5e5; line-height: 1.5; }
.service-card__cta {
  margin-top: auto;
  font-size: .85rem;
  font-weight: 600;
  color: #9a3c5e;
}
.service-panel { animation: fadeIn .35s ease; }

/* ---------- List item bullet ---------- */
.list-item { position: relative; padding-left: 1.5rem; }
.list-item::before {
  content: "";
  position: absolute;
  left: 0;
  top: .5rem;
  width: .5rem;
  height: .5rem;
  background: #7f2b4b;
  transform: rotate(45deg);
}

/* ---------- Stat cards ---------- */
.stat-card {
  display: flex;
  flex-direction: column;
  gap: .25rem;
  padding: 1.5rem;
  border-radius: .25rem;
  border: 1px solid #2f2f2f;
  background: #1f1f1f;
}
.stat-value {
  font-family: "Barlow Condensed", system-ui, sans-serif;
  font-size: 1.75rem;
  font-weight: 700;
  color: #fff;
  line-height: 1.1;
}
.stat-label {
  font-size: .85rem;
  color: #a3a3a3;
  text-transform: uppercase;
  letter-spacing: .08em;
}

/* ---------- Process steps ---------- */
.process-step { position: relative; padding-top: 2.5rem; }
.process-num {
  position: absolute;
  top: 0;
  left: 0;
  font-family: "Barlow Condensed", system-ui, sans-serif;
  font-size: 2.25rem;
  font-weight: 700;
  color: #7f2b4b;
  opacity: .5;
}

/* ---------- Area chips ---------- */
.area-chip {
  padding: .75rem 1rem;
  border-radius: .25rem;
  border: 1px solid #2f2f2f;
  background: #1f1f1f;
  color: #f5f5f5;
  font-weight: 500;
  text-align: center;
}
.area-chip--wide { grid-column: span 2; }

/* ---------- Forms ---------- */
.form-legend {
  font-family: "Barlow Condensed", system-ui, sans-serif;
  font-size: 1.25rem;
  font-weight: 600;
  color: #fff;
  margin-bottom: 1rem;
}
.form-label { display: block; font-size: .9rem; font-weight: 500; color: #f5f5f5; margin-bottom: .4rem; }
.field input[type="text"],
.field input[type="email"],
.field input[type="tel"],
.field textarea,
.field select {
  width: 100%;
  padding: .7rem .9rem;
  border-radius: .25rem;
  border: 1px solid #3f3f3f;
  background: #121212;
  color: #f5f5f5;
  font-size: .95rem;
  transition: border-color .2s ease, box-shadow .2s ease;
}
.field input:focus,
.field textarea:focus,
.field select:focus {
  outline: none;
  border-color: #9a3c5e;
  box-shadow: 0 0 0 2px rgba(154,60,94,.35);
}
.field select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%2394a3b8' stroke-width='2'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right .8rem center;
  padding-right: 2.25rem;
}

/* Choice cards (radio / checkbox) */
.choice {
  display: flex;
  align-items: center;
  gap: .6rem;
  padding: .8rem 1rem;
  border-radius: .25rem;
  border: 1px solid #3f3f3f;
  background: #121212;
  cursor: pointer;
  transition: all .2s ease;
}
.choice:hover { border-color: #a3a3a3; }
.choice:has(input:checked) { border-color: #7f2b4b; background: rgba(90,27,48,.18); }
.choice input { accent-color: #5a1b30; width: 1.1rem; height: 1.1rem; }
.choice__body { font-size: .95rem; color: #f5f5f5; }

/* Field errors */
.field-error { margin-top: .4rem; font-size: .85rem; color: #fca5a5; }
.field.has-error input,
.field.has-error textarea,
.field.has-error select { border-color: #ef4444; }

/* Dropzone */
.dropzone {
  border: 1px dashed #3f3f3f;
  border-radius: .25rem;
  padding: 1.5rem;
  text-align: center;
  transition: all .2s ease;
  cursor: pointer;
}
.dropzone.dragover { border-color: #9a3c5e; background: rgba(90,27,48,.14); }
.dropzone__title { color: #f5f5f5; font-weight: 500; }
.dropzone__hint { color: #a3a3a3; font-size: .85rem; margin-top: .25rem; }
.dropzone__files { margin-top: 1rem; text-align: left; display: flex; flex-direction: column; gap: .4rem; }
.dropzone__files li {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .5rem;
  padding: .4rem .6rem;
  border-radius: .25rem;
  background: #1f1f1f;
  font-size: .85rem;
  color: #f5f5f5;
}
.dropzone__files button { color: #fca5a5; font-size: .8rem; cursor: pointer; }

/* ---------- Footer ---------- */
.footer-heading {
  font-family: "Barlow Condensed", system-ui, sans-serif;
  font-size: 1.05rem;
  font-weight: 600;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: #fff;
  margin-bottom: .9rem;
}
.footer-links { display: flex; flex-direction: column; gap: .5rem; }
.footer-links a, .footer-links li { color: #a3a3a3; font-size: .95rem; transition: color .2s ease; }
.footer-links a:hover { color: #fff; }

/* ---------- Mobile nav ---------- */
.menu-toggle {
  display: inline-flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 2.75rem;
  height: 2.75rem;
  align-items: center;
  border-radius: .25rem;
  border: 1px solid #3f3f3f;
  background: #1f1f1f;
}
.menu-toggle span { display: block; width: 1.25rem; height: 2px; background: #f5f5f5; transition: all .25s ease; }
.menu-toggle.is-open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.menu-toggle.is-open span:nth-child(2) { opacity: 0; }
.menu-toggle.is-open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.mobile-nav {
  background: rgba(18,18,18,.98);
  border-top: 1px solid #2f2f2f;
  padding: 1rem 1.25rem 1.5rem;
  display: flex;
  flex-direction: column;
  gap: .25rem;
}
.mobile-nav a { padding: .75rem .5rem; border-radius: .25rem; color: #f5f5f5; font-weight: 500; }
.mobile-nav a:hover { background: #1f1f1f; }
.mobile-nav .btn { margin-top: .5rem; }

/* ---------- Animations ---------- */
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: translateY(0); }
}
@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}