/* J Drains Rooter Service.
   Palette sampled from their own logo artwork: blue #004C92, red #E80000, gold #FFBA00.
   The red is kept off text. At #E80000 it lands near 3.9:1 on white, which fails, so text-bearing
   red uses --red-ink and the bright red survives only as a rule, a fill, or a thick underline.

   Shell: this concept is built around a bottom call bar rather than the top-hero-then-cards shape
   the rest of the portfolio uses. For a business whose own listing says 24 hour emergency service,
   the number being one thumb away at all times is the layout decision that matters most. */

:root {
  --blue: #004C92;
  --blue-dk: #00325F;
  --blue-in: #E7EFF7;
  --red: #E80000;
  --red-ink: #B80000;
  --gold: #FFBA00;

  --ink: #14181C;
  --ink-2: #47525C;
  --ink-3: #5A656F;
  --paper: #FFFFFF;
  --paper-2: #F2F5F8;
  --rule: #D6DEE6;

  --wrap: 1140px;
  --bar: 66px;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 400 17px/1.6 "IBM Plex Sans", "Helvetica Neue", Arial, sans-serif;
  padding-bottom: var(--bar);
}
@media (min-width: 860px) { body { padding-bottom: 0; } }

img { max-width: 100%; display: block; }
a { color: var(--blue); }

h1, h2, h3, .btn, .eyebrow, .strip strong, .nav a, .head-call, .callbar-btn, .bigtel {
  font-family: Oswald, "Arial Narrow", Arial, sans-serif;
  font-weight: 600;
  letter-spacing: 0.005em;
}

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding-inline: 18px; }
.narrow { max-width: 68ch; }

.skip {
  position: absolute; left: -9999px; top: 0; z-index: 99;
  background: var(--blue); color: #fff; padding: 12px 18px;
}
.skip:focus { left: 0; }

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

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

.head { background: var(--blue-dk); border-bottom: 4px solid var(--red); }
@media (min-width: 1200px) { .head-in { max-width: 1280px; } }
.head-in {
  display: flex; align-items: center; gap: 14px;
  min-height: 74px; flex-wrap: wrap;
  padding-block: 18px 0;
}
.brand { display: block; margin-right: auto; padding: 2px 0; }
.brand img { width: 166px; height: auto; }

.menu-btn {
  font: 600 14px/1 Oswald, Arial, sans-serif; letter-spacing: 0.1em; text-transform: uppercase;
  color: #fff; background: transparent; border: 2px solid rgba(255,255,255,.55);
  padding: 11px 15px; border-radius: 3px; cursor: pointer; min-height: 44px;
}
.menu-btn:hover { border-color: #fff; }
@media (min-width: 980px) { .menu-btn { display: none; } }

.head-call { display: none; }
@media (min-width: 980px) {
  .head-call {
    display: inline-block; background: var(--red); color: #fff; text-decoration: none;
    font-size: 19px; padding: 11px 20px; border-radius: 3px; white-space: nowrap;
  }
  .head-call:hover { background: #ff1414; }
}

.nav { width: 100%; display: none; }
.nav[data-open="true"] { display: block; }
.nav ul { list-style: none; margin: 0 0 14px; padding: 0; }
.nav a {
  display: block; padding: 13px 4px; color: #fff; text-decoration: none;
  font-size: 16px; text-transform: uppercase; letter-spacing: 0.07em;
  border-bottom: 1px solid rgba(255,255,255,.16);
}
.nav a:hover, .nav a.here { color: var(--gold); }
@media (min-width: 980px) {
  .nav { display: block; width: auto; order: 3; flex-basis: 100%; }
  .nav ul {
    display: flex; flex-wrap: nowrap; justify-content: space-between; gap: 0; margin: 0;
    border-top: 1px solid rgba(255,255,255,.16);
  }
  .nav a { border: 0; padding: 13px 9px; font-size: 13.2px; letter-spacing: 0.045em; }
  .nav a.here { box-shadow: inset 0 -3px 0 var(--gold); }
}

/* ------------------------------------------------------------------ hero */

.hero { position: relative; background: var(--blue-dk); }
.hero picture, .hero img { display: block; width: 100%; }
.hero img { height: 62vh; min-height: 380px; max-height: 660px; object-fit: cover; object-position: center 42%; }
.hero-in {
  position: absolute; inset: 0;
  display: flex; align-items: flex-end;
  background: linear-gradient(180deg, rgba(0,20,40,.30) 0%, rgba(0,20,40,.55) 42%, rgba(0,24,46,.90) 100%);
}
.hero-in .wrap { padding-bottom: 30px; }
.eyebrow {
  margin: 0 0 8px; color: var(--gold); font-size: 13px; letter-spacing: 0.18em;
  text-transform: uppercase;
}
.hero h1 {
  margin: 0 0 12px; color: #fff; font-size: clamp(31px, 8.2vw, 62px); line-height: 1.02;
  font-weight: 700; text-wrap: balance;
}
.hero-sub { margin: 0 0 18px; color: #E4ECF4; max-width: 46ch; font-size: 17px; }
.hero-do { display: flex; flex-wrap: wrap; gap: 11px; }

.btn {
  display: inline-block; background: var(--red); color: #fff; text-decoration: none;
  padding: 15px 24px; border-radius: 3px; font-size: 18px; letter-spacing: 0.02em;
  border: 2px solid var(--red); min-height: 50px;
}
.btn:hover { background: #ff1414; border-color: #ff1414; }
.btn.ghost { background: transparent; border-color: rgba(255,255,255,.7); color: #fff; }
.btn.ghost:hover { background: rgba(255,255,255,.12); border-color: #fff; }

/* ------------------------------------------------------------------ fact strip */

.strip { background: var(--blue); color: #fff; }
.strip-in { display: grid; gap: 1px; padding-block: 0; }
@media (min-width: 720px) { .strip-in { grid-template-columns: repeat(4, 1fr); } }
.strip-in > div {
  padding: 18px 16px;
  border-bottom: 1px solid rgba(255,255,255,.18);
}
@media (min-width: 720px) {
  .strip-in > div { border-bottom: 0; border-right: 1px solid rgba(255,255,255,.18); }
  .strip-in > div:last-child { border-right: 0; }
}
.strip strong { display: block; font-size: 24px; color: var(--gold); line-height: 1.1; }
.strip span { display: block; font-size: 14.5px; color: #DCE7F2; margin-top: 4px; }

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

.pad { padding-block: 44px; }
.pad.alt { background: var(--paper-2); }
@media (min-width: 860px) { .pad { padding-block: 66px; } }

.sec-h {
  margin: 0 0 10px; font-size: clamp(25px, 5vw, 36px); line-height: 1.1; font-weight: 700;
  text-wrap: balance;
}
.sec-h::after {
  content: ""; display: block; width: 62px; height: 5px; background: var(--red); margin-top: 12px;
}
.sec-p { margin: 0 0 22px; color: var(--ink-2); max-width: 62ch; }
.more { font-weight: 600; display: inline-block; padding: 12px 0; line-height: 1.2; }

.lead2 { display: grid; gap: 26px; align-items: start; }
@media (min-width: 900px) {
  .lead2 { grid-template-columns: 1.02fr 1fr; gap: 46px; align-items: start; }
  .lead2.flip > :first-child { order: 2; }
}
.lead2 figure { margin: 0; }
.lead2 figure img { width: 100%; height: auto; border-radius: 3px; }
figcaption { font-size: 14px; color: var(--ink-3); padding-top: 8px; }

.pull {
  margin: 0 0 6px; padding: 0 0 0 18px; border-left: 5px solid var(--gold);
  font-size: 19px; line-height: 1.5;
}
.pull p { margin: 0; }
.attr { margin: 0 0 20px; font-size: 14px; color: var(--ink-3); }

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

.svc-grid { display: grid; gap: 16px; }
@media (min-width: 640px) { .svc-grid { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1000px) { .svc-grid { grid-template-columns: repeat(3, 1fr); } }

.svc {
  display: flex; flex-direction: column; text-decoration: none; color: inherit;
  background: var(--paper); border: 1px solid var(--rule); border-radius: 3px; overflow: hidden;
}
.svc img { width: 100%; height: 188px; object-fit: cover; }
.svc-t { display: block; padding: 16px 16px 18px; border-top: 4px solid var(--blue); }
.svc strong {
  display: block; font-family: Oswald, Arial, sans-serif; font-weight: 600; font-size: 20px;
  line-height: 1.2; margin-bottom: 6px;
}
.svc span span, .svc-t > span { display: block; color: var(--ink-2); font-size: 15.5px; }
.svc:hover { border-color: var(--blue); }
.svc:hover .svc-t { border-top-color: var(--red); }

/* ------------------------------------------------------------------ quotes */

.quotes { display: grid; gap: 16px; }
@media (min-width: 860px) { .quotes { grid-template-columns: repeat(3, 1fr); } }
.quotes.col { grid-template-columns: 1fr; max-width: 76ch; }

.quote {
  margin: 0; background: var(--blue-in); border-left: 5px solid var(--blue);
  padding: 20px 20px 14px; border-radius: 0 3px 3px 0;
  display: flex; flex-direction: column;
}
.quote blockquote { flex: 1; }
.quote figcaption { margin-top: auto; }
.quote blockquote { margin: 0; }
.quote p { margin: 0 0 12px; font-size: 17px; }
.quote figcaption { padding: 0; font-size: 14.5px; color: var(--ink-2); font-weight: 600; }
.quote.big p { font-size: 19.5px; line-height: 1.55; }

/* ------------------------------------------------------------------ page head */

.ph { background: var(--paper-2); border-bottom: 1px solid var(--rule); padding-block: 30px 34px; }
.crumb { margin: 0 0 6px; font-size: 14px; color: var(--ink-3); }
.crumb a { display: inline-block; padding: 12px 6px 12px 0; line-height: 1.2; }
.ph h1 { margin: 0 0 12px; font-size: clamp(27px, 6vw, 44px); line-height: 1.08; font-weight: 700; text-wrap: balance; }
.lede { margin: 0 0 12px; font-size: 19px; color: var(--ink-2); max-width: 60ch; }
.src {
  margin: 0; font-size: 14.5px; color: var(--ink-2);
  border-left: 4px solid var(--gold); padding-left: 12px; max-width: 60ch;
}

.also { margin-top: 24px; }
.also h2 { margin: 0 0 8px; font-size: 19px; }
.also ul { margin: 0; padding-left: 20px; color: var(--ink-2); }
.also li { margin-bottom: 5px; }

.shots { display: grid; gap: 16px; }
@media (min-width: 760px) { .shots { grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); } }
.shots figure { margin: 0; }
.shots img { width: 100%; height: 230px; object-fit: cover; border-radius: 3px; }
.lead2 figure img { max-height: 560px; object-fit: cover; }

/* ------------------------------------------------------------------ gallery */

.tiles { display: grid; gap: 14px; }
@media (min-width: 620px) { .tiles { grid-template-columns: 1fr 1fr; } }
@media (min-width: 980px) { .tiles { grid-template-columns: repeat(3, 1fr); } }
.tile { margin: 0; }
.tile img { width: 100%; height: 240px; object-fit: cover; border-radius: 3px; }

/* ------------------------------------------------------------------ cities */

.cities { list-style: none; margin: 0 0 34px; padding: 0; display: grid; gap: 10px; }
@media (min-width: 560px) { .cities { grid-template-columns: 1fr 1fr; } }
@media (min-width: 900px) { .cities { grid-template-columns: repeat(3, 1fr); } }
.cities li {
  background: var(--paper-2); border: 1px solid var(--rule); border-left: 5px solid var(--blue);
  padding: 16px 18px; border-radius: 0 3px 3px 0;
}
.cities strong { font-family: Oswald, Arial, sans-serif; font-size: 20px; font-weight: 600; }

/* ------------------------------------------------------------------ contact */

.bigtel {
  display: inline-block; font-size: clamp(32px, 8vw, 50px); color: var(--red-ink);
  text-decoration: none; line-height: 1.05; margin-bottom: 10px;
}
.bigtel:hover { text-decoration: underline; }

.form { display: grid; gap: 14px; margin-top: 18px; max-width: 520px; }
.form label { display: grid; gap: 6px; font-size: 15px; font-weight: 600; color: var(--ink-2); }
.form input, .form select, .form textarea {
  font: 400 16px/1.5 "IBM Plex Sans", Arial, sans-serif; color: var(--ink);
  background: #fff; border: 1.5px solid var(--rule); border-radius: 3px; padding: 12px 13px;
  min-height: 48px; width: 100%;
}
.form textarea { min-height: 104px; resize: vertical; }
.form button {
  font: 600 18px/1 Oswald, Arial, sans-serif; letter-spacing: 0.03em;
  background: var(--blue); color: #fff; border: 0; border-radius: 3px;
  padding: 16px 26px; cursor: pointer; min-height: 52px; justify-self: start;
}
.form button:hover { background: var(--blue-dk); }
.form-note { margin: 0; font-size: 15px; color: var(--red-ink); font-weight: 600; min-height: 1.5em; }

.cta-sec { background: var(--blue-dk); color: #fff; }
.cta { text-align: center; }
.cta h2 { margin: 0 0 10px; font-size: clamp(23px, 5vw, 33px); line-height: 1.12; text-wrap: balance; }
.cta p { margin: 0 0 20px; color: #D5E2EF; }

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

.foot { background: var(--blue-dk); color: #D5E2EF; padding-block: 36px 24px; border-top: 5px solid var(--red); }
.foot-in { display: grid; gap: 28px; }
@media (min-width: 800px) { .foot-in { grid-template-columns: 1.4fr 1fr 1fr; gap: 40px; } }
.foot-brand img { width: 190px; height: auto; background: #fff; padding: 9px 12px; border-radius: 3px; }
.foot-line { font-size: 14.5px; margin: 12px 0 0; max-width: 40ch; }
.foot-col h2 {
  margin: 0 0 12px; font-size: 14px; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--gold);
}
.foot-col ul { list-style: none; margin: 0; padding: 0; }
.foot-col li { margin-bottom: 0; }
.foot-col a {
  color: #E7EFF7; text-decoration: none; font-size: 15.5px;
  display: inline-block; padding: 12px 0; line-height: 1.2;
}
.foot-col a:hover { color: #fff; text-decoration: underline; }
.foot-col p { margin: 0 0 9px; font-size: 15px; }
.foot-tel { font-family: Oswald, Arial, sans-serif; font-size: 23px; color: #fff !important; }

.concept-note {
  margin: 26px 0 0; padding-top: 16px; border-top: 1px solid rgba(255,255,255,.2);
  font-size: 13.5px; color: #B9CBDD;
}

/* ------------------------------------------------------------------ bottom call bar */

.callbar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 40;
  background: var(--blue-dk); border-top: 3px solid var(--red);
  padding: 8px 14px calc(8px + env(safe-area-inset-bottom, 0px));
}
@media (min-width: 860px) { .callbar { display: none; } }
.callbar-btn {
  display: block; text-align: center; background: var(--red); color: #fff; text-decoration: none;
  padding: 14px; border-radius: 3px; font-size: 19px; min-height: 50px;
}

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

/* ------------------------------------------------------------------ city, FAQ and emergency */

.proof { margin: 0 0 18px; padding-left: 20px; }
.proof li { margin-bottom: 9px; color: var(--ink-2); }

.linky { list-style: none; margin: 0; padding: 0; }
.linky li { margin-bottom: 0; }
.linky a { display: inline-block; padding: 11px 0; font-weight: 600; line-height: 1.2; }
.linky.row { display: flex; flex-wrap: wrap; gap: 6px 22px; }

/* The cities list on service-area.html became links once the town pages existed. */
.cities li { padding: 0; }
.cities a {
  display: block; padding: 16px 18px; text-decoration: none; color: inherit; min-height: 44px;
}
.cities a:hover { background: var(--blue-in); }
.cities a span { display: block; font-size: 14.5px; color: var(--ink-2); margin-top: 2px; }

.faq {
  border: 1px solid var(--rule); border-left: 5px solid var(--blue);
  border-radius: 0 3px 3px 0; margin-bottom: 10px; background: var(--paper);
}
.faq summary {
  cursor: pointer; padding: 16px 18px; font-family: Oswald, Arial, sans-serif; font-weight: 600;
  font-size: 18.5px; line-height: 1.3; list-style: none; min-height: 48px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: " +"; color: var(--red-ink); font-weight: 700; }
.faq[open] summary::after { content: " \2212"; }
.faq[open] summary { border-bottom: 1px solid var(--rule); }
.faq-a { padding: 14px 18px 4px; }
.faq-a p { margin: 0 0 12px; color: var(--ink-2); }

.hero.short img { height: 44vh; min-height: 300px; max-height: 470px; }

@media (min-width: 800px) { .foot-in { grid-template-columns: 1.3fr 1fr 1fr 1fr; gap: 32px; } }

/* ------------------------------------------------------------------ hero movement */

/* One small piece of motion on the homepage: the headline arrives from the left, once, on load.
   The global prefers-reduced-motion rule at the foot of this file switches it off. */
@keyframes slide-in-left {
  from { opacity: 0; transform: translate3d(-26px, 0, 0); }
  to   { opacity: 1; transform: translate3d(0, 0, 0); }
}
.hero .eyebrow { animation: slide-in-left .5s cubic-bezier(.22,.8,.3,1) both; }
.hero h1       { animation: slide-in-left .62s cubic-bezier(.22,.8,.3,1) .08s both; }
.hero-sub      { animation: slide-in-left .62s cubic-bezier(.22,.8,.3,1) .18s both; }
.hero-do       { animation: slide-in-left .62s cubic-bezier(.22,.8,.3,1) .26s both; }

/* ------------------------------------------------------------------ quotes, marks, themes */

.quotes.two { grid-template-columns: 1fr; }
@media (min-width: 760px) { .quotes.two { grid-template-columns: 1fr 1fr; } }

/* The quotation marks are drawn here rather than typed into the review text, so the words on the
   page stay exactly the words the customer wrote. */
.quote blockquote p::before { content: "\201C"; }
.quote blockquote p::after  { content: "\201D"; }
.quote blockquote p {
  font-style: italic;
  text-indent: -0.42em;
}
.quote.big blockquote p { text-indent: -0.46em; }

.mark { width: 21px; height: 21px; flex: none; display: block; }
.src-link {
  display: inline-flex; align-items: center; gap: 8px; text-decoration: none;
  color: var(--ink-2); font-weight: 600; padding: 10px 0 2px; line-height: 1.2;
}
.src-link:hover span { text-decoration: underline; }

.themes { list-style: none; margin: 0 0 20px; padding: 0; display: grid; gap: 10px; }
@media (min-width: 680px) { .themes { grid-template-columns: repeat(3, 1fr); } }
.themes li {
  background: var(--paper-2); border: 1px solid var(--rule); border-left: 5px solid var(--gold);
  border-radius: 0 3px 3px 0; padding: 14px 16px;
}
.themes strong {
  display: block; font-family: Oswald, Arial, sans-serif; font-size: 27px; line-height: 1;
  color: var(--blue); margin-bottom: 4px;
}
.themes span { display: block; font-size: 15px; color: var(--ink-2); }

.social { list-style: none; margin: 12px 0 0; padding: 0; display: flex; gap: 8px; }
.social a {
  display: inline-flex; align-items: center; gap: 7px; text-decoration: none;
  background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.22); border-radius: 3px;
  padding: 10px 13px; min-height: 44px; color: #E7EFF7; font-size: 14.5px; font-weight: 600;
}
.social a:hover { background: rgba(255,255,255,.2); }
.social .mark { background: #fff; border-radius: 3px; }

/* Yelp wordmark chip. Not the official burst: pull the real asset from Yelp's brand page before
   launch. White on Yelp red measures 5.3:1. */
.mark-yelp {
  width: auto; height: 21px; padding: 0 6px; border-radius: 4px;
  background: #D32323; color: #fff;
  font: 600 12px/21px Oswald, Arial, sans-serif; letter-spacing: 0.01em; text-align: center;
}
.social .mark-yelp { background: #D32323; }

/* ------------------------------------------------------------------ call and text pair */

.two-do { display: flex; flex-wrap: wrap; gap: 11px; margin: 16px 0 12px; }
.two-do .btn { flex: 1 1 190px; text-align: center; }
.btn.alt { background: var(--blue); border-color: var(--blue); }
.btn.alt:hover { background: var(--blue-dk); border-color: var(--blue-dk); }
.do-note { font-size: 15.5px; color: var(--ink-2); max-width: 54ch; margin: 0 0 14px; }

/* ------------------------------------------------------------------ print */

/* Somebody prints a service page to leave on the counter, or to hand to a landlord. Navigation,
   the fixed call bar and the hero overlay are all useless on paper, and the phone number has to
   survive. Pure CSS: there is nothing here that can break. */
@media print {
  .head, .callbar, .nav, .menu-btn, .cta-sec, .skip, .social, .shots, .coll-nav { display: none !important; }

  body { background: #fff; color: #000; font-size: 11pt; padding-bottom: 0; }
  .wrap { max-width: none; padding-inline: 0; }
  .pad { padding-block: 12pt; }
  .pad.alt, .ph { background: #fff !important; }

  a { color: #000; text-decoration: underline; }
  /* the reader cannot tap a link on paper, so print where it went */
  main a[href^="http"]::after { content: " (" attr(href) ")"; font-size: 9pt; word-break: break-all; }
  main a[href^="tel:"]::after, main a[href^="sms:"]::after,
  main a[href$=".vcf"]::after, .crumb a::after { content: ""; }

  .hero { min-height: 0; }
  .hero img { height: 210pt; }
  .hero-in { position: static; background: none; color: #000; }
  .hero h1, .hero-sub, .eyebrow { color: #000 !important; }
  .hero-do, .two-do { display: none; }

  img { max-width: 100%; page-break-inside: avoid; }
  .lead2 { display: block; }
  .lead2 figure { margin-top: 10pt; }
  .lead2 figure img { max-height: 300pt; }
  .tiles, .svc-grid, .quotes, .cities { display: block; }
  .tile, .svc, .quote, .cities li { page-break-inside: avoid; margin-bottom: 10pt; }
  .svc img, .tile img { height: auto; max-height: 220pt; }

  h1, h2 { page-break-after: avoid; }
  .sec-h::after { background: #000; }
  .faq[open] .faq-a, .faq .faq-a { display: block !important; }

  /* the one thing that has to be on the page no matter which page was printed */
  .foot { background: #fff !important; color: #000 !important; border-top: 2pt solid #000; }
  .foot-brand img { background: none; padding: 0; }
  .foot-col a, .foot-tel, .foot-col h2 { color: #000 !important; }
  .concept-note { color: #000 !important; border-top: 1pt solid #000; }
}
