/* A&J Sewer Service — redesign v3
   World: Chicago trade-badge heritage. Union-hall poster and badge
   vernacular rendered at a premium register: crest, civic stripe bands,
   the brand's diamond doing the flag star's job, one blue carried at
   page scale. Type: Bricolage Grotesque display over Public Sans.
   Disciplines raised from the dealt challengers: strict band rhythm,
   one icon grammar (the diamond only), a fixed 4-step blue ladder,
   ghost states as outline diamonds, one type-only section, one dated
   line through About. */

:root {
  --ink: #101418;
  --paper: #fbfcfd;
  --paper-2: #f1f4f7;
  /* the blue ladder: exactly four steps, nothing between */
  --blue: #1f6bb5;
  --blue-2: #5b93cd;
  --blue-3: #b9d2ea;
  --blue-4: #e9f1f8;
  --blue-deep: #174e85;
  --steel: #4a545f;         /* secondary text on light */
  --tint-dark: #c9d3dd;     /* secondary text on ink */
  --line: #dfe4ea;
  --line-dark: rgba(255, 255, 255, 0.16);
  --error: #b3261e;

  --font-display: "Bricolage Grotesque", "Helvetica Neue", sans-serif;
  --font-body: "Public Sans", "Helvetica Neue", Arial, sans-serif;

  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --shadow-rest: 0 1px 2px rgba(16, 20, 24, 0.05), 0 10px 28px rgba(16, 20, 24, 0.08);
  --shadow-lift: 0 2px 4px rgba(16, 20, 24, 0.07), 0 20px 44px rgba(16, 20, 24, 0.14);

  --gutter: clamp(1.25rem, 4vw, 3rem);
  --section-pad: clamp(4rem, 8.5vw, 7rem);
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  background: var(--ink);
}

html, body { overflow-x: clip; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}

body {
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.6;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
}

img, svg { display: block; max-width: 100%; }
a { color: inherit; }
section[id] { scroll-margin-top: 5rem; }

::selection { background: var(--blue); color: #fff; }

:focus-visible {
  outline: 2px solid var(--blue);
  outline-offset: 3px;
  border-radius: 2px;
}

.on-ink :focus-visible, .on-blue :focus-visible { outline-color: #fff; }

.wrap {
  max-width: 72rem;
  margin-inline: auto;
  padding-inline: var(--gutter);
}

/* ---------- type ---------- */

h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.04;
  letter-spacing: -0.015em;
  text-wrap: balance;
}

h1 { font-size: clamp(2.7rem, 6.6vw, 5rem); font-weight: 800; letter-spacing: -0.02em; }
h2 { font-size: clamp(1.9rem, 4vw, 3rem); margin-bottom: 1rem; }
h3 { font-size: clamp(1.2rem, 2vw, 1.45rem); }

.lede {
  font-size: clamp(1.08rem, 1.9vw, 1.28rem);
  line-height: 1.55;
  color: var(--steel);
  max-width: 58ch;
}

.on-ink .lede { color: var(--tint-dark); }
.on-blue .lede { color: #e4eefa; }

/* the flag-star row, in the brand's diamond: every section is sworn in */
.stars-row {
  display: flex;
  gap: 0.55rem;
  margin-bottom: 1.1rem;
}

.stars-row i {
  width: 0.5rem;
  height: 0.5rem;
  background: var(--blue);
  transform: rotate(45deg);
}

.stars-row i:nth-child(2) { background: var(--blue-2); }
.stars-row i:nth-child(3) { background: var(--blue-3); }

.on-ink .stars-row i:nth-child(3), .on-blue .stars-row i:nth-child(3) { background: #fff; }

.kicker {
  display: block;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--blue);
  margin-bottom: 0.9rem;
}

.on-ink .kicker { color: var(--blue-2); }
.on-blue .kicker { color: var(--blue-3); }

/* the civic stripe band: two blue stripes divide the page like the flag */
.stripes {
  height: 18px;
  display: grid;
  grid-template-rows: 4px 4px;
  align-content: center;
  gap: 4px;
}

.stripes::before, .stripes::after {
  content: "";
  background: var(--blue-3);
}

.stripes.on-white { background: var(--paper); }

/* ---------- diamond bullets: the single icon grammar ---------- */

.diamond-list { list-style: none; }

.diamond-list li {
  position: relative;
  padding-left: 1.35rem;
  margin-bottom: 0.55rem;
}

.diamond-list li::before {
  content: "";
  position: absolute;
  left: 0.1rem;
  top: 0.6em;
  width: 0.42em;
  height: 0.42em;
  background: var(--blue);
  transform: rotate(45deg);
}

/* ---------- buttons ---------- */

.btn {
  display: inline-block;
  font-family: var(--font-display);
  font-size: 1.02rem;
  font-weight: 700;
  letter-spacing: 0.01em;
  text-decoration: none;
  padding: 0.9rem 1.7rem;
  border: 2px solid transparent;
  border-radius: 8px;
  cursor: pointer;
  transition: background-color 160ms var(--ease-out), border-color 160ms var(--ease-out),
              color 160ms var(--ease-out), transform 160ms var(--ease-out),
              box-shadow 160ms var(--ease-out);
}

.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }

.btn-blue {
  background: var(--blue);
  color: #fff;
  box-shadow: 0 2px 8px rgba(31, 107, 181, 0.3);
}
.btn-blue:hover { background: var(--blue-deep); box-shadow: 0 10px 26px rgba(31, 107, 181, 0.35); }

.btn-quiet {
  background: transparent;
  color: var(--ink);
  border-color: var(--line);
}
.btn-quiet:hover { border-color: var(--ink); }

.btn-white {
  background: #fff;
  color: var(--blue-deep);
  box-shadow: 0 2px 8px rgba(16, 20, 24, 0.2);
}
.btn-white:hover { background: var(--blue-4); }

/* ---------- header ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--paper);
  border-bottom: 1px solid var(--line);
  transition: box-shadow 240ms var(--ease-out);
}

.site-header.scrolled { box-shadow: 0 10px 30px rgba(16, 20, 24, 0.1); }

.site-header .wrap {
  max-width: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.25rem;
  min-height: 4.25rem;
}

.logo-link { display: inline-flex; text-decoration: none; }
.logo-link img { height: 2.5rem; width: auto; }

.site-nav {
  display: flex;
  align-items: center;
  gap: clamp(0.9rem, 2vw, 1.9rem);
}

.site-nav a {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--ink);
  text-decoration: none;
  white-space: nowrap;
}

.site-nav a:hover { text-decoration: underline; text-underline-offset: 5px; text-decoration-thickness: 2px; text-decoration-color: var(--blue); }

.nav-phone {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.02rem;
  color: #fff;
  background: var(--blue);
  padding: 0.55rem 1.1rem;
  border-radius: 8px;
  text-decoration: none;
  white-space: nowrap;
  transition: background-color 160ms var(--ease-out), transform 160ms var(--ease-out);
}

.nav-phone:hover { background: var(--blue-deep); transform: translateY(-1px); }

.nav-toggle {
  display: none;
  background: none;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--ink);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.95rem;
  padding: 0.5rem 1rem;
  min-height: 44px;
  cursor: pointer;
}

@media (max-width: 1060px) {
  .nav-toggle { display: block; }
  .site-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: var(--paper);
    border-bottom: 1px solid var(--line);
    box-shadow: 0 24px 40px rgba(16, 20, 24, 0.15);
    padding-bottom: 1rem;
  }
  .site-nav.open { display: flex; }
  .site-nav a {
    padding: 0.85rem var(--gutter);
    border-top: 1px solid var(--line);
  }
  .site-nav .nav-phone {
    margin: 0.75rem var(--gutter) 0;
    text-align: center;
    border-top: none;
  }
}

/* ---------- hero: light, confident, crest-anchored ---------- */

.hero { background: var(--paper); }

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 8fr) minmax(0, 4fr);
  gap: clamp(2rem, 5vw, 4.5rem);
  align-items: center;
  padding-top: clamp(3.25rem, 7vw, 5.5rem);
  padding-bottom: clamp(2.75rem, 6vw, 4.5rem);
}

.hero h1 { margin-bottom: 1.25rem; max-width: 15ch; }

.hero .lede { margin-bottom: 2rem; }

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1.1rem 1.9rem;
}

.hero-phone {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(1.7rem, 3.4vw, 2.5rem);
  letter-spacing: -0.01em;
  color: var(--ink);
  text-decoration: none;
}

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

.hero-phone small {
  display: block;
  font-family: var(--font-body);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--blue);
  margin-bottom: 0.1rem;
}

/* the crest: 40 years sworn into a badge */
.crest {
  justify-self: center;
  width: clamp(11rem, 22vw, 15rem);
}

.crest svg { width: 100%; height: auto; }

/* the photo band: the fleet as a civic procession */
.hero-band {
  position: relative;
  height: clamp(16rem, 38vw, 26rem);
  overflow: hidden;
}

.hero-band img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 42%;
  filter: grayscale(100%) brightness(0.82) contrast(1.05);
}

.hero-band::before {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--blue-deep);
  mix-blend-mode: multiply;
  opacity: 0.82;
}

.hero-band::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(16, 20, 24, 0.18) 0%, rgba(16, 20, 24, 0) 40%, rgba(16, 20, 24, 0.3) 100%);
}

.hero-band .band-caption {
  position: absolute;
  z-index: 1;
  left: 0;
  right: 0;
  bottom: 1.1rem;
  text-align: center;
  color: #fff;
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  text-shadow: 0 1px 12px rgba(16, 20, 24, 0.5);
}

/* ---------- sections ---------- */

.section { padding-block: var(--section-pad); }

.section-head { margin-bottom: clamp(1.75rem, 4vw, 3rem); }

.on-ink { background: var(--ink); color: #fff; }

.on-blue { background: var(--blue); color: #fff; }

.section-tint { background: var(--paper-2); }

/* ---------- services ---------- */

.lane-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(16rem, 1fr));
  gap: clamp(1.5rem, 3.5vw, 2.5rem);
}

.lane {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 1.85rem 1.85rem 1.6rem;
  box-shadow: var(--shadow-rest);
  transition: transform 240ms var(--ease-out), box-shadow 240ms var(--ease-out);
}

.lane:hover { transform: translateY(-4px); box-shadow: var(--shadow-lift); }

.lane h3 { margin-bottom: 0.2rem; }

.lane .lane-for {
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--blue);
  display: block;
  margin-bottom: 1.1rem;
}

.lane .diamond-list { margin-bottom: 1.2rem; }

.lane .diamond-list a { text-decoration: none; }

.lane .diamond-list a:hover {
  color: var(--blue-deep);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.lane-link {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.98rem;
  text-decoration: none;
  color: var(--blue);
}

.lane-link::after {
  content: " \2192";
  display: inline-block;
  transition: transform 200ms var(--ease-out);
}

.lane-link:hover::after, .lane-link:focus-visible::after { transform: translateX(4px); }

/* ---------- reviews: the union hall testimony ---------- */

.review-feature {
  max-width: 44rem;
  margin-bottom: clamp(2rem, 5vw, 3rem);
}

.review-feature blockquote {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.4rem, 2.9vw, 2.1rem);
  line-height: 1.25;
  letter-spacing: -0.01em;
  color: #fff;
  margin-bottom: 1rem;
}

.review-feature cite, .review cite {
  font-style: normal;
  font-weight: 700;
  color: var(--tint-dark);
}

.stars {
  color: var(--blue-2);
  font-size: 0.95rem;
  letter-spacing: 0.22em;
  display: block;
  margin-bottom: 0.9rem;
}

.review-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(18rem, 1fr));
  gap: clamp(1.5rem, 4vw, 3rem);
  border-top: 1px solid var(--line-dark);
  padding-top: clamp(1.5rem, 4vw, 2.5rem);
}

.review blockquote {
  color: #dde4eb;
  line-height: 1.55;
  margin-bottom: 0.9rem;
}

.review-note { margin-top: 2rem; color: var(--tint-dark); font-size: 0.95rem; }
.review-note a { color: #fff; font-weight: 600; }

/* ---------- service area: type carries everything ---------- */

.area-band { text-align: center; }

.area-band .stars-row { justify-content: center; }

.area-band h2 { margin-inline: auto; }

.area-band .lede { margin-inline: auto; margin-bottom: 2.25rem; }

.town-wall {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.1rem, 2.1vw, 1.55rem);
  line-height: 1.9;
  letter-spacing: -0.005em;
  color: var(--steel);
  max-width: 58rem;
  margin-inline: auto;
}

.town-wall b { color: var(--ink); font-weight: 800; }

.town-wall .dsep {
  display: inline-block;
  width: 0.34em;
  height: 0.34em;
  background: var(--blue-3);
  transform: rotate(45deg);
  margin-inline: 0.5em;
  vertical-align: middle;
}

.area-note { margin-top: 1.75rem; color: var(--steel); font-size: 0.95rem; }
.area-note a { color: var(--blue); font-weight: 600; }

/* ---------- heritage: the dated line ---------- */

.heritage-grid {
  display: grid;
  grid-template-columns: minmax(0, 6fr) minmax(0, 5fr);
  gap: clamp(2.5rem, 6vw, 5rem);
  align-items: center;
}

.timeline {
  list-style: none;
  border-left: 2px solid var(--blue-3);
  padding-left: 1.5rem;
  margin-top: 1.75rem;
  display: flex;
  flex-direction: column;
  gap: 1.15rem;
}

.timeline li { position: relative; }

.timeline li::before {
  content: "";
  position: absolute;
  left: calc(-1.5rem - 6px);
  top: 0.5em;
  width: 0.55rem;
  height: 0.55rem;
  background: var(--blue);
  transform: rotate(45deg);
}

.timeline b {
  display: block;
  font-family: var(--font-display);
  font-weight: 700;
}

.timeline span { color: var(--steel); }

.heritage-figure {
  position: relative;
}

.heritage-figure img {
  width: 100%;
  height: auto;
  border-radius: 12px;
  box-shadow: var(--shadow-lift);
}

.heritage-figure figcaption {
  margin-top: 0.8rem;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--steel);
  text-align: center;
}

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

/* ---------- CTA band: blue owns the close ---------- */

.cta-band { text-align: center; }

.cta-band .stars-row { justify-content: center; }

.cta-band .stars-row i { background: #fff; }
.cta-band .stars-row i:nth-child(2) { background: var(--blue-3); }
.cta-band .stars-row i:nth-child(3) { background: var(--blue-2); }

.cta-band h2 { max-width: 22ch; margin-inline: auto; }

.cta-band .lede { margin-inline: auto; margin-bottom: 2rem; }

.cta-phone {
  display: inline-block;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(2.3rem, 6.2vw, 3.9rem);
  letter-spacing: -0.01em;
  color: #fff;
  text-decoration: none;
  margin-bottom: 1rem;
}

.cta-phone:hover { color: var(--blue-4); }

.cta-meta {
  color: #dcebfa;
  font-weight: 600;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.4rem 1.75rem;
}

.cta-meta span { white-space: nowrap; }
.cta-meta a { color: #fff; }

/* ---------- footer ---------- */

.site-footer {
  background: var(--ink);
  color: var(--tint-dark);
  padding-block: 3rem 2rem;
}

.footer-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 2rem;
  margin-bottom: 2.5rem;
}

.footer-col h4 {
  font-family: var(--font-display);
  font-size: 0.98rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 0.9rem;
}

.footer-col ul { list-style: none; }
.footer-col li { margin-bottom: 0.45rem; }

.footer-col a {
  display: inline-block;
  color: var(--tint-dark);
  text-decoration: none;
  font-size: 0.95rem;
  padding-block: 0.3rem;
}

.footer-col a:hover { color: #fff; text-decoration: underline; text-underline-offset: 3px; }

.footer-meta {
  border-top: 1px solid var(--line-dark);
  padding-top: 1.25rem;
  font-size: 0.85rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 2rem;
  justify-content: space-between;
}

/* ---------- hero load choreography ---------- */

.rise > * {
  animation: rise 700ms var(--ease-out) both;
  animation-delay: 150ms;
}
.rise > *:nth-child(2) { animation-delay: 260ms; }
.rise > *:nth-child(3) { animation-delay: 370ms; }
.rise > *:nth-child(4) { animation-delay: 480ms; }

.crest { animation: crest-in 900ms var(--ease-out) 500ms both; }

@keyframes rise {
  from { opacity: 0; transform: translateY(22px); }
  to   { opacity: 1; transform: none; }
}

@keyframes crest-in {
  from { opacity: 0; transform: scale(0.92) rotate(-3deg); }
  to   { opacity: 1; transform: none; }
}

/* ---------- reveals (armed pattern) ---------- */

[data-reveal].armed {
  opacity: 0;
  translate: 0 var(--reveal-distance, 22px);
}

[data-reveal].armed.in {
  opacity: 1;
  translate: none;
  animation: reveal-in 600ms var(--ease-out) var(--reveal-delay, 0ms) both;
}

@keyframes reveal-in {
  from { opacity: 0; translate: 0 var(--reveal-distance, 22px); }
  to   { opacity: 1; translate: none; }
}

@media (max-width: 700px) {
  [data-reveal].armed { --reveal-distance: 12px; }
  [data-reveal].armed.in { animation-duration: 360ms; }

  @supports (animation-timeline: view()) {
    [data-reveal].armed,
    [data-reveal].armed.in {
      opacity: 1;
      translate: none;
      animation: reveal-in auto linear both;
      animation-timeline: view();
      animation-range: entry 5% entry 55%;
    }
  }

  .hero-grid { grid-template-columns: 1fr; }
  .crest { order: -1; width: 9.5rem; margin-bottom: 0.5rem; }
  .hero-actions { flex-direction: column; align-items: flex-start; }
}

@media (prefers-reduced-motion: reduce) {
  [data-reveal].armed, [data-reveal].armed.in,
  .rise > *, .crest {
    opacity: 1;
    translate: none;
    transform: none;
    animation: none;
  }
}

/* ---------- FAQ: straight answers, one diamond per question ---------- */

.faq-wrap { max-width: 52rem; }

.faq-item {
  border-bottom: 1px solid var(--line);
}

.faq-item summary {
  display: flex;
  align-items: baseline;
  gap: 0.8rem;
  cursor: pointer;
  list-style: none;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.12rem;
  padding-block: 1.1rem;
}

.faq-item summary::-webkit-details-marker { display: none; }

.faq-item summary::before {
  content: "";
  flex: none;
  width: 0.5rem;
  height: 0.5rem;
  background: var(--blue-3);
  transform: rotate(45deg);
  transition: background-color 160ms ease, transform 200ms var(--ease-out);
}

.faq-item[open] summary::before {
  background: var(--blue);
  transform: rotate(225deg);
}

.faq-item summary:hover { color: var(--blue-deep); }

.faq-item p {
  color: var(--steel);
  padding: 0 0 1.2rem 1.3rem;
  max-width: 58ch;
}

.faq-note {
  margin-top: 1.5rem;
  color: var(--steel);
  font-size: 0.95rem;
}

.faq-note a { color: var(--blue); font-weight: 600; }
