:root {
  --ink: #10231f;
  --muted: #5b6b66;
  --paper: #f7faf8;
  --white: #ffffff;
  --brand: #18745e;
  --brand-dark: #0f5948;
  --accent: #e0f1ea;
  --border: #d8e2dd;
  --danger: #a82b2b;
  --shadow: 0 18px 50px rgba(16, 35, 31, .09);
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; color: var(--ink); background: var(--paper); font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; line-height: 1.55; }
a { color: var(--brand-dark); text-decoration-thickness: 1px; text-underline-offset: 3px; }
h1, h2, h3 { line-height: 1.12; margin-top: 0; }
h1 { font-size: clamp(2.25rem, 6vw, 4.8rem); letter-spacing: -.045em; }
h2 { font-size: clamp(1.75rem, 4vw, 3rem); letter-spacing: -.03em; }
p { color: var(--muted); }
.container { width: min(1120px, calc(100% - 32px)); margin: 0 auto; }
.narrow { max-width: 720px; }
.center { text-align: center; }
.site-header { position: sticky; top: 0; z-index: 20; background: rgba(247, 250, 248, .94); backdrop-filter: blur(14px); border-bottom: 1px solid var(--border); }
.nav-wrap { min-height: 72px; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--ink); font-weight: 850; text-decoration: none; letter-spacing: -.02em; }
.brand-mark { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 12px; color: white; background: var(--brand); font-size: .8rem; }
nav { display: flex; align-items: center; gap: 18px; }
nav a { text-decoration: none; font-weight: 700; }
.button { display: inline-flex; align-items: center; justify-content: center; border: 0; border-radius: 13px; padding: 13px 19px; background: var(--brand); color: white; font: inherit; font-weight: 800; text-decoration: none; cursor: pointer; box-shadow: 0 8px 20px rgba(24, 116, 94, .18); }
.button:hover { background: var(--brand-dark); }
.button-secondary { background: var(--white); color: var(--brand-dark); border: 1px solid var(--border); box-shadow: none; }
.button-small { padding: 9px 13px; border-radius: 10px; }
.button-full { width: 100%; }
.button-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.hero { padding: 88px 0 72px; background: radial-gradient(circle at 80% 20%, #d8efe5, transparent 38%), linear-gradient(180deg, #f9fcfa, #f1f7f4); }
.hero-grid { display: grid; grid-template-columns: 1.35fr .65fr; gap: 60px; align-items: center; }
.hero-copy { font-size: 1.18rem; max-width: 700px; }
.eyebrow { margin: 0 0 10px; color: var(--brand); font-size: .78rem; font-weight: 900; letter-spacing: .14em; text-transform: uppercase; }
.hero-card { min-height: 360px; display: grid; place-items: center; align-content: center; border-radius: 28px; background: var(--ink); color: white; box-shadow: var(--shadow); transform: rotate(2deg); }
.hero-card p { color: #a9bcb5; }
.temporary-logo { font-weight: 950; font-size: 3rem; line-height: .87; letter-spacing: -.07em; }
.section { padding: 80px 0; }
.section-muted { background: var(--accent); }
.card-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-top: 28px; }
.card, .panel { background: var(--white); border: 1px solid var(--border); border-radius: 18px; box-shadow: var(--shadow); }
.card { padding: 26px; }
.card h3 { margin-bottom: 8px; }
.form-layout, .detail-grid { display: grid; grid-template-columns: .8fr 1.2fr; gap: 54px; align-items: start; }
.form-panel { padding: clamp(22px, 4vw, 38px); }
.field { margin-bottom: 18px; }
.field label { display: block; margin-bottom: 7px; font-size: .9rem; font-weight: 800; }
.form-control { width: 100%; min-height: 47px; border: 1px solid #bdcbc5; border-radius: 10px; padding: 10px 12px; background: white; color: var(--ink); font: inherit; }
textarea.form-control { min-height: 110px; resize: vertical; }
.form-control:focus { outline: 3px solid rgba(24, 116, 94, .16); border-color: var(--brand); }
.field-error .form-control { border-color: var(--danger); }
.error-text, .form-errors { color: var(--danger); font-weight: 700; }
.form-errors { margin-bottom: 18px; padding: 12px; border-radius: 10px; background: #fff0f0; }
.info-box { margin-top: 28px; padding: 18px; border-radius: 14px; background: var(--accent); }
.info-box p { margin-bottom: 0; }
.fine-print { font-size: .79rem; text-align: center; }
.success-panel { padding: 56px; }
.success-icon { width: 70px; height: 70px; margin: 0 auto 24px; display: grid; place-items: center; border-radius: 50%; background: var(--accent); color: var(--brand); font-size: 2rem; font-weight: 900; }
.reference { padding: 12px; border-radius: 10px; background: var(--paper); }
.login-wrap { max-width: 480px; margin: 0 auto; }
.login-panel h1 { font-size: 2.6rem; }
.site-footer { padding: 42px 0; background: var(--ink); color: white; }
.site-footer a, .site-footer p { color: #cfe0d9; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 28px; }
.messages { padding-top: 16px; }
.message { padding: 12px 16px; border: 1px solid var(--border); border-radius: 10px; background: white; }
.message.success { background: #eaf8f1; }
.message.error { background: #fff0f0; }
.staff-bar { background: var(--ink); color: white; }
.staff-bar a, .staff-bar .link-button { color: white; }
.staff-bar-inner { min-height: 54px; display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.staff-bar-inner span { margin-left: 12px; color: #a9bcb5; font-size: .86rem; }
.link-button { padding: 0; border: 0; background: none; color: var(--brand-dark); font: inherit; font-weight: 750; text-decoration: underline; cursor: pointer; }
.compact-top { padding-top: 48px; }
.dashboard-heading { display: flex; align-items: end; justify-content: space-between; gap: 20px; }
.stat-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin: 24px 0; }
.stat { padding: 20px; border: 1px solid var(--border); border-radius: 15px; background: white; }
.stat span { color: var(--muted); font-weight: 700; }
.stat strong { display: block; margin-top: 3px; font-size: 2rem; }
.filters { display: grid; grid-template-columns: 1fr 1fr auto; align-items: end; gap: 15px; padding: 18px; margin-bottom: 20px; box-shadow: none; }
.filters .field { margin: 0; }
.filter-actions { min-height: 47px; display: flex; align-items: center; gap: 12px; }
.table-wrap { overflow-x: auto; box-shadow: none; }
table { width: 100%; border-collapse: collapse; }
th, td { padding: 15px 14px; border-bottom: 1px solid var(--border); text-align: left; vertical-align: top; }
th { color: var(--muted); font-size: .77rem; letter-spacing: .06em; text-transform: uppercase; }
tr:last-child td { border-bottom: 0; }
.status { display: inline-block; padding: 5px 9px; border-radius: 999px; background: #eef2f0; font-size: .8rem; font-weight: 850; }
.status-pending { background: #fff4d8; color: #775900; }
.status-confirmed { background: #ddf5e9; color: #146044; }
.status-cancelled { background: #fde4e4; color: #8c2424; }
.status-completed { background: #e5ecff; color: #2a478b; }
.actions { display: flex; gap: 10px; align-items: center; }
.empty-state { padding: 40px; text-align: center; color: var(--muted); }
.detail-list { overflow: hidden; box-shadow: none; }
.detail-list > div { display: grid; grid-template-columns: 130px 1fr; gap: 18px; padding: 15px 18px; border-bottom: 1px solid var(--border); }
.detail-list > div:last-child { border-bottom: 0; }
.detail-list span { color: var(--muted); }
@media (max-width: 800px) {
  .hero-grid, .form-layout, .detail-grid { grid-template-columns: 1fr; }
  .hero { padding-top: 58px; }
  .hero-card { min-height: 250px; transform: none; }
  .card-grid, .stat-grid { grid-template-columns: 1fr; }
  .filters { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  nav > a:first-child { display: none; }
  .dashboard-heading { align-items: start; flex-direction: column; }
}
@media (max-width: 520px) {
  .container { width: min(100% - 22px, 1120px); }
  .section { padding: 54px 0; }
  .nav-wrap { min-height: 64px; }
  .brand-mark { width: 34px; height: 34px; }
  nav { gap: 9px; }
  .button-small { font-size: .84rem; }
  th, td { padding: 12px 10px; }
}


/* Clickable service cards */
.service-card-link {
  display: block;
  height: 100%;
  color: inherit;
  text-decoration: none;
  border-radius: 18px;
}

.service-card {
  height: 100%;
  min-height: 210px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: transform .18s ease, border-color .18s ease, box-shadow .18s ease;
}

.service-card-link:hover .service-card,
.service-card-link:focus-visible .service-card {
  transform: translateY(-5px);
  border-color: var(--brand);
  box-shadow: 0 22px 55px rgba(16, 35, 31, .16);
}

.service-card-link:focus-visible {
  outline: 3px solid rgba(24, 116, 94, .35);
  outline-offset: 5px;
}

.service-card-action {
  margin-top: 22px;
  color: var(--brand-dark);
  font-weight: 850;
}

@media (min-width: 801px) {
  .service-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}


/* Septic Shark homepage logo v2 */
.hero-logo-card {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 320px;
  padding: clamp(24px, 5vw, 48px);
  overflow: hidden;
  background:
    radial-gradient(circle at 30% 20%, rgba(28, 136, 216, .13), transparent 45%),
    linear-gradient(145deg, #ffffff, #edf6fa);
  border: 1px solid rgba(19, 61, 95, .14);
}

.hero-logo-card picture {
  display: block;
  width: 100%;
}

.hero-logo {
  display: block;
  width: 100%;
  height: auto;
  max-height: 300px;
  object-fit: contain;
  filter: drop-shadow(0 16px 20px rgba(5, 35, 70, .14));
}

@media (max-width: 700px) {
  .hero-logo-card {
    min-height: 220px;
    padding: 20px;
  }

  .hero-logo {
    max-height: 220px;
  }
}




/* Clean header logo */
.clean-brand {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
  overflow: visible;
}

.site-logo-icon {
  position: relative;
  z-index: 2;
  display: block;
  width: 46px;
  height: 46px;
  padding: 2px;
  object-fit: contain;
  border-radius: 12px;
  background: #ffffff;
  box-shadow:
    0 4px 14px rgba(0, 35, 65, .14),
    0 0 0 1px rgba(255,255,255,.22);
}

.brand-name {
  white-space: nowrap;
}

/* Small brown sludge/rock patch UNDER the logo, not on the face */
.clean-brand::after {
  content: "";
  position: absolute;
  left: 6px;
  bottom: -3px;
  width: 30px;
  height: 11px;
  border-radius: 14px 16px 10px 12px;
  background: linear-gradient(180deg, #8d5628 0%, #6d3f1b 100%);
  box-shadow:
    18px -1px 0 -3px #7c4b24,
    24px 1px 0 -4px #956233,
    10px -5px 0 -5px #5f3518,
    3px -4px 0 -5px #89572c;
  opacity: .97;
  z-index: 3;
  pointer-events: none;
}

@media (max-width: 520px) {
  .site-logo-icon {
    width: 42px;
    height: 42px;
    border-radius: 10px;
  }

  .brand-name {
    font-size: .93rem;
  }

  .clean-brand::after {
    left: 6px;
    bottom: -2px;
    width: 26px;
    height: 10px;
    box-shadow:
      15px -1px 0 -3px #7c4b24,
      21px 1px 0 -4px #956233,
      8px -4px 0 -5px #5f3518,
      3px -3px 0 -5px #89572c;
  }
}


/* Remove the empty second hero column */
.hero-clean .hero-grid {
  grid-template-columns: minmax(0, 820px);
}

@media (max-width: 520px) {
  .site-logo-icon {
    width: 38px;
    height: 38px;
    border-radius: 10px;
  }

  .brand-name {
    font-size: .93rem;
  }
}


/* Staff dashboard month calendar */
.staff-calendar {
  margin-top: 28px;
  padding: clamp(16px, 3vw, 26px);
  box-shadow: none;
}

.calendar-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 18px;
}

.calendar-header h2 {
  margin-bottom: 4px;
}

.calendar-header p:last-child {
  margin: 0;
}

.calendar-nav {
  display: flex;
  align-items: center;
  gap: 8px;
}

.calendar-nav-button,
.calendar-today-button {
  min-height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--white);
  color: var(--ink);
  font-weight: 850;
  text-decoration: none;
}

.calendar-nav-button {
  width: 42px;
  font-size: 1.15rem;
}

.calendar-today-button {
  padding: 0 13px;
}

.calendar-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 14px;
  margin-bottom: 16px;
  color: var(--muted);
  font-size: .78rem;
  font-weight: 750;
}

.calendar-legend span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.legend-dot {
  width: 10px;
  height: 10px;
  display: inline-block;
  border-radius: 50%;
}

.legend-pending {
  background: #d99b16;
}

.legend-scheduled {
  background: #297fc2;
}

.legend-mixed {
  background: #7b57c7;
}

.legend-completed {
  background: #23845c;
}

.legend-cancelled {
  background: #b64848;
}

.calendar-grid {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 8px;
}

.calendar-weekdays {
  margin-bottom: 8px;
}

.calendar-weekdays span {
  padding: 4px;
  color: var(--muted);
  font-size: .72rem;
  font-weight: 900;
  letter-spacing: .06em;
  text-align: center;
  text-transform: uppercase;
}

.calendar-day {
  min-width: 0;
  min-height: 112px;
  padding: 10px;
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--white);
  color: var(--ink);
  text-decoration: none;
  transition:
    transform .15s ease,
    box-shadow .15s ease,
    border-color .15s ease;
}

a.calendar-day:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 22px rgba(16, 35, 31, .10);
}

a.calendar-day:focus-visible {
  outline: 3px solid rgba(24, 116, 94, .25);
  outline-offset: 2px;
}

.calendar-day-empty {
  background: #fbfdfc;
}

.calendar-day-pending {
  background: #fff4d8;
  border-color: #e2b84e;
}

.calendar-day-scheduled {
  background: #e2f1ff;
  border-color: #69a9dc;
}

.calendar-day-mixed {
  background: #eee6ff;
  border-color: #9d83d7;
}

.calendar-day-completed {
  background: #ddf5e9;
  border-color: #64b690;
}

.calendar-day-cancelled {
  background: #fde7e7;
  border-color: #d68a8a;
}

.calendar-day-outside {
  opacity: .34;
  background: transparent;
}

.calendar-day.is-today {
  box-shadow: inset 0 0 0 2px var(--brand);
}

.calendar-day.is-selected {
  outline: 3px solid var(--ink);
  outline-offset: 1px;
}

.calendar-day-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
}

.calendar-date-number {
  font-size: .95rem;
}

.calendar-count {
  min-width: 23px;
  height: 23px;
  padding: 0 6px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: rgba(16, 35, 31, .82);
  color: white;
  font-size: .72rem;
  font-weight: 900;
}

.calendar-preview-list {
  display: grid;
  gap: 4px;
  margin-top: 9px;
}

.calendar-preview-item {
  min-width: 0;
  display: block;
  padding: 4px 5px;
  border-radius: 6px;
  background: rgba(255, 255, 255, .58);
  font-size: .68rem;
  line-height: 1.25;
}

.calendar-preview-item time {
  display: block;
  font-weight: 900;
}

.calendar-preview-item span {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

@media (max-width: 700px) {
  .calendar-header {
    flex-direction: column;
  }

  .calendar-nav {
    width: 100%;
    justify-content: space-between;
  }

  .calendar-today-button {
    flex: 1;
  }

  .calendar-grid {
    gap: 4px;
  }

  .calendar-day {
    min-height: 64px;
    padding: 6px;
    border-radius: 9px;
  }

  .calendar-preview-list {
    display: none;
  }

  .calendar-count {
    min-width: 19px;
    height: 19px;
    padding: 0 4px;
    font-size: .64rem;
  }

  .calendar-date-number {
    font-size: .8rem;
  }

  .calendar-legend {
    gap: 7px 10px;
  }
}


/* Greenville / Spartanburg hero styling */
.hero-clean {
  position: relative;
  overflow: hidden;
  isolation: isolate;
}

.hero-clean::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 78% 30%, rgba(27, 129, 214, .14), transparent 26%),
    radial-gradient(circle at 88% 70%, rgba(7, 48, 88, .12), transparent 24%),
    linear-gradient(115deg, rgba(255,255,255,0) 0%, rgba(255,255,255,.02) 100%);
  z-index: -2;
}

.hero-clean::after {
  content: "";
  position: absolute;
  right: -90px;
  top: 28px;
  width: min(48vw, 560px);
  height: min(48vw, 560px);
  background-image: url("/static/img/septic-shark-logo.a5a6350306a4.webp");
  background-repeat: no-repeat;
  background-position: center;
  background-size: contain;
  opacity: .07;
  transform: rotate(-10deg);
  filter: grayscale(.08) contrast(1.05);
  z-index: -1;
  pointer-events: none;
}

.service-area-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 14px 0 18px;
  padding: 10px 14px;
  border: 1px solid rgba(39, 107, 160, .22);
  border-radius: 999px;
  background: rgba(239, 248, 255, .72);
  color: #10395f;
  font-size: .92rem;
  font-weight: 850;
  line-height: 1.25;
  box-shadow: 0 10px 24px rgba(12, 42, 72, .08);
  backdrop-filter: blur(4px);
}

.service-area-pill::before {
  content: "📍";
  font-size: .95rem;
}

.clean-brand {
  position: relative;
}

/* Small brown "sludge" accent near the shark logo */
.clean-brand::after {
  content: "";
  position: absolute;
  left: 21px;
  top: 7px;
  width: 12px;
  height: 12px;
  border-radius: 52% 44% 60% 38%;
  background: radial-gradient(circle at 35% 35%, #8e6033 0 42%, #60381b 68%);
  box-shadow:
    8px 2px 0 -4px #7b4c26,
    -4px 8px 0 -4px #8b5b30,
    4px 10px 0 -5px #6d4323;
  transform: rotate(18deg);
  opacity: .95;
  pointer-events: none;
  z-index: 2;
}

@media (max-width: 900px) {
  .hero-clean::after {
    right: -120px;
    top: 56px;
    width: min(62vw, 420px);
    height: min(62vw, 420px);
    opacity: .06;
  }
}

@media (max-width: 520px) {
  .service-area-pill {
    font-size: .84rem;
    padding: 9px 12px;
    margin: 12px 0 16px;
  }

  .hero-clean::after {
    right: -100px;
    top: 88px;
    width: 82vw;
    height: 82vw;
    opacity: .055;
  }

  .clean-brand::after {
    left: 18px;
    top: 6px;
    width: 10px;
    height: 10px;
  }
}

/* ==================================================
   Top-left logo face fix
   ================================================== */

/* Kill any old brown blob / sludge overlays */
.clean-brand::before,
.clean-brand::after {
  content: none !important;
  display: none !important;
}

/* Clean up the logo area */
.clean-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  position: relative;
  overflow: visible;
}

.site-logo-icon {
  display: block;
  width: 52px !important;
  height: 52px !important;
  padding: 0 !important;
  object-fit: contain;
  background: transparent !important;
  border-radius: 0 !important;
  box-shadow: none !important;
}

.brand-name {
  white-space: nowrap;
  font-weight: 900;
}

@media (max-width: 520px) {
  .site-logo-icon {
    width: 42px !important;
    height: 42px !important;
  }

  .clean-brand {
    gap: 8px;
  }
}
