/* Joe's Plumbing. Red enamel shop sign, parts-catalog plates. */
:root {
  --ground: #7A1519;
  --deep: #4E0B0E;
  --ink: #F3E7C4;
  --brass: #E3B93A;
  --ox: #A81E22;
  --rule: rgba(227, 185, 58, .45);
  --display: 'Abril Fatface', Georgia, serif;
  --text: 'Libre Franklin', Arial, sans-serif;
  --gutter: clamp(16px, 4vw, 56px);
  color-scheme: dark;
}
* { box-sizing: border-box; }
body { margin: 0; background: var(--ground); color: var(--ink); font: 400 17px/1.6 var(--text); }
img { display: block; width: 100%; height: auto; }
a { color: inherit; }
:focus-visible { outline: 3px solid var(--brass); outline-offset: 3px; }
h1, h2, h3 { margin: 0; font-family: var(--display); font-weight: 400; line-height: 1.04; text-wrap: balance; }
p { margin: 0; }
.wrap { max-width: 1180px; margin: 0 auto; padding-inline: var(--gutter); }

/* The sign: a double brass line, round corners, 4 rivets. */
.sign {
  position: relative;
  margin: 18px var(--gutter) 0;
  padding: 16px 32px;
  border: 2px solid var(--brass);
  border-radius: 14px;
  outline: 1px solid var(--rule);
  outline-offset: 4px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px 28px;
}
.sign {
  background:
    radial-gradient(circle 3.5px at 11px 11px, var(--brass) 98%, transparent) ,
    radial-gradient(circle 3.5px at calc(100% - 11px) 11px, var(--brass) 98%, transparent),
    radial-gradient(circle 3.5px at 11px calc(100% - 11px), var(--brass) 98%, transparent),
    radial-gradient(circle 3.5px at calc(100% - 11px) calc(100% - 11px), var(--brass) 98%, transparent);
}
.brand { font-family: var(--display); font-size: clamp(25px, 3vw, 34px); line-height: 1.1; text-decoration: none; color: var(--brass); }
.nav { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 24px; font-size: 15px; font-weight: 500; }
.nav a { text-decoration: none; padding: 8px 0; }
.nav a:hover, .nav a[aria-current] { color: var(--brass); }
.phone { display: inline-block; font-family: var(--display); font-size: 20px; color: var(--brass); }
button.btn, a.btn {
  display: inline-block;
  padding: 14px 24px;
  border: 2px solid var(--brass);
  border-radius: 6px;
  background: var(--brass);
  color: var(--deep);
  font: 700 16px/1.2 var(--text);
  text-decoration: none;
  cursor: pointer;
}
button.btn:hover, a.btn:hover { background: var(--ink); border-color: var(--ink); }
a.btn.ghost, button.btn.ghost { background: none; color: var(--ink); }
a.btn.ghost:hover, button.btn.ghost:hover { background: none; border-color: var(--ink); }

.hero { padding-block: clamp(32px, 6vw, 72px) 0; }
.hero h1 { font-size: clamp(50px, 10vw, 128px); max-width: 11ch; color: var(--ink); }
.hero .lede { max-width: 50ch; margin-top: 22px; font-size: clamp(18px, 1.8vw, 21px); }
.hero .acts { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 26px; align-items: center; }
.plate-img { margin-top: clamp(32px, 5vw, 56px); border: 2px solid var(--brass); outline: 1px solid var(--rule); outline-offset: 5px; border-radius: 4px; }
.caption { display: flex; justify-content: space-between; gap: 16px; margin-top: 16px; font-size: 13px; letter-spacing: .08em; text-transform: uppercase; color: var(--brass); }

.block { padding-block: clamp(56px, 8vw, 104px); }
.kicker { font-size: 13px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--brass); }
.block h2 { margin-top: 10px; font-size: clamp(38px, 5.6vw, 72px); }

/* The catalog index, with dot leaders to each plate. */
.index { list-style: none; margin: 32px 0 0; padding: 0; border-top: 2px solid var(--brass); }
.index a { display: flex; align-items: baseline; gap: 10px; padding: 14px 0; text-decoration: none; font-size: clamp(19px, 2.3vw, 26px); border-bottom: 1px solid var(--rule); }
.index a:hover { color: var(--brass); }
.index .dots { flex: 1; min-width: 20px; border-bottom: 2px dotted var(--rule); transform: translateY(-5px); }
.index .no { font-family: var(--display); color: var(--brass); }

.split { display: grid; grid-template-columns: 1.15fr 1fr; gap: clamp(28px, 5vw, 72px); align-items: center; }
.split.flip > :first-child { order: 2; }
.framed { border: 2px solid var(--brass); padding: 8px; border-radius: 4px; }
.prose { display: grid; gap: 16px; max-width: 58ch; }
.prose h2 { margin: 0; }

.band { background: #F3E7C4; color: #5A0D10; }
.band .kicker { color: #A81E22; }
.band .inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 24px; padding-block: clamp(40px, 6vw, 72px); }
.band h2 { margin: 0; font-size: clamp(32px, 4.6vw, 58px); max-width: 16ch; }
.band .btn { background: var(--ox); border-color: var(--ox); color: #FBF1D6; }
.band .btn:hover { background: var(--deep); border-color: var(--deep); }

/* Plates on the services page. */
.plate { display: grid; grid-template-columns: minmax(180px, 280px) 1fr; gap: clamp(24px, 4vw, 56px); padding-block: clamp(32px, 5vw, 56px); border-top: 2px solid var(--brass); scroll-margin-top: 24px; }
.drawing { aspect-ratio: 1; border: 1px solid var(--rule); padding: 18px; background: var(--deep); }
.drawing svg { display: block; width: 100%; height: 100%; fill: none; stroke: var(--brass); stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; }
.plate .no { font-size: 13px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--brass); }
.plate h2 { margin-top: 6px; font-size: clamp(32px, 4vw, 48px); }
.plate p { margin-top: 12px; max-width: 58ch; }
.spec { margin: 18px 0 0; padding: 0; list-style: none; border-top: 1px solid var(--rule); max-width: 620px; }
.spec li { display: grid; grid-template-columns: 150px 1fr; gap: 16px; padding: 9px 0; border-bottom: 1px solid var(--rule); font-size: 15px; }
.spec b { font-weight: 600; color: var(--brass); }

.foot { background: var(--deep); padding-block: 40px 110px; font-size: 15px; }
.foot .inner { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 24px; }
.foot .brand { font-size: 24px; }

@media (max-width: 820px) {
  .split, .plate { grid-template-columns: minmax(0, 1fr); }
  .split.flip > :first-child { order: 0; }
  .drawing { max-width: 220px; }
  .sign { padding: 14px 20px; }
  .spec li { grid-template-columns: 110px 1fr; }
  .caption { flex-direction: column; gap: 2px; }
}

/* Photo strip on the home page. */
.strip { display: grid; grid-template-columns: repeat(4, 1fr); gap: clamp(12px, 2vw, 24px); margin-top: 32px; }
.strip figure { margin: 0; }
.strip .framed { overflow: hidden; }
.strip img { aspect-ratio: 4 / 3; object-fit: cover; transition: scale .5s cubic-bezier(.2,.7,.2,1); }
.strip figure:hover img { scale: 1.05; }
.strip figcaption { margin-top: 10px; font-size: 13px; letter-spacing: .08em; text-transform: uppercase; color: var(--brass); }
.contact-lines { display: grid; gap: 6px; }
.contact-lines .phone { font-size: clamp(30px, 4vw, 44px); color: var(--ox); text-decoration: none; }
@media (max-width: 980px) { .strip { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* Launch Local layer: buy button, info button, pop-up. */
.ll-dock { position: fixed; right: 16px; bottom: calc(16px + env(safe-area-inset-bottom)); z-index: 90; display: flex; flex-direction: column; align-items: flex-end; gap: 10px; transform: translateY(160%); opacity: 0; transition: transform .55s cubic-bezier(.34,1.56,.64,1), opacity .3s ease; }
.ll-dock.on { transform: none; opacity: 1; }
.ll-dock.duck { transform: translateY(160%); opacity: 0; pointer-events: none; }
.ll-buy { display: flex; align-items: center; gap: 10px; min-height: 48px; max-width: min(320px, calc(100vw - 32px)); padding: 10px 18px 10px 12px; border-radius: 999px; background: #fff; color: #1E1E1E; font: 700 15px/1.25 var(--text); text-decoration: none; box-shadow: 0 8px 24px rgba(0,0,0,.35); transition: translate .2s ease, box-shadow .2s ease; }
.ll-buy:hover { translate: 0 -2px; box-shadow: 0 12px 28px rgba(0,0,0,.4); }
.ll-buy svg { width: 28px; height: 28px; flex: none; }
.ll-info { min-height: 44px; padding: 8px 14px; border: 0; border-radius: 999px; background: rgba(255,255,255,.94); color: #1E1E1E; font: 600 13px/1 var(--text); cursor: pointer; box-shadow: 0 4px 14px rgba(0,0,0,.3); }
.ll-info::before { content: "i"; display: inline-grid; place-items: center; width: 18px; height: 18px; margin-right: 7px; border-radius: 50%; background: #0C65F5; color: #fff; font: 700 12px/1 Georgia, serif; }
.ll-dialog { position: fixed; inset: 0; margin: auto; width: min(460px, calc(100vw - 32px)); height: max-content; max-height: calc(100dvh - 32px); overflow: auto; padding: 26px; border: 0; border-radius: 16px; background: #fff; color: #1E1E1E; color-scheme: light; font: 400 16px/1.55 var(--text); }
.ll-dialog::backdrop { background: rgba(20, 4, 5, .65); }
.ll-dialog[open] { animation: ll-pop .25s ease-out; }
@keyframes ll-pop { from { opacity: 0; scale: .96; } }
.ll-dialog h2 { margin: 18px 0 10px; font: 700 22px/1.2 var(--text); }
.ll-dialog p { margin: 0 0 12px; }
.ll-lockup { display: inline-block; }
.ll-lockup svg { height: 34px; width: auto; display: block; }
.ll-close { position: absolute; top: 12px; right: 12px; width: 44px; height: 44px; border: 0; border-radius: 50%; background: none; color: #1E1E1E; font-size: 26px; line-height: 1; cursor: pointer; }
.ll-dialog .ll-buy { display: inline-flex; margin-top: 6px; background: #0C65F5; color: #fff; box-shadow: none; padding-left: 18px; }
.ll-dialog :focus-visible, .ll-dock :focus-visible { outline: 3px solid #0C65F5; outline-offset: 3px; }
@media (prefers-reduced-motion: reduce) { .ll-dock, .ll-buy, .strip img { transition: none; } .ll-dialog[open] { animation: none; } }
