/* ==========================================================================
   Hyndman Plumbing & Heating
   Stylesheet — one file for the whole site.
   Change the colours in :root below and every page updates.
   ========================================================================== */

:root {
  /* Brand */
  --blue:        #2b9fdc;
  --blue-dark:   #1c7fb5;
  --blue-soft:   #eaf6fd;
  --orange:      #f97316;
  --orange-dark: #e0570b;
  --orange-soft: #fff2e8;

  /* Neutrals */
  --ink:      #0d0f12;
  --ink-2:    #14181d;
  --ink-3:    #1d2229;
  --steel:    #9aa4b2;
  --text:     #1b1f24;
  --muted:    #5c6672;
  --paper:    #ffffff;
  --paper-2:  #f4f7f9;
  --line:     #e3e8ed;
  --line-dark: rgba(255,255,255,.12);

  /* System */
  --radius:   14px;
  --radius-sm: 10px;
  --shadow:   0 1px 2px rgba(16,24,40,.05), 0 12px 28px -12px rgba(16,24,40,.16);
  --shadow-lg: 0 24px 60px -20px rgba(16,24,40,.28);
  --wrap:     1140px;
  --font-head: 'Archivo', 'Helvetica Neue', Arial, sans-serif;
  --font-body: 'Barlow', 'Helvetica Neue', Arial, sans-serif;
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--text);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
}
img, svg { max-width: 100%; display: block; }
a { color: var(--blue-dark); }
h1, h2, h3, h4 {
  font-family: var(--font-head);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -.015em;
  margin: 0 0 .5em;
  color: var(--ink);
}
h1 { font-size: clamp(2.1rem, 5.2vw, 3.4rem); }
h2 { font-size: clamp(1.65rem, 3.6vw, 2.4rem); }
h3 { font-size: 1.2rem; }
p  { margin: 0 0 1.1em; }
ul { margin: 0 0 1.1em; padding-left: 1.2em; }

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

.skip {
  position: absolute; left: -9999px; top: 0;
  background: var(--ink); color: #fff; padding: .75rem 1.25rem; z-index: 999;
}
.skip:focus { left: .5rem; top: .5rem; }

/* Stop the sticky header covering anchor targets */
[id] { scroll-margin-top: 100px; }

/* ---------- Layout ---------- */
.wrap { width: min(var(--wrap), 100% - 2.5rem); margin-inline: auto; }
.section { padding: clamp(3.25rem, 7vw, 5.5rem) 0; }
.section--tight { padding: clamp(2.5rem, 5vw, 3.5rem) 0; }
.section--grey { background: var(--paper-2); }
.section--dark { background: var(--ink); color: #cfd6de; }
.section--dark h2, .section--dark h3 { color: #fff; }

.eyebrow {
  font-family: var(--font-head);
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--blue-dark);
  margin: 0 0 .75rem;
  display: flex; align-items: center; gap: .6rem;
}
.eyebrow::before {
  content: ""; width: 26px; height: 2px; background: var(--orange); flex: none;
}
.section--dark .eyebrow { color: #7cc4ec; }

.lede { font-size: 1.15rem; color: var(--muted); max-width: 62ch; }
.section--dark .lede { color: #a9b4c1; }
.head { max-width: 66ch; margin-bottom: 2.5rem; }
.center { text-align: center; margin-inline: auto; }
.center .eyebrow { justify-content: center; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: .55rem;
  font-family: var(--font-head); font-weight: 700; font-size: 1rem;
  padding: .95rem 1.6rem; border-radius: 999px; border: 2px solid transparent;
  text-decoration: none; cursor: pointer; transition: transform .15s ease, box-shadow .15s ease, background .15s ease, color .15s ease;
  line-height: 1;
}
.btn svg { width: 18px; height: 18px; flex: none; }
.btn:hover { transform: translateY(-2px); }
.btn--primary { background: var(--orange); color: #fff; box-shadow: 0 10px 24px -10px rgba(249,115,22,.85); }
.btn--primary:hover { background: var(--orange-dark); }
.btn--blue { background: var(--blue); color: #fff; box-shadow: 0 10px 24px -10px rgba(43,159,220,.85); }
.btn--blue:hover { background: var(--blue-dark); }
.btn--ghost { border-color: rgba(255,255,255,.35); color: #fff; }
.btn--ghost:hover { background: rgba(255,255,255,.1); border-color: #fff; }
.btn--outline { border-color: var(--line); color: var(--ink); background: #fff; }
.btn--outline:hover { border-color: var(--ink); }
.btn-row { display: flex; flex-wrap: wrap; gap: .85rem; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(13,15,18,.94);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line-dark);
}
.site-header .bar {
  display: flex; align-items: center; justify-content: space-between;
  gap: 1rem; min-height: 74px;
}
.brand { display: flex; align-items: center; gap: .7rem; text-decoration: none; }
.brand img { width: 40px; height: 40px; }
.brand-name {
  display: block;
  font-family: var(--font-head); font-weight: 800; font-size: 1.15rem;
  letter-spacing: .12em; color: #fff; line-height: 1; text-transform: uppercase;
}
.brand-sub {
  display: block;
  font-family: var(--font-head); font-size: .58rem; font-weight: 600;
  letter-spacing: .26em; text-transform: uppercase; color: var(--steel);
  margin-top: .3rem;
}
.brand-sub b { color: var(--blue); font-weight: 600; }
.brand-sub i { color: var(--orange); font-style: normal; }

.nav { display: flex; align-items: center; gap: .35rem; }
.nav a {
  font-family: var(--font-head); font-weight: 600; font-size: .95rem;
  color: #d3dae2; text-decoration: none; padding: .55rem .85rem; border-radius: 8px;
}
.nav a:hover { color: #fff; background: rgba(255,255,255,.08); }
.nav a[aria-current="page"] { color: #fff; box-shadow: inset 0 -2px 0 var(--orange); border-radius: 0; }
.nav .btn { margin-left: .6rem; padding: .75rem 1.25rem; font-size: .95rem; }

.nav-toggle {
  display: none; background: transparent; border: 1px solid var(--line-dark);
  border-radius: 10px; padding: .6rem .7rem; cursor: pointer;
}
.nav-toggle span { display: block; width: 20px; height: 2px; background: #fff; margin: 4px 0; transition: .2s; }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

@media (max-width: 900px) {
  .nav-toggle { display: block; }
  .nav {
    position: absolute; inset: 100% 0 auto; flex-direction: column; align-items: stretch;
    background: var(--ink-2); border-bottom: 1px solid var(--line-dark);
    padding: .75rem 1.25rem 1.25rem; gap: .15rem; display: none;
  }
  .nav.open { display: flex; }
  .nav a { padding: .8rem .5rem; font-size: 1.05rem; }
  .nav .btn { margin: .5rem 0 0; justify-content: center; }
}

/* ---------- Top strip ---------- */
.strip {
  background: linear-gradient(90deg, var(--blue-dark), var(--blue) 45%, var(--orange) 100%);
  color: #fff; font-size: .9rem;
}
.strip .wrap {
  display: flex; flex-wrap: wrap; gap: .4rem 1.5rem;
  align-items: center; justify-content: center; padding: .5rem 0; text-align: center;
}
.strip b { font-weight: 700; }
.strip a { color: #fff; text-decoration: none; font-weight: 700; }
.strip a:hover { text-decoration: underline; }
@media (max-width: 680px) {
  .strip { font-size: .82rem; }
  .strip .s-long { display: none; }
  .strip .wrap { gap: .25rem .9rem; padding: .45rem 0; }
}

/* ---------- Hero ---------- */
.hero {
  position: relative; overflow: hidden;
  background: radial-gradient(1100px 520px at 78% -10%, #24303c 0%, transparent 62%), var(--ink);
  color: #d5dce4; padding: clamp(3.5rem, 8vw, 6.5rem) 0 clamp(3rem, 6vw, 5rem);
}
.hero::after {
  content: ""; position: absolute; inset: auto 0 0; height: 4px;
  background: linear-gradient(90deg, var(--blue) 0%, var(--blue) 45%, var(--orange) 55%, var(--orange) 100%);
}
.hero-grid {
  display: grid; grid-template-columns: 1.25fr .85fr; gap: clamp(2rem, 5vw, 4rem); align-items: center;
}
.hero h1 { color: #fff; }
.hero h1 .hl {
  background: linear-gradient(90deg, var(--blue), #6fc6ef);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.hero p.lede { color: #b3bec9; }
.hero-badges { display: flex; flex-wrap: wrap; gap: .5rem; margin-bottom: 1.5rem; }
.pill {
  display: inline-flex; align-items: center; gap: .45rem;
  font-family: var(--font-head); font-size: .8rem; font-weight: 600; letter-spacing: .02em;
  background: rgba(255,255,255,.07); border: 1px solid var(--line-dark);
  color: #dbe3ea; padding: .45rem .85rem; border-radius: 999px;
}
.pill::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--orange); }
.pill--blue::before { background: var(--blue); }
a.pill { text-decoration: none; cursor: pointer; transition: background .15s ease, border-color .15s ease, transform .15s ease; }
a.pill:hover { background: rgba(255,255,255,.16); border-color: rgba(255,255,255,.4); color: #fff; transform: translateY(-1px); }

.hero-card {
  background: linear-gradient(180deg, #1b2129, #12161b);
  border: 1px solid var(--line-dark); border-radius: 20px; padding: 1.75rem;
  box-shadow: var(--shadow-lg);
}
.hero-card h3 { font-size: 1.05rem; letter-spacing: .04em; text-transform: uppercase; color: #fff; }
.hours { list-style: none; margin: 0 0 1.25rem; padding: 0; }
.hours li {
  display: flex; justify-content: space-between; gap: 1rem;
  padding: .65rem 0; border-bottom: 1px dashed var(--line-dark); font-size: .98rem;
}
.hours li:last-child { border-bottom: 0; }
.hours span:first-child { color: #a9b4c1; }
.hours span:last-child { color: #fff; font-weight: 600; text-align: right; }
.hero-card .btn { width: 100%; justify-content: center; }
.hero-card .note { font-size: .85rem; color: #8d99a6; margin: .9rem 0 0; text-align: center; }

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

/* ---------- Trust bar ---------- */
.trust { border-bottom: 1px solid var(--line); background: #fff; }
.trust .wrap {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; padding: 1.5rem 0;
}
.trust-item { display: flex; gap: .7rem; align-items: flex-start; }
.trust-item svg { width: 22px; height: 22px; color: var(--blue); flex: none; margin-top: 2px; }
.trust-item b { display: block; font-family: var(--font-head); font-size: .95rem; color: var(--ink); }
.trust-item span { font-size: .88rem; color: var(--muted); }
@media (max-width: 860px) { .trust .wrap { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 480px) { .trust .wrap { grid-template-columns: 1fr; } }

/* ---------- Cards ---------- */
.grid { display: grid; gap: 1.25rem; }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid--2 { grid-template-columns: repeat(2, 1fr); }
@media (max-width: 900px) { .grid--3 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 620px) { .grid--3, .grid--2 { grid-template-columns: 1fr; } }

.card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 1.6rem; box-shadow: var(--shadow); transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}
a.card { display: block; color: inherit; text-decoration: none; }
.card--link:hover { transform: translateY(-4px); border-color: #cdd6de; box-shadow: var(--shadow-lg); }
.card--link:hover .more { gap: .6rem; color: var(--orange-dark); }
.card h3 { margin-bottom: .4rem; }
.card p { color: var(--muted); margin-bottom: .9rem; font-size: .98rem; }
.card ul { color: var(--muted); font-size: .95rem; margin-bottom: 0; padding-left: 1.1em; }
.card ul li { margin-bottom: .3rem; }
.card .more {
  font-family: var(--font-head); font-weight: 700; font-size: .92rem;
  color: var(--blue-dark); text-decoration: none; display: inline-flex; gap: .35rem; align-items: center;
}
.card .more:hover { gap: .6rem; }
.card span.more { margin-top: 1rem; transition: gap .15s ease, color .15s ease; }

.icon {
  width: 46px; height: 46px; border-radius: 12px; display: grid; place-items: center;
  background: var(--blue-soft); color: var(--blue-dark); margin-bottom: 1rem;
}
.icon svg { width: 24px; height: 24px; }
.icon--orange { background: var(--orange-soft); color: var(--orange-dark); }

/* ---------- Steps ---------- */
.steps { counter-reset: step; display: grid; gap: 1.25rem; grid-template-columns: repeat(4, 1fr); }
@media (max-width: 900px) { .steps { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 520px) { .steps { grid-template-columns: 1fr; } }
.step { position: relative; padding-top: 2.9rem; }
.step::before {
  counter-increment: step; content: counter(step);
  position: absolute; top: 0; left: 0;
  width: 40px; height: 40px; border-radius: 50%;
  display: grid; place-items: center;
  font-family: var(--font-head); font-weight: 800; font-size: 1rem;
  background: var(--orange); color: #fff;
}
.step h3 { font-size: 1.05rem; color: #fff; }
.step p { color: #a9b4c1; font-size: .96rem; margin: 0; }

/* ---------- Jump chips ---------- */
.jump { display: flex; flex-wrap: wrap; gap: .5rem; padding: 0; margin: 1.75rem 0 0; list-style: none; }
.jump a {
  display: inline-block; font-family: var(--font-head); font-size: .88rem; font-weight: 600;
  color: #dbe3ea; background: rgba(255,255,255,.07); border: 1px solid var(--line-dark);
  padding: .45rem .9rem; border-radius: 999px; text-decoration: none;
}
.jump a:hover { background: rgba(255,255,255,.15); color: #fff; }

/* ---------- Service list page ---------- */
.svc-block {
  border: 1px solid var(--line); border-radius: var(--radius); background: #fff;
  padding: 1.75rem; box-shadow: var(--shadow); margin-bottom: 1.25rem;
}
.svc-block > header { display: flex; gap: 1rem; align-items: flex-start; margin-bottom: 1.1rem; }
.svc-block > header .icon { margin: 0; }
.svc-block h2 { font-size: 1.35rem; margin: 0 0 .25rem; }
.svc-block header p { margin: 0; color: var(--muted); font-size: .96rem; }
.tick-list {
  list-style: none; padding: 0; margin: 0;
  display: grid; grid-template-columns: repeat(3, 1fr); gap: .5rem 1.5rem;
}
@media (max-width: 860px) { .tick-list { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .tick-list { grid-template-columns: 1fr; } }
.tick-list li {
  position: relative; padding-left: 1.65rem; font-size: .97rem; color: #39424d;
  padding-block: .18rem;
}
.tick-list li::before {
  content: ""; position: absolute; left: 0; top: .62em;
  width: 9px; height: 5px; border-left: 2px solid var(--blue); border-bottom: 2px solid var(--blue);
  transform: rotate(-45deg);
}
.svc-block--heat .tick-list li::before { border-color: var(--orange); }

/* ---------- Contact ---------- */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(1.5rem, 4vw, 3rem); align-items: start; }
@media (max-width: 860px) { .contact-grid { grid-template-columns: 1fr; } }

.contact-list { list-style: none; padding: 0; margin: 0 0 1.75rem; display: grid; gap: .85rem; }
.contact-list a, .contact-list div {
  display: flex; gap: 1rem; align-items: center; text-decoration: none; color: inherit;
  border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 1rem 1.15rem; background: #fff;
  transition: border-color .15s ease, transform .15s ease, box-shadow .15s ease;
}
.contact-list a:hover { border-color: var(--blue); transform: translateY(-2px); box-shadow: var(--shadow); }
.contact-list .icon { width: 40px; height: 40px; margin: 0; border-radius: 10px; }
.contact-list b { display: block; font-family: var(--font-head); font-size: .8rem; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); font-weight: 700; }
.contact-list span { font-size: 1.08rem; font-weight: 600; color: var(--ink); word-break: break-word; }

.panel {
  background: var(--paper-2); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 1.75rem;
}
.panel h3 { font-size: 1.1rem; }
.panel .hours li { border-bottom-color: var(--line); }
.panel .hours span:first-child { color: var(--muted); }
.panel .hours span:last-child { color: var(--ink); }

.area-list {
  display: flex; flex-wrap: wrap; gap: .5rem; padding: 0; margin: 0 0 1.25rem; list-style: none;
}
.area-list li { display: contents; }
.area-list a {
  background: #fff; border: 1px solid var(--line); border-radius: 999px;
  padding: .4rem .9rem; font-size: .92rem; color: #39424d; text-decoration: none;
  transition: border-color .15s ease, color .15s ease, transform .15s ease;
}
.area-list a:hover { border-color: var(--blue); color: var(--blue-dark); transform: translateY(-1px); }

/* ---------- CTA band ---------- */
.cta-band {
  background: linear-gradient(120deg, var(--ink) 0%, #171f27 55%, #2a1a10 100%);
  color: #fff; text-align: center; position: relative; overflow: hidden;
}
.cta-band h2 { color: #fff; }
.cta-band p { color: #b3bec9; max-width: 56ch; margin-inline: auto; }
.cta-band .btn-row { justify-content: center; }

/* ---------- FAQ ---------- */
.faq { border-top: 1px solid var(--line); }
.faq details {
  border-bottom: 1px solid var(--line); padding: 1.15rem 0;
}
.faq summary {
  cursor: pointer; list-style: none; font-family: var(--font-head); font-weight: 700;
  font-size: 1.05rem; color: var(--ink); display: flex; justify-content: space-between; gap: 1rem; align-items: center;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+"; font-size: 1.5rem; color: var(--blue); font-weight: 400; line-height: 1; flex: none;
}
.faq details[open] summary::after { content: "\2013"; }
.faq details p { margin: .85rem 0 0; color: var(--muted); }

/* ---------- Prose (privacy page) ---------- */
.prose { max-width: 74ch; }
.prose h2 { font-size: 1.4rem; margin-top: 2.2rem; }
.prose h3 { font-size: 1.08rem; margin-top: 1.6rem; }
.prose li { margin-bottom: .4rem; color: #39424d; }

/* ---------- Footer ---------- */
.site-footer { background: var(--ink); color: #96a2af; padding: 3.5rem 0 0; font-size: .95rem; }
.site-footer a { color: #c6cfd8; text-decoration: none; }
.site-footer a:hover { color: #fff; text-decoration: underline; }
.foot-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 2rem; padding-bottom: 2.5rem; }
@media (max-width: 900px) { .foot-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .foot-grid { grid-template-columns: 1fr; } }
.site-footer h4 {
  font-size: .8rem; letter-spacing: .14em; text-transform: uppercase; color: #fff; margin-bottom: 1rem;
}
.site-footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: .5rem; }
.foot-brand .brand { margin-bottom: 1rem; }
.foot-bottom {
  border-top: 1px solid var(--line-dark); padding: 1.25rem 0 2rem;
  display: flex; flex-wrap: wrap; gap: .5rem 1.5rem; justify-content: space-between; font-size: .88rem;
}

/* ---------- Sticky mobile call bar ---------- */
.callbar { display: none; }
@media (max-width: 720px) {
  .callbar {
    display: grid; grid-template-columns: 1fr 1fr;
    position: fixed; inset: auto 0 0; z-index: 120;
    border-top: 1px solid var(--line-dark);
  }
  .callbar a {
    display: flex; align-items: center; justify-content: center; gap: .5rem;
    padding: .95rem 0; font-family: var(--font-head); font-weight: 700; font-size: 1rem;
    text-decoration: none; color: #fff;
  }
  .callbar a svg { width: 18px; height: 18px; }
  .callbar .c-call { background: var(--orange); }
  .callbar .c-msg  { background: var(--blue); }
  body { padding-bottom: 56px; }
}

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