/* Saint Cloud Septic Pros — shared stylesheet
   Mobile-first, no external dependencies, system font stack.
   Brand: deep water blue #0E4D64, teal-green #1F7A6D, CTA orange #E8641C,
   text #1A1A1A, section band #F5F2EC. */

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

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

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
    "Helvetica Neue", Arial, sans-serif;
  font-size: 1.0625rem;
  line-height: 1.6;
  color: #1a1a1a;
  background: #fff;
  /* room for the sticky mobile call bar */
  padding-bottom: 4.25rem;
}

.wrap {
  max-width: 68rem;
  margin: 0 auto;
  padding-left: 1rem;
  padding-right: 1rem;
}

img,
svg {
  max-width: 100%;
}

a {
  color: #1f7a6d;
  text-decoration: underline;
  text-underline-offset: 0.15em;
}

a:hover {
  color: #0e4d64;
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 3px solid #0e4d64;
  outline-offset: 2px;
}

/* Skip link */
.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: #0e4d64;
  color: #fff;
  padding: 0.75rem 1rem;
  z-index: 100;
}

.skip-link:focus {
  left: 0;
  color: #fff;
}

/* Header */
.site-header {
  border-bottom: 3px solid #0e4d64;
}

.header-in {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding-top: 0.75rem;
  padding-bottom: 0.75rem;
}

.wordmark {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: #0e4d64;
  text-decoration: none;
  font-size: 1.25rem;
  line-height: 1.15;
}

.wordmark .drop {
  flex: none;
}

/* Nav */
.site-nav {
  background: #f5f2ec;
  border-top: 1px solid #e3ded2;
}

.site-nav ul {
  list-style: none;
  margin: 0;
  padding: 0.5rem 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem 1rem;
}

.site-nav a {
  display: inline-block;
  padding: 0.375rem 0.125rem;
  color: #0e4d64;
  font-weight: 600;
  text-decoration: none;
}

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

.site-nav a[aria-current="page"] {
  color: #1a1a1a;
  text-decoration: underline;
  text-decoration-thickness: 2px;
}

/* Buttons
   CTA orange is used for button backgrounds only, always with white,
   bold, large text (>= 1.125rem / 18px bold), keeping it in WCAG AA
   large-text territory; it is never used as small body text. */
.btn {
  display: inline-block;
  padding: 0.75rem 1.25rem;
  border-radius: 0.375rem;
  font-size: 1.125rem;
  font-weight: 700;
  line-height: 1.3;
  text-decoration: none;
  text-align: center;
  border: 2px solid transparent;
  cursor: pointer;
}

.btn-call {
  background: #e8641c;
  color: #fff;
}

.btn-call:hover {
  background: #c9510f;
  color: #fff;
}

.btn-outline {
  background: #fff;
  color: #0e4d64;
  border-color: #0e4d64;
}

.btn-outline:hover {
  background: #0e4d64;
  color: #fff;
}

.header-call {
  display: none;
}

/* Page body */
.page {
  padding-top: 1.5rem;
  padding-bottom: 2.5rem;
}

.page h1 {
  color: #0e4d64;
  font-size: 1.9rem;
  line-height: 1.2;
  margin: 0.5rem 0 1rem;
}

.page h2 {
  color: #0e4d64;
  font-size: 1.45rem;
  line-height: 1.25;
  margin: 2rem 0 0.75rem;
}

.page h3 {
  color: #0e4d64;
  font-size: 1.2rem;
  line-height: 1.3;
  margin: 1.5rem 0 0.5rem;
}

.page p {
  margin: 0 0 1rem;
}

.page ul,
.page ol {
  margin: 0 0 1rem;
  padding-left: 1.5rem;
}

.page li {
  margin-bottom: 0.5rem;
}

.call-link {
  font-weight: 700;
  white-space: nowrap;
}

.page-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin: 1.5rem 0;
}

/* Tables */
.table-wrap {
  overflow-x: auto;
  margin: 0 0 1.5rem;
}

table {
  border-collapse: collapse;
  width: 100%;
  min-width: 34rem;
  font-size: 1rem;
}

th,
td {
  border: 1px solid #cfc9ba;
  padding: 0.6rem 0.75rem;
  text-align: left;
  vertical-align: top;
}

th {
  background: #0e4d64;
  color: #fff;
}

tbody tr:nth-child(even) {
  background: #f5f2ec;
}

/* Shared CTA block */
.cta-block {
  background: #0e4d64;
  color: #fff;
  padding: 2rem 0;
}

.cta-block h2 {
  color: #fff;
  font-size: 1.5rem;
  margin: 0 0 0.75rem;
}

.cta-block a {
  color: #fff;
}

.cta-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin: 1rem 0;
}

.cta-block .btn-outline {
  background: transparent;
  color: #fff;
  border-color: #fff;
}

.cta-block .btn-outline:hover {
  background: #fff;
  color: #0e4d64;
}

.cta-note {
  margin: 0;
  font-size: 0.95rem;
}

/* Footer */
.site-footer {
  background: #f5f2ec;
  border-top: 3px solid #1f7a6d;
  padding: 2rem 0 2.5rem;
  font-size: 0.98rem;
}

.site-footer p {
  margin: 0 0 0.75rem;
}

.footer-nav {
  list-style: none;
  margin: 0 0 1rem;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem 1rem;
}

.footer-nav a {
  color: #0e4d64;
  font-weight: 600;
}

.footer-small {
  font-size: 0.875rem;
  color: #3d3d3d;
}

/* Contact form */
.lead-form {
  background: #f5f2ec;
  border: 1px solid #e3ded2;
  border-radius: 0.5rem;
  padding: 1.25rem;
  margin: 0 0 1.5rem;
  max-width: 38rem;
}

.field {
  margin-bottom: 1rem;
}

.field label {
  display: block;
  font-weight: 600;
  margin-bottom: 0.3rem;
}

.field .req {
  color: #b03a05;
}

.field .opt {
  font-weight: 400;
  font-size: 0.9rem;
}

.field .hint {
  font-size: 0.9rem;
  margin: 0.3rem 0 0;
}

.field input[type="text"],
.field input[type="tel"],
.field input[type="email"],
.field select,
.field textarea {
  width: 100%;
  padding: 0.65rem 0.75rem;
  font: inherit;
  border: 1px solid #8a8578;
  border-radius: 0.375rem;
  background: #fff;
  min-height: 3rem;
}

.field-check {
  display: flex;
  gap: 0.6rem;
  align-items: flex-start;
}

.field-check input {
  width: 1.4rem;
  height: 1.4rem;
  flex: none;
  margin-top: 0.2rem;
}

.field-check label {
  font-weight: 400;
  font-size: 0.98rem;
}

/* Sticky mobile call bar */
.call-bar {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  display: flex;
  gap: 0.5rem;
  padding: 0.5rem;
  background: #fff;
  border-top: 2px solid #0e4d64;
  box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.15);
  z-index: 50;
}

.call-bar .btn {
  flex: 1;
  min-height: 3rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Desktop */
@media (min-width: 48rem) {
  body {
    font-size: 1.125rem;
    padding-bottom: 0;
  }

  .header-call {
    display: inline-block;
  }

  .call-bar {
    display: none;
  }

  .page h1 {
    font-size: 2.4rem;
  }

  .page h2 {
    font-size: 1.7rem;
  }

  .lead-form {
    padding: 1.75rem;
  }
}
