/* Catawba Septic — local SEO site */
:root {
  --ink: #121a17;
  --forest: #1a3329;
  --moss: #2f5c47;
  --sage: #6a8f7a;
  --fog: #d8e2dc;
  --paper: #e9efeb;
  --mist: #f3f7f4;
  --river: #27666b;
  --call: #c2410c;
  --call-dark: #9a3412;
  --white: #ffffff;
  --muted: #4a5c54;
  --line: rgba(18, 26, 23, 0.12);
  --shadow: 0 18px 50px rgba(18, 26, 23, 0.14);
  --radius: 4px;
  --max: 1120px;
  --font-display: "Fraunces", Georgia, serif;
  --font-body: "Sora", system-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.05rem;
  line-height: 1.65;
  color: var(--ink);
  background: var(--mist);
  -webkit-font-smoothing: antialiased;
}

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

a {
  color: var(--river);
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

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

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

h1 {
  font-size: clamp(2.4rem, 5.5vw, 3.75rem);
}

h2 {
  font-size: clamp(1.75rem, 3.5vw, 2.45rem);
}

h3 {
  font-size: clamp(1.25rem, 2vw, 1.45rem);
}

p {
  margin: 0 0 1.1em;
}

ul,
ol {
  margin: 0 0 1.25em;
  padding-left: 1.25em;
}

li {
  margin-bottom: 0.45em;
}

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

.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--call);
  color: var(--white);
  padding: 0.75rem 1rem;
  z-index: 1000;
}

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

/* Top bar — call first */
.topbar {
  background: var(--forest);
  color: var(--fog);
  font-size: 0.875rem;
  padding: 0.55rem 0;
}

.topbar .container {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.5rem;
  justify-content: space-between;
  align-items: center;
}

.topbar a {
  color: var(--white);
  text-decoration: none;
  font-weight: 600;
}

.topbar a:hover {
  color: #fbbf24;
}

.topbar-phone {
  letter-spacing: 0.02em;
}

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

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

.logo {
  font-family: var(--font-display);
  font-size: 1.45rem;
  font-weight: 700;
  color: var(--forest);
  text-decoration: none;
  letter-spacing: -0.03em;
  line-height: 1.1;
}

.logo span {
  display: block;
  font-family: var(--font-body);
  font-size: 0.68rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--sage);
  margin-top: 0.15rem;
}

.nav-toggle {
  display: none;
  background: var(--forest);
  color: var(--white);
  border: 0;
  padding: 0.55rem 0.85rem;
  font-family: var(--font-body);
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  border-radius: var(--radius);
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 0.15rem 1.1rem;
}

.site-nav > a,
.nav-dropdown > summary {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--ink);
  text-decoration: none;
  padding: 0.35rem 0;
  list-style: none;
  cursor: pointer;
}

.site-nav > a:hover,
.nav-dropdown > summary:hover {
  color: var(--moss);
}

.nav-dropdown {
  position: relative;
}

.nav-dropdown > summary::-webkit-details-marker {
  display: none;
}

.nav-dropdown > summary::after {
  content: " ▾";
  font-size: 0.7em;
  opacity: 0.7;
}

.nav-dropdown .dropdown {
  position: absolute;
  top: calc(100% + 0.5rem);
  left: 0;
  min-width: 220px;
  background: var(--white);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  padding: 0.5rem 0;
  display: none;
  z-index: 50;
}

.nav-dropdown[open] .dropdown {
  display: block;
  animation: fadeUp 0.25s var(--ease);
}

.dropdown a {
  display: block;
  padding: 0.5rem 1rem;
  color: var(--ink);
  text-decoration: none;
  font-size: 0.9rem;
}

.dropdown a:hover {
  background: var(--paper);
  color: var(--moss);
}

.header-cta {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: var(--call);
  color: var(--white) !important;
  text-decoration: none !important;
  font-weight: 700;
  font-size: 0.9rem;
  padding: 0.7rem 1.1rem;
  border-radius: var(--radius);
  white-space: nowrap;
  transition: background 0.2s var(--ease), transform 0.2s var(--ease);
}

.header-cta:hover {
  background: var(--call-dark);
  transform: translateY(-1px);
  color: var(--white) !important;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 1rem;
  padding: 0.95rem 1.45rem;
  border-radius: var(--radius);
  border: 2px solid transparent;
  text-decoration: none;
  cursor: pointer;
  transition: background 0.2s var(--ease), color 0.2s var(--ease), border-color 0.2s var(--ease), transform 0.2s var(--ease);
}

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

.btn-call {
  background: var(--call);
  color: var(--white);
}

.btn-call:hover {
  background: var(--call-dark);
  color: var(--white);
}

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

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

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

.btn-outline:hover {
  background: var(--forest);
  color: var(--white);
}

.btn-dark {
  background: var(--forest);
  color: var(--white);
}

.btn-dark:hover {
  background: var(--ink);
  color: var(--white);
}

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

/* Hero */
.hero {
  position: relative;
  min-height: min(92vh, 820px);
  display: flex;
  align-items: flex-end;
  color: var(--white);
  overflow: hidden;
  background:
    linear-gradient(160deg, rgba(18, 26, 23, 0.55) 0%, rgba(26, 51, 41, 0.72) 45%, rgba(18, 26, 23, 0.88) 100%),
    radial-gradient(ellipse at 70% 20%, rgba(39, 102, 107, 0.35), transparent 55%),
    url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.03'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E"),
    linear-gradient(135deg, #1a3329 0%, #27666b 50%, #0f1f1a 100%);
  background-size: cover, cover, auto, cover;
}

.hero-inner {
  width: min(100% - 2rem, var(--max));
  margin: 0 auto;
  padding: 5rem 0 4.5rem;
  max-width: 720px;
  margin-left: max(1rem, calc((100% - var(--max)) / 2));
  animation: fadeUp 0.9s var(--ease) both;
}

.hero-brand {
  font-family: var(--font-display);
  font-size: clamp(2.8rem, 7vw, 4.5rem);
  font-weight: 700;
  letter-spacing: -0.035em;
  line-height: 0.95;
  margin: 0 0 1rem;
  color: var(--white);
}

.hero h1 {
  color: var(--white);
  font-size: clamp(1.35rem, 2.8vw, 1.85rem);
  font-weight: 500;
  font-family: var(--font-body);
  letter-spacing: -0.01em;
  line-height: 1.35;
  max-width: 28ch;
  margin-bottom: 0.85rem;
}

.hero-lead {
  font-size: 1.1rem;
  color: rgba(255, 255, 255, 0.88);
  max-width: 38ch;
  margin-bottom: 0;
}

.hero-phone-note {
  margin-top: 1.25rem;
  font-size: 0.95rem;
  color: rgba(255, 255, 255, 0.75);
}

.hero-phone-note a {
  color: #fbbf24;
  font-weight: 700;
  text-decoration: none;
}

/* Page hero (inner pages) */
.page-hero {
  position: relative;
  padding: 4rem 0 3.25rem;
  color: var(--white);
  background:
    linear-gradient(145deg, rgba(18, 26, 23, 0.88), rgba(39, 102, 107, 0.75)),
    linear-gradient(120deg, #1a3329, #27666b);
  overflow: hidden;
}

.page-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: url("data:image/svg+xml,%3Csvg width='80' height='80' viewBox='0 0 80 80' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M0 40h80M40 0v80' stroke='%23ffffff' stroke-opacity='0.04' fill='none'/%3E%3C/svg%3E");
  pointer-events: none;
}

.page-hero .container {
  position: relative;
  z-index: 1;
  max-width: 720px;
  margin-left: max(1rem, calc((100% - var(--max)) / 2));
  animation: fadeUp 0.7s var(--ease) both;
}

.page-hero .breadcrumb {
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.65);
  margin-bottom: 1rem;
}

.page-hero .breadcrumb a {
  color: rgba(255, 255, 255, 0.8);
  text-decoration: none;
}

.page-hero .breadcrumb a:hover {
  color: #fbbf24;
}

.page-hero h1 {
  color: var(--white);
  margin-bottom: 0.75rem;
}

.page-hero p {
  color: rgba(255, 255, 255, 0.88);
  font-size: 1.1rem;
  max-width: 48ch;
  margin-bottom: 0;
}

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

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

.section-dark {
  background: var(--forest);
  color: var(--fog);
}

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

.section-dark p,
.section-dark li {
  color: rgba(232, 239, 235, 0.88);
}

.section-intro {
  max-width: 620px;
  margin-bottom: 2.5rem;
}

.section-intro p {
  color: var(--muted);
  font-size: 1.1rem;
}

.prose {
  max-width: 720px;
}

.prose h2 {
  margin-top: 2.25rem;
}

.prose h3 {
  margin-top: 1.75rem;
}

.split {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 3rem;
  align-items: start;
}

.split-reverse {
  grid-template-columns: 0.85fr 1.15fr;
}

/* Service / area link lists — not card grids in hero; interaction lists OK */
.link-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
}

.link-grid a {
  background: var(--white);
  padding: 1.35rem 1.25rem;
  text-decoration: none;
  color: var(--ink);
  transition: background 0.2s var(--ease);
}

.link-grid a:hover {
  background: var(--paper);
}

.link-grid strong {
  display: block;
  font-family: var(--font-display);
  font-size: 1.2rem;
  margin-bottom: 0.35rem;
  color: var(--forest);
}

.link-grid span {
  font-size: 0.92rem;
  color: var(--muted);
  line-height: 1.45;
}

/* Process steps */
.process {
  counter-reset: step;
  display: grid;
  gap: 1.5rem;
}

.process li {
  list-style: none;
  position: relative;
  padding-left: 3.5rem;
  margin: 0;
}

.process {
  padding: 0;
  margin: 0;
}

.process li::before {
  counter-increment: step;
  content: counter(step);
  position: absolute;
  left: 0;
  top: 0;
  width: 2.4rem;
  height: 2.4rem;
  border-radius: 50%;
  background: var(--forest);
  color: var(--white);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.1rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.process h3 {
  margin-bottom: 0.35rem;
}

.process p {
  margin: 0;
  color: var(--muted);
}

/* FAQ */
.faq-list {
  max-width: 760px;
}

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

.faq-list summary {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 600;
  cursor: pointer;
  list-style: none;
  padding-right: 1.5rem;
  position: relative;
}

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

.faq-list summary::after {
  content: "+";
  position: absolute;
  right: 0;
  top: 0;
  font-size: 1.35rem;
  color: var(--moss);
}

.faq-list details[open] summary::after {
  content: "−";
}

.faq-list details p {
  margin: 0.75rem 0 0.25rem;
  color: var(--muted);
}

/* Call band */
.call-band {
  padding: 3.5rem 0;
  background:
    linear-gradient(120deg, #1a3329 0%, #27666b 100%);
  color: var(--white);
  text-align: center;
}

.call-band h2 {
  color: var(--white);
  margin-bottom: 0.5rem;
}

.call-band p {
  color: rgba(255, 255, 255, 0.85);
  max-width: 42ch;
  margin: 0 auto 1.5rem;
}

.call-band .phone-xl {
  display: block;
  font-family: var(--font-display);
  font-size: clamp(1.85rem, 4vw, 2.75rem);
  font-weight: 700;
  color: #fbbf24;
  text-decoration: none;
  margin-bottom: 1.25rem;
  letter-spacing: -0.02em;
}

.call-band .phone-xl:hover {
  color: #fde68a;
}

/* Forms */
.form-panel {
  background: var(--white);
  border: 1px solid var(--line);
  padding: 1.75rem;
  box-shadow: var(--shadow);
}

.form-panel h2,
.form-panel h3 {
  margin-top: 0;
}

.form-grid {
  display: grid;
  gap: 1rem;
}

.form-grid label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 0.35rem;
  color: var(--ink);
}

.form-grid input,
.form-grid select,
.form-grid textarea {
  width: 100%;
  font-family: var(--font-body);
  font-size: 1rem;
  padding: 0.75rem 0.85rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--mist);
  color: var(--ink);
}

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

.form-grid textarea {
  min-height: 120px;
  resize: vertical;
}

.form-note {
  font-size: 0.85rem;
  color: var(--muted);
  margin: 0.75rem 0 0;
}

.honeypot {
  position: absolute;
  left: -9999px;
  opacity: 0;
  height: 0;
  overflow: hidden;
}

/* Trust strip */
.trust-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 1.25rem 2.5rem;
  padding: 1.75rem 0;
  border-bottom: 1px solid var(--line);
  font-size: 0.95rem;
  color: var(--muted);
}

.trust-strip strong {
  display: block;
  font-family: var(--font-display);
  font-size: 1.15rem;
  color: var(--forest);
  font-weight: 600;
}

/* Table */
.data-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.95rem;
  margin: 1.5rem 0;
}

.data-table th,
.data-table td {
  text-align: left;
  padding: 0.85rem 1rem;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
}

.data-table th {
  background: var(--forest);
  color: var(--white);
  font-weight: 600;
}

.data-table tr:nth-child(even) td {
  background: rgba(232, 239, 235, 0.5);
}

/* Sidebar sticky call */
.sticky-call {
  position: sticky;
  top: 5.5rem;
  background: var(--forest);
  color: var(--white);
  padding: 1.5rem;
}

.sticky-call h3 {
  color: var(--white);
  margin-top: 0;
}

.sticky-call p {
  color: rgba(255, 255, 255, 0.85);
  font-size: 0.95rem;
}

.sticky-call .btn {
  width: 100%;
  margin-top: 0.5rem;
}

.sticky-call .phone-link {
  display: block;
  text-align: center;
  color: #fbbf24;
  font-weight: 700;
  font-size: 1.25rem;
  text-decoration: none;
  margin: 0.75rem 0 1rem;
}

/* Footer */
.site-footer {
  background: var(--ink);
  color: rgba(232, 239, 235, 0.8);
  padding: 3.5rem 0 2rem;
  font-size: 0.95rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 2rem;
  margin-bottom: 2.5rem;
}

.site-footer h3 {
  color: var(--white);
  font-size: 1.05rem;
  margin-bottom: 0.85rem;
}

.site-footer a {
  color: rgba(232, 239, 235, 0.8);
  text-decoration: none;
}

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

.site-footer ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.site-footer li {
  margin-bottom: 0.45rem;
}

.footer-brand {
  font-family: var(--font-display);
  font-size: 1.5rem;
  color: var(--white);
  margin-bottom: 0.75rem;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 1.5rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  justify-content: space-between;
  font-size: 0.85rem;
  color: rgba(232, 239, 235, 0.55);
}

/* Floating call button (mobile) */
.float-call {
  display: none;
  position: fixed;
  bottom: 1rem;
  right: 1rem;
  left: 1rem;
  z-index: 200;
  background: var(--call);
  color: var(--white);
  text-align: center;
  text-decoration: none;
  font-weight: 700;
  padding: 1rem;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.float-call:hover {
  background: var(--call-dark);
  color: var(--white);
}

/* Animations */
@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(18px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

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

.text-muted {
  color: var(--muted);
}

.mt-0 {
  margin-top: 0;
}

/* Responsive */
@media (max-width: 900px) {
  .split,
  .split-reverse {
    grid-template-columns: 1fr;
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }

  .nav-toggle {
    display: inline-block;
  }

  .site-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    background: var(--white);
    border-bottom: 1px solid var(--line);
    padding: 1rem;
    gap: 0;
    box-shadow: var(--shadow);
  }

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

  .site-nav > a,
  .nav-dropdown > summary {
    padding: 0.75rem 0.25rem;
    border-bottom: 1px solid var(--line);
  }

  .nav-dropdown .dropdown {
    position: static;
    box-shadow: none;
    border: 0;
    padding: 0 0 0.5rem 0.75rem;
  }

  .header-cta {
    display: none;
  }

  .float-call {
    display: block;
  }

  body {
    padding-bottom: 4.5rem;
  }

  .sticky-call {
    position: static;
  }
}

@media (max-width: 560px) {
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .hero-inner {
    padding: 4rem 0 3.5rem;
  }

  .topbar .container {
    justify-content: center;
    text-align: center;
  }
}
