/* TexarkanaSeptic.com — Mobile-First High-Performance Stylesheet (Zero External Fonts) */
:root {
  --bg: #f8faf9;
  --surface: #ffffff;
  --surface-alt: #eef4f1;
  --text: #16241d;
  --text-muted: #475950;
  --primary: #14532d;
  --primary-dark: #0f3f22;
  --primary-light: #dcfce7;
  --accent: #b45309;
  --accent-bg: #fffbeb;
  --border: #d5e0da;
  --danger: #b91c1c;
  --radius: 10px;
  --shadow: 0 4px 18px rgba(15, 39, 25, 0.07);
  --max-w: 1140px;
}

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

[hidden] {
  display: none !important;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  color: var(--text);
  background-color: var(--bg);
  overflow-x: hidden;
  padding-bottom: 72px; /* Space for sticky mobile bottom CTA bar */
}

@media (min-width: 860px) {
  body {
    padding-bottom: 0;
  }
}

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

a {
  color: var(--primary);
  text-decoration: underline;
  text-underline-offset: 2px;
}

a:hover {
  color: var(--primary-dark);
}

.container {
  width: 100%;
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 1rem;
}

@media (min-width: 640px) {
  .container {
    padding: 0 1.25rem;
  }
}

/* Top Compliance & Dual-State Notice Bar */
.top-bar {
  background: var(--primary-dark);
  color: #ecfdf5;
  font-size: 0.82rem;
  padding: 0.4rem 0;
}

.top-bar-inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 0.35rem 0.75rem;
}

.top-bar a {
  color: #bbf7d0;
  font-weight: 600;
}

@media (max-width: 639px) {
  .top-bar-inner {
    justify-content: center;
    text-align: center;
    font-size: 0.78rem;
  }
  .top-bar-inner > span:nth-child(2) {
    display: none;
  }
}

/* Header & Collapsible Mobile Navigation */
.site-header {
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 1px 6px rgba(15, 39, 25, 0.04);
}

.header-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  padding: 0.65rem 0;
  gap: 0.5rem;
}

@media (min-width: 860px) {
  .header-inner {
    flex-wrap: nowrap;
    padding: 0.85rem 0;
    gap: 1rem;
  }
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  text-decoration: none;
  color: var(--text);
  min-width: 0;
  flex: 1 1 0%;
  margin-right: 0.5rem;
}

.brand-mark {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  background: var(--primary);
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 1rem;
  letter-spacing: -0.5px;
  flex-shrink: 0;
}

.brand-text {
  min-width: 0;
}

.brand-text strong {
  display: block;
  font-size: 1.05rem;
  line-height: 1.15;
  color: var(--primary-dark);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.brand-text span {
  display: block;
  font-size: 0.73rem;
  color: var(--text-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

@media (min-width: 480px) {
  .brand-mark {
    width: 38px;
    height: 38px;
  }
  .brand-text strong {
    font-size: 1.15rem;
  }
  .brand-text span {
    font-size: 0.78rem;
  }
}

/* Mobile Menu Button */
.nav-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  min-height: 42px;
  padding: 0.45rem 0.75rem;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--surface-alt);
  color: var(--primary-dark);
  font-family: inherit;
  font-size: 0.88rem;
  font-weight: 700;
  cursor: pointer;
  flex-shrink: 0;
}

.nav-toggle:focus-visible {
  outline: 2px solid var(--primary);
}

.nav-toggle-icon {
  display: inline-block;
  width: 18px;
  height: 14px;
  position: relative;
}

.nav-toggle-icon span {
  display: block;
  position: absolute;
  height: 2px;
  width: 100%;
  background: var(--primary-dark);
  border-radius: 2px;
  left: 0;
  transition: transform 0.2s ease, opacity 0.2s ease, top 0.2s ease;
}

.nav-toggle-icon span:nth-child(1) { top: 0; }
.nav-toggle-icon span:nth-child(2) { top: 6px; }
.nav-toggle-icon span:nth-child(3) { top: 12px; }

.nav-toggle[aria-expanded="true"] .nav-toggle-icon span:nth-child(1) {
  top: 6px;
  transform: rotate(45deg);
}
.nav-toggle[aria-expanded="true"] .nav-toggle-icon span:nth-child(2) {
  opacity: 0;
}
.nav-toggle[aria-expanded="true"] .nav-toggle-icon span:nth-child(3) {
  top: 6px;
  transform: rotate(-45deg);
}

.main-nav {
  display: none;
  width: 100%;
  flex-direction: column;
  background: var(--surface);
  border-top: 1px solid var(--border);
  margin-top: 0.5rem;
  padding: 0.5rem 0 0.35rem;
  gap: 0.15rem;
}

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

.main-nav a {
  text-decoration: none;
  color: var(--text);
  font-weight: 600;
  font-size: 0.98rem;
  padding: 0.65rem 0.5rem;
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.main-nav a:hover,
.main-nav a[aria-current="page"] {
  color: var(--primary);
  background: var(--surface-alt);
}

.header-cta {
  display: none;
}

@media (min-width: 860px) {
  .nav-toggle {
    display: none;
  }
  .main-nav {
    display: flex !important;
    width: auto;
    flex-direction: row;
    border-top: none;
    margin-top: 0;
    padding: 0;
    gap: 1.15rem;
  }
  .main-nav a {
    font-size: 0.94rem;
    padding: 0.25rem 0;
    border-radius: 0;
    background: transparent !important;
  }
  .main-nav a:hover,
  .main-nav a[aria-current="page"] {
    border-bottom: 2px solid var(--primary);
  }
  .header-cta {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    flex-shrink: 0;
  }
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  min-height: 46px;
  padding: 0.68rem 1.15rem;
  border-radius: 8px;
  font-weight: 700;
  font-size: 0.96rem;
  line-height: 1.25;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  border: 2px solid transparent;
  transition: background-color 0.15s ease, border-color 0.15s ease, transform 0.1s ease;
  touch-action: manipulation;
}

.btn-primary {
  background: var(--primary);
  color: #ffffff;
}

.btn-primary:hover {
  background: var(--primary-dark);
  color: #ffffff;
}

.btn-outline {
  background: transparent;
  border-color: var(--primary);
  color: var(--primary);
}

.btn-outline:hover {
  background: var(--primary-light);
  color: var(--primary-dark);
}

.btn-block {
  width: 100%;
  padding: 0.85rem 1.25rem;
  font-size: 1.02rem;
}

/* Hero Section */
.hero {
  background: linear-gradient(180deg, #eef6f1 0%, var(--bg) 100%);
  padding: 1.35rem 0 2.25rem;
  border-bottom: 1px solid var(--border);
}

@media (min-width: 768px) {
  .hero {
    padding: 2.25rem 0 2.75rem;
  }
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.65rem;
  align-items: start;
}

@media (min-width: 920px) {
  .hero-grid {
    grid-template-columns: 1.15fr 0.85fr;
    gap: 2.5rem;
  }
}

.badge {
  display: inline-block;
  background: var(--primary-light);
  color: var(--primary-dark);
  font-weight: 700;
  font-size: 0.78rem;
  padding: 0.28rem 0.68rem;
  border-radius: 999px;
  margin-bottom: 0.7rem;
  border: 1px solid #bbf7d0;
}

.hero h1 {
  font-size: clamp(1.55rem, 4.8vw, 2.55rem);
  line-height: 1.18;
  margin: 0 0 0.75rem;
  color: var(--text);
  letter-spacing: -0.02em;
}

.hero-lead {
  font-size: 1rem;
  color: var(--text-muted);
  margin: 0 0 1.1rem;
}

@media (min-width: 768px) {
  .hero-lead {
    font-size: 1.08rem;
    margin: 0 0 1.25rem;
  }
}

.hero-points {
  list-style: none;
  padding: 0;
  margin: 0 0 1.25rem;
  display: grid;
  gap: 0.6rem;
}

.hero-points li {
  display: flex;
  align-items: flex-start;
  gap: 0.55rem;
  font-size: 0.95rem;
  font-weight: 500;
}

.check-icon {
  color: var(--primary);
  font-weight: 800;
  flex-shrink: 0;
  margin-top: 0.05rem;
}

.hero-actions {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  margin-bottom: 0.5rem;
}

.hero-actions .btn {
  width: 100%;
}

@media (min-width: 540px) {
  .hero-actions {
    flex-direction: row;
    flex-wrap: wrap;
    gap: 0.75rem;
  }
  .hero-actions .btn {
    width: auto;
  }
}

/* Referral Disclosure Banner */
.disclosure-box {
  background: var(--surface);
  border-left: 4px solid var(--primary);
  border-top: 1px solid var(--border);
  border-right: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 0.75rem 0.9rem;
  border-radius: 6px;
  font-size: 0.84rem;
  line-height: 1.45;
  color: var(--text-muted);
  margin-bottom: 1rem;
}

.disclosure-box strong {
  color: var(--text);
}

/* Quote Form Card */
.form-card {
  background: var(--surface);
  border: 2px solid var(--primary);
  border-radius: var(--radius);
  padding: 1.15rem;
  box-shadow: var(--shadow);
  scroll-margin-top: 72px;
}

@media (min-width: 640px) {
  .form-card {
    border-width: 1px;
    border-color: var(--border);
    padding: 1.4rem;
  }
}

.form-card h2 {
  margin: 0 0 0.35rem;
  font-size: 1.3rem;
  color: var(--primary-dark);
}

.form-subtitle {
  margin: 0 0 0.9rem;
  font-size: 0.9rem;
  color: var(--text-muted);
}

.form-group {
  margin-bottom: 0.85rem;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0;
}

@media (min-width: 540px) {
  .form-row {
    grid-template-columns: 1fr 1fr;
    gap: 0.85rem;
  }
}

label {
  display: block;
  font-weight: 600;
  font-size: 0.9rem;
  margin-bottom: 0.3rem;
  color: var(--text);
}

/* 16px (1rem) prevents automatic page zoom on iOS Safari */
input[type="text"],
input[type="tel"],
input[type="email"],
select,
textarea {
  width: 100%;
  min-height: 46px;
  padding: 0.65rem 0.75rem;
  border: 1px solid #b8c9bf;
  border-radius: 6px;
  font-family: inherit;
  font-size: 16px;
  line-height: 1.4;
  color: var(--text);
  background: #fff;
  -webkit-appearance: none;
  appearance: none;
}

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 fill='%2316241d' d='M1.41 0L6 4.58 10.59 0 12 1.41l-6 6-6-6z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.85rem center;
  padding-right: 2.25rem;
}

textarea {
  min-height: 88px;
  resize: vertical;
}

input:focus,
select:focus,
textarea:focus {
  outline: 2px solid var(--primary);
  border-color: var(--primary);
}

.hp-field {
  position: absolute !important;
  left: -9999px !important;
  width: 1px !important;
  height: 1px !important;
  overflow: hidden !important;
}

.consent-group {
  background: var(--surface-alt);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 0.8rem;
  margin: 0.95rem 0;
}

.consent-label {
  display: flex;
  align-items: flex-start;
  gap: 0.65rem;
  font-weight: 400;
  font-size: 0.81rem;
  line-height: 1.45;
  color: var(--text-muted);
  cursor: pointer;
  margin: 0;
}

.consent-label input[type="checkbox"] {
  margin-top: 0.15rem;
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  accent-color: var(--primary);
  cursor: pointer;
}

.form-status {
  margin-top: 0.85rem;
  padding: 0.75rem 0.9rem;
  border-radius: 6px;
  font-size: 0.92rem;
  font-weight: 600;
}

.form-status.success {
  background: var(--primary-light);
  color: var(--primary-dark);
  border: 1px solid #86efac;
}

.form-status.error {
  background: #fef2f2;
  color: var(--danger);
  border: 1px solid #fecaca;
}

/* Sections & Cards */
.section {
  padding: 2.15rem 0;
}

@media (min-width: 768px) {
  .section {
    padding: 3rem 0;
  }
}

.section-alt {
  background: var(--surface);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.section-header {
  max-width: 760px;
  margin-bottom: 1.5rem;
}

@media (min-width: 768px) {
  .section-header {
    margin-bottom: 2rem;
  }
}

.section-header h2 {
  font-size: clamp(1.35rem, 3.2vw, 2rem);
  margin: 0 0 0.55rem;
  line-height: 1.25;
}

.section-header p {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.98rem;
}

.card-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
}

@media (min-width: 680px) {
  .card-grid {
    gap: 1.25rem;
  }
  .card-grid-2 {
    grid-template-columns: repeat(2, 1fr);
  }
  .card-grid-3 {
    grid-template-columns: repeat(3, 1fr);
  }
}

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.15rem;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.03);
}

@media (min-width: 680px) {
  .card {
    padding: 1.35rem;
  }
}

.section-alt .card {
  background: var(--bg);
}

.card h3 {
  margin: 0 0 0.5rem;
  font-size: 1.12rem;
  color: var(--primary-dark);
}

.card p, .card ul {
  margin: 0 0 0.8rem;
  color: var(--text-muted);
  font-size: 0.95rem;
}

.card ul {
  padding-left: 1.2rem;
}

.card li {
  margin-bottom: 0.35rem;
}

.card p:last-child, .card ul:last-child {
  margin-bottom: 0;
}

/* Pricing & Schedule Data Tables (Responsive Stacked Cards on Mobile) */
.table-wrap {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  overflow: hidden;
}

table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  font-size: 0.94rem;
}

th, td {
  padding: 0.85rem 1rem;
  border-bottom: 1px solid var(--border);
}

th {
  background: var(--surface-alt);
  color: var(--primary-dark);
  font-weight: 700;
}

tr:last-child td {
  border-bottom: none;
}

@media (max-width: 679px) {
  .table-wrap {
    border: none;
    background: transparent;
  }
  table, thead, tbody, th, td, tr {
    display: block;
    width: 100%;
  }
  thead tr {
    position: absolute;
    top: -9999px;
    left: -9999px;
  }
  tbody tr {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    margin-bottom: 0.85rem;
    padding: 0.25rem 0;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.03);
  }
  tbody tr:last-child {
    margin-bottom: 0;
  }
  td {
    border-bottom: 1px solid #edf2ef;
    padding: 0.6rem 0.95rem;
    font-size: 0.92rem;
  }
  td:last-child {
    border-bottom: none;
  }
  td[data-label]::before {
    content: attr(data-label);
    display: block;
    font-size: 0.74rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    color: var(--primary);
    margin-bottom: 0.15rem;
  }
}

/* Callout Box */
.callout {
  background: var(--accent-bg);
  border: 1px solid #fde68a;
  border-left: 4px solid var(--accent);
  border-radius: 8px;
  padding: 1rem 1.1rem;
  margin: 1.35rem 0;
}

.callout h3, .callout h4 {
  margin: 0 0 0.35rem;
  color: #78350f;
  font-size: 1.06rem;
}

.callout p {
  margin: 0;
  color: #78350f;
  font-size: 0.93rem;
}

/* Area Tags */
.town-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.75rem;
  margin-top: 0.85rem;
}

@media (min-width: 480px) {
  .town-grid {
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 0.85rem;
  }
}

.town-item {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 0.8rem 0.95rem;
}

.town-item strong {
  display: block;
  color: var(--primary-dark);
  font-size: 0.96rem;
}

.town-item span {
  font-size: 0.83rem;
  color: var(--text-muted);
}

/* FAQ List */
.faq-list {
  display: grid;
  gap: 0.85rem;
}

.faq-item {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 1.05rem 1.15rem;
}

.faq-item h3 {
  margin: 0 0 0.45rem;
  font-size: 1.02rem;
  color: var(--primary-dark);
}

.faq-item p {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.94rem;
}

/* Footer */
.site-footer {
  background: #101c15;
  color: #d1dbd5;
  padding: 2.25rem 0 2rem;
  margin-top: 1.5rem;
  font-size: 0.9rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
  margin-bottom: 1.75rem;
}

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

.site-footer h3 {
  color: #ffffff;
  font-size: 1.02rem;
  margin: 0 0 0.65rem;
}

.site-footer ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 0.5rem;
}

.site-footer a {
  color: #a7f3d0;
  text-decoration: none;
  display: inline-block;
  padding: 0.1rem 0;
}

.site-footer a:hover {
  text-decoration: underline;
}

.footer-disclosure {
  border-top: 1px solid #26382d;
  padding-top: 1.25rem;
  font-size: 0.82rem;
  color: #9caea4;
  line-height: 1.55;
}

/* Hero & Service Visuals */
.hero-media {
  margin: 0 0 1.2rem;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  background: var(--surface);
  position: relative;
}

.hero-media img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

.hero-media-caption {
  padding: 0.5rem 0.8rem;
  background: var(--surface);
  border-top: 1px solid var(--border);
  font-size: 0.78rem;
  color: var(--text-muted);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.25rem 0.5rem;
}

.hero-media-caption strong {
  color: var(--primary-dark);
}

.visual-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
  margin-bottom: 1.65rem;
}

@media (min-width: 760px) {
  .visual-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 1.25rem;
    margin-bottom: 2rem;
  }
}

.visual-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
  display: flex;
  flex-direction: column;
}

.visual-card img {
  display: block;
  width: 100%;
  height: 195px;
  object-fit: cover;
}

@media (min-width: 760px) {
  .visual-card img {
    height: 210px;
  }
}

.visual-card-body {
  padding: 0.95rem 1.05rem;
}

.visual-card-body h3 {
  margin: 0 0 0.35rem;
  font-size: 1.05rem;
  color: var(--primary-dark);
}

.visual-card-body p {
  margin: 0;
  font-size: 0.9rem;
  color: var(--text-muted);
}

/* Sticky Mobile Bottom CTA Bar */
.mobile-cta-bar {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 95;
  background: rgba(255, 255, 255, 0.97);
  border-top: 1px solid var(--border);
  box-shadow: 0 -4px 16px rgba(15, 39, 25, 0.12);
  padding: 0.55rem 0.85rem calc(0.55rem + env(safe-area-inset-bottom, 0px));
  display: flex;
  gap: 0.5rem;
  align-items: center;
  justify-content: center;
  transition: transform 0.22s ease, opacity 0.22s ease;
}

.mobile-cta-bar.is-hidden {
  transform: translateY(110%);
  opacity: 0;
  pointer-events: none;
}

.mobile-cta-bar .btn {
  width: 100%;
  min-height: 44px;
  padding: 0.6rem 1rem;
  font-size: 0.96rem;
}

@media (min-width: 860px) {
  .mobile-cta-bar {
    display: none !important;
  }
}
