/* TBS LLC — texasliftstations.com
   Industrial utility: steel slate + brass accent. Light surfaces. */

@import url("https://fonts.googleapis.com/css2?family=Barlow+Condensed:wght@500;600;700&family=Source+Sans+3:ital,wght@0,400;0,600;0,700;1,400&display=swap");

:root {
  --ink: #15202b;
  --ink-soft: #2a3a4a;
  --steel: #5a6d80;
  --line: #c9d2db;
  --paper: #f3f5f7;
  --paper-deep: #e4e9ee;
  --brass: #b07d2a;
  --brass-deep: #8a6120;
  --white: #ffffff;
  --danger: #9b2c2c;
  --max: 1120px;
  --nav-h: 4.25rem;
  --font-display: "Barlow Condensed", "Arial Narrow", sans-serif;
  --font-body: "Source Sans 3", "Segoe UI", sans-serif;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--ink);
  background:
    radial-gradient(ellipse 120% 80% at 100% -10%, rgba(176, 125, 42, 0.08), transparent 50%),
    linear-gradient(180deg, var(--paper) 0%, var(--white) 40%, var(--paper-deep) 100%);
  background-attachment: fixed;
  min-height: 100vh;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: var(--brass-deep);
  text-underline-offset: 0.15em;
}

a:hover {
  color: var(--ink);
}

h1,
h2,
h3,
h4 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.15;
  letter-spacing: 0.01em;
  color: var(--ink);
  margin: 0 0 0.6em;
}

h1 {
  font-size: clamp(2.4rem, 5.5vw, 3.75rem);
  font-weight: 700;
  text-transform: uppercase;
}

h2 {
  font-size: clamp(1.75rem, 3.5vw, 2.35rem);
  text-transform: uppercase;
}

h3 {
  font-size: 1.35rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

p {
  margin: 0 0 1em;
}

p:last-child {
  margin-bottom: 0;
}

.wrap {
  width: min(100% - 2rem, var(--max));
  margin-inline: auto;
}

/* —— Skip / focus —— */
.skip {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--ink);
  color: var(--white);
  padding: 0.5rem 1rem;
  z-index: 100;
}

.skip:focus {
  left: 0.5rem;
  top: 0.5rem;
}

/* —— Header —— */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(243, 245, 247, 0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}

.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: var(--nav-h);
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
  color: var(--ink);
}

.brand__mark {
  width: 48px;
  height: 48px;
  object-fit: contain;
  background: var(--white);
  border: 1px solid var(--line);
}

.brand__text {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}

.brand__name {
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.brand__tag {
  font-size: 0.72rem;
  color: var(--steel);
  letter-spacing: 0.02em;
}

.nav-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  width: 2.75rem;
  height: 2.75rem;
  padding: 0;
  background: transparent;
  border: 1px solid var(--line);
  cursor: pointer;
  color: var(--ink);
}

.nav-toggle__bars {
  display: block;
  width: 1.2rem;
  height: 2px;
  background: currentColor;
  position: relative;
}

.nav-toggle__bars::before,
.nav-toggle__bars::after {
  content: "";
  position: absolute;
  left: 0;
  width: 100%;
  height: 2px;
  background: currentColor;
}

.nav-toggle__bars::before {
  top: -6px;
}

.nav-toggle__bars::after {
  top: 6px;
}

.nav {
  display: flex;
  align-items: center;
  gap: 0.15rem 1.1rem;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.nav a {
  text-decoration: none;
  color: var(--ink-soft);
  font-size: 0.92rem;
  font-weight: 600;
  letter-spacing: 0.01em;
}

.nav a:hover,
.nav a[aria-current="page"] {
  color: var(--brass-deep);
}

.nav__phone {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: var(--ink) !important;
  white-space: nowrap;
}

/* —— Buttons —— */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  padding: 0.85rem 1.35rem;
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-decoration: none;
  border: 1px solid transparent;
  cursor: pointer;
  transition: background 0.25s var(--ease), color 0.25s var(--ease), border-color 0.25s var(--ease), transform 0.25s var(--ease);
}

.btn:hover {
  transform: translateY(-1px);
}

.btn--primary {
  background: var(--brass);
  color: var(--white);
  border-color: var(--brass-deep);
}

.btn--primary:hover {
  background: var(--brass-deep);
  color: var(--white);
}

.btn--ghost {
  background: transparent;
  color: var(--white);
  border-color: rgba(255, 255, 255, 0.55);
}

.btn--ghost:hover {
  background: rgba(255, 255, 255, 0.12);
  color: var(--white);
}

.btn--outline {
  background: var(--white);
  color: var(--ink);
  border-color: var(--line);
}

.btn--outline:hover {
  border-color: var(--brass);
  color: var(--brass-deep);
}

.btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.5rem;
}

/* —— Hero —— */
.hero {
  position: relative;
  min-height: min(88vh, 720px);
  display: flex;
  align-items: flex-end;
  color: var(--white);
  overflow: hidden;
  isolation: isolate;
}

.hero__media {
  position: absolute;
  inset: 0;
  z-index: -2;
}

.hero__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 40%;
  transform: scale(1.04);
  animation: hero-drift 18s var(--ease) forwards;
}

@keyframes hero-drift {
  from {
    transform: scale(1.08);
  }
  to {
    transform: scale(1);
  }
}

.hero__shade {
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(105deg, rgba(21, 32, 43, 0.88) 0%, rgba(21, 32, 43, 0.55) 48%, rgba(21, 32, 43, 0.35) 100%),
    linear-gradient(0deg, rgba(21, 32, 43, 0.75) 0%, transparent 45%);
}

.hero__content {
  width: min(100% - 2rem, var(--max));
  margin: 0 auto;
  padding: 4.5rem 0 3.5rem;
}

.hero__brand {
  font-family: var(--font-display);
  font-size: clamp(2.8rem, 7vw, 4.5rem);
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin: 0 0 0.35em;
  opacity: 0;
  animation: rise 0.8s var(--ease) 0.15s forwards;
}

.hero h1 {
  color: var(--white);
  max-width: 16ch;
  margin-bottom: 0.45em;
  opacity: 0;
  animation: rise 0.8s var(--ease) 0.28s forwards;
}

.hero__lede {
  max-width: 38ch;
  font-size: 1.15rem;
  color: rgba(255, 255, 255, 0.9);
  margin: 0;
  opacity: 0;
  animation: rise 0.8s var(--ease) 0.4s forwards;
}

.hero .btn-row {
  opacity: 0;
  animation: rise 0.8s var(--ease) 0.52s forwards;
}

@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(14px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Page hero (inner) */
.page-hero {
  position: relative;
  padding: 3.5rem 0 2.75rem;
  background:
    linear-gradient(120deg, rgba(21, 32, 43, 0.92), rgba(42, 58, 74, 0.85)),
    url("../img/hero-lift-station.jpg") center/cover;
  color: var(--white);
}

.page-hero h1 {
  color: var(--white);
  max-width: 18ch;
}

.page-hero__lede {
  max-width: 52ch;
  color: rgba(255, 255, 255, 0.88);
  font-size: 1.12rem;
  margin: 0;
}

.page-hero .btn-row .btn--outline {
  background: transparent;
  color: var(--white);
  border-color: rgba(255, 255, 255, 0.5);
}

.page-hero .btn-row .btn--outline:hover {
  background: rgba(255, 255, 255, 0.1);
  color: var(--white);
}

/* —— Sections —— */
.section {
  padding: 3.75rem 0;
}

.section--tight {
  padding: 2.5rem 0;
}

.section--band {
  background: var(--ink);
  color: rgba(255, 255, 255, 0.9);
}

.section--band h2,
.section--band h3 {
  color: var(--white);
}

.section--muted {
  background: rgba(228, 233, 238, 0.55);
  border-block: 1px solid var(--line);
}

.section__intro {
  max-width: 58ch;
  margin-bottom: 1.75rem;
}

.section__intro p {
  color: var(--ink-soft);
}

.kicker {
  font-family: var(--font-display);
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--brass-deep);
  margin: 0 0 0.5rem;
}

.section--band .kicker {
  color: #e0b45c;
}

/* —— Split —— */
.split {
  display: grid;
  gap: 2rem;
  align-items: start;
}

@media (min-width: 800px) {
  .split {
    grid-template-columns: 1.1fr 0.9fr;
    gap: 3rem;
  }

  .split--reverse {
    grid-template-columns: 0.9fr 1.1fr;
  }

  .split--reverse > :first-child {
    order: 2;
  }
}

/* —— Feature list (not cards) —— */
.checklist {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.65rem;
}

.checklist li {
  position: relative;
  padding-left: 1.35rem;
  color: var(--ink-soft);
}

.checklist li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 0.55rem;
  height: 0.55rem;
  background: var(--brass);
}

.checklist--light li {
  color: rgba(255, 255, 255, 0.88);
}

.checklist--light li::before {
  background: #e0b45c;
}

/* —— Spec rows —— */
.spec-grid {
  display: grid;
  gap: 1.75rem;
}

@media (min-width: 700px) {
  .spec-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.spec-block h3 {
  border-bottom: 2px solid var(--brass);
  padding-bottom: 0.4rem;
  margin-bottom: 0.85rem;
  display: inline-block;
}

.spec-block ul {
  margin: 0;
  padding-left: 1.1rem;
  color: var(--ink-soft);
}

.spec-block li + li {
  margin-top: 0.35rem;
}

/* —— FAQ —— */
.faq {
  display: grid;
  gap: 0;
  border-top: 1px solid var(--line);
}

.faq details {
  border-bottom: 1px solid var(--line);
  padding: 1rem 0;
}

.faq summary {
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  cursor: pointer;
  list-style: none;
  color: var(--ink);
}

.faq summary::-webkit-details-marker {
  display: none;
}

.faq summary::after {
  content: "+";
  float: right;
  color: var(--brass);
  font-weight: 700;
}

.faq details[open] summary::after {
  content: "–";
}

.faq details p {
  margin-top: 0.75rem;
  color: var(--ink-soft);
  max-width: 65ch;
}

/* —— CTA band —— */
.cta-band {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1.25rem;
}

.cta-band p {
  margin: 0;
  max-width: 42ch;
}

.cta-band__title {
  font-family: var(--font-display);
  font-size: 1.85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin: 0 0 0.35rem;
  color: var(--white);
}

/* —— Contact form —— */
.form {
  display: grid;
  gap: 1rem;
  max-width: 36rem;
}

.form label {
  display: grid;
  gap: 0.35rem;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--ink-soft);
}

.form input,
.form select,
.form textarea {
  font: inherit;
  padding: 0.7rem 0.85rem;
  border: 1px solid var(--line);
  background: var(--white);
  color: var(--ink);
  width: 100%;
}

.form input:focus,
.form select:focus,
.form textarea:focus {
  outline: 2px solid var(--brass);
  outline-offset: 1px;
}

.form textarea {
  min-height: 8rem;
  resize: vertical;
}

.form__note {
  font-size: 0.88rem;
  color: var(--steel);
}

.contact-facts {
  display: grid;
  gap: 1.25rem;
}

.contact-facts dt {
  font-family: var(--font-display);
  font-size: 0.95rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--brass-deep);
  margin: 0;
}

.contact-facts dd {
  margin: 0.2rem 0 0;
  font-size: 1.15rem;
}

.contact-facts a {
  text-decoration: none;
  color: var(--ink);
  font-weight: 600;
}

.contact-facts a:hover {
  color: var(--brass-deep);
}

/* —— Footer —— */
.site-footer {
  background: var(--ink);
  color: rgba(255, 255, 255, 0.75);
  padding: 2.75rem 0 2rem;
  margin-top: 0;
}

.site-footer a {
  color: rgba(255, 255, 255, 0.88);
  text-decoration: none;
}

.site-footer a:hover {
  color: #e0b45c;
}

.footer-grid {
  display: grid;
  gap: 2rem;
}

@media (min-width: 700px) {
  .footer-grid {
    grid-template-columns: 1.4fr 1fr 1fr;
  }
}

.site-footer h2 {
  font-size: 1.1rem;
  color: var(--white);
  margin-bottom: 0.75rem;
}

.footer-links {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.4rem;
}

.footer-meta {
  margin-top: 2rem;
  padding-top: 1.25rem;
  border-top: 1px solid rgba(255, 255, 255, 0.15);
  font-size: 0.88rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.5rem;
  justify-content: space-between;
}

/* —— Utility —— */
.prose {
  max-width: 65ch;
}

.prose h2 {
  margin-top: 1.75em;
}

.prose h2:first-child {
  margin-top: 0;
}

.urgent {
  color: var(--danger);
  font-weight: 700;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

@media (max-width: 860px) {
  .nav-toggle {
    display: inline-flex;
  }

  .nav {
    display: none;
    position: absolute;
    left: 0;
    right: 0;
    top: var(--nav-h);
    background: var(--paper);
    border-bottom: 1px solid var(--line);
    padding: 1rem 1rem 1.25rem;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.75rem;
  }

  .nav.is-open {
    display: flex;
  }

  .site-header {
    position: sticky;
  }

  .site-header__inner {
    position: relative;
  }
}

/* —— Cite-ready answer blocks (AI / featured-snippet friendly) —— */
.answer {
  background: var(--white);
  border: 1px solid var(--line);
  border-left: 4px solid var(--brass);
  padding: 1.35rem 1.5rem 1.5rem;
  max-width: 72ch;
}

.answer__label {
  font-family: var(--font-display);
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--brass-deep);
  margin: 0 0 0.5rem;
}

.answer h2,
.answer h3 {
  margin-bottom: 0.55em;
}

.answer > p:last-child {
  margin-bottom: 0;
}

.steps {
  list-style: none;
  margin: 1rem 0 0;
  padding: 0;
  counter-reset: tbs-step;
  display: grid;
  gap: 0.85rem;
}

.steps li {
  position: relative;
  padding-left: 2.5rem;
  color: var(--ink-soft);
}

.steps li::before {
  counter-increment: tbs-step;
  content: counter(tbs-step);
  position: absolute;
  left: 0;
  top: 0.05em;
  width: 1.75rem;
  height: 1.75rem;
  display: grid;
  place-items: center;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.95rem;
  background: var(--ink);
  color: var(--white);
}

.decision {
  display: grid;
  gap: 1rem;
  margin-top: 1.25rem;
}

@media (min-width: 700px) {
  .decision {
    grid-template-columns: 1fr 1fr;
  }
}

.decision__col h3 {
  font-size: 1.15rem;
  margin-bottom: 0.65rem;
}

.decision__col--yes h3 {
  color: var(--brass-deep);
}

.decision__col--no h3 {
  color: var(--danger);
}

.audience-list {
  list-style: none;
  margin: 1rem 0 0;
  padding: 0;
  display: grid;
  gap: 0.55rem 1.5rem;
}

@media (min-width: 600px) {
  .audience-list {
    grid-template-columns: 1fr 1fr;
  }
}

.audience-list li {
  padding-left: 1.1rem;
  position: relative;
  color: var(--ink-soft);
}

.audience-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 0.45rem;
  height: 0.45rem;
  background: var(--brass);
}

/* —— Job photo gallery —— */
.gallery {
  display: grid;
  gap: 0.65rem;
  grid-template-columns: repeat(2, 1fr);
}

@media (min-width: 700px) {
  .gallery {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (min-width: 1000px) {
  .gallery {
    grid-template-columns: repeat(4, 1fr);
  }
}

.gallery figure {
  margin: 0;
  position: relative;
  overflow: hidden;
  background: var(--ink);
  aspect-ratio: 4 / 3;
}

.gallery figure.gallery__tall {
  aspect-ratio: 3 / 4;
}

@media (min-width: 700px) {
  .gallery figure.gallery__wide {
    grid-column: span 2;
  }
}

.gallery img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s var(--ease);
}

.gallery figure:hover img {
  transform: scale(1.04);
}

.gallery figcaption {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 1.5rem 0.75rem 0.65rem;
  background: linear-gradient(transparent, rgba(21, 32, 43, 0.88));
  color: rgba(255, 255, 255, 0.92);
  font-size: 0.82rem;
  line-height: 1.35;
}

.gallery-note {
  margin-top: 1rem;
  color: var(--steel);
  font-size: 0.95rem;
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }

  .hero__media img {
    transform: none;
  }
}
