/* Tehachapi Septic Pumping - hometown styles. Plain CSS, mobile first. */
:root {
  --pine: #1f3d30;
  --pine-dark: #14261e;
  --pine-mid: #2a5340;
  --cream: #f6f0e4;
  --cream-dark: #efe6d4;
  --paper: #fffaf2;
  --ink: #2a241c;
  --ink-soft: #5a5146;
  --sunset: #c65d27;
  --sunset-dark: #a0481c;
  --sand: #e2d3bb;
  --rule: #d4c4a8;
  --focus: #c65d27;
  --radius: 8px;
  --max: 68rem;
  --shadow: 0 8px 24px rgba(42, 36, 28, 0.12);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: "Nunito Sans", "Segoe UI", Tahoma, sans-serif;
  font-size: 1.0625rem;
  line-height: 1.6;
  color: var(--ink);
  background: var(--cream);
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--sunset-dark); }
a:hover { color: var(--pine); }
:focus-visible {
  outline: 3px solid var(--sunset);
  outline-offset: 2px;
}

.skip {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--paper);
  color: var(--ink);
  padding: 0.5rem 1rem;
  z-index: 100;
}
.skip:focus { left: 0.5rem; top: 0.5rem; }

/* Header */
.site-header {
  background: var(--paper);
  border-bottom: 3px solid var(--pine);
  position: relative;
  z-index: 20;
}
.header-inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0.7rem 1rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-wrap: wrap;
}
.logo {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  text-decoration: none;
  color: var(--pine);
  flex-shrink: 0;
}
.logo img { width: 2.5rem; height: 2.5rem; flex-shrink: 0; }
.logo-text { display: flex; flex-direction: column; line-height: 1.2; }
.logo-name {
  font-family: Fraunces, "Palatino Linotype", Palatino, serif;
  font-weight: 650;
  font-size: 1.02rem;
  letter-spacing: -0.01em;
  white-space: nowrap;
}
.logo-tag {
  font-size: 0.7rem;
  color: var(--ink-soft);
  font-weight: 600;
  letter-spacing: 0;
  text-transform: none;
  line-height: 1.25;
  white-space: normal;
  max-width: 13.5rem;
}

.nav-toggle {
  margin-left: auto;
  background: var(--pine);
  color: var(--cream);
  border: 0;
  border-radius: var(--radius);
  padding: 0.45rem 0.75rem;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}
.nav-toggle:hover { background: var(--pine-mid); }

.nav {
  display: none;
  width: 100%;
  flex-direction: column;
  gap: 0.15rem;
  padding: 0.25rem 0 0.5rem;
}
.nav a, .nav summary {
  display: block;
  padding: 0.45rem 0.2rem;
  color: var(--pine);
  text-decoration: none;
  font-weight: 700;
  font-size: 0.95rem;
}
.nav a:hover, .nav a[aria-current="page"] { color: var(--sunset-dark); }
.nav details { margin: 0; }
.nav details a { font-weight: 600; padding-left: 0.8rem; color: var(--ink-soft); }
.nav summary { cursor: pointer; list-style: none; }
.nav summary::-webkit-details-marker { display: none; }
.nav summary::after { content: " +"; color: var(--sunset); font-weight: 700; }

#nav-toggle { position: absolute; opacity: 0; pointer-events: none; }
#nav-toggle:checked ~ .nav { display: flex; }

a.btn.header-call {
  display: none;
}

@media (min-width: 1100px) {
  .site-header .header-inner {
    max-width: 80rem;
    flex-wrap: nowrap;
    gap: 0.85rem;
  }
  .nav-toggle { display: none; }
  .nav {
    display: flex;
    flex-direction: row;
    align-items: center;
    width: auto;
    margin-left: auto;
    gap: 0.15rem 0.7rem;
    padding: 0;
    flex-wrap: nowrap;
  }
  .nav a, .nav summary {
    padding: 0.35rem 0;
    font-size: 0.88rem;
    white-space: nowrap;
  }
  .nav details { position: relative; }
  .nav details[open] .drop,
  .nav details:hover .drop,
  .nav details:focus-within .drop {
    display: block;
  }
  .nav .drop {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background: var(--paper);
    border: 1px solid var(--rule);
    border-radius: var(--radius);
    min-width: 14rem;
    padding: 0.4rem 0;
    box-shadow: var(--shadow);
    z-index: 30;
  }
  .nav .drop a { padding: 0.35rem 0.9rem; white-space: nowrap; }
  a.btn.header-call {
    display: inline-flex;
    margin-left: 0.15rem;
    white-space: nowrap;
    flex-shrink: 0;
    padding: 0.55rem 0.9rem;
    font-size: 0.95rem;
  }
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  background: var(--sunset);
  color: #fffaf2;
  text-decoration: none;
  font-weight: 800;
  border-radius: 10px;
  padding: 0.75rem 1.15rem;
  border: 0;
  cursor: pointer;
  font-family: inherit;
  font-size: 1.05rem;
  box-shadow: 0 2px 0 var(--sunset-dark);
}
.btn:hover { background: var(--sunset-dark); color: #fffaf2; }
.btn-lg { padding: 0.95rem 1.4rem; font-size: 1.15rem; width: 100%; }
.btn-ghost {
  background: transparent;
  color: var(--pine);
  box-shadow: none;
  border: 2px solid var(--pine);
}
.btn-ghost:hover { background: var(--pine); color: var(--cream); }
.btn-row { display: flex; flex-direction: column; gap: 0.6rem; margin: 1.1rem 0; }
@media (min-width: 520px) {
  .btn-lg { width: auto; }
  .btn-row { flex-direction: row; flex-wrap: wrap; }
}

/* Layout */
.wrap { max-width: var(--max); margin: 0 auto; padding: 1.4rem 1rem 2.4rem; }
.lede { font-size: 1.15rem; color: var(--ink); max-width: 40rem; }
h1, h2, h3 {
  font-family: Fraunces, "Palatino Linotype", Palatino, serif;
  font-weight: 650;
  line-height: 1.2;
  color: var(--pine-dark);
  letter-spacing: -0.015em;
}
h1 { font-size: clamp(1.8rem, 5vw, 2.7rem); margin: 0 0 0.7rem; }
h2 { font-size: clamp(1.35rem, 3vw, 1.8rem); margin: 2rem 0 0.7rem; }
h3 { font-size: 1.15rem; margin: 1.3rem 0 0.4rem; }
p { margin: 0 0 1rem; }
ul, ol { margin: 0 0 1rem; padding-left: 1.2rem; }
li { margin: 0 0 0.35rem; }
.muted { color: var(--ink-soft); }
.tiny { font-size: 0.88rem; }

/* Hero */
.hero {
  background: var(--pine-dark);
  color: var(--cream);
  position: relative;
}
.hero-photo {
  min-height: 16rem;
  background: #2a1c12 center/cover no-repeat;
}
.hero-photo img {
  width: 100%;
  height: 16rem;
  object-fit: cover;
  object-position: center 40%;
}
.hero-card {
  background: var(--cream);
  color: var(--ink);
  margin: -2.2rem 1rem 0;
  position: relative;
  padding: 1.25rem 1.15rem 1.4rem;
  border-radius: 12px 12px 0 0;
  border: 1px solid var(--sand);
  border-bottom: 0;
  box-shadow: var(--shadow);
}
.hero-card h1 { color: var(--pine-dark); }
.kicker {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--sunset-dark);
  margin-bottom: 0.35rem;
}
@media (min-width: 720px) {
  .hero { display: grid; grid-template-columns: 1.15fr 1fr; min-height: 28rem; }
  .hero-photo { min-height: 100%; }
  .hero-photo img { height: 100%; min-height: 28rem; }
  .hero-card {
    margin: 0;
    border-radius: 0;
    border: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 2.4rem 2.2rem;
    box-shadow: none;
    background: var(--cream);
  }
}

/* Sections and cards */
.band { background: var(--cream-dark); border-top: 1px solid var(--sand); border-bottom: 1px solid var(--sand); }
.steps { display: grid; gap: 0.9rem; margin: 1rem 0 1.4rem; }
.step {
  background: var(--paper);
  border: 1px solid var(--sand);
  border-radius: var(--radius);
  padding: 0.9rem 1rem;
}
.step .num {
  font-family: Fraunces, Palatino, serif;
  font-weight: 700;
  color: var(--sunset);
  font-size: 1.3rem;
}
@media (min-width: 700px) {
  .steps { grid-template-columns: repeat(3, 1fr); }
}
.cards { display: grid; gap: 1rem; margin: 1rem 0 1.5rem; }
.card {
  background: var(--paper);
  border: 1px solid var(--sand);
  border-radius: var(--radius);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  text-decoration: none;
  color: inherit;
}
a.card:hover { border-color: var(--pine-mid); }
.card .body { padding: 0.9rem 1rem 1.1rem; }
.card h3 { margin-top: 0; }
.card p:last-child { margin-bottom: 0; }
.card img { width: 100%; height: 10rem; object-fit: cover; }
@media (min-width: 700px) {
  .cards-3 { grid-template-columns: repeat(3, 1fr); }
  .cards-2 { grid-template-columns: repeat(2, 1fr); }
}

.split {
  display: grid;
  gap: 1.2rem;
  margin: 1.2rem 0;
  align-items: start;
}
@media (min-width: 760px) {
  .split { grid-template-columns: 1.1fr 0.9fr; gap: 1.8rem; }
  .split.rev { grid-template-columns: 0.9fr 1.1fr; }
  .split.rev > .copy { order: 2; }
}

.photo {
  margin: 0 0 1rem;
  background: var(--paper);
  border: 1px solid var(--sand);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 1px 0 rgba(42,36,28,0.04);
}
.photo img { width: 100%; height: auto; }
.photo.cover img { height: 16rem; object-fit: cover; }
.photo figcaption, .credit {
  font-size: 0.8rem;
  color: var(--ink-soft);
  padding: 0.4rem 0.7rem 0.55rem;
  margin: 0;
}
.notice {
  background: #f3e6cf;
  border-left: 4px solid var(--sunset);
  padding: 0.8rem 1rem;
  margin: 1rem 0 1.3rem;
  border-radius: 0 var(--radius) var(--radius) 0;
}
.notice p:last-child { margin-bottom: 0; }

/* FAQ */
.faq details {
  background: var(--paper);
  border: 1px solid var(--sand);
  border-radius: var(--radius);
  padding: 0.7rem 1rem;
  margin: 0 0 0.55rem;
}
.faq summary {
  font-weight: 700;
  cursor: pointer;
  color: var(--pine-dark);
}
.faq details p { margin-top: 0.6rem; }

/* Forms */
form { max-width: 36rem; }
label { display: block; font-weight: 700; margin: 0.85rem 0 0.25rem; }
input[type="text"], input[type="tel"], input[type="email"], select, textarea {
  width: 100%;
  font: inherit;
  padding: 0.6rem 0.7rem;
  border: 1px solid #cbbca3;
  border-radius: 6px;
  background: #fff;
  color: var(--ink);
}
textarea { min-height: 7rem; resize: vertical; }
.hp { position: absolute; left: -9999px; height: 0; overflow: hidden; }
form .btn { margin-top: 1rem; }

/* Footer and mobile call bar */
.hills {
  display: block;
  width: 100%;
  height: 3rem;
  margin-bottom: -1px;
}
.site-footer {
  background: var(--pine-dark);
  color: #e8dcc8;
  padding: 1.6rem 1rem 5.5rem;
}
@media (min-width: 1100px) {
  .site-footer { padding-bottom: 2rem; }
}
.footer-inner { max-width: var(--max); margin: 0 auto; }
.site-footer a { color: #f3e6c8; }
.site-footer h2 { color: var(--cream); font-size: 1.2rem; margin-top: 0; }
.footer-grid {
  display: grid;
  gap: 1rem;
  margin-bottom: 1.2rem;
}
@media (min-width: 700px) {
  .footer-grid { grid-template-columns: 2fr 1fr 1fr; }
}
.disclaimer {
  font-size: 0.88rem;
  color: #d8cbb6;
  border-top: 1px solid #2f4c3d;
  padding-top: 0.9rem;
}
.disclaimer p { margin-bottom: 0.5rem; }

.callbar {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  background: var(--pine-dark);
  padding: 0.55rem 0.75rem calc(0.55rem + env(safe-area-inset-bottom));
  box-shadow: 0 -4px 16px rgba(0,0,0,0.25);
  z-index: 40;
}
.callbar .btn { width: 100%; }
@media (min-width: 1100px) {
  .callbar { display: none; }
}

.page-hero {
  padding: 1.6rem 1rem 0;
  max-width: var(--max);
  margin: 0 auto;
}
.crumbs { font-size: 0.88rem; color: var(--ink-soft); margin-bottom: 0.6rem; }
.crumbs a { color: var(--ink-soft); }

/* Language link: compact so the 1280 header stays on one line */
.logo { order: 1; }
.lang-link {
  order: 2;
  margin-left: auto;
  font-weight: 700;
  font-size: 0.82rem;
  color: var(--pine);
  text-decoration: none;
  white-space: nowrap;
  padding: 0.35rem 0.15rem;
}
.lang-link:hover { color: var(--sunset-dark); }
.nav-toggle { order: 3; }
.nav { order: 4; }
a.btn.header-call { order: 5; }
@media (min-width: 1100px) {
  .nav { order: 2; }
  .lang-link { order: 3; margin-left: 0; }
  a.btn.header-call { order: 4; }
}

/* Compact request form */
.request-form {
  margin: 0.7rem 0 0;
}
.request-form fieldset {
  border: 0;
  margin: 0;
  padding: 0;
}
.request-form .form-grid {
  display: grid;
  gap: 0.55rem;
}
.request-form label {
  margin: 0;
  font-size: 0.82rem;
}
.request-form input[type="text"],
.request-form input[type="tel"],
.request-form select,
.request-form textarea {
  min-height: 2.85rem;
  font-size: 1rem;
  padding: 0.65rem 0.7rem;
}
.request-form textarea {
  min-height: 3.4rem;
  resize: vertical;
}
.request-form .form-actions {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
  margin-top: 0.7rem;
}
.request-form .form-actions .btn {
  width: 100%;
  min-height: 3rem;
  margin-top: 0;
}
.request-form .tiny { margin: 0.55rem 0 0; }
@media (min-width: 560px) {
  .request-form .form-grid.pair {
    grid-template-columns: 1fr 1fr;
  }
  .request-form .form-actions {
    flex-direction: row;
    flex-wrap: wrap;
  }
  .request-form .form-actions .btn {
    width: auto;
    flex: 1 1 12rem;
  }
}
.hero-card .lede { font-size: 1.02rem; margin-bottom: 0.7rem; }
.hero-card h1 { font-size: clamp(1.55rem, 4vw, 2.25rem); }
@media (max-width: 719px) {
  .hero-photo img { height: 10.5rem; }
}

/* Why use this site */
.why-use {
  background: var(--paper);
  border: 1px solid var(--sand);
  border-radius: 12px;
  padding: 1.1rem 1.15rem 1.2rem;
  margin: 0.4rem 0 1.5rem;
}
.why-use h2 { margin-top: 0; }
.why-use p:last-child { margin-bottom: 0; }
.why-use .cslb { margin-top: 0.85rem; }
.why-short {
  background: var(--paper);
  border: 1px solid var(--sand);
  border-left: 4px solid var(--pine);
  border-radius: 0 var(--radius) var(--radius) 0;
  padding: 0.85rem 1rem;
  margin: 0 0 1.1rem;
}
.why-short p:last-child { margin-bottom: 0; }


/* Keep En español next to Menu on small screens (do not split leftover space). */
.nav-toggle { margin-left: 0.15rem; }

form.request-form { max-width: none; }
.request-form .cslb { margin-top: 0.45rem; }
.cslb { font-size: 0.95rem; }
.why-short .cslb { margin-top: 0.55rem; }


/* Narrow phones: logo on its own row, En español + Menu together on the right of row 2 */
@media (max-width: 600px) {
  .logo { flex: 1 1 100%; }
  .lang-link { margin-left: auto; }
  .nav-toggle { margin-left: 0.25rem; }
  .hero-photo img { height: 8.5rem; }
  .hero-card { padding: 1rem 1rem 1.15rem; }
  .hero-card .lede { font-size: 0.98rem; }
}


/* Tablets: keep a header Call button, drop the sticky bar so it does not cover the form. */
@media (min-width: 700px) and (max-width: 1099px) {
  a.btn.header-call {
    display: inline-flex;
    order: 3;
    margin-left: 0.15rem;
    white-space: nowrap;
    flex-shrink: 0;
    padding: 0.5rem 0.75rem;
    font-size: 0.9rem;
  }
  .nav-toggle { order: 4; margin-left: 0.25rem; }
  .callbar { display: none; }
}


/* Jump-to-form target sits below the sticky header */
#request { scroll-margin-top: 5.5rem; }
