/* Blackfoot Septic — design system */
:root {
  --navy: #1b2a45;
  --navy-deep: #0f1a2e;
  --green: #2f6b3a;
  --green-bright: #3a8548;
  --green-dark: #1e4a28;
  --sky: #7eb8d4;
  --sky-light: #c5e0ef;
  --cream-soft: #eef3f0;
  --white: #ffffff;
  --text: #1b2a45;
  --text-muted: #4a5568;
  --border: rgba(27, 42, 69, 0.12);
  --font-display: "Zilla Slab", Georgia, serif;
  --font-body: "Source Sans 3", "Segoe UI", sans-serif;
  --shadow-soft: 0 12px 40px rgba(15, 26, 46, 0.18);
  --radius: 4px;
  --max: 1120px;
  --header-h: 4.5rem;
}

*,
*::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(--text);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
}

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

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

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

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.15;
  color: var(--navy);
  margin: 0 0 0.75rem;
}

h1 { font-size: clamp(2rem, 4.5vw, 3.25rem); }
h2 { font-size: clamp(1.65rem, 3vw, 2.35rem); }
h3 { font-size: clamp(1.25rem, 2vw, 1.5rem); }

p { margin: 0 0 1rem; }

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

/* ——— Header ——— */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(15, 26, 46, 0.94);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

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

.logo-link {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  text-decoration: none;
  color: var(--white);
}

.logo-link img {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  object-fit: cover;
  background: var(--white);
}

.logo-text {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.05rem;
  letter-spacing: 0.02em;
  line-height: 1.2;
}

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

.nav-toggle {
  display: none;
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.25);
  color: var(--white);
  padding: 0.45rem 0.7rem;
  font: inherit;
  cursor: pointer;
  border-radius: var(--radius);
}

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

.site-nav a {
  color: rgba(255, 255, 255, 0.88);
  text-decoration: none;
  padding: 0.5rem 0.7rem;
  font-size: 0.95rem;
  font-weight: 600;
  border-radius: var(--radius);
  transition: background 0.2s, color 0.2s;
}

.site-nav a:hover,
.site-nav a:focus-visible {
  background: rgba(255, 255, 255, 0.1);
  color: var(--white);
}

.nav-cta {
  background: var(--green) !important;
  color: var(--white) !important;
  margin-left: 0.35rem;
}

.nav-cta:hover {
  background: var(--green-bright) !important;
}

.nav-dropdown {
  position: relative;
}

.nav-dropdown > button {
  background: transparent;
  border: none;
  color: rgba(255, 255, 255, 0.88);
  padding: 0.5rem 0.7rem;
  font: inherit;
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  border-radius: var(--radius);
}

.nav-dropdown > button:hover {
  background: rgba(255, 255, 255, 0.1);
  color: var(--white);
}

.dropdown-panel {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 220px;
  background: var(--navy-deep);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius);
  padding: 0.4rem;
  box-shadow: var(--shadow-soft);
}

.nav-dropdown:hover .dropdown-panel,
.nav-dropdown:focus-within .dropdown-panel {
  display: block;
}

.dropdown-panel a {
  display: block;
  padding: 0.55rem 0.75rem;
}

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

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

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

.btn-primary:hover {
  background: var(--green-bright);
  color: var(--white);
}

.btn-secondary {
  background: transparent;
  border-color: var(--white);
  color: var(--white);
}

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

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

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

.btn-lg {
  padding: 1rem 1.75rem;
  font-size: 1.05rem;
}

/* ——— Hero ——— */
.hero {
  position: relative;
  min-height: min(92vh, 780px);
  display: flex;
  align-items: flex-end;
  color: var(--white);
  overflow: hidden;
  background:
    linear-gradient(160deg, rgba(15, 26, 46, 0.55) 0%, rgba(15, 26, 46, 0.78) 55%, rgba(15, 26, 46, 0.92) 100%),
    linear-gradient(180deg, #5a8fb0 0%, #7aab6a 45%, #3d6b45 100%);
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(ellipse 80% 50% at 70% 20%, rgba(126, 184, 212, 0.35), transparent 55%),
    radial-gradient(ellipse 60% 40% at 20% 80%, rgba(47, 107, 58, 0.4), transparent 50%);
  pointer-events: none;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background:
    url("https://images.unsplash.com/photo-1464822759023-fed622ff2c3b?auto=format&fit=crop&w=1920&q=80") center/cover no-repeat;
  opacity: 0.45;
  transform: scale(1.05);
  animation: heroDrift 28s ease-in-out infinite alternate;
}

@keyframes heroDrift {
  from { transform: scale(1.05) translate(0, 0); }
  to { transform: scale(1.12) translate(-1.5%, -1%); }
}

.hero-content {
  position: relative;
  z-index: 1;
  padding: 4rem 0 5rem;
  width: min(100% - 2rem, var(--max));
  margin-inline: auto;
  animation: heroRise 0.9s ease-out both;
}

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

.hero-brand {
  width: clamp(140px, 22vw, 200px);
  height: clamp(140px, 22vw, 200px);
  border-radius: 50%;
  object-fit: cover;
  margin-bottom: 1.25rem;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.35);
  background: var(--white);
  animation: logoIn 1.1s 0.15s ease-out both;
}

@keyframes logoIn {
  from {
    opacity: 0;
    transform: scale(0.88);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

.hero h1 {
  color: var(--white);
  max-width: 16ch;
  text-shadow: 0 2px 24px rgba(0, 0, 0, 0.35);
}

.hero-lead {
  font-size: clamp(1.05rem, 2vw, 1.25rem);
  max-width: 38ch;
  color: rgba(255, 255, 255, 0.9);
  margin-bottom: 1.75rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
}

.hero-phone {
  display: block;
  margin-top: 1.25rem;
  color: var(--sky-light);
  font-weight: 600;
  text-decoration: none;
  letter-spacing: 0.02em;
}

.hero-phone:hover {
  color: var(--white);
}

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

.section-alt {
  background:
    linear-gradient(180deg, var(--cream-soft) 0%, #e4ece7 100%);
}

.section-navy {
  background:
    linear-gradient(135deg, var(--navy-deep) 0%, var(--navy) 50%, #243656 100%);
  color: rgba(255, 255, 255, 0.9);
}

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

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

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

.section-navy .section-intro p {
  color: rgba(255, 255, 255, 0.75);
}

.eyebrow {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--green);
  margin-bottom: 0.5rem;
}

.section-navy .eyebrow {
  color: var(--sky);
}

/* ——— Service links (not cards — interaction rows) ——— */
.service-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
}

.service-link {
  display: block;
  background: var(--white);
  padding: 1.75rem 1.5rem;
  text-decoration: none;
  color: inherit;
  transition: background 0.25s, transform 0.25s;
}

.service-link:hover {
  background: #f7faf8;
  color: inherit;
}

.service-link h3 {
  color: var(--navy);
  margin-bottom: 0.4rem;
}

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

.service-link .more {
  display: inline-block;
  margin-top: 0.85rem;
  font-weight: 700;
  color: var(--green);
  font-size: 0.92rem;
}

/* ——— Why list ——— */
.why-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 1.25rem;
}

.why-list li {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 1rem;
  align-items: start;
}

.why-icon {
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 50%;
  background: var(--green);
  color: var(--white);
  display: grid;
  place-items: center;
  font-weight: 700;
  font-size: 0.85rem;
  flex-shrink: 0;
}

.why-list strong {
  display: block;
  font-family: var(--font-display);
  font-size: 1.15rem;
  color: var(--navy);
  margin-bottom: 0.2rem;
}

.why-list p {
  margin: 0;
  color: var(--text-muted);
}

.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
}

.split-visual {
  min-height: 320px;
  background:
    linear-gradient(160deg, rgba(27, 42, 69, 0.35), rgba(47, 107, 58, 0.45)),
    url("https://images.unsplash.com/photo-1500382017468-9049fed747ef?auto=format&fit=crop&w=1000&q=80") center/cover;
  border-radius: var(--radius);
  position: relative;
  overflow: hidden;
}

.split-visual::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(15, 26, 46, 0.5), transparent 50%);
}

/* ——— Testimonials ——— */
.quotes {
  display: grid;
  gap: 2rem;
}

.quote {
  border-left: 3px solid var(--green);
  padding-left: 1.25rem;
  margin: 0;
}

.quote p {
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-style: italic;
  color: var(--navy);
  margin-bottom: 0.5rem;
}

.quote cite {
  font-style: normal;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-muted);
}

/* ——— Locations ——— */
.location-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem 1.25rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.location-list a {
  color: var(--white);
  font-weight: 600;
  text-decoration: none;
  border-bottom: 1px solid rgba(255, 255, 255, 0.3);
}

.location-list a:hover {
  border-color: var(--sky);
  color: var(--sky-light);
}

/* ——— Forms ——— */
.form-panel {
  background: var(--white);
  padding: 2rem;
  border: 1px solid var(--border);
}

.form-panel h2,
.form-panel h3 {
  margin-bottom: 0.35rem;
}

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

.form-grid .full {
  grid-column: 1 / -1;
}

label {
  display: block;
  font-size: 0.85rem;
  font-weight: 700;
  margin-bottom: 0.35rem;
  color: var(--navy);
}

input,
select,
textarea {
  width: 100%;
  padding: 0.75rem 0.85rem;
  font: inherit;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: #fafbfc;
  color: var(--text);
  transition: border-color 0.2s, box-shadow 0.2s;
}

input:focus,
select:focus,
textarea:focus {
  outline: none;
  border-color: var(--green);
  box-shadow: 0 0 0 3px rgba(47, 107, 58, 0.15);
  background: var(--white);
}

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

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

.form-success {
  display: none;
  padding: 1.25rem;
  background: #e8f5eb;
  border-left: 3px solid var(--green);
  color: var(--navy);
  font-weight: 600;
}

.form-success.is-visible {
  display: block;
}

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

/* ——— Page hero (inner) ——— */
.page-hero {
  background:
    linear-gradient(135deg, rgba(15, 26, 46, 0.92), rgba(30, 74, 40, 0.85)),
    url("https://images.unsplash.com/photo-1506905925346-21bda4d32df4?auto=format&fit=crop&w=1600&q=80") center/cover;
  color: var(--white);
  padding: 3.5rem 0 3rem;
}

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

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

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

.breadcrumb a {
  color: var(--sky-light);
  text-decoration: none;
}

.breadcrumb a:hover {
  text-decoration: underline;
}

/* ——— Content prose ——— */
.prose {
  max-width: 42rem;
}

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

.prose ul {
  padding-left: 1.25rem;
  margin: 0 0 1.25rem;
}

.prose li {
  margin-bottom: 0.4rem;
}

.content-with-aside {
  display: grid;
  grid-template-columns: 1fr minmax(260px, 320px);
  gap: 2.5rem;
  align-items: start;
}

.aside-cta {
  background: var(--navy);
  color: rgba(255, 255, 255, 0.9);
  padding: 1.75rem;
  position: sticky;
  top: calc(var(--header-h) + 1rem);
}

.aside-cta h3 {
  color: var(--white);
}

.aside-cta p {
  color: rgba(255, 255, 255, 0.75);
  font-size: 0.95rem;
}

.aside-cta .btn {
  width: 100%;
  margin-top: 0.5rem;
}

.aside-cta .phone-big {
  display: block;
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--white);
  text-decoration: none;
  margin: 0.75rem 0 1rem;
}

.aside-cta .phone-big:hover {
  color: var(--sky-light);
}

/* ——— FAQ ——— */
.faq-list {
  max-width: 40rem;
}

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

.faq-item h3 {
  font-size: 1.15rem;
  margin-bottom: 0.5rem;
}

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

/* ——— CTA band ——— */
.cta-band {
  text-align: center;
  padding: 4rem 0;
}

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

.cta-band p {
  color: rgba(255, 255, 255, 0.8);
  max-width: 36rem;
  margin: 0 auto 1.5rem;
}

.cta-band .btn-primary {
  background: var(--green-bright);
}

/* ——— Footer ——— */
.site-footer {
  background: var(--navy-deep);
  color: rgba(255, 255, 255, 0.7);
  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;
}

.footer-brand {
  display: flex;
  gap: 0.85rem;
  align-items: flex-start;
}

.footer-brand img {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: var(--white);
}

.footer-brand strong {
  display: block;
  color: var(--white);
  font-family: var(--font-display);
  font-size: 1.15rem;
  margin-bottom: 0.35rem;
}

.site-footer h4 {
  color: var(--white);
  font-size: 0.85rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 1rem;
}

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

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

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

.site-footer a:hover {
  color: var(--sky-light);
}

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

/* ——— Reveal motion ——— */
.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

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

/* ——— Mobile ——— */
@media (max-width: 900px) {
  .split,
  .content-with-aside,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .aside-cta {
    position: static;
  }

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

  .site-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    background: var(--navy-deep);
    padding: 0.75rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  }

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

  .nav-dropdown .dropdown-panel {
    position: static;
    display: block;
    border: none;
    box-shadow: none;
    padding-left: 0.75rem;
    background: transparent;
  }

  .nav-dropdown > button {
    width: 100%;
    text-align: left;
  }

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

  .hero {
    min-height: min(88vh, 680px);
    align-items: center;
  }

  .hero-content {
    padding: 3rem 0 3.5rem;
  }
}

@media (max-width: 520px) {
  .hero-actions {
    flex-direction: column;
  }

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