/* Stewart's Septic Pumping Ltd. | site styles
   Brand: Impact (headlines), Catamaran (body), #E14791 (accent pink) */

:root {
  --ink: #1F2326;
  --charcoal: #2B3035;
  --steel: #5B636B;
  --line: #D9DDE1;
  --mist: #F1F3F5;
  --white: #FFFFFF;
  --pink: #E14791;        /* brand pink: stripes, large accents */
  --pink-deep: #C42E74;   /* buttons and small text on white (passes contrast) */
  --pink-deeper: #A42460;

  --font-head: Impact, "Anton", "Arial Narrow Bold", "Helvetica Neue Condensed", sans-serif;
  --font-body: "Catamaran", "Segoe UI", Roboto, Helvetica, Arial, sans-serif;

  --wrap: 1140px;
  --gap: clamp(1.25rem, 3vw, 2rem);
  --radius: 4px;
}

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

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

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1.125rem;
  line-height: 1.6;
  color: var(--ink);
  background: var(--white);
}

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

a { color: var(--pink-deep); }
a:hover { color: var(--pink-deeper); }

:focus-visible {
  outline: 3px solid var(--pink);
  outline-offset: 3px;
}

h1, h2, h3 {
  font-family: var(--font-head);
  font-weight: 400;          /* Impact is already heavy */
  line-height: 1.05;
  letter-spacing: 0.01em;
  margin: 0 0 0.5em;
  color: var(--ink);
}
h1 { font-size: clamp(2.5rem, 6vw, 4.25rem); }
h2 { font-size: clamp(1.9rem, 4vw, 2.75rem); }
h3 { font-size: clamp(1.4rem, 2.5vw, 1.75rem); }

p { margin: 0 0 1em; max-width: 65ch; }

.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 0 var(--gap);
}

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

/* ---------- Header ---------- */

.site-header {
  background: var(--charcoal);
  color: var(--white);
  border-bottom: 6px solid var(--pink);   /* the livery stripe */
  position: relative;
  z-index: 20;
}
.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 84px;
}

.brand {
  white-space: nowrap;
  font-family: var(--font-head);
  font-size: clamp(1.3rem, 2.6vw, 1.75rem);
  line-height: 1;
  color: var(--white);
  text-decoration: none;
  letter-spacing: 0.02em;
}
.brand:hover { color: var(--white); }
.brand small {
  display: block;
  font-family: var(--font-body);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: #C9CED3;
  margin-top: 0.3rem;
}

.nav { display: flex; align-items: center; gap: 1.75rem; }
.nav ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 1.25rem; }
.nav li { white-space: nowrap; }
.nav a {
  color: var(--white);
  text-decoration: none;
  font-weight: 600;
  font-size: 1rem;
  padding: 0.25rem 0;
  border-bottom: 2px solid transparent;
}
.nav a:hover,
.nav a[aria-current="page"] { border-bottom-color: var(--pink); color: var(--white); }

.nav .header-call {
  display: inline-flex;
  flex-direction: column;
  align-items: flex-start;
  background: var(--pink-deep);
  color: var(--white);
  text-decoration: none;
  padding: 0.6rem 1.25rem 0.55rem;
  border: 0;
  border-radius: var(--radius);
  line-height: 1.25;
  white-space: nowrap;
  flex-shrink: 0;
}
.nav .header-call:hover { background: var(--pink-deeper); color: var(--white); }
.header-call span { font-size: 0.75rem; font-weight: 600; }
.header-call strong { font-size: 1.1rem; font-weight: 800; }

.nav-toggle {
  display: none;
  background: none;
  border: 2px solid #6A737B;
  color: var(--white);
  font: 600 1rem var(--font-body);
  padding: 0.4rem 0.8rem;
  border-radius: var(--radius);
  cursor: pointer;
}

@media (max-width: 1100px) {
  .nav-toggle { display: inline-block; }
  .nav {
    display: none;
    position: absolute;
    left: 0; right: 0; top: 100%;
    background: var(--charcoal);
    flex-direction: column;
    align-items: stretch;
    padding: 1rem var(--gap) 1.5rem;
    border-bottom: 6px solid var(--pink);
  }
  .nav.open { display: flex; }
  .nav ul { flex-direction: column; gap: 0; }
  .nav li a { display: block; padding: 0.8rem 0; border-bottom: 1px solid #40474D; }
  .nav .header-call { margin-top: 1rem; align-items: center; }
}

/* ---------- Buttons ---------- */

.btn {
  display: inline-block;
  font: 800 1.05rem/1 var(--font-body);
  text-decoration: none;
  padding: 0.95rem 1.4rem 0.85rem;
  border-radius: var(--radius);
  border: 2px solid transparent;
  cursor: pointer;
}
.btn-pink { background: var(--pink-deep); color: var(--white); }
.btn-pink:hover { background: var(--pink-deeper); color: var(--white); }
.btn-line-dark { border-color: var(--ink); color: var(--ink); }
.btn-line-dark:hover { background: var(--ink); color: var(--white); }
.btn-line-light { border-color: var(--white); color: var(--white); }
.btn-line-light:hover { background: var(--white); color: var(--ink); }
.btn-row { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-top: 1.5rem; }

/* ---------- Photo placeholders ---------- */

.ph {
  position: relative;
  background:
    repeating-linear-gradient(135deg, rgba(0,0,0,.035) 0 12px, transparent 12px 24px),
    #C9CED3;
  display: flex;
  align-items: flex-end;
  min-height: 260px;
  border-radius: var(--radius);
  overflow: hidden;
}
.ph-label {
  background: rgba(31,35,38,.82);
  color: var(--white);
  font-size: 0.85rem;
  font-weight: 600;
  padding: 0.35rem 0.7rem;
  margin: 0.75rem;
  border-radius: 3px;
}

/* ---------- Home: split hero ---------- */

.split {
  display: grid;
  grid-template-columns: 1fr 10px 1fr;
}
.split-seam { background: var(--pink); }

.split-side { display: flex; flex-direction: column; }

.split-media {
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: #C9CED3;
}
.split-media img { width: 100%; height: 100%; object-fit: cover; object-position: center; }
.split-media .ph { height: 100%; min-height: 0; border-radius: 0; align-items: flex-start; }

.split-body {
  flex: 1;
  padding: clamp(1.75rem, 4vw, 3rem) clamp(1.5rem, 5vw, 4rem) clamp(2rem, 5vw, 3.5rem);
}
.split-body p { max-width: 32rem; }

.split-septic { background: var(--charcoal); }
.split-septic .ph {
  background:
    repeating-linear-gradient(135deg, rgba(255,255,255,.03) 0 12px, transparent 12px 24px),
    #3A4046;
}
.split-septic h2, .split-septic p { color: var(--white); }

.split-toilets { background: var(--mist); }

.split h2 { font-size: clamp(2.4rem, 5vw, 4rem); margin-bottom: 0.3em; }
.split p { font-size: 1.2rem; }

@media (max-width: 800px) {
  .split { grid-template-columns: 1fr; grid-template-rows: auto 10px auto; }
}

/* ---------- Home: intro band ---------- */

.intro {
  background: var(--mist);
  padding: clamp(3rem, 7vw, 5.5rem) 0;
}
.intro .wrap {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
}
.intro h1 { font-size: clamp(2.25rem, 5vw, 3.5rem); }
.lede { font-size: 1.3rem; color: var(--steel); }

.todo {
  border: 2px dashed var(--pink);
  background: var(--white);
  padding: 1rem 1.25rem;
  border-radius: var(--radius);
  color: var(--steel);
  font-size: 1rem;
}
.todo strong { color: var(--ink); }

@media (max-width: 800px) {
  .intro .wrap { grid-template-columns: 1fr; }
}

/* ---------- Phone band (appears on every page) ---------- */

.phones {
  background: var(--charcoal);
  color: var(--white);
  padding: clamp(2.5rem, 6vw, 4rem) 0;
}
.phones .wrap {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2px;
}
.phone-card {
  padding: 1.5rem 1.75rem;
  background: #353B40;
  text-decoration: none;
  color: var(--white);
  display: block;
}
.phone-card:hover { background: #3E454B; color: var(--white); }
.phone-card.emergency { background: var(--pink-deep); }
.phone-card.emergency:hover { background: var(--pink-deeper); }
.phone-card span { display: block; font-weight: 600; font-size: 1.05rem; }
.phone-card strong {
  display: block;
  font-family: var(--font-head);
  font-weight: 400;
  font-size: clamp(2rem, 4.5vw, 3rem);
  line-height: 1.1;
  letter-spacing: 0.02em;
}
.phone-card small { font-size: 0.95rem; opacity: 0.9; }

@media (max-width: 700px) {
  .phones .wrap { grid-template-columns: 1fr; }
}

/* ---------- Inner pages ---------- */

.page-head {
  background: var(--mist);
  padding: clamp(2.5rem, 6vw, 4.5rem) 0 clamp(2rem, 4vw, 3rem);
  border-bottom: 1px solid var(--line);
}
.page-head p { font-size: 1.25rem; color: var(--steel); margin-bottom: 0; }

.section { padding: clamp(3rem, 7vw, 5rem) 0; }
.section + .section { padding-top: 0; }

.feature {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
}
.feature + .feature { margin-top: clamp(3rem, 7vw, 5rem); }
.feature.flip .feature-media { order: 2; }
.feature .ph { min-height: 320px; }
.feature-img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--radius); }

@media (max-width: 800px) {
  .feature { grid-template-columns: 1fr; }
  .feature.flip .feature-media { order: 0; }
}

.checklist { list-style: none; padding: 0; margin: 0 0 1.25rem; }
.checklist li {
  position: relative;
  padding: 0.5rem 0 0.5rem 2rem;
  border-bottom: 1px solid var(--line);
}
.checklist li::before {
  content: "";
  position: absolute; left: 0.2rem; top: 0.95rem;
  width: 0.9rem; height: 0.5rem;
  border-left: 3px solid var(--pink-deep);
  border-bottom: 3px solid var(--pink-deep);
  transform: rotate(-45deg);
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--gap);
}
.service {
  border-top: 6px solid var(--pink);
  background: var(--mist);
  display: flex;
  flex-direction: column;
}
.service .ph { min-height: 200px; border-radius: 0; }
.service-img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; }
.service .ph { aspect-ratio: 16 / 10; min-height: 0; }
.service-body { padding: 1.5rem 1.5rem 1.75rem; display: flex; flex-direction: column; flex: 1; }
.service-body p { flex: 1; }
.service-body .btn { align-self: flex-start; }

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

.callout {
  background: var(--charcoal);
  color: var(--white);
  padding: clamp(2rem, 5vw, 3rem);
  border-left: 10px solid var(--pink);
}
.callout h2 { color: var(--white); }
.callout p { color: #DDE1E5; font-size: 1.2rem; }

.big-quote {
  font-family: var(--font-head);
  font-size: clamp(2.25rem, 6vw, 4.5rem);
  line-height: 1.05;
  margin: 0 0 1.5rem;
  max-width: 16ch;
}

/* ---------- Contact ---------- */

.contact-grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: start;
}
@media (max-width: 860px) {
  .contact-grid { grid-template-columns: 1fr; }
}

form .field { margin-bottom: 1.1rem; }
form label { display: block; font-weight: 700; margin-bottom: 0.3rem; font-size: 1rem; }
form .req { color: var(--pink-deep); }
form input, form select, form textarea {
  width: 100%;
  font: 400 1.05rem var(--font-body);
  color: var(--ink);
  padding: 0.75rem 0.85rem;
  border: 2px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
}
form input:focus, form select:focus, form textarea:focus {
  border-color: var(--ink);
  outline: none;
  box-shadow: 0 0 0 3px rgba(225,71,145,.35);
}
form textarea { min-height: 160px; resize: vertical; }
.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
@media (max-width: 560px) { .two-col { grid-template-columns: 1fr; } }

.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.notice {
  padding: 1rem 1.25rem;
  border-radius: var(--radius);
  margin-bottom: 1.5rem;
  font-weight: 600;
  display: none;
}
.notice.show { display: block; }
.notice.ok { background: #E3F4EA; border-left: 6px solid #1E7B45; color: #14502D; }
.notice.err { background: #FBE6EF; border-left: 6px solid var(--pink-deep); color: #6E1640; }

.info-card { background: var(--mist); padding: 1.75rem; }
.info-card h3 { margin-top: 0; }
.info-card + .info-card { margin-top: 2px; }
.info-card p { margin-bottom: 0.4rem; }
.info-card a { font-weight: 700; }
.hours { width: 100%; border-collapse: collapse; font-size: 1rem; }
.hours td { padding: 0.35rem 0; border-bottom: 1px solid var(--line); }
.hours td:last-child { text-align: right; font-weight: 700; }

/* ---------- Footer ---------- */

.site-footer {
  background: var(--ink);
  color: #BFC5CA;
  padding: 3rem 0 6rem;   /* bottom room for the mobile call bar */
  font-size: 1rem;
}
.site-footer .wrap {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 2rem;
}
.site-footer .brand { font-size: 1.5rem; }
.site-footer h3 { color: var(--white); font-size: 1.25rem; margin-bottom: 0.6rem; }
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li { margin-bottom: 0.35rem; }
.site-footer a { color: var(--white); text-decoration: none; }
.site-footer a:hover { color: var(--pink); }
.site-footer p { margin-bottom: 0.4rem; }
.copyright {
  grid-column: 1 / -1;
  max-width: none;
  border-top: 1px solid #3A4046;
  padding-top: 1.25rem;
  font-size: 0.9rem;
}
@media (min-width: 801px) { .site-footer { padding-bottom: 2rem; } }
@media (max-width: 800px) {
  .site-footer .wrap { grid-template-columns: 1fr; }
}

/* ---------- Mobile call bar ---------- */

.call-bar { display: none; }
@media (max-width: 800px) {
  .call-bar {
    display: grid;
    grid-template-columns: 1fr 1fr;
    position: fixed; left: 0; right: 0; bottom: 0;
    z-index: 30;
    box-shadow: 0 -2px 10px rgba(0,0,0,.2);
    padding-bottom: env(safe-area-inset-bottom, 0px);
    background: var(--charcoal);
  }
  .call-bar a {
    text-align: center;
    padding: 0.8rem 0.5rem;
    color: var(--white);
    text-decoration: none;
    font-weight: 800;
    font-size: 1rem;
    line-height: 1.2;
  }
  .call-bar a span { display: block; font-size: 0.8rem; font-weight: 600; opacity: .9; }
  .call-bar a.emergency { background: var(--pink-deep); }
}

@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; animation: none !important; }
}

@media (max-width: 420px) {
  .brand { white-space: normal; font-size: 1.2rem; }
}
