/* S Fearn Plumbing & Heating | Leeds | Yorkshire — static demo stylesheet.

   Art direction: an editorial thermal folio. Warm oatmeal and blush paper planes,
   espresso-brown ink for the formal identity, and one fired-clay accent reserved for
   the call action and the chapter numerals. Artwork is original inline SVG: layered
   arcs (a slow thermal bloom), a waterline and cropped material planes suggesting
   water, heat and bathroom surfaces. No equipment, no pipe diagram, no card grid.

   No frameworks, no webfonts, no raster images. */

:root {
  --paper: #f8f3ea;
  --paper-2: #f0e5d6;
  --sand: #e7d8c4;
  --blush: #f2e2d6;
  --ink: #2b211c;
  --ink-2: #4a3c33;
  --ink-soft: #6e5c50;
  --clay: #a8412c;
  --clay-deep: #8a3320;
  --clay-soft: #c8613f;
  --stone: #c9b6a0;
  --line: rgba(43, 33, 28, 0.16);
  --line-soft: rgba(43, 33, 28, 0.09);
  --line-inverse: rgba(248, 243, 234, 0.2);
  --wrap: 1240px;
  --gut: 48px;
  --bar-h: 60px;

  --display: "Iowan Old Style", "Palatino Linotype", Palatino, "Book Antiqua", Georgia,
    "Times New Roman", "DejaVu Sans Condensed", "Liberation Sans Narrow", serif;
  --body: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial,
    "Liberation Sans", sans-serif;
}

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

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

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--body);
  font-size: 17px;
  line-height: 1.6;
  overflow-wrap: break-word;
}

svg {
  display: block;
  max-width: 100%;
}

p {
  margin: 0;
}

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

.micro {
  margin: 0 0 14px;
  font-size: 0.74rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--clay-deep);
  font-weight: 600;
}

h1,
h2,
h3 {
  font-family: var(--display);
  font-weight: 600;
  letter-spacing: -0.01em;
  margin: 0;
}

h2 {
  font-size: clamp(1.75rem, 2.4vw, 2.35rem);
  line-height: 1.14;
}

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

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

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

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-height: 44px;
  color: var(--ink);
  text-decoration: none;
}

.brand-mark svg {
  width: 28px;
  height: 28px;
}

.brand-mark path {
  fill: none;
  stroke-width: 2;
  stroke-linecap: round;
}

.mark-arc-a {
  stroke: var(--clay-deep);
}

.mark-arc-b {
  stroke: var(--clay);
}

.mark-arc-c {
  stroke: var(--clay-soft);
}

.brand-mark .mark-plane {
  stroke: none;
  fill: var(--stone);
}

.brand-text {
  font-family: var(--display);
  font-size: 0.97rem;
  line-height: 1.2;
  letter-spacing: 0;
  max-width: 46ch;
}

.site-nav {
  margin-left: auto;
}

.site-nav ul {
  display: flex;
  align-items: center;
  gap: 28px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.site-nav a {
  display: inline-flex;
  align-items: center;
  min-height: 36px;
  color: var(--ink-2);
  text-decoration: none;
  font-size: 0.95rem;
  border-bottom: 1px solid transparent;
}

.site-nav a:hover,
.site-nav a:focus-visible {
  color: var(--clay-deep);
  border-bottom-color: var(--clay);
}

.header-call {
  display: inline-flex;
  align-items: center;
  min-height: 46px;
  padding: 0 22px;
  background: var(--clay);
  color: #fdf8f1;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.95rem;
  border-radius: 3px;
}

.header-call:hover,
.header-call:focus-visible {
  background: var(--clay-deep);
}

.menu-toggle {
  display: none;
}

/* ---------- Hero ---------- */

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

.hero-split {
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(0, 1fr);
  gap: 68px;
  align-items: center;
  padding: 82px 0 96px;
}

h1 {
  font-weight: 400;
  font-size: clamp(2.35rem, 3.9vw, 3.8rem);
  line-height: 1.05;
  letter-spacing: -0.014em;
  margin: 0 0 22px;
  max-width: 22ch;
}

.hero-line {
  font-size: 1.14rem;
  color: var(--ink-2);
  max-width: 46ch;
  margin: 0 0 32px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 22px;
}

.btn-call {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 56px;
  padding: 0 30px;
  background: var(--clay);
  color: #fdf8f1;
  text-decoration: none;
  font-weight: 600;
  font-size: 1.02rem;
  border-radius: 3px;
}

.btn-call:hover,
.btn-call:focus-visible {
  background: var(--clay-deep);
}

.btn-view {
  display: inline-flex;
  align-items: center;
  min-height: 56px;
  color: var(--ink);
  text-decoration: none;
  font-weight: 500;
  border-bottom: 1px solid var(--line);
}

.btn-view:hover,
.btn-view:focus-visible {
  border-bottom-color: var(--clay);
  color: var(--clay-deep);
}

.hero-figure {
  margin: 0;
}

.thermal-folio {
  width: 100%;
  height: auto;
  border-radius: 4px;
}

/* ---------- Service chapters ---------- */

.chapters {
  border-top: 1px solid var(--line);
}

.section-head {
  padding: 70px 0 26px;
  border-bottom: 1px solid var(--line);
}

.chapter-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.chapter-inner {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.35fr);
  gap: 56px;
  padding: 52px 0 56px;
}

.chapter-d .chapter-inner {
  padding: 44px 0 48px;
}

.chapter-a {
  background: var(--paper-2);
}

.chapter-b {
  background: var(--ink);
  color: var(--paper);
}

.chapter-c {
  background: var(--blush);
}

.chapter-d {
  background: var(--sand);
}

.chapter-no {
  display: block;
  margin-bottom: 12px;
  font-family: var(--body);
  font-size: 0.74rem;
  letter-spacing: 0.22em;
  color: var(--clay-deep);
}

.chapter-b .chapter-no {
  color: var(--stone);
}

.chapter-title {
  font-size: clamp(1.6rem, 2.1vw, 2.05rem);
  line-height: 1.1;
}

.label-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.label-list li {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 15px 0;
  border-top: 1px solid var(--line-soft);
  font-size: 1.02rem;
}

.label-list li::before {
  content: "";
  flex: 0 0 auto;
  width: 13px;
  height: 13px;
  border-top: 2px solid var(--clay);
  border-radius: 50% 50% 0 0 / 100% 100% 0 0;
}

.chapter-b .label-list li {
  border-top-color: var(--line-inverse);
}

.chapter-b .label-list li::before {
  border-top-color: var(--clay-soft);
}

/* ---------- Address panel ---------- */

.panel {
  background: var(--paper-2);
  border-top: 1px solid var(--line);
}

.panel-inner {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr);
  gap: 28px 56px;
  align-items: end;
  padding: 66px 0 70px;
}

.panel-id {
  max-width: 24ch;
}

.address-line {
  font-family: var(--display);
  font-size: clamp(1.18rem, 1.6vw, 1.5rem);
  line-height: 1.42;
  color: var(--ink);
  max-width: 30ch;
  margin: 0 0 8px;
}

.panel-motif {
  position: absolute;
  right: var(--gut);
  bottom: 0;
  width: 190px;
  max-width: 34%;
  pointer-events: none;
}

.panel-motif svg {
  width: 100%;
  height: auto;
}

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

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

.contact-inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 16px 56px;
  padding: 74px 0 78px;
}

.contact .micro {
  color: var(--clay-soft);
}

.contact-lede {
  grid-column: 1;
}

.contact-detail {
  grid-column: 1;
  color: rgba(248, 243, 234, 0.76);
  max-width: 42ch;
}

.contact-action {
  grid-column: 2;
  grid-row: 1 / span 2;
}

.contact .btn-call {
  background: var(--paper);
  color: var(--ink);
}

.contact .btn-call:hover,
.contact .btn-call:focus-visible {
  background: var(--sand);
}

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

.site-footer {
  background: var(--paper);
  border-top: 1px solid var(--line);
}

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 26px 56px;
  padding: 46px 0 30px;
}

.footer-name {
  font-family: var(--display);
  font-size: 1.06rem;
  line-height: 1.36;
  max-width: 32ch;
  margin: 0 0 10px;
}

.footer-phone {
  display: inline-flex;
  align-items: center;
  min-height: 36px;
  color: var(--clay-deep);
  text-decoration: none;
  font-weight: 600;
}

.footer-phone:hover,
.footer-phone:focus-visible {
  color: var(--clay);
}

.footer-nav ul {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 26px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.footer-nav a {
  display: inline-flex;
  align-items: center;
  min-height: 36px;
  color: var(--ink-2);
  text-decoration: none;
  font-size: 0.95rem;
}

.footer-nav a:hover,
.footer-nav a:focus-visible {
  color: var(--clay-deep);
}

.footer-base {
  padding: 20px 0 28px;
  border-top: 1px solid var(--line-soft);
}

.footer-base p {
  font-size: 0.84rem;
  color: var(--ink-soft);
}

/* ---------- Fixed mobile call bar (parked by default) ---------- */

.mobile-call {
  display: none;
}

/* ---------- Mobile composition ---------- */

@media (max-width: 880px) {
  :root {
    --gut: 22px;
  }

  body {
    font-size: 16px;
  }

  .header-inner {
    min-height: 66px;
    gap: 14px;
  }

  .brand-mark svg {
    width: 24px;
    height: 24px;
  }

  .brand-text {
    font-size: 0.92rem;
    max-width: 22ch;
  }

  .menu-toggle {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    margin-left: auto;
    min-height: 42px;
    padding: 0 14px;
    background: transparent;
    border: 1px solid var(--line);
    border-radius: 3px;
    color: var(--ink);
    font: inherit;
    font-size: 0.9rem;
    cursor: pointer;
  }

  .menu-bars {
    position: relative;
    display: block;
    width: 16px;
    height: 2px;
    background: currentColor;
  }

  .menu-bars::before,
  .menu-bars::after {
    content: "";
    position: absolute;
    left: 0;
    width: 16px;
    height: 2px;
    background: currentColor;
  }

  .menu-bars::before {
    top: -5px;
  }

  .menu-bars::after {
    top: 5px;
  }

  .site-nav {
    display: none;
    position: absolute;
    left: 0;
    right: 0;
    top: 100%;
    margin: 0;
    padding: 8px 22px 18px;
    background: var(--paper);
    border-bottom: 1px solid var(--line);
    box-shadow: 0 20px 32px -20px rgba(43, 33, 28, 0.4);
  }

  .site-nav ul {
    flex-direction: column;
    align-items: stretch;
    gap: 0;
  }

  .site-nav a {
    min-height: 46px;
    border-bottom: 1px solid var(--line-soft);
  }

  .site-nav a:hover {
    border-bottom-color: var(--line-soft);
  }

  .site-header.nav-open .site-nav {
    display: block;
  }

  .header-call {
    display: none;
  }

  /* Hero: identity-first masthead, plane cropped beneath. */
  .hero-split {
    display: block;
    padding: 40px 0 30px;
  }

  h1 {
    font-size: clamp(2.05rem, 9.4vw, 2.6rem);
    margin-bottom: 16px;
  }

  .hero-line {
    font-size: 1.06rem;
    margin-bottom: 26px;
  }

  .hero-actions {
    gap: 18px;
  }

  .btn-call,
  .btn-view {
    min-height: 52px;
  }

  .btn-call {
    padding: 0 24px;
  }

  .hero-figure {
    margin: 30px -22px 0;
  }

  .thermal-folio {
    border-radius: 0;
    max-height: 330px;
  }

  .section-head {
    padding: 38px 0 16px;
  }

  .chapter-inner {
    display: block;
    padding: 26px 0 28px;
  }

  .chapter-id {
    margin-bottom: 14px;
  }

  .chapter-no {
    display: inline-block;
    margin: 0 10px 0 0;
  }

  .chapter-title {
    display: inline-block;
    font-size: 1.5rem;
  }

  .label-list li {
    padding: 11px 0;
    font-size: 1rem;
  }

  .panel-inner {
    display: block;
    padding: 38px 0 44px;
  }

  .panel-id {
    margin-bottom: 12px;
  }

  .address-line {
    max-width: none;
  }

  .panel-motif {
    display: none;
  }

  .contact-inner {
    display: block;
    padding: 44px 0 48px;
  }

  .contact-detail {
    margin: 12px 0 24px;
  }

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

  .footer-inner {
    display: block;
    padding: 34px 0 24px;
  }

  .footer-id {
    margin-bottom: 22px;
  }

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

  .footer-base {
    padding: 18px 0 22px;
  }

  /* Footer element (not a .wrap child) keeps the parked bar off footer text. */
  .site-footer {
    padding-bottom: 96px;
  }

  .mobile-call {
    display: block;
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 80;
    padding: 7px 16px calc(7px + env(safe-area-inset-bottom, 0px));
    background: var(--ink);
    border-top: 1px solid var(--line-inverse);
    visibility: hidden;
    opacity: 0;
    transform: translateY(140%);
    pointer-events: none;
    transition: transform 0.28s ease, opacity 0.28s ease;
  }

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

  .mobile-call a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    min-height: 44px;
    background: var(--clay);
    color: #fdf8f1;
    text-decoration: none;
    font-weight: 600;
    border-radius: 3px;
  }
}