/* John The Plumber — demo stylesheet (Wave 3, V0.4).
   Art direction: personal trade nameplate. A cropped J/P letterform monogram is the
   hero focal point, then an editorial two-column service spread, a narrow installation
   ribbon and a grounded address-and-call close. Bone ground, near-black ink, one enamel
   oxblood reserved for the call action and the stamped registration marks.
   No frameworks, no webfonts, no raster images. */

:root {
  --ink: #16150f;
  --ink-deep: #100f0b;
  --ink-soft: #3d3a30;
  --steel: #6d6a62;
  --steel-soft: #a8a49a;
  --ground: #efe9dd;
  --paper: #f6f2e8;
  --oxblood: #8c2f26;
  --oxblood-deep: #6f231c;
  --rule: rgba(22, 21, 15, 0.17);
  --rule-soft: rgba(22, 21, 15, 0.09);
  --rule-light: rgba(239, 233, 221, 0.16);

  --display: "Arial Black", "DejaVu Sans Condensed", "Liberation Sans Narrow", Impact,
    "Helvetica Neue", Arial, sans-serif;
  --body: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial,
    "DejaVu Sans", sans-serif;

  --wrap-max: 1180px;
  --bar-height: 58px;
}

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

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

body {
  margin: 0;
  background: var(--ground);
  color: var(--ink);
  font-family: var(--body);
  font-size: 17px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3 { margin: 0; }

p { margin: 0; }

ul { margin: 0; padding: 0; list-style: none; }

a { color: inherit; }

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

.wrap {
  width: calc(100% - 48px);
  max-width: var(--wrap-max);
  margin: 0 auto;
}

.micro {
  margin: 0;
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--steel);
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: var(--paper);
  border-bottom: 1px solid var(--rule);
}

.header-inner {
  display: flex;
  align-items: center;
  gap: 14px;
  min-height: 68px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  margin-right: auto;
  min-height: 44px;
  text-decoration: none;
  font-family: var(--display);
  font-weight: 900;
  font-size: 1.06rem;
  letter-spacing: -0.012em;
  color: var(--ink);
}

.brand-stamp { display: block; width: 26px; height: 26px; color: var(--oxblood); }

.brand-stamp svg { display: block; width: 100%; height: 100%; }

.brand-stamp circle,
.brand-stamp path { fill: none; stroke: currentColor; stroke-width: 1.7; }

.site-nav ul { display: flex; gap: 4px; }

.site-nav a {
  display: inline-flex;
  align-items: center;
  min-height: 38px;
  padding: 0 13px;
  font-size: 0.94rem;
  font-weight: 600;
  color: var(--ink-soft);
  text-decoration: none;
}

.site-nav a:hover { color: var(--ink); }

.header-call {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 18px;
  border: 1px solid var(--ink);
  color: var(--ink);
  text-decoration: none;
  font-size: 0.92rem;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.01em;
  white-space: nowrap;
}

.header-call:hover { background: var(--ink); color: var(--paper); }

.menu-toggle {
  display: none;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  padding: 0 14px;
  border: 1px solid var(--rule);
  background: transparent;
  color: var(--ink);
  font-family: inherit;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  cursor: pointer;
}

.menu-bars {
  display: block;
  width: 18px;
  height: 12px;
  background: linear-gradient(
    var(--ink) 0 2px, transparent 2px 5px,
    var(--ink) 5px 7px, transparent 7px 10px,
    var(--ink) 10px 12px);
}

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

.hero {
  position: relative;
  overflow: hidden;
  background: var(--ground);
  border-bottom: 1px solid var(--rule);
}

.hero-inner {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 34px;
  min-height: 540px;
  padding: 84px 0 58px;
}

.hero-stamp {
  position: absolute;
  top: 56px;
  right: 0;
  width: 124px;
  height: 124px;
  z-index: 1;
  color: var(--oxblood);
  opacity: 0.42;
}

.hero-stamp svg { display: block; width: 100%; height: 100%; }

.hero-stamp circle,
.hero-stamp path { fill: none; stroke: currentColor; stroke-width: 1; }

.hero-mono {
  position: absolute;
  right: -16%;
  bottom: -2%;
  z-index: 0;
  display: flex;
  align-items: baseline;
  font-family: var(--display);
  font-weight: 900;
  font-size: 36rem;
  line-height: 0.78;
  letter-spacing: -0.07em;
  pointer-events: none;
  user-select: none;
  mix-blend-mode: multiply;
}

.mono-j { color: rgba(22, 21, 15, 0.14); }

.mono-p { color: rgba(140, 47, 38, 0.18); }

.hero-ident { position: relative; z-index: 2; }

.hero-line {
  margin-bottom: 20px;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.19em;
  text-transform: uppercase;
  color: var(--steel);
}

.hero-name {
  font-family: var(--display);
  font-weight: 900;
  font-size: clamp(48px, 7.4vw, 108px);
  line-height: 0.94;
  letter-spacing: -0.035em;
  color: var(--ink);
}

.hero-foot {
  position: relative;
  display: flex;
  align-items: center;
  gap: 26px;
  padding-top: 30px;
  border-top: 1px solid var(--rule);
}

.hero-foot::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 6px;
  background-image: repeating-linear-gradient(
    90deg,
    rgba(22, 21, 15, 0.26) 0 2px,
    transparent 2px 11px);
}

.btn-call {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 54px;
  padding: 0 26px;
  background: var(--oxblood);
  color: #fdf8ef;
  text-decoration: none;
  font-size: 1rem;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.01em;
  white-space: nowrap;
}

.btn-call:hover { background: var(--oxblood-deep); }

.btn-quiet {
  display: inline-flex;
  align-items: center;
  min-height: 38px;
  color: var(--ink-soft);
  font-size: 0.95rem;
  font-weight: 600;
  text-decoration: none;
  border-bottom: 1px solid var(--rule);
}

.btn-quiet:hover { color: var(--ink); }

/* ---------------------------------------------------------------- service spread */

.services { background: var(--paper); padding: 74px 0 78px; }

.section-head { margin-bottom: 44px; }

.section-head h2 {
  margin-top: 14px;
  max-width: 22ch;
  font-family: var(--display);
  font-weight: 900;
  font-size: clamp(32px, 4.4vw, 58px);
  line-height: 1;
  letter-spacing: -0.03em;
}

.spread { display: grid; grid-template-columns: 1.12fr 1fr; }

.spread-col-a { padding-right: 60px; }

.spread-col-b {
  padding-left: 60px;
  border-left: 1px solid var(--rule);
}

.group + .group { margin-top: 46px; }

.group-stamp {
  display: block;
  width: 30px;
  height: 30px;
  margin-bottom: 14px;
  color: var(--oxblood);
  opacity: 0.7;
}

.group-stamp svg { display: block; width: 100%; height: 100%; }

.group-stamp circle,
.group-stamp path { fill: none; stroke: currentColor; stroke-width: 1.5; }

.group-title {
  font-family: var(--display);
  font-weight: 900;
  font-size: clamp(27px, 3.1vw, 42px);
  line-height: 1;
  letter-spacing: -0.025em;
}

.group-list { margin-top: 18px; }

.group-list li {
  display: flex;
  align-items: center;
  gap: 13px;
  padding: 10px 0;
  font-size: 1.04rem;
  color: var(--ink-soft);
}

.group-list li::before {
  content: "";
  flex: 0 0 auto;
  width: 10px;
  height: 10px;
  border-top: 1px solid var(--oxblood);
  border-left: 1px solid var(--oxblood);
  opacity: 0.75;
}

/* ---------------------------------------------------------------- installation ribbon */

.ribbon {
  background: var(--ground);
  border-bottom: 1px solid var(--rule);
}

.ribbon-inner {
  display: flex;
  align-items: center;
  gap: 44px;
  padding: 34px 0;
}

.ribbon-title {
  flex: 0 0 auto;
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--steel);
}

.ribbon-list {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 36px;
}

.ribbon-list li { position: relative; }

.ribbon-list li + li::before {
  content: "";
  position: absolute;
  left: -21px;
  top: 50%;
  width: 7px;
  height: 7px;
  margin-top: -4px;
  border: 1px solid var(--oxblood);
  border-radius: 50%;
  opacity: 0.65;
}

.ribbon-label {
  font-family: var(--display);
  font-weight: 900;
  font-size: 1.16rem;
  letter-spacing: -0.012em;
  color: var(--ink);
}

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

.contact { background: var(--ink); color: var(--ground); }

.contact .micro { color: rgba(239, 233, 221, 0.6); }

.contact-inner {
  display: grid;
  grid-template-columns: 1fr 1fr auto;
  align-items: end;
  gap: 30px 48px;
  padding: 64px 0 68px;
}

.contact-lede h2 {
  margin-top: 14px;
  font-family: var(--display);
  font-weight: 900;
  font-size: clamp(32px, 4.2vw, 54px);
  line-height: 1;
  letter-spacing: -0.03em;
}

.contact-detail-label {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(239, 233, 221, 0.55);
}

.contact-address {
  margin-top: 10px;
  max-width: 22ch;
  font-size: 1.08rem;
  color: var(--ground);
}

.contact-action { padding-bottom: 4px; }

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

.site-footer {
  background: var(--ink-deep);
  color: var(--ground);
  padding: 48px 0 26px;
}

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 28px 40px;
}

.footer-name {
  font-family: var(--display);
  font-weight: 900;
  font-size: 1.5rem;
  letter-spacing: -0.02em;
}

.footer-phone {
  display: inline-flex;
  align-items: center;
  min-height: 38px;
  margin-top: 6px;
  color: rgba(239, 233, 221, 0.86);
  text-decoration: none;
  font-size: 1.02rem;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}

.footer-phone:hover { color: #ffffff; }

.footer-nav ul { display: flex; flex-wrap: wrap; gap: 4px 8px; }

.footer-nav a {
  display: inline-flex;
  align-items: center;
  min-height: 38px;
  padding: 0 12px;
  color: rgba(239, 233, 221, 0.74);
  text-decoration: none;
  font-size: 0.93rem;
  font-weight: 600;
}

.footer-nav a:hover { color: #ffffff; }

.footer-base {
  margin-top: 34px;
  padding-top: 18px;
  border-top: 1px solid var(--rule-light);
}

.footer-base p { font-size: 0.82rem; color: rgba(239, 233, 221, 0.55); }

/* ---------------------------------------------------------------- fixed mobile call bar */

.mobile-call { display: none; }

/* ---------------------------------------------------------------- mobile */

@media (max-width: 860px) {
  body { font-size: 16px; }

  .wrap { width: calc(100% - 36px); }

  .header-inner { min-height: 62px; gap: 10px; }

  .site-nav { display: none; }

  .header-call { display: none; }

  .menu-toggle { display: inline-flex; }

  .site-header.nav-open .site-nav {
    display: block;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    padding: 10px 18px 20px;
    background: var(--paper);
    border-bottom: 1px solid var(--rule);
    box-shadow: 0 18px 34px rgba(22, 21, 15, 0.12);
  }

  .site-header.nav-open .site-nav ul { flex-direction: column; }

  .site-header.nav-open .site-nav a {
    min-height: 46px;
    padding: 0;
    font-size: 1.02rem;
  }

  /* hero: name above a top-edge monogram band */
  .hero-inner {
    gap: 20px;
    min-height: 0;
    padding: 30px 0 34px;
  }

  .hero-stamp { display: none; }

  .hero-ident { order: 1; }

  .hero-mono {
    position: static;
    order: 2;
    right: auto;
    bottom: auto;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    height: 134px;
    overflow: hidden;
    font-size: 214px;
    line-height: 0.78;
    letter-spacing: -0.06em;
    border-top: 1px solid var(--rule);
    border-bottom: 1px solid var(--rule);
    mix-blend-mode: normal;
  }

  .mono-j { color: rgba(22, 21, 15, 0.15); }

  .mono-p { color: rgba(140, 47, 38, 0.19); }

  .hero-line { margin-bottom: 14px; font-size: 0.74rem; letter-spacing: 0.17em; }

  .hero-name { font-size: clamp(40px, 11vw, 62px); line-height: 0.96; }

  .hero-foot {
    order: 3;
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
    padding-top: 0;
    border-top: 0;
  }

  .hero-foot::before { display: none; }

  .btn-call { min-height: 56px; }

  .btn-quiet { align-self: center; }

  /* services: two grouped lists, no card sequence */
  .services { padding: 52px 0 54px; }

  .section-head { margin-bottom: 30px; }

  .section-head h2 { margin-top: 12px; font-size: 30px; }

  .spread { display: block; }

  .spread-col-a { padding-right: 0; }

  .spread-col-b {
    margin-top: 34px;
    padding-left: 0;
    border-left: 0;
  }

  .group + .group { margin-top: 32px; }

  .group-stamp { width: 24px; height: 24px; margin-bottom: 12px; }

  .group-title { font-size: 30px; }

  .group-list { margin-top: 14px; }

  .group-list li { padding: 8px 0; font-size: 1rem; }

  /* installation ribbon */
  .ribbon-inner {
    display: block;
    padding: 38px 0 42px;
  }

  .ribbon-title { display: block; margin-bottom: 22px; }

  .ribbon-list { display: block; }

  .ribbon-list li + li { margin-top: 18px; }

  .ribbon-list li + li::before { display: none; }

  .ribbon-label { font-size: 1.08rem; }

  .ribbon-list li { padding-left: 20px; position: relative; }

  .ribbon-list li::after {
    content: "";
    position: absolute;
    left: 0;
    top: 0.55em;
    width: 7px;
    height: 7px;
    border: 1px solid var(--oxblood);
    border-radius: 50%;
    opacity: 0.65;
  }

  /* contact: heading -> details -> call action */
  .contact-inner {
    display: block;
    padding: 44px 0 46px;
  }

  .contact-lede h2 { margin-top: 12px; font-size: 34px; }

  .contact-details { margin-top: 24px; }

  .contact-address { margin-top: 8px; max-width: none; font-size: 1.05rem; }

  .contact-action { margin-top: 26px; }

  .contact-action .btn-call { width: 100%; }

  /* footer */
  .site-footer { padding: 40px 0 96px; }

  .footer-inner { display: block; }

  .footer-nav { margin-top: 22px; }

  .footer-nav ul { gap: 0 4px; }

  .footer-nav a { padding: 0 10px 0 0; }

  .footer-base { margin-top: 26px; }

  /* fixed call bar */
  .mobile-call {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 60;
    display: flex;
    align-items: center;
    justify-content: center;
    height: var(--bar-height);
    background: var(--oxblood);
    visibility: hidden;
    opacity: 0;
    transform: translateY(140%);
    pointer-events: none;
    transition: transform 0.26s ease, opacity 0.26s ease, visibility 0.26s linear;
  }

  .mobile-call.is-visible {
    visibility: visible;
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
  }

  .mobile-call a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    color: #fdf8ef;
    text-decoration: none;
    font-size: 1rem;
    font-weight: 700;
    font-variant-numeric: tabular-nums;
    letter-spacing: 0.02em;
    white-space: nowrap;
  }
}

@media (prefers-reduced-motion: reduce) {
  .mobile-call { transition: none; }
}
